/* ============================================================================
   Costabella Sailing Events – BarcelonARCH Digital Skyline Map
   Brand-aligned styles based on the Costabella identity guide.
   Palette: dark teal (#244B63) · orange (#F09020) · sky blue (#7DCDE6) · white
   ============================================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  /* === Costabella Brand Palette === */
  --teal:         #244B63;   /* primary dark teal – nav, headers, dark sections  */
  --teal-deep:    #1A3A50;   /* deeper teal for gradients / footer               */
  --teal-mid:     #2D6480;   /* mid teal for hover states                        */
  --teal-light:   #3A7A96;   /* lighter teal for borders / accents               */
  --orange:       #F09020;   /* primary accent – CTAs, eyebrows, highlights      */
  --orange-dark:  #C87515;   /* darker orange for hover                          */
  --sky:          #7DCDE6;   /* light sea blue – waves, "ARCH" text, dividers    */
  --sky-pale:     #D4EEF7;   /* very pale sky for subtle backgrounds             */
  --white:        #FFFFFF;
  --off-white:    #F8FAFB;   /* section alternating background                   */
  --light-gray:   #EFF2F5;   /* card / tag background                            */
  --text-dark:    #1A3040;   /* main body text                                   */
  --text-medium:  #4A6880;   /* secondary body text                              */
  --text-muted:   #8AABB8;   /* placeholder / muted labels                       */

  /* === Typography === */
  /* Elegant serif for display headlines (closest offline equivalent to Cormorant/Playfair) */
  --font-display: Georgia, 'Times New Roman', 'Book Antiqua', Palatino, serif;
  /* Tracked geometric sans for labels and navigation (Costabella logo feel) */
  --font-label:   'Century Gothic', 'Apple Gothic', Futura, 'Gill Sans MT', 'Trebuchet MS', Calibri, sans-serif;
  /* Clean body copy */
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* === Spacing === */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* === Radii === */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-pill: 9999px;

  /* === Shadows === */
  --shadow-sm:  0 2px 8px  rgba(26, 58, 80, 0.10);
  --shadow-md:  0 6px 24px rgba(26, 58, 80, 0.14);
  --shadow-lg:  0 16px 56px rgba(26, 58, 80, 0.20);

  /* === Transitions === */
  --t-fast:   150ms ease;
  --t-normal: 300ms ease;
  --t-slow:   500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--teal);
}

/* Display headings – large, elegant serif like the reference site */
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); letter-spacing: 0.04em; font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem);   letter-spacing: 0.06em; font-weight: 400; text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }

p { max-width: 66ch; }

/* Tracked label style (used for eyebrow text and nav links) */
.label-track {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── NAVIGATION ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: 0.75rem var(--sp-md);
  background: var(--teal);          /* Always solid – matches reference site */
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  min-height: 64px;
}

/* Logo: image + optional fallback text */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Logo text fallback (shown if image fails) */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo-sub {
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
}

