/* VIU MÉS · L'ESTARTIT — editorial directory
 * In de stijl van Top Girona's print magazine: serif display, zwart-wit, grote foto-spreads.
 * Geen accentkleuren — kleur komt enkel uit fotografie. */

:root {
  --bg: #ffffff;
  --paper: #f9f6f0;            /* magazine paper cream — used sparingly */
  --ink: #0a0a0a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6e6e6e;
  --ink-muter: #a8a8a8;
  --line: #e8e6e1;
  --line-strong: #c9c5bd;
  --black: #000;

  --font-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: 32px;

  --tracking-wide: 0.18em;
  --tracking-wider: 0.28em;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.uppercase-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.logo-place {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
}

.main-nav {
  display: none;
  gap: 30px;
}
.main-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--ink);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  border-right: 1px solid var(--line);
  transition: all 0.12s ease;
}
.lang-btn:last-child { border-right: 0; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--ink);
  color: white;
}

@media (min-width: 880px) {
  .main-nav { display: flex; }
  .logo-mark { font-size: 24px; }
}

/* ─── COVER (Viumés magazine front-page replica, white, single viewport) ─────── */
.cover {
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.cover-mast {
  text-align: center;
  padding: clamp(18px, 3.5vh, 36px) 24px clamp(8px, 1.5vh, 16px);
  flex: 0 0 auto;
}
.cover-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(56px, 11vh, 132px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(6px, 1.2vh, 14px);
  color: var(--ink);
  white-space: nowrap;
}
.cover-place {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(11px, 1.4vh, 16px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.42em;
  display: inline-block;
}

.cover-photo {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: linear-gradient(135deg, #1a3a5c, #0d2540);
  overflow: hidden;
  position: relative;
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Magazine-style search overlay, centered, anchored bottom of photo */
.cover-search {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  width: min(640px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px 14px 22px;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 40px -22px rgba(15, 22, 30, 0.55);
}
.cover-search-icon { color: var(--ink); flex: 0 0 auto; }
.cover-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 2vh, 19px);
  color: var(--ink);
  padding: 4px 0;
  min-width: 0;
}
.cover-search input::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.cover-search button {
  flex: 0 0 auto;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cover-search button:hover { background: #2a2a2a; }
.cover-search button svg { transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.cover-search:hover button svg,
.cover-search button:focus-visible svg { transform: translateX(3px); }

.cover-foot {
  text-align: center;
  padding: clamp(14px, 2.4vh, 26px) 24px clamp(18px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 12px);
  color: var(--ink);
  flex: 0 0 auto;
}

.cover-top-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4.2vh, 48px);
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  position: relative;
}
.cover-top-mark .cover-top-T,
.cover-top-mark .cover-top-O,
.cover-top-mark .cover-top-P { display: inline-block; }
.cover-top-mark .cover-top-girona {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.13em;
  letter-spacing: 0.32em;
  color: var(--ink);
  position: absolute;
  bottom: 0.1em;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cover-tags {
  font-family: var(--font-body);
  font-size: clamp(10px, 1.2vh, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  max-width: 720px;
  line-height: 1.7;
}
.cover-issue {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vh, 13px);
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 500;
}

@media (max-width: 600px) {
  /* Compact cover: 64-72vh on mobile so the user lands on quick-chips with one short scroll */
  .cover { min-height: 64vh; max-height: 72vh; }
  .cover-mast { padding: 18px 16px 8px; }
  .cover-logo { font-size: clamp(56px, 9vh, 80px); margin-bottom: 6px; }
  .cover-place { font-size: 10px; letter-spacing: 0.32em; }
  .cover-search { padding: 10px 6px 10px 16px; gap: 8px; bottom: 16px; width: calc(100% - 24px); }
  .cover-search input { font-size: 14px; }
  .cover-search button { padding: 9px 12px; font-size: 11px; letter-spacing: 0.16em; }
  .cover-search button span { display: none; }
}

/* ─── HERO INTRO BAND (below cover) ───────────── */
.hero-intro {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
}
.hero-intro-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.35;
  margin: 0 0 24px;
  max-width: 540px;
  color: var(--ink-soft);
}

@media (min-width: 880px) {
  .hero-intro-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }
}

@media (max-width: 600px) {
  .hero-intro { padding: 36px 0 40px; }
  .hero-intro-tagline { font-size: 17px; margin-bottom: 18px; }
}

/* ─── (legacy) MASTHEAD — kept for any reference still pointing here ─── */
.masthead {
  padding: 60px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.masthead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.masthead-issue {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.masthead-issue::before,
.masthead-issue::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 80px;
}
.masthead-issue::before { display: none; }
@media (min-width: 700px) { .masthead-issue::before { display: block; } }

.masthead-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 13vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
  display: block;
}
.masthead-logo span {
  display: inline;
  font-style: italic;
}
.masthead-logo .v { letter-spacing: -0.025em; }
.masthead-logo .accent { color: var(--ink); }

.masthead-place {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 500;
  margin: 18px 0 8px;
  color: var(--ink);
}

.masthead-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35;
  margin: 0 0 32px;
  max-width: 560px;
  color: var(--ink-soft);
  font-weight: 400;
}

.masthead-search {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  max-width: 560px;
}
.masthead-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 4px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
}
.masthead-search input::placeholder {
  color: var(--ink-muter);
  font-style: italic;
  font-family: var(--font-display);
}
.masthead-search button {
  border: 0;
  background: transparent;
  padding: 12px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.masthead-search button:hover { color: var(--ink-mute); }

.masthead-stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.masthead-stat {
  display: flex;
  flex-direction: column;
}
.masthead-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.masthead-stat .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

.masthead-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1a;
}
.masthead-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.masthead-photo .photo-cap {
  position: absolute;
  bottom: 16px; left: 16px;
  background: white;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
}

@media (min-width: 880px) {
  .masthead { padding: 88px 0 80px; }
  .masthead-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
  }
  .masthead-photo { aspect-ratio: 3 / 4; }
}

