/* likovne-delavnice.si — playful gallery aesthetic */

:root {
  --paper:   #f4efe6;
  --paper-2: #ebe4d4;
  --paper-3: #e0d8c4;
  --ink:     #1a1714;
  --ink-2:   #3d3530;
  --muted:   #7a726a;

  --accent-tomato:  oklch(0.68 0.18 30);
  --accent-mustard: oklch(0.80 0.16 85);
  --accent-sage:    oklch(0.65 0.10 150);
  --accent-cobalt:  oklch(0.55 0.15 260);

  --accent: var(--accent-tomato);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
  --gap: 20px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  max-width: 100%;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}
#root {
  min-width: 0;
  max-width: 100%;
}
/* Keep responsive width without height:auto on images (breaks .cover fills in cards) */
img, canvas, svg { max-width: 100%; }
video { max-width: 100%; height: auto; }

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.tiny { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ================== TOP BAR ================== */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
  min-width: 0;
}
.brand em { color: var(--accent-tomato); font-style: normal; }
.brand-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-tomato); margin: 0 4px;
}
.topbar-right {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 12px;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  row-gap: 8px;
}
.topbar .user-chip {
  min-width: 0;
  max-width: min(200px, 50vw);
}
.topbar .user-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-right .lang { padding: 4px 8px; border: 1px solid var(--ink); border-radius: var(--radius); }
.topbar-right .fav-count {
  display: inline-flex; align-items: center; gap: 6px;
}
.topbar-right .fav-count .heart { color: var(--accent-tomato); font-size: 14px; }

.topbar-login, .topbar-submit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.topbar-login:hover, .topbar-submit:hover { background: var(--ink); color: var(--paper); }
.topbar-submit { background: var(--accent-mustard); }
.topbar-submit:hover { background: var(--ink); color: var(--accent-mustard); }

.user-chip-wrap { position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.user-chip:hover { background: var(--paper-2); }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: min(240px, calc(100vw - 24px));
  max-width: calc(100vw - 16px);
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 0 var(--ink);
  z-index: 60;
  display: flex; flex-direction: column;
}
.user-menu-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink);
}
.user-menu-item {
  background: transparent; border: none;
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-body); font-size: 13px;
  color: var(--ink); cursor: pointer;
  border-bottom: 1px dashed var(--paper-3);
}
.user-menu-item:hover { background: var(--paper-2); }
.user-menu-item.logout { color: var(--accent-tomato); border-bottom: none; font-weight: 600; }

/* ================== HERO ================== */
.hero {
  padding: 48px 32px 36px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 20px;
}
.hero-title .accent-word { color: var(--accent-tomato); font-style: italic; }
.hero-title .accent-word.b { color: var(--accent-cobalt); }
.hero-title .accent-word.c { color: var(--accent-sage); }
.hero-title .accent-word.d { color: var(--accent-mustard); }
.hero-lede {
  font-size: 17px;
  max-width: 520px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.hero-brush {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
}

.hero-brush svg {
  width: 100%;
  height: auto;
  max-height: 240px;
  overflow: visible;
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--ink);
}
.hero-stat .n {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}
.hero-stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ================== SEARCH BAR ================== */
.searchbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar .search-submit {
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.searchbar .search-submit:hover { background: var(--accent-tomato); }

/* ================== CATEGORY STRIP ================== */
.cat-strip {
  padding: 24px 32px;
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cat-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.cat-chip .g { font-size: 12px; }
.cat-chip:hover { background: var(--ink); color: var(--paper); }
.cat-chip.active { background: var(--ink); color: var(--paper); }
.cat-chip.active.tomato { background: var(--accent-tomato); border-color: var(--accent-tomato); color: var(--paper); }
.cat-chip.active.cobalt { background: var(--accent-cobalt); border-color: var(--accent-cobalt); color: var(--paper); }
.cat-chip.active.sage   { background: var(--accent-sage);   border-color: var(--accent-sage);   color: var(--paper); }
.cat-chip.active.mustard{ background: var(--accent-mustard);border-color: var(--accent-mustard);color: var(--ink); }

/* ================== MAIN LAYOUT ================== */
.main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 800px;
  min-width: 0;
}

/* ================== SIDEBAR ================== */
.sidebar {
  padding: 28px 24px;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 74px; align-self: start;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 28px; }
.clear-filters-btn {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}
.clear-filters-btn:hover { opacity: 0.75; }
.sidebar-section h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 600;
}

.city-list { display: flex; flex-direction: column; gap: 4px; }
.city-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer;
  border: none; background: transparent; text-align: left;
  color: var(--ink);
}
.city-item:hover { background: var(--paper-2); }
.city-item.active { background: var(--ink); color: var(--paper); }
.city-item .count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.city-item.active .count { color: var(--paper-3); }

.price-slider { margin-top: 8px; }
.price-range-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px;
  margin-bottom: 8px;
}
.price-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent-tomato);
}

.sidebar .slovenia-map { width: 100%; height: auto; }

.view-toggle {
  display: flex;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.view-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.view-toggle button.on { background: var(--ink); color: var(--paper); }

.rate-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rate-filter-btn {
  background: none;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: left;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rate-filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.rate-filter-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.freshness {
  padding: 12px;
  background: var(--paper-2);
  border: 1px dashed var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}
.freshness .status-dot { background: var(--accent-sage); }

.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-sage);
  margin-right: 6px;
}