/* Nav links (hidden on mobile, shown ≥ 768px) */
.nav-links {
  display: none;
  list-style: none;
  gap: var(--sp-lg);
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color var(--t-fast);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ── LANGUAGE SWITCHER ────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  min-height: 32px;
  min-width: 32px;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover { color: var(--white); }

.lang-btn.is-active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.lang-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── OFFLINE BANNER ───────────────────────────────────────────────────────── */
.offline-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--orange);
  color: var(--teal-deep);
  text-align: center;
  padding: var(--sp-xs) var(--sp-sm);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateY(100%);
  transition: transform var(--t-normal);
}
.offline-banner.is-visible { transform: translateY(0); }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 2.2em;
  border-radius: var(--r-pill);
  font-family: var(--font-label);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 48px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(240, 144, 32, 0.40);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(240, 144, 32, 0.50);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal-light);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.60);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--sp-xl) + 64px) var(--sp-md) var(--sp-xl);
  background:
    linear-gradient(175deg, var(--teal-deep) 0%, var(--teal) 55%, var(--teal-mid) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(125,205,230,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(240,144,32,0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* Wave divider at bottom of hero */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}

.hero-logo-img {
  display: block;
  margin: 0 auto var(--sp-sm);
  height: 72px;
  width: auto;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}
.hero-eyebrow-sub {
  display: block;
}

/* Split title: "BARCELON" white + "ARCH" sky blue (matches reference site) */
.hero-title-main { color: var(--white); }
.hero-title-accent { color: var(--sky); }

.hero-tagline {
  font-family: var(--font-label);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-md);
}

.hero-description {
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin: 0 auto var(--sp-lg);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

/* Info pills below CTA (like the reference site) */
.hero-pills {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.hero-pill svg { opacity: 0.70; flex-shrink: 0; }

/* ── SECTION COMMON ───────────────────────────────────────────────────────── */
.section { padding: var(--sp-xl) var(--sp-md); }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-xs);
}

.section-header h2 { margin-bottom: 0.5em; }

.section-header p {
  color: var(--text-medium);
  font-size: 1rem;
  margin: 0 auto;
}

/* Dark section (used for timeline and alternating blocks) */
.section--dark {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.section--dark .section-header h2 { color: var(--white); }
.section--dark .section-header p   { color: rgba(125,205,230,0.80); }

/* Wave decoration between sections */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── SKYLINE SECTION ──────────────────────────────────────────────────────── */
.skyline-section {
  background: var(--off-white);
  padding: var(--sp-xl) 0;
}

.skyline-section .section-header {
  padding: 0 var(--sp-md);
}

.skyline-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: var(--sp-xs);
}
.skyline-scroll-wrapper:active { cursor: grabbing; }
.skyline-scroll-wrapper::-webkit-scrollbar       { height: 3px; }
.skyline-scroll-wrapper::-webkit-scrollbar-track { background: var(--sky-pale); }
.skyline-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--sky); border-radius: var(--r-pill); }

.skyline-container { min-width: 1100px; width: 100%; }

.skyline-svg { width: 100%; height: auto; display: block; }

/* Landmark markers */
.landmark-marker { cursor: pointer; outline: none; }
.landmark-marker:focus-visible .marker-dot { stroke: var(--orange); stroke-width: 3; }

.marker-pulse {
  animation: markerPulse 2.5s ease-in-out infinite;
  transform-origin: 0px 0px;
}
.landmark-marker:nth-child(1)  .marker-pulse { animation-delay: 0.00s; }
.landmark-marker:nth-child(2)  .marker-pulse { animation-delay: 0.25s; }
.landmark-marker:nth-child(3)  .marker-pulse { animation-delay: 0.50s; }
.landmark-marker:nth-child(4)  .marker-pulse { animation-delay: 0.75s; }
.landmark-marker:nth-child(5)  .marker-pulse { animation-delay: 1.00s; }
.landmark-marker:nth-child(6)  .marker-pulse { animation-delay: 1.25s; }
.landmark-marker:nth-child(7)  .marker-pulse { animation-delay: 1.50s; }
.landmark-marker:nth-child(8)  .marker-pulse { animation-delay: 1.75s; }
.landmark-marker:nth-child(9)  .marker-pulse { animation-delay: 0.10s; }
.landmark-marker:nth-child(10) .marker-pulse { animation-delay: 0.35s; }
.landmark-marker:nth-child(11) .marker-pulse { animation-delay: 0.60s; }
.landmark-marker:nth-child(12) .marker-pulse { animation-delay: 0.85s; }
.landmark-marker:nth-child(13) .marker-pulse { animation-delay: 1.10s; }
.landmark-marker:nth-child(14) .marker-pulse { animation-delay: 1.35s; }
.landmark-marker:nth-child(15) .marker-pulse { animation-delay: 1.60s; }

@keyframes markerPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.0; }
}

.skyline-hint {
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
  padding: 0 var(--sp-md);
  text-transform: uppercase;
}
@media (min-width: 700px) { .skyline-hint { display: none; } }