/* ─── SECTION ─────────────────────────────────── */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}
.section.section-paper { background: var(--paper); }

.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.section-rule .rule-line {
  flex: 1;
  height: 1px;
  background: var(--ink);
}
.section-rule .rule-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.section-rule .rule-num::before,
.section-rule .rule-num::after {
  content: "—";
  color: var(--ink-mute);
  opacity: 0.6;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.section-head h2 em {
  font-style: italic;
  font-weight: 700;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--ink-mute);
  font-size: 15px;
  font-family: var(--font-display);
  font-style: italic;
}
.section-head .head-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ─── CATEGORIES (SUMARI-STYLE) ────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px;
  background: white;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background 0.18s ease;
  cursor: pointer;
}
.cat-card:hover { background: var(--paper); }
.cat-card.active { background: var(--ink); color: white; }
.cat-card.active .cat-card-num { color: rgba(255,255,255,0.7); }
.cat-card.active .cat-card-name { color: white; }
.cat-card.active .cat-card-meta { color: rgba(255,255,255,0.6); }

.cat-card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}
.cat-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.cat-card-meta {
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: auto;
  padding-top: 8px;
}

@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

/* ─── FEATURED SPREAD ──────────────────────────── */
.spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--line);
}
.spread-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.spread-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.spread-text {
  padding: 36px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spread-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread-eyebrow::before {
  content: "★";
  font-size: 14px;
  color: var(--ink);
}
.spread-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
}
.spread-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 480px;
}
.spread-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 540px;
}
.spread-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}
.spread-meta-item .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.spread-meta-item .value {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}
.spread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: white;
  transition: all 0.15s ease;
}
.btn-line:hover { background: var(--ink); color: white; }
.btn-line.solid { background: var(--ink); color: white; }
.btn-line.solid:hover { background: white; color: var(--ink); }

@media (min-width: 880px) {
  .spread { grid-template-columns: 1.2fr 1fr; }
  .spread-text { padding: 56px 48px; }
}

/* ─── BUSINESS GRID ────────────────────────────── */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 32px;
}
.biz-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  position: relative;
}
.biz-card:hover { opacity: 0.85; }

.biz-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.biz-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}
.biz-card:hover .biz-photo img { transform: scale(1.03); }
.biz-photo.no-image img { display: none; }
.biz-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-color: var(--paper);
  color: var(--ink);
  /* Subtle hatched paper pattern — tinted per category below */
  background-image:
    repeating-linear-gradient(45deg, rgba(15,22,30,0.03) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(15,22,30,0.025) 0 1px, transparent 1px 8px);
}
.biz-photo-fallback .fb-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%);
  width: 64px; height: 64px;
  color: var(--ink);
  opacity: 0.92;
}
.biz-photo-fallback .fb-icon svg { width: 100%; height: 100%; stroke-width: 1.2; }
.biz-photo-fallback .fb-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