/* ================== FEED ================== */
.feed {
  padding: 32px;
  scroll-margin-top: 74px;
  min-width: 0;
}
.feed-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  gap: 12px 16px;
  min-width: 0;
  flex-wrap: wrap;
}
.feed-head > div:first-child {
  min-width: 0;
  flex: 1 1 160px;
}
.feed-head h2 {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 0;
  line-height: 1;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.feed-head .count-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.sort-select {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 100%;
  min-width: min(100%, 20rem);
  width: auto;
  flex: 0 0 auto;
}

/* ================== CARD BASE ================== */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--ink);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-mono);
}
.pill-sm { font-size: 10px; padding: 2px 8px; }
.pill-solid {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.accent-tomato  .pill-solid { background: var(--accent-tomato); border-color: var(--accent-tomato); }
.accent-cobalt  .pill-solid { background: var(--accent-cobalt); border-color: var(--accent-cobalt); }
.accent-sage    .pill-solid { background: var(--accent-sage);   border-color: var(--accent-sage); }
.accent-mustard .pill-solid { background: var(--accent-mustard);border-color: var(--accent-mustard); color: var(--ink); }

.cover {
  width: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  overflow: hidden;
}
/* Photos: fill the crop box edge-to-edge (no letterboxing) */
.cover:has(> .cover-photo) {
  display: block;
  line-height: 0;
}
.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.feature-cover .cover-photo {
  object-position: center center;
  min-height: 100%;
}
.cover-tomato  { color: var(--accent-tomato);  background: color-mix(in oklch, var(--accent-tomato) 18%, var(--paper)); }
.cover-cobalt  { color: var(--accent-cobalt);  background: color-mix(in oklch, var(--accent-cobalt) 18%, var(--paper)); }
.cover-sage    { color: var(--accent-sage);    background: color-mix(in oklch, var(--accent-sage) 20%, var(--paper)); }
.cover-mustard { color: var(--accent-mustard); background: color-mix(in oklch, var(--accent-mustard) 25%, var(--paper)); }
.cover-ink     { color: var(--ink);            background: var(--paper-2); }
.cover-glyph {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 28px;
  color: currentColor;
  opacity: 0.9;
}

.stars {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
}
.stars .star-num { font-size: 13px; font-weight: 600; color: var(--ink); }
.stars .star-dots { display: inline-flex; gap: 1px; font-size: 8px; color: var(--muted); }
.stars .dot.filled { color: var(--accent-tomato); }
.stars-compact .star-num { font-size: 12px; }

.fav {
  position: absolute;
  top: 10px; left: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  z-index: 2;
}
.fav:hover { background: var(--ink); color: var(--paper); }
.fav.on { background: var(--accent-tomato); color: var(--paper); border-color: var(--accent-tomato); }
.fav.on svg { animation: pop 0.3s; }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.host-name { font-weight: 600; font-size: 14px; }
.host-name.small { font-size: 13px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  flex-shrink: 0;
}
.avatar.big { width: 52px; height: 52px; font-size: 24px; }
.avatar-tomato  { background: var(--accent-tomato); }
.avatar-cobalt  { background: var(--accent-cobalt); }
.avatar-sage    { background: var(--accent-sage); }
.avatar-mustard { background: var(--accent-mustard); color: var(--ink); }
.avatar-ink     { background: var(--ink); }

.price { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.price-big { font-family: var(--font-display); font-size: 40px; line-height: 1; }

/* ================== FEATURE CARD ================== */
.feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  margin-bottom: 28px;
  height: 200px;
}
.feature-cover { position: relative; border-right: 1px solid var(--ink); overflow: hidden; }
.feature-cover .cover { width: 100%; height: 100%; aspect-ratio: unset !important; }
.feature-ribbon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
}
.feature-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.feature-body-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-meta { display: flex; align-items: center; gap: 12px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-host {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.feature-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  height: 100%;
}
.host-chip { display: flex; align-items: center; gap: 10px; }
.feature-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ================== GRID CARD ================== */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  min-width: 0;
}
.feed-grid.density-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}
.feed-grid.density-spacious {
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}
.grid-card { display: flex; flex-direction: column; position: relative; }
.grid-card .cover { border-bottom: 1px solid var(--ink); }
.card-cover-stack { position: relative; width: 100%; }
.card-date-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 6px 8px 8px;
  line-height: 1;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  pointer-events: none;
}
.card-date-overlay--tr {
  left: auto;
  right: 10px;
  bottom: auto;
  top: 10px;
}
.card-date-overlay-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.card-date-overlay-month {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 2px;
}
.grid-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.grid-top { display: flex; justify-content: space-between; align-items: center; }
.grid-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  margin: 4px 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.density-compact .grid-title { font-size: 22px; }
.density-spacious .grid-title { font-size: 32px; }
.grid-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.grid-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--ink);
}
.schedule-badge {
  color: var(--ink);
  opacity: 0.5;
  align-self: center;
}
.schedule-badge-date {
  opacity: 1;
  color: var(--accent-cobalt);
  font-weight: 600;
}
.audience-kids { background: var(--accent-sage) !important; color: var(--paper) !important; border-color: var(--accent-sage) !important; }
.audience-adults { background: var(--accent-cobalt) !important; color: var(--paper) !important; border-color: var(--accent-cobalt) !important; }