.section-header .skyline-extra { font-size: 0.85rem; color: var(--text-medium); opacity: 0.75; margin-top: 0.5em; font-style: italic; }

/* ── BUILDINGS SECTION ────────────────────────────────────────────────────── */
.buildings-section { background: var(--white); }

.buildings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 560px) { .buildings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .buildings-grid { grid-template-columns: repeat(3, 1fr); } }

.building-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(36, 75, 99, 0.08);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  display: flex;
  flex-direction: column;
}
.building-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Orange top-border accent (Costabella touch) */
.building-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(to right, var(--orange), var(--sky));
}

.card-image {
  background: var(--teal);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-image svg { width: 100%; height: 100%; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-image--empty { background: var(--teal); display: flex; align-items: center; justify-content: center; }
.card-image--empty::after { content: ''; }

.card-body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xs);
}

.card-tag {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--sky-pale);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

.card-body h3 { margin-bottom: 0.3em; color: var(--teal); }

.card-architect {
  font-size: 0.82rem;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 0.7em;
}

.card-description {
  display: none;
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.60;
  flex: 1;
  margin-bottom: var(--sp-sm);
}

.card-body .btn { align-self: flex-start; font-size: 0.72rem; padding: 0.55em 1.3em; }

/* ── TIMELINE SECTION ─────────────────────────────────────────────────────── */
.timeline-section { }   /* inherits .section--dark */

.timeline-section .section-eyebrow { color: var(--sky); }

.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 3rem;
  padding-right: 1rem;
  list-style: none;
  counter-reset: none;
}

/* Animation: items start hidden and slide up */
.timeline-event {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.timeline-event.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical track */
.timeline::before {
  content: '';
  position: absolute;
  left: 0.85rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--sky));
  border-radius: 2px;
}

.timeline-event { position: relative; padding-bottom: var(--sp-lg); }
.timeline-event:last-child { padding-bottom: 0; }
/* (opacity/transform handled by animation block above) */

/* Track dot — left = centre de la línia; transform centra el cercle sobre aquest punt */
.timeline-event::before {
  content: '';
  position: absolute;
  left: calc(-2.15rem + 1px); /* = centre de la línia des de .timeline-event */
  top: 0.48rem;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 3px rgba(240, 144, 32, 0.30);
  z-index: 1;
}

/* Highlight variant for 2026 — mateixa lògica, mida 17px */
.timeline-event--highlight::before {
  background: var(--sky);
  width: 17px; height: 17px;
  left: calc(-2.15rem + 1px);
  transform: translateX(-50%);
  box-shadow: 0 0 0 5px rgba(125,205,230,0.25);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.2em;
}

.timeline-title {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5em;
}

.timeline-description {
  font-size: 0.92rem;
  color: rgba(125, 205, 230, 0.75);
  line-height: 1.65;
  max-width: 60ch;
}

/* ── POPUP / MODAL ────────────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26, 58, 80, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
@media (min-width: 640px) { .popup-overlay { align-items: center; } }

.popup-overlay.is-visible { opacity: 1; pointer-events: all; }

.popup-modal {
  background: var(--white);
  width: 100%;
  max-width: 530px;
  max-height: 90dvh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  position: relative;
}
@media (min-width: 640px) {
  .popup-modal { border-radius: var(--r-lg); transform: translateY(30px) scale(0.96); max-height: 88dvh; }
}
.popup-overlay.is-visible .popup-modal { transform: translateY(0) scale(1); }

/* Orange top bar on popup */
.popup-modal::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right, var(--orange), var(--sky));
}

.popup-handle {
  width: 38px; height: 4px;
  background: var(--sky-pale);
  border-radius: var(--r-pill);
  margin: 0.6rem auto 0;
}
@media (min-width: 640px) { .popup-handle { display: none; } }