/* Category-specific solid tints + accent. Flat color (single hue), no gradients,
   matching impeccable design laws (banned: gradient text/decor). */
.biz-card[data-cat="restauracio"]       .biz-photo-fallback,
.biz-card[data-cat="restaurants"]       .biz-photo-fallback { background-color: #f1e7d8; color: #6f4a23; }
.biz-card[data-cat="allotjaments"]      .biz-photo-fallback { background-color: #dee7ec; color: #2b4658; }
.biz-card[data-cat="cultura"]           .biz-photo-fallback { background-color: #ebe4d6; color: #4f3d1f; }
.biz-card[data-cat="lleure-i-esports"]  .biz-photo-fallback,
.biz-card[data-cat="lleure"]            .biz-photo-fallback,
.biz-card[data-cat="sport"]             .biz-photo-fallback { background-color: #dce8e6; color: #1f4744; }
.biz-card[data-cat="shopping"]          .biz-photo-fallback { background-color: #efe8d6; color: #5a4a26; }
.biz-card[data-cat="home-decor"]        .biz-photo-fallback,
.biz-card[data-cat="habitatge"]         .biz-photo-fallback { background-color: #e8e2d6; color: #3a3024; }
.biz-card[data-cat="tendencies"]        .biz-photo-fallback { background-color: #ecdde0; color: #5b2a37; }
.biz-card[data-cat="salut"]             .biz-photo-fallback { background-color: #dde9e2; color: #244536; }
.biz-card[data-cat="menjar-i-beure"]    .biz-photo-fallback { background-color: #ead7d3; color: #5a2a26; }
.biz-card[data-cat="turisme"]           .biz-photo-fallback { background-color: #d8e5e8; color: #1f4252; }
.biz-card[data-cat="empresa"]           .biz-photo-fallback,
.biz-card[data-cat="inmobiliaria"]      .biz-photo-fallback,
.biz-card[data-cat="serveis"]           .biz-photo-fallback { background-color: #e3e3df; color: #2c2c28; }
.biz-card[data-cat="nightlife"]         .biz-photo-fallback { background-color: #2c2435; color: #efe6ee; }
.biz-card[data-cat="nightlife"]         .biz-photo-fallback .fb-icon,
.biz-card[data-cat="nightlife"]         .biz-photo-fallback .fb-label { color: #efe6ee; opacity: 0.85; }
.biz-card[data-cat="allotjaments_hut"]  .biz-photo-fallback { background-color: #e9dec5; color: #4a3c1f; }

/* Detail-modal fallback shares the same look but bigger */
.detail-photo .biz-photo-fallback .fb-icon { width: 96px; height: 96px; }
.detail-photo .biz-photo-fallback .fb-label { font-size: 12px; }
.biz-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: white;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
}
.biz-tag.premium {
  background: var(--ink);
  color: white;
}

.biz-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biz-cat {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
}
.biz-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
}
.biz-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 4px 0 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.biz-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 6px;
}
.biz-meta .biz-langs {
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
}
.biz-meta .flag-mini {
  width: 14px; height: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  display: inline-block;
}

.biz-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.biz-actions a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
.biz-actions a:hover { border-color: var(--ink); }

@media (min-width: 600px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
}
@media (min-width: 1000px) {
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1300px) {
  .biz-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── AGENDA ────────────────────────────────────── */
.agenda-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.agenda-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.16, 1, 0.3, 1), padding-left 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.agenda-item:hover,
.agenda-item:focus-visible {
  background: rgba(15, 22, 30, 0.03);
  padding-left: 12px;
  outline: none;
}
.agenda-item:hover .agenda-link,
.agenda-item:focus-visible .agenda-link { color: var(--ink); }
.agenda-date .day {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 38px;
  color: var(--ink);
  line-height: 1;
}
.agenda-date .month {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.agenda-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.agenda-body p {
  margin: 0;
  font-size: 13px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-mute);
}
.agenda-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── ADVERTISE CTA ────────────────────────────── */
.advertise {
  background: var(--ink);
  color: white;
  padding: 88px 0;
  text-align: center;
  margin: 0;
}
.advertise-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.advertise-eyebrow {
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 18px;
}
.advertise h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  line-height: 1;
}
.advertise p {
  font-size: 17px;
  font-family: var(--font-display);
  font-style: italic;
  opacity: 0.86;
  margin: 0 0 32px;
  line-height: 1.45;
}
.advertise-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--ink);
  border: 0;
  padding: 16px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: transform 0.15s ease;
}
.advertise-cta:hover { transform: translateY(-2px); }

/* ─── FOOTER ───────────────────────────────────── */
.site-footer {
  padding: 56px 0 48px;
  background: white;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid var(--ink);
  padding-top: 36px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo .top-girona {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.footer-logo .viumes-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-meta {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.7;
  font-family: var(--font-body);
}
.footer-meta strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.footer-cols a { display: block; padding: 4px 0; color: var(--ink-mute); }
.footer-cols a:hover { color: var(--ink); }
.footer-cols-head {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

@media (min-width: 760px) {
  .footer-row {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

/* ─── MOBILE OPTIMIZATIONS ────────────────────── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  /* Header: tighter, lang-switch only flag-codes */
  .header-row { height: 56px; gap: 8px; }
  .logo-mark { font-size: 18px; }
  .logo-place { display: none; }
  .lang-btn { padding: 7px 8px; font-size: 11px; }

  /* Masthead: smaller padding, single column */
  .masthead { padding: 32px 0 36px; }
  .masthead-grid { gap: 24px; grid-template-columns: 1fr; }
  .masthead-issue {
    font-size: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    text-align: left;
  }
  .masthead-issue::before { display: none; }
  .masthead-logo {
    font-size: clamp(40px, 16vw, 80px);
    line-height: 0.95;
  }
  .masthead-place { font-size: 12px; margin: 12px 0 6px; }
  .masthead-tagline {
    font-size: 17px;
    margin-bottom: 22px;
  }
  .masthead-search { padding: 4px 0; }
  .masthead-search input { padding: 12px 4px; font-size: 15px; }
  .masthead-search button { padding: 12px 6px; font-size: 10px; }

  /* Stats: 2x2 grid on mobile */
  .masthead-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    margin-top: 22px;
  }
  .masthead-stat .num { font-size: 26px; }
  .masthead-stat .label { font-size: 9px; }

  .masthead-photo { aspect-ratio: 16/10; }

  /* Sections */
  .section { padding: 44px 0; }
  .section-rule { margin-bottom: 22px; gap: 10px; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 36px); }
  .section-head p { font-size: 14px; }

  /* Categories: 2 cols on phone */
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cat-card { padding: 16px 14px; }
  .cat-card-name { font-size: 17px; }

  /* Featured spread: photo on top, text below */
  .spread { grid-template-columns: 1fr !important; }
  .spread-text { padding: 28px 22px 30px; }
  .spread-name { font-size: clamp(32px, 9vw, 44px); }
  .spread-tagline { font-size: 16px; }
  .spread-desc { font-size: 14px; }
  .spread-meta { grid-template-columns: 1fr; gap: 14px; }
  .spread-actions { gap: 6px; }
  .btn-line { padding: 10px 14px; font-size: 10px; flex: 1; justify-content: center; }

  /* Business grid: 1 col on phone */
  .biz-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .biz-name { font-size: 22px; }
  .biz-desc { font-size: 13px; }

  /* Agenda */
  .agenda-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .agenda-date .day { font-size: 28px; }
  .agenda-body h4 { font-size: 18px; }
  .agenda-body p { font-size: 12px; }
  .agenda-link { display: none; }

  /* Advertise CTA */
  .advertise { padding: 56px 0; margin: 0; }
  .advertise h2 { font-size: clamp(28px, 8vw, 40px); }
  .advertise p { font-size: 15px; }
  .advertise-cta { padding: 14px 22px; font-size: 11px; }

  /* HUT toggle button: full width on mobile */
  .hut-toggle { width: 100%; justify-content: center; padding: 14px 16px; }

  /* Footer: stack everything */
  .footer-row { padding-top: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* Tablet: 2 cols for biz-grid */
@media (min-width: 601px) and (max-width: 999px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .masthead-stats { gap: 20px; }
}

/* iOS Safari: prevent text size auto-bump on landscape */
html {
  -webkit-text-size-adjust: 100%;
}

/* Prevent iOS zoom on input focus */
@media (max-width: 600px) {
  input[type="search"], input[type="text"] { font-size: 16px !important; }
}

/* ─── MOBILE POLISH ─────────────────────────────── */
/* Safe-area insets (iPhone notch / home indicator) */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .cover-foot { padding-bottom: max(clamp(18px, 3vh, 32px), env(safe-area-inset-bottom)); }
  .biz-modal-scroll { padding-bottom: env(safe-area-inset-bottom); }
  .footer-row { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

/* Bigger tap targets — WCAG 2.1 says 44×44 px minimum */
.lang-btn, .filter-pill, .filter-select, .town-current,
.agenda-link, .biz-card, .biz-modal-close, .cat-card,
.btn-line, .nav-toggle, .pill {
  touch-action: manipulation;
}
.biz-card, .agenda-item, .cat-card, .spread { -webkit-tap-highlight-color: rgba(15,22,30,0.06); }

@media (max-width: 600px) {
  /* Tap targets sized up */
  .lang-btn { padding: 10px 10px; font-size: 11px; min-height: 36px; }
  .town-current { padding: 10px 14px; font-size: 12px; min-height: 36px; }
  .filter-pill, .filter-select { padding: 10px 14px; min-height: 38px; font-size: 11px; }
  .biz-modal-close { width: 44px; height: 44px; }
  .agenda-item { padding: 18px 0; min-height: 64px; }

  /* Cover landscape sanity — phones held sideways */
  .cover { min-height: 100vh; min-height: 100dvh; max-height: none; }

  /* Detail modal: ensure full-screen + scroll OK */
  .biz-modal { width: 100vw; max-width: 100vw; }
  .biz-modal-scroll { overscroll-behavior: contain; }

  /* Prevent horizontal scroll from any over-wide image/text */
  body { overflow-x: hidden; }

  /* Filter bar wraps cleaner */
  .filter-bar { gap: 6px; margin-bottom: 22px; }

  /* Detail-actions: 2 cols max on mobile */
  .detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-actions a { font-size: 11px; padding: 13px 12px; min-height: 44px; }

  /* Spread photo: cap height so text is reachable without scroll */
  .spread-photo { max-height: 60vh; }
}

/* Landscape phones — keep cover from running tall */
@media (max-height: 480px) and (orientation: landscape) {
  .cover { min-height: auto; max-height: none; }
  .cover-mast { padding: 14px 24px 8px; }
  .cover-logo { font-size: clamp(40px, 12vh, 72px); }
  .cover-photo { min-height: 220px; }
  .cover-foot { padding: 10px 24px 14px; }
  .cover-foot .cover-tags { display: none; }
}

/* ─── TOWN SELECTOR ───────────────────────────── */
.town-selector {
  position: relative;
}
.town-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.town-current:hover { background: var(--ink); color: white; }
.town-current[aria-expanded="true"] { background: var(--ink); color: white; }

.town-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: white;
  border: 1px solid var(--ink);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 220px;
  display: none;
  z-index: 60;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.town-dropdown.open { display: block; }
.town-dropdown li {
  padding: 0;
}
.town-dropdown button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.town-dropdown button:hover { background: var(--paper); }
.town-dropdown button[disabled] { color: var(--ink-muter); cursor: not-allowed; }
.town-dropdown .status-tag {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 999px;
}
.town-dropdown .status-tag.live {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

@media (max-width: 600px) {
  .town-current { padding: 6px 10px; font-size: 11px; }
  .town-dropdown { right: 0; left: auto; }
}

/* ─── FILTER BAR ──────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}
.filter-pill, .filter-select {
  background: white;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.filter-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c2680b;
  flex-shrink: 0;
}
.filter-select {
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.filter-clear {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-clear:hover { color: var(--ink); }

/* ─── DETAIL MODAL ────────────────────────────── */
.biz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.biz-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.biz-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(720px, 100vw);
  max-width: 100vw;
  background: var(--bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  box-shadow: -24px 0 60px rgba(0,0,0,0.18);
}
.biz-modal.open {
  transform: translateX(0);
  visibility: visible;
}
.biz-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  color: var(--ink);
  transition: background 0.15s ease;
}
.biz-modal-close:hover { background: var(--ink); color: white; border-color: var(--ink); }
.biz-modal-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal content */
.detail-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper);
  overflow: hidden;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-photo .biz-photo-fallback { position: absolute; inset: 0; display: none; }
.detail-photo.img-missing .biz-photo-fallback { display: flex; }

/* Gallery thumbnail strip */
.detail-gallery {
  display: flex;
  gap: 8px;
  padding: 12px 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.detail-gallery::-webkit-scrollbar { display: none; }
.detail-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 72px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 220ms cubic-bezier(0.16,1,0.3,1), border-color 220ms cubic-bezier(0.16,1,0.3,1);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb:hover { opacity: 0.85; }
.detail-thumb.active { opacity: 1; border-color: var(--ink); }
@media (max-width: 600px) {
  .detail-gallery { padding: 10px 16px 0; gap: 6px; }
  .detail-thumb { width: 80px; height: 60px; }
}

.detail-body {
  padding: 32px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.detail-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.detail-eyebrow .pill {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.detail-eyebrow .pill-premium {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.detail-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}
.detail-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
}
.detail-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-section h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0;
}
.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 14px;
}
.detail-row .label {
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
}
.detail-row .value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}
.detail-actions a {
  flex: 1 1 calc(50% - 4px);
  min-width: 140px;
  padding: 14px 18px;
  text-align: center;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: white;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.detail-actions a:hover { background: var(--ink); color: white; }
.detail-actions a.primary { background: var(--ink); color: white; }
.detail-actions a.primary:hover { background: white; color: var(--ink); }
.detail-actions a.whatsapp { background: #25D366; border-color: #25D366; color: white; }
.detail-actions a.whatsapp:hover { background: #1ebd5a; border-color: #1ebd5a; }

.detail-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-langs .flag-mini {
  width: 22px; height: 16px;
  display: inline-block;
}

.detail-map {
  margin-top: 8px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}
.detail-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Offers section */
.detail-offers {
  background: linear-gradient(180deg, #fff8eb 0%, #fff 100%);
  margin: 0 -32px;
  padding: 28px 32px;
  border-top: 2px solid #e8a14f;
}
.detail-offers h3 {
  color: #c2680b;
  font-size: 12px;
}
.offer-card {
  border: 1px solid #e8d8b8;
  background: white;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 12px;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}
.offer-card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #c2680b;
  border: 1px solid #e8d8b8;
  border-radius: 4px;
  flex-shrink: 0;
}
.offer-card-icon svg { width: 24px; height: 24px; }
.offer-card-body { min-width: 0; }
.offer-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.offer-bullets li {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: lowercase;
  position: relative;
  padding-right: 14px;
}
.offer-bullets li::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--ink-mute);
}
.offer-bullets li:last-child::after { content: ""; }

/* Inline chip for directory cards */
.offer-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: #c2680b;
  padding: 5px 10px;
  border-radius: 999px;
}
.offer-card .offer-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.offer-card .offer-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.offer-card .offer-price-original {
  font-size: 16px;
  color: var(--ink-mute);
  text-decoration: line-through;
}
.offer-card .offer-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #c2680b;
}
.offer-card .offer-validity {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.offer-card .offer-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.offer-card .offer-voucher {
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: copy;
}
.offer-card .offer-voucher:hover { opacity: 0.9; }
.offer-card .offer-voucher .copy-hint {
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0.6;
}

/* Locked offer (non-subscribers) */
.offer-card.is-locked .offer-desc,
.offer-card.is-locked .offer-voucher {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.offer-card.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.0);
}
.offer-locked-cta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: rgba(194, 104, 11, 0.08);
  border: 1px dashed #c2680b;
  border-radius: 4px;
  text-align: center;
}
.offer-locked-cta strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: #c2680b;
}
.offer-locked-cta p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.offer-locked-cta a {
  background: #c2680b;
  color: white;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: 999px;
  display: inline-block;
  margin-top: 6px;
}

/* "Has offers" badge on biz-card */
.biz-tag.offer-tag {
  background: #c2680b;
  color: white;
  top: auto;
  bottom: 12px;
  left: 12px;
}

/* Modal mobile */
@media (max-width: 600px) {
  .biz-modal { width: 100vw; }
  .biz-modal-close { top: 12px; right: 12px; }
  .detail-body { padding: 22px 20px 48px; }
  .detail-section { padding-top: 18px; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .detail-actions a { flex: 1 1 calc(50% - 4px); padding: 12px 14px; font-size: 10px; }
  .detail-offers { margin: 0 -20px; padding: 22px 20px; }
}

/* Body when modal open: prevent scroll */
body.modal-open {
  overflow: hidden;
}

/* ─── QUICK-PICK CHIPS (under the cover) ────────── */
.quick-chips-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 0 16px;
  padding: 2px 0;
}
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 220ms cubic-bezier(0.16,1,0.3,1), border-color 220ms cubic-bezier(0.16,1,0.3,1), color 220ms cubic-bezier(0.16,1,0.3,1);
  touch-action: manipulation;
}
.quick-chip:hover, .quick-chip:focus-visible {
  border-color: var(--ink);
  outline: none;
}
.quick-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.quick-chip svg { width: 16px; height: 16px; flex: 0 0 auto; }
.quick-chip .quick-chip-count {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-mute);
  margin-left: 4px;
}
.quick-chip.active .quick-chip-count { color: rgba(255,255,255,0.7); }
.quick-chip.zero { opacity: 0.4; pointer-events: none; }

@media (max-width: 600px) {
  .quick-chips-wrap { padding: 10px 0; }
  .quick-chips { padding-left: 16px; padding-right: 16px; }
  .quick-chip { padding: 8px 12px 8px 10px; font-size: 11px; }
  .quick-chip svg { width: 14px; height: 14px; }
}

/* ─── EDITOR'S LETTER (per-town opener) ────────── */
.editor-letter {
  padding: clamp(56px, 9vh, 96px) 0 clamp(48px, 8vh, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.editor-letter .container {
  max-width: 760px;
  text-align: center;
}
.editor-letter-body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 28px;
  padding: 0;
  letter-spacing: -0.005em;
  position: relative;
}
.editor-letter-body::before {
  content: "“";
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(64px, 10vw, 110px);
  line-height: 0.4;
  display: block;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.editor-letter-byline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.editor-letter[hidden],
.editor-letter.empty { display: none; }

@media (max-width: 600px) {
  .editor-letter { padding: 44px 0 36px; }
  .editor-letter-body { font-size: 17px; line-height: 1.5; }
}

/* ─── ARTICLES (Visit & Discover) ───────────────── */
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.article-teaser {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 240ms cubic-bezier(0.16,1,0.3,1), transform 240ms cubic-bezier(0.16,1,0.3,1);
}
.article-teaser:hover, .article-teaser:focus-visible {
  border-color: var(--ink);
  outline: none;
  transform: translateY(-2px);
}
.article-teaser-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper);
}
.article-teaser-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-teaser-body { padding: 24px 26px 28px; }
.article-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.article-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.article-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.article-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Article body inside the modal */
.article-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 65ch;
}
.article-translation-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mute);
  border: 1px dashed var(--line-strong);
}

@media (max-width: 600px) {
  .articles-list { grid-template-columns: 1fr; gap: 22px; }
  .article-teaser-body { padding: 20px 22px 24px; }
}

/* ─── OFFER EDITOR (shared by /admin and /portal) ────────── */
.offer-card-edit { border: 1px solid var(--line-strong); padding: 18px 20px; margin-bottom: 14px; background: white; }
.offer-card-edit h4 { font-family: var(--font-display); font-style: italic; font-weight: 700; margin: 0; font-size: 18px; }
.offer-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.offer-type-switch { grid-template-columns: 60px 1fr !important; gap: 8px; min-width: 220px; }
.offer-type-switch label { font-size: 10px !important; }
.offer-type-select {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.offer-type-block {
  margin: 12px -8px 4px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 0; /* no side-stripe — full block tinting */
}
.offer-type-heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.offer-bool { display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer; padding: 8px 0; }
.offer-bool input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.offer-bool span { font-family: var(--font-body); font-size: 13px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.offer-common { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ─── HUT TOGGLE + LOAD MORE ──────────────────── */
.hut-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: all 0.15s ease;
}
.hut-toggle:hover { background: var(--ink); color: white; }
.hut-toggle.active { background: var(--ink); color: white; }

.load-more-wrap {
  display: none;
  justify-content: center;
  margin-top: 56px;
}
.load-more {
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}
.load-more:hover { background: var(--ink); color: white; }
.load-more .more-count {
  opacity: 0.6;
  font-size: 10px;
}

/* Source badge on biz-card */
.biz-source {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.94);
  color: var(--ink-mute);
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-family: var(--font-body);
}

/* ─── UTILS ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Failsafe: only animate if JS opts in via .fade-in-ready (not just .fade-in).
   Default .fade-in is fully visible — if JS doesn't run, content stays visible. */
.fade-in.fade-in-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.fade-in-ready.visible {
  opacity: 1;
  transform: translateY(0);
}