/* ================== ROW CARD ================== */
.feed-rows { display: flex; flex-direction: column; gap: 12px; }
.row-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px 14px 14px;
}
.row-card .fav {
  position: static;
  width: 36px; height: 36px;
}
.row-glyph-box {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.row-card.accent-tomato  .row-glyph-box { background: color-mix(in oklch, var(--accent-tomato) 18%, var(--paper)); color: var(--accent-tomato); }
.row-card.accent-cobalt  .row-glyph-box { background: color-mix(in oklch, var(--accent-cobalt) 18%, var(--paper)); color: var(--accent-cobalt); }
.row-card.accent-sage    .row-glyph-box { background: color-mix(in oklch, var(--accent-sage) 22%, var(--paper)); color: var(--accent-sage); }
.row-card.accent-mustard .row-glyph-box { background: color-mix(in oklch, var(--accent-mustard) 30%, var(--paper)); color: var(--accent-mustard); }
.row-glyph { font-size: 42px; }
.row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-line-1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-line-1-right { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.row-date-ribbon {
  color: var(--accent-cobalt);
  font-weight: 600;
  white-space: nowrap;
}
.row-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.row-line-2, .row-line-3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ================== POSTER CARD ================== */
.poster-card {
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.poster-card.accent-tomato  { background: color-mix(in oklch, var(--accent-tomato) 20%, var(--paper)); border-color: var(--ink);}
.poster-card.accent-cobalt  { background: color-mix(in oklch, var(--accent-cobalt) 18%, var(--paper)); }
.poster-card.accent-sage    { background: color-mix(in oklch, var(--accent-sage) 22%, var(--paper)); }
.poster-card.accent-mustard { background: color-mix(in oklch, var(--accent-mustard) 28%, var(--paper)); }
.poster-card.accent-ink     { background: var(--paper-2); }
.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.poster-top .mono { flex: 1; min-width: 0; }
.poster-date-ribbon {
  color: var(--accent-cobalt);
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  background: var(--paper);
  flex-shrink: 0;
}
.poster-glyph { font-size: 44px; color: var(--ink); }
.poster-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}
.poster-mid { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; }
.poster-footer { display: flex; justify-content: space-between; align-items: baseline; }
.poster-price { font-family: var(--font-display); font-size: 36px; line-height: 1; }

/* ================== MAP VIEW ================== */
.map-view {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.map-view-map {
  border: 1px solid var(--ink);
  padding: 24px;
  background: var(--paper-2);
  border-radius: var(--radius);
  position: sticky; top: 90px; align-self: start;
}
.map-view-map .slovenia-map { width: 100%; height: auto; }
.map-view-list { display: flex; flex-direction: column; gap: 12px; }

/* ================== MODAL ================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 23, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--paper);
  width: 100%;
  max-width: min(960px, calc(100vw - 32px));
  height: calc(100vh - 80px);
  max-height: 800px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: 1fr;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  min-width: 0;
  box-sizing: border-box;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  z-index: 5;
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-cover {
  position: relative;
  border-right: 1px solid var(--ink);
  overflow: hidden;
}
.modal-cover .cover {
  width: 100%;
  height: 100%;
  aspect-ratio: unset !important;
}
.modal-cover-overlay {
  position: absolute; top: 18px; left: 18px;
}
.modal-body { padding: 28px 60px 28px 28px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; min-width: 0; }
.modal-head .mono {
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}
.modal-sub { color: var(--muted); font-family: var(--font-mono); font-size: 13px; margin-top: 6px; }
.modal-blurb { margin: 0; line-height: 1.55; color: var(--ink-2); font-size: 15px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.section-label {
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.host-block, .rate-block { padding: 16px 0; border-top: 1px dashed var(--ink); }
.host-card { display: flex; gap: 14px; align-items: flex-start; }
.host-card-body { display: flex; flex-direction: column; gap: 4px; }
.host-card-name { font-weight: 600; font-size: 16px; }
.host-card-bio { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.host-link { color: var(--accent-cobalt); text-decoration: none; margin-top: 4px; }
.host-link:hover { text-decoration: underline; }
.host-card-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}
.host-profile-link {
  color: var(--accent-cobalt);
  text-decoration: none;
}
.host-profile-link:hover { text-decoration: underline; }

.host-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, currentColor 35%, transparent);
  text-underline-offset: 2px;
}
.host-clickable:hover { text-decoration-color: currentColor; }

/* Host profile page (#/izvajalec/…) */
.host-page {
  padding: 0 32px 48px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  min-width: 0;
  box-sizing: border-box;
}
.host-page-inner { max-width: 1100px; margin: 0 auto; min-width: 0; }
.host-back {
  display: block;
  margin: 20px 0 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  font: inherit;
}
.host-back:hover { color: var(--ink); }
.host-not-found { font-size: 16px; color: var(--muted); margin: 24px 0; }
.host-page-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.host-page-cover {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 24px;
  aspect-ratio: 16 / 5;
  background: var(--paper-3);
}
.host-page-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.host-cover-edit {
  padding: 12px 0 0;
}
.host-cover-edit label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.host-cover-edit input {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
}
.host-cover-edit input:focus {
  border-color: var(--ink);
  outline: none;
}
.host-add-workshop {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2, var(--paper-3));
}
.host-add-workshop-title { margin-bottom: 12px; }
.host-page-header-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0 0;
  min-width: 0;
  flex-wrap: wrap;
}
.host-page-header-text { flex: 1; min-width: 0; }
.host-page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.host-page-bio {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 640px;
}
.host-page-meta { color: var(--muted); }

.host-socials { margin-top: 16px; }
.host-socials-label { margin-bottom: 8px; color: var(--muted); letter-spacing: 0.06em; }
.host-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.host-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.host-social-pill:hover {
  background: var(--paper);
  border-color: var(--ink-2);
}

.host-socials-edit { margin-top: 16px; }
.host-socials-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 10px 14px;
  margin-top: 8px;
  min-width: 0;
}
.host-social-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.host-social-field input {
  font-size: 13px;
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
}
.host-social-field input:focus {
  border-color: var(--ink);
  outline: none;
}

.host-page-rating-inline {
  display: inline;
}
.host-page-rating-inline .stars { vertical-align: middle; }
.host-page-section { margin-bottom: 36px; }
.host-page-grid { margin-top: 12px; }
.host-review-workshop { margin: 4px 0 2px; }
.host-page-reviews { margin-top: 8px; }
.host-page-link { color: var(--ink); }
.host-page-link:hover { color: var(--accent-tomato); }

/* Amenities + map row */
.host-info-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px dashed var(--paper-3);
}
@media (max-width: 680px) {
  .host-info-row { grid-template-columns: 1fr; }
}