.popup-close {
  position: absolute; top: var(--sp-sm); right: var(--sp-sm);
  width: 44px; height: 44px; border-radius: 50%;
  border: none;
  background: var(--off-white);
  color: var(--teal); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast); z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.popup-close:hover { background: var(--sky-pale); color: var(--teal-deep); }

.popup-illustration {
  background: var(--teal);
  aspect-ratio: 16 / 8;
  overflow: hidden;
}
.popup-illustration svg { width: 100%; height: 100%; }
.popup-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }

.popup-info { padding: var(--sp-md); padding-top: var(--sp-sm); }

.popup-badges { display: flex; gap: var(--sp-xs); flex-wrap: wrap; margin-bottom: var(--sp-sm); }

.popup-badge {
  font-family: var(--font-label);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
}
.popup-badge--year  { background: var(--sky-pale);  color: var(--teal); }
.popup-badge--style { background: rgba(240,144,32,0.10); color: var(--orange-dark); }

.popup-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: var(--teal); margin-bottom: 0.2em; font-weight: 400;
}

.popup-architect-line { font-size: 0.88rem; color: var(--text-medium); font-style: italic; margin-bottom: var(--sp-sm); }

.popup-description { font-size: 0.95rem; color: var(--text-medium); line-height: 1.72; }

/* ── POPUP CAROUSEL ───────────────────────────────────────────────────────── */
.popup-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: var(--r-md) var(--r-md) 0 0;
  aspect-ratio: 4 / 3;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
@media (min-width: 640px) {
  .popup-carousel { aspect-ratio: 16 / 8; }
}
.popup-carousel-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s ease;
  will-change: transform;
}
.popup-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.popup-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.popup-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.popup-carousel-btn:hover { background: rgba(0,0,0,0.7); }
.popup-carousel-btn--prev { left: 10px; }
.popup-carousel-btn--next { right: 10px; }
.popup-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.popup-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.popup-carousel-dot.is-active { background: #fff; }
.popup-carousel--single .popup-carousel-btn,
.popup-carousel--single .popup-carousel-dots { display: none; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--teal-deep);
  color: rgba(125, 205, 230, 0.70);
  font-size: 0.84rem;
  line-height: 1.75;
}

/* ── Main grid ── */
.footer-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-xl);
  max-width: 900px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .footer-main { flex-direction: column; align-items: center; text-align: center; }
}
.footer-social-handle {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: var(--sp-md);
}
.footer-social-handle:hover { text-decoration: underline; }
.footer-review { margin-bottom: var(--sp-md); }
.footer-review-text { font-size: 0.84rem; color: rgba(125,205,230,0.75); margin-bottom: 0.4em; }
.footer-review-btn {
  display: inline-block;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 0.3em 0.9em;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-label);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-review-btn:hover { background: var(--orange); color: #fff; }
.footer-contact a { color: rgba(125,205,230,0.75); text-decoration: none; font-size: 0.84rem; }
.footer-contact a:hover { color: #fff; }

/* ── Brand column ── */
.footer-logo-link { display: inline-block; margin-bottom: var(--sp-sm); }
.footer-logo-img  { height: 60px; width: auto; opacity: 0.90; display: block; }

.footer-brand-name {
  font-family: var(--font-label);
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.80);
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: var(--sp-sm);
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: rgba(125, 205, 230, 0.65);
  line-height: 1.7;
  max-width: 280px;
}

/* ── Nav columns ── */
.footer-col-title {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-sm);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav-list a {
  color: rgba(125, 205, 230, 0.75);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: #fff; }

/* ── Social column ── */
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(125, 205, 230, 0.75);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: #fff; }

/* ── Bottom bar ── */
.footer-bottom {
  border-top: 1px solid rgba(125, 205, 230, 0.15);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-md);
}
.footer-copyright {
  font-size: 0.76rem;
  color: rgba(125, 205, 230, 0.50);
  margin: 0;
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.footer-badge-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 1;
}
@media (max-width: 560px) {
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ── UTILITY ──────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-md); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marker-pulse { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