.host-amenities { display: flex; flex-direction: column; gap: 16px; }

.host-amenity-block { display: flex; flex-direction: column; gap: 6px; }

.host-amenity-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.host-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.host-chip-kids   { background: var(--accent-sage);   color: var(--paper); border-color: var(--accent-sage); }
.host-chip-adults { background: var(--accent-cobalt); color: var(--paper); border-color: var(--accent-cobalt); }
.host-chip-muted  { opacity: 0.55; }
.host-chip-cat    { color: var(--paper); }
.host-chip-cat.accent-tomato  { background: var(--accent-tomato);  border-color: var(--accent-tomato); }
.host-chip-cat.accent-cobalt  { background: var(--accent-cobalt);  border-color: var(--accent-cobalt); }
.host-chip-cat.accent-sage    { background: var(--accent-sage);    border-color: var(--accent-sage); }
.host-chip-cat.accent-mustard { background: var(--accent-mustard); border-color: var(--accent-mustard); color: var(--ink); }
.host-chip-cat.accent-ink     { background: var(--ink);            border-color: var(--ink); }

/* Stat bar */
.host-stat-bar {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  padding-top: 16px;
  flex-wrap: wrap;
}
.host-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px 8px 0;
  margin-right: 12px;
  border-right: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  min-width: 0;
  flex: 0 1 auto;
}
.host-stat:last-child { border-right: none; margin-right: 0; }
.host-stat-n {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}
.host-stat-l {
  margin-top: 3px;
  opacity: 0.6;
  text-align: center;
  line-height: 1.2;
  hyphens: auto;
  max-width: 8em;
}

/* Info grid */
.host-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .host-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .host-info-grid { grid-template-columns: 1fr; }
}

.host-info-block {
  background: var(--paper-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.host-info-block-label {
  opacity: 0.5;
  letter-spacing: 0.08em;
}
.host-info-block-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.host-info-value {
  font-size: 15px;
  line-height: 1.3;
}
.host-info-kids   { color: var(--accent-sage); font-weight: 600; }
.host-info-adults { color: var(--accent-cobalt); font-weight: 600; }
.host-info-muted  { opacity: 0.55; }
.host-info-level-beginner    { color: var(--accent-sage); font-weight: 600; }
.host-info-level-intermediate{ color: var(--accent-mustard); font-weight: 600; }
.host-info-level-advanced    { color: var(--accent-tomato); font-weight: 600; }
.host-info-teambuild         { color: var(--accent-cobalt); font-weight: 600; }

/* Photo gallery */
.host-gallery-section { margin-bottom: 36px; }
.host-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 6px;
  margin-top: 12px;
}
.host-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) / 2);
  background: var(--paper-3);
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.host-gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}
.host-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: brightness(1);
}
.host-gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.05);
}
.host-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  text-align: left;
}
.host-gallery-item:hover .host-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
/* subtle ring on focus for accessibility */
.host-gallery-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 600px) {
  .host-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .host-gallery-feature { grid-column: span 2; grid-row: span 1; }
}

/* Similar hosts */
.host-similar-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  margin-bottom: 24px;
}
.host-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.host-similar-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.host-similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.host-similar-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.host-similar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.host-similar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.host-similar-body {
  padding: 12px 12px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.host-similar-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.host-similar-arrow {
  padding: 6px 12px 10px;
  color: var(--accent-cobalt);
}

@media (max-width: 860px) {
  .host-similar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox */
.host-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.host-lightbox-img-wrap {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lb-slide 0.2s ease;
}
@keyframes lb-slide {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.host-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.host-lightbox-title {
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
  text-align: center;
}
.host-lightbox-counter {
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  text-align: center;
}
.host-lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  z-index: 1001;
}
.host-lightbox-close:hover { opacity: 1; }
.host-lightbox-prev,
.host-lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #fff;
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  padding: 0 16px;
  transition: opacity 0.15s;
  z-index: 1001;
  user-select: none;
}
.host-lightbox-prev { left: 8px; }
.host-lightbox-next { right: 8px; }
.host-lightbox-prev:hover,
.host-lightbox-next:hover { opacity: 1; }

/* ── Host ownership & edit UI ─────────────────────────────── */
.host-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.host-top-row .host-back { margin-bottom: 0; }

.host-ownership-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-claim-host {
  font: var(--mono); font-size: 11px;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-claim-host:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn-claim-host:disabled { opacity: 0.5; cursor: default; }

.btn-edit-host {
  font: var(--mono); font-size: 11px;
  padding: 6px 14px;
  border: 1.5px solid var(--accent-cobalt);
  background: transparent;
  color: var(--accent-cobalt);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-edit-host:hover { background: var(--accent-cobalt); color: #fff; }

.host-claimed-badge {
  color: var(--ink-4);
  padding: 4px 10px;
  background: var(--paper-2);
  border-radius: 20px;
}

.host-bio-edit {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  margin-top: 8px;
  box-sizing: border-box;
  line-height: 1.6;
}
.host-bio-edit:focus { border-color: var(--accent-cobalt); outline: none; }

/* Edit overlay on workshop cards */
.host-workshop-wrap { position: relative; }
.host-workshop-wrap.edit-mode .card { pointer-events: none; opacity: 0.85; }
.workshop-edit-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font: var(--mono); font-size: 11px;
  padding: 5px 16px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.workshop-edit-btn:hover,
.workshop-edit-btn.active { background: var(--ink); color: var(--paper); }

/* Workshop edit panel */
.workshop-edit-panel {
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  border-radius: 12px;
  padding: 20px 24px 20px;
  margin-top: 16px;
}
.workshop-edit-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.workshop-edit-close {
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  color: var(--ink-3); line-height: 1;
  padding: 2px 6px;
}
.workshop-edit-close:hover { color: var(--ink); }

.workshop-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 12px 16px;
  min-width: 0;
}
.edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.edit-field-wide { grid-column: 1 / -1; }
.edit-field input,
.edit-field select,
.edit-field textarea {
  font: inherit;
  font-size: 14px;
  background: var(--paper);
  border: 1.5px solid var(--paper-3);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--ink);
  box-sizing: border-box;
  width: 100%;
}
.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus { border-color: var(--accent-cobalt); outline: none; }

.edit-checkboxes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 4px 0;
}
.edit-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  cursor: pointer;
}
.edit-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

.workshop-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-3);
  flex-wrap: wrap;
  gap: 10px;
}

/* Small shared button styles */
.btn-primary-sm {
  font: var(--mono); font-size: 12px;
  padding: 7px 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary-sm:hover:not(:disabled) { opacity: 0.82; }
.btn-primary-sm:disabled { opacity: 0.45; cursor: default; }

.btn-secondary-sm {
  font: var(--mono); font-size: 12px;
  padding: 7px 16px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--paper-3);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-secondary-sm:hover { border-color: var(--ink); }

.btn-danger-sm {
  font: var(--mono); font-size: 12px;
  padding: 7px 14px;
  background: transparent;
  color: var(--accent-tomato);
  border: 1.5px solid var(--accent-tomato);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-danger-sm:hover { background: var(--accent-tomato); color: #fff; }

.rate-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.rate-stars { display: inline-flex; gap: 4px; }
.rate-star {
  background: transparent;
  border: none;
  color: var(--paper-3);
  font-size: 32px;
  line-height: 1;
  padding: 0;
  transition: transform 0.1s, color 0.15s;
}
.rate-star:hover { transform: scale(1.15); color: var(--accent-mustard); }
.rate-star.on { color: var(--accent-tomato); }
.rate-feedback { color: var(--muted); }
.rate-aggregate { display: flex; align-items: center; gap: 10px; }

.modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.modal-footer .price-big { font-size: 24px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-fav, .btn-primary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}
.btn-fav.on { background: var(--accent-tomato); color: var(--paper); border-color: var(--accent-tomato); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-tomato); border-color: var(--accent-tomato); }

.crawl-signal {
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px dashed var(--ink);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
}

/* ================== TWEAKS PANEL ================== */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 300px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 80;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 6px 6px 0 0 var(--ink);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.tweaks h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 400;
}
.tweaks .t-sub { color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.tweaks .t-section { margin-bottom: 14px; }
.tweaks label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tweaks .t-options { display: flex; flex-wrap: wrap; gap: 4px; }
.tweaks .t-opt {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.tweaks .t-opt.on { background: var(--ink); color: var(--paper); }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .sw {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  border-radius: 50%;
}
.tweaks .sw.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Empty state */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.empty-state .big {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ================ AUTH MODAL ================ */
.auth-modal, .submit-modal {
  background: var(--paper);
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: 8px 8px 0 0 var(--ink);
}
.submit-modal { max-width: 560px; }
.auth-head, .submit-head {
  padding: 32px 28px 20px;
  border-bottom: 1px solid var(--ink);
}
.auth-title, .submit-title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  font-weight: 400;
}
.auth-sub, .submit-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.auth-tabs { display: flex; border-bottom: 1px solid var(--ink); }
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.auth-tab.on { color: var(--ink); border-bottom-color: var(--accent-tomato); }
.auth-fields, .submit-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-tomato);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent-tomato) 20%, transparent);
}
.field textarea { resize: vertical; font-family: var(--font-body); }
.field-row { display: flex; gap: 12px; }

.auth-err {
  color: var(--accent-tomato);
  padding: 6px 10px;
  border: 1px dashed var(--accent-tomato);
  border-radius: var(--radius);
}
.auth-submit { width: 100%; padding: 14px; justify-content: center; text-align: center; }
.auth-divider {
  text-align: center;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--paper-3);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-oauth {
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
}
.auth-oauth:hover { background: var(--paper-2); }
.oauth-g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
}
.auth-foot { text-align: center; color: var(--muted); padding-top: 4px; }
.auth-foot a { color: var(--accent-cobalt); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ================ SUBMIT MODAL ================ */
.submit-steps {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
}
.submit-steps span {
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.submit-steps span.on { color: var(--ink); border-bottom-color: var(--accent-tomato); }

.submit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--paper-3);
  margin-top: 4px;
}
.btn-primary[disabled] { opacity: 0.35; cursor: not-allowed; }
.submit-err { color: var(--accent-tomato); margin-top: 8px; }

.upload-drop {
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--paper-2);
}
.upload-drop a { color: var(--accent-cobalt); }
.upload-drop:hover { border-color: var(--accent-cobalt); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip-option {
  font: var(--mono); font-size: 11px;
  padding: 5px 12px;
  border: 1.5px solid var(--paper-3);
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.chip-option:hover { border-color: var(--ink); }
.chip-option.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.upload-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.upload-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 6px; }

.submit-done {
  text-align: center;
  padding: 20px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.big-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-sage);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 4px;
}
.submit-done-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0;
  font-weight: 400;
}

/* ================ REVIEWS ================ */
.reviews-block { padding: 16px 0; border-top: 1px dashed var(--ink); }
.reviews-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.btn-write-review {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 6px 12px;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-write-review:hover { background: var(--ink); color: var(--paper); }

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.review-item.mine { border-color: var(--accent-tomato); background: color-mix(in oklch, var(--accent-tomato) 8%, var(--paper)); }
.review-body { display: flex; flex-direction: column; gap: 3px; }
.review-meta { display: flex; align-items: baseline; gap: 6px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-stars { font-size: 14px; color: var(--accent-tomato); letter-spacing: 1px; line-height: 1; }
.review-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.review-composer {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
.review-composer-body { display: flex; flex-direction: column; gap: 8px; }
.review-composer-name { font-weight: 600; font-size: 14px; }
.review-composer-stars .rate-star { font-size: 24px; }
.review-composer textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  resize: vertical;
  outline: none;
  background: var(--paper);
}
.review-composer-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ================ PROMOTED STRIP ================ */
.promo-strip {
  padding: 28px 32px;
  border-bottom: 1px solid var(--ink);
  background: color-mix(in oklch, var(--accent-mustard) 12%, var(--paper));
  position: relative;
}
.promo-strip::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 20px, var(--accent-mustard) 20px 40px);
}
.promo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.promo-badge {
  display: inline-block;
  background: var(--ink); color: var(--accent-mustard);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.promo-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.95;
  margin: 4px 0;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.promo-sub { margin: 0; color: var(--ink-2); font-size: 14px; }
.promo-cta {
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent-mustard);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s;
}
.promo-cta:hover { background: var(--accent-mustard); color: var(--ink); }

.promo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.promo-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
}
.promo-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 0 var(--ink); }
.promo-card.tier-diamant { border-width: 2.5px; box-shadow: 3px 3px 0 0 var(--ink); }
.promo-card.tier-diamant:hover { box-shadow: 8px 8px 0 0 var(--ink); }

.promo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
}
.promo-card-top .muted { color: var(--paper-3); }
.promo-tier { letter-spacing: 0.1em; }
.tier-diamant .promo-card-top { background: var(--accent-cobalt); }
.tier-zlato   .promo-card-top { background: var(--accent-mustard); color: var(--ink); }
.tier-zlato   .promo-card-top .muted { color: var(--ink-2); }

.promo-card-cover { border-bottom: 1px solid var(--ink); }
.promo-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  margin: 4px 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tier-diamant .promo-card-title { font-size: 32px; }
.promo-card-host { color: var(--muted); }
.promo-card-blurb { font-size: 13px; color: var(--ink-2); margin: 4px 0; line-height: 1.45; }
.promo-tagline {
  color: var(--accent-tomato);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 6px 10px;
  background: color-mix(in oklch, var(--accent-tomato) 10%, var(--paper));
  border-left: 2px solid var(--accent-tomato);
  margin: 4px 0;
}
.promo-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--ink);
}
.promo-btn { padding: 8px 14px; font-size: 11px; }

/* ================ PROMOTE MODAL ================ */
.promote-modal {
  background: var(--paper);
  width: 100%; max-width: 880px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: 8px 8px 0 0 var(--ink);
  padding: 32px;
}
.promote-head { margin-bottom: 28px; text-align: center; }
.promote-title {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  font-weight: 400;
}
.promote-sub { max-width: 540px; margin: 0 auto; font-size: 15px; color: var(--ink-2); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.plan {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 18px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.plan.popular {
  background: color-mix(in oklch, var(--accent-mustard) 20%, var(--paper));
  border-width: 2.5px;
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: var(--accent-mustard);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.plan-label {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--accent-tomato);
}
.plan.tier-diamant .plan-price { color: var(--accent-cobalt); }
.plan-slots { color: var(--ink-2); border-top: 1px dashed var(--ink); padding-top: 8px; }
.plan-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  flex: 1;
}
.plan-perks li::before { content: "→ "; color: var(--accent-tomato); font-family: var(--font-mono); }
.plan-cta { width: 100%; justify-content: center; text-align: center; padding: 12px; }
.plan-cta.ghost { background: var(--paper); color: var(--ink); }
.plan-cta.ghost:hover { background: var(--ink); color: var(--paper); }
.promote-foot { text-align: center; padding-top: 14px; border-top: 1px dashed var(--paper-3); }
.promote-foot a { color: var(--accent-cobalt); }

/* topbar promote btn */
.topbar-promote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent-mustard);
  cursor: pointer;
}
.topbar-promote:hover { background: var(--accent-mustard); color: var(--ink); }

@media (max-width: 1100px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-card.tier-diamant { grid-column: span 2; }
  .plans-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card.tier-diamant { grid-column: auto; }
}

/* ================== PALETTE THEMES ================== */
body.palette-gallery {
  --paper: #fafaf7;
  --paper-2: #f0f0ec;
  --paper-3: #e2e2dc;
  --accent-tomato: oklch(0.55 0.22 25);
}
body.palette-earth {
  --paper: #efe8dc;
  --paper-2: #e3dac6;
  --paper-3: #d3c6ab;
  --accent-tomato:  oklch(0.55 0.15 40);
  --accent-mustard: oklch(0.70 0.14 70);
  --accent-sage:    oklch(0.55 0.08 130);
  --accent-cobalt:  oklch(0.45 0.08 240);
}
body.palette-alpine {
  --paper: #eef1ea;
  --paper-2: #dfe5da;
  --paper-3: #cfd8c6;
  --accent-tomato:  oklch(0.55 0.14 30);
  --accent-mustard: oklch(0.70 0.12 85);
  --accent-sage:    oklch(0.45 0.08 150);
  --accent-cobalt:  oklch(0.40 0.10 220);
}
body.palette-electric {
  --paper: #f4efe6;
  --accent-tomato:  oklch(0.70 0.24 25);
  --accent-mustard: oklch(0.88 0.18 95);
  --accent-sage:    oklch(0.75 0.18 145);
  --accent-cobalt:  oklch(0.55 0.22 265);
}

/* ================== FONT THEMES ================== */
body.fonts-editorial {
  --font-display: "Instrument Serif", serif;
  --font-body: "Space Grotesk", sans-serif;
}
body.fonts-modern {
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}
body.fonts-classical {
  --font-display: "EB Garamond", serif;
  --font-body: "EB Garamond", serif;
}
body.fonts-bold {
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

/* ================== HERO VARIATIONS ================== */
body.hero-editorial .hero { background: var(--paper); }
body.hero-block .hero {
  background: var(--ink);
  color: var(--paper);
}
body.hero-block .hero-title .accent-word { color: var(--accent-mustard); }
body.hero-block .hero-lede { color: var(--paper-3); }
body.hero-block .hero-stats { border-top-color: var(--paper-3); }
body.hero-block .hero-stat .l { color: var(--paper-3); }
body.hero-block .searchbar { border-color: var(--paper); background: var(--paper); }
body.hero-block .searchbar input { color: var(--ink); }
body.hero-block .hero-stats { color: var(--paper); }

body.hero-poster .hero {
  background: color-mix(in oklch, var(--accent-tomato) 30%, var(--paper));
}
body.hero-poster .hero-title .accent-word { color: var(--ink); font-style: italic; }

/* ================== RESPONSIVE ================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 240px 1fr; height: 180px; }
  .modal { grid-template-columns: 1fr; grid-template-rows: 280px 1fr; height: auto; max-height: calc(100vh - 80px); overflow: hidden; }
  .modal-cover { border-right: none; border-bottom: 1px solid var(--ink); }
  .modal-body { padding: 28px; overflow-y: auto; max-height: calc(100vh - 80px - 280px); }
  .map-view { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Host profile */
  .host-page { padding: 0 16px 40px; }
  .avatar.big { width: 48px; height: 48px; font-size: 20px; }

  /* Layout */
  .main { grid-template-columns: 1fr; }
  .feed { padding: 20px 16px; }
  .map-view { padding: 20px 16px; }

  /* Topbar */
  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .topbar-right {
    gap: 8px;
    flex-wrap: wrap;
  }
  .topbar-submit { display: none; } /* moved to menu on mobile */

  /* Hero */
  .hero { padding: 28px 16px 20px; }
  .hero-title { font-size: clamp(36px, 10vw, 72px); }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat .n { font-size: 30px; }

  /* Searchbar */
  .searchbar { flex-direction: row; }

  /* Category strip */
  .cat-strip { padding: 14px 16px; gap: 8px; }

  /* Cards */
  .feed-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { grid-template-columns: 160px 1fr; height: 160px; }
  .feature-title { font-size: 22px; }
  .feature-body { padding: 16px; }
  .feature-title { font-size: 28px; }

  /* Row card */
  .row-card { grid-template-columns: 72px 1fr auto; }
  .row-glyph-box { width: 64px; height: 64px; }
  .row-glyph { font-size: 32px; }

  /* Modals */
  .modal-backdrop { padding: 16px; }
  .modal { max-height: calc(100vh - 32px); grid-template-rows: 220px 1fr; }
  .modal-body { padding: 20px 16px; overflow-y: auto; max-height: calc(100vh - 32px - 220px); }
  .modal-title {
    font-size: 32px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .auth-modal, .submit-modal { max-height: calc(100vh - 32px); }
  .auth-head, .submit-head { padding: 24px 20px 16px; }
  .auth-fields, .submit-body { padding: 20px; }
  .auth-title, .submit-title { font-size: 32px; }

  /* Feed head — full-width sort so "Izpostavljene najprej" is not clipped */
  .feed-head { flex-direction: column; gap: 12px; align-items: stretch; }
  .feed-head h2 { font-size: 28px; }
  .feed-head .sort-select { width: 100%; min-width: 0; max-width: none; flex: none; }

  /* Sidebar sections */
  .sidebar-section:not(:last-child) { margin-bottom: 20px; }
}

@media (max-width: 540px) {
  /* Single column everything */
  .feed-grid { grid-template-columns: 1fr; }
  .feed-grid.density-compact { grid-template-columns: 1fr; }

  /* Brand */
  .brand { font-size: 20px; }

  /* Topbar: only brand + lang toggle */
  .topbar-right .fav-count { display: none; }
  .topbar-right > span:first-child { display: none; } /* live dot */

  /* Hero */
  .hero { padding: 24px 16px 16px; }
  .hero-lede { font-size: 15px; }
  .hero-stats { gap: 12px; }
  .hero-stat .n { font-size: 26px; }

  /* Feature card single col */
  .feature-title { font-size: 28px; }
  .feature-body { padding: 18px; }

  /* Blog */
  .blog-title { font-size: 28px; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Promote modal */
  .promote-modal { padding: 20px 16px; }
  .promote-title { font-size: 36px; }
  .plans-grid { grid-template-columns: 1fr; }

  /* Map view */
  .map-view-map { position: static; }

  .host-page { padding: 0 12px 32px; }

  .feature {
    grid-template-columns: 1fr;
    height: auto;
  }
  .feature-cover { min-height: 180px; border-right: none; border-bottom: 1px solid var(--ink); }
  .feature-body {
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .feature-title { white-space: normal; overflow: visible; text-overflow: unset; }
  .feature-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 480px) {
  .searchbar {
    flex-direction: column;
    align-items: stretch;
  }
  .searchbar .search-submit { width: 100%; padding: 12px 16px; }
  .workshop-edit-grid { grid-template-columns: 1fr; }
  .host-socials-edit-grid { grid-template-columns: 1fr; }
}

/* ================== MOBILE FILTER BAR + SHEET ================== */
.mobile-filter-bar { display: none; }

@media (max-width: 860px) {
  /* Hide desktop sidebar */
  .sidebar { display: none; }

  /* Sticky bottom bar */
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1.5px solid var(--ink);
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(26,23,20,0.08);
  }

  /* Add bottom padding to page so content isn't hidden under bar */
  #root { padding-bottom: 72px; }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    position: relative;
  }
  .mobile-filter-btn:active { background: var(--paper-2); }

  .mobile-view-toggle {
    flex: 1;
    max-width: 140px;
  }

  .filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent-tomato);
    color: var(--paper);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  /* Sheet backdrop */
  .sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26,23,20,0.45);
    z-index: 90;
    animation: fade 0.2s;
  }

  /* Bottom sheet */
  .filter-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 88vh;
    background: var(--paper);
    border-radius: 16px 16px 0 0;
    border-top: 1.5px solid var(--ink);
    display: flex;
    flex-direction: column;
    animation: sheetUp 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
    overflow: hidden;
  }
  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .sheet-handle {
    width: 36px; height: 4px;
    background: var(--paper-3);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  .sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--ink);
    flex-shrink: 0;
  }

  .sheet-clear {
    background: transparent;
    border: 1px dashed var(--muted);
    color: var(--muted);
    padding: 5px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 11px;
  }
  .sheet-clear:hover { border-color: var(--accent-tomato); color: var(--accent-tomato); }

  .sheet-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }

  .sheet-body {
    overflow-y: auto;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    flex: 1;
  }

  /* Compact sidebar sections inside sheet */
  .sheet-body .sidebar-section { margin-bottom: 20px; }
  .sheet-body .sidebar-section:last-child { margin-bottom: 0; }

  /* Make city list a wrapping pill grid inside sheet */
  .sheet-body .city-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 6px;
  }
  .sheet-body .city-item {
    flex-direction: row;
    padding: 6px 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    flex: none;
    font-size: 13px;
  }
  .sheet-body .city-item .count {
    margin-left: 4px;
  }

  /* Compact Slovenia map in sheet */
  .sheet-body .slovenia-map {
    max-height: 160px;
  }
}

/* ================== BLOG ================== */
.blog-section {
  padding: 56px 32px 48px;
  border-top: 1px solid var(--ink);
}
.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* ================== FOOTER ================== */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 48px 32px 40px;
  border-bottom: 1px solid var(--ink);
}
.footer-tagline {
  margin: 8px 0 0;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col-title { margin-bottom: 6px; font-weight: 600; }
.footer-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}
.footer-link:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-bottom-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-dot { color: var(--muted); user-select: none; }

/* ================== STATIC PAGES (terms, privacy, …) ================== */
.static-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}
.static-page-article {
  margin-top: 8px;
}
.static-page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 8px;
}
.static-page-section {
  margin-top: 28px;
}
.static-page-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.static-page-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.static-page-mail {
  color: var(--accent-cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.static-page-mail:hover { color: var(--ink); }

@media (max-width: 860px) {
  .static-page-wrap { padding: 20px 16px 40px; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 860px) {
  .blog-section { padding: 36px 16px 28px; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-inner { grid-template-columns: 1fr; padding: 32px 16px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 14px 16px; }
}

/* ================== BLOG PAGE ================== */
.blog-page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 32px 72px;
}

.blog-page-header {
  margin: 20px 0 40px;
}
.blog-page-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.blog-page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
  white-space: pre-line;
}
.blog-page-sub {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s;
  margin-bottom: 36px;
}
.blog-featured:hover { transform: translateY(-2px); }
.blog-featured-cover { overflow: hidden; border-right: 1px solid var(--ink); }
.blog-featured-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-featured-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-featured-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  flex-grow: 1;
}
.blog-featured-excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.blog-featured-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* List grid */
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-list-card { display: flex; flex-direction: column; cursor: pointer; transition: transform 0.15s; }
.blog-list-card:hover { transform: translateY(-2px); }
.blog-list-cover { overflow: hidden; border-bottom: 1px solid var(--ink); }
/* Reset inherited currentColor so body text stays ink-coloured inside blog cards */
.blog-list-card .grid-body,
.blog-featured-body {
  color: var(--ink);
}
.blog-list-card .grid-title,
.blog-featured-title { color: var(--ink); }
.blog-list-excerpt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}
.blog-read-link { color: var(--accent-cobalt); }

/* Related posts */
.blog-related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.blog-related-grid .grid-body { color: var(--ink); }

/* ── Blog post article ── */
.blog-post-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  margin: 20px 0 0;
  overflow: hidden;
}
.blog-post-hero-inner {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.blog-post-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.blog-post-byline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.blog-post-author {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.blog-post-hero-visual { overflow: hidden; border-left: 1px solid var(--ink); }

.blog-post-article {
  max-width: 680px;
  margin: 48px 0 0;
}
.blog-post-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 32px;
  font-style: italic;
}
.blog-post-h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
  line-height: 1.25;
}
.blog-post-p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.blog-post-quote {
  border-left: 3px solid var(--ink);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--paper-2);
}
.blog-post-quote p {
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 6px;
}
.blog-post-quote footer { margin: 0; }
.blog-post-cta {
  margin: 36px 0;
}

/* Responsive */
@media (max-width: 860px) {
  .blog-page-wrap { padding: 20px 16px 48px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-cover { border-right: none; border-bottom: 1px solid var(--ink); }
  .blog-featured-body { padding: 20px 16px; }
  .blog-list-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .blog-post-hero { grid-template-columns: 1fr; }
  .blog-post-hero-visual { border-left: none; border-top: 1px solid var(--ink); }
  .blog-post-hero-inner { padding: 20px 16px; }
  .blog-related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .blog-list-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
}

/* ================== COOKIE BANNER ================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  z-index: 9000;
  flex-wrap: wrap;
  border-top: 2px solid var(--paper);
}
.cookie-banner-text {
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cookie-banner-link {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-essential {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-essential:hover { border-color: var(--paper); }
.cookie-btn-accept {
  background: var(--paper);
  color: var(--ink);
  border: none;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--paper-2); }

@media (max-width: 600px) {
  .cookie-banner { padding: 12px 16px; }
  .cookie-banner-text { font-size: 12px; }
}
