/* ===================================================================
   GranadaMadrid.com — "Palette Migration" design
   Granada end: Nasrid tile blue + terracotta clay
   Madrid end:  imperial garnet + limestone grey
   Constant:    muzarabic/Nasrid gold thread
   =================================================================== */

:root {
  --granada-blue: 30, 78, 92;        /* #1E4E5C */
  --granada-terracotta: 193, 101, 58; /* #C1653A */
  --madrid-garnet: 122, 31, 43;       /* #7A1F2B */
  --madrid-stone: 140, 127, 107;      /* #8C7F6B */
  --gold: 201, 162, 39;               /* #C9A227 */

  /* live migration variables — overwritten by script.js on scroll */
  --accent: var(--granada-blue);
  --accent-2: var(--granada-terracotta);

  --ink: #241C15;
  --ink-soft: #4A3F33;
  --paper: #FCF8F1;
  --paper-2: #F1E7D3;
  --paper-3: #E7D8B8;
  --band-dark: #142228;
  --band-dark-2: #1D2E33;
  --line: rgba(36, 28, 21, 0.14);
  --line-soft: rgba(36, 28, 21, 0.08);
  --shadow: 0 14px 34px -18px rgba(20, 16, 10, 0.4);
  --shadow-lg: 0 26px 54px -22px rgba(20, 16, 10, 0.5);

  --maxw: 1280px;
  --textw: 1160px;
  --radius: 16px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); color: rgb(var(--accent)); transition: color .25s ease; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: rgb(var(--accent)); transition: color .2s ease; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* -------------------- single-emblem motifs (not tiled) -------------------- */
/* A single straight-rib emblem (Atocha train-shed echo) low in the Madrid half */
#operators::before {
  content: "";
  position: absolute; bottom: -10%; left: -4%; width: 420px; height: 420px;
  pointer-events: none; z-index: 0; opacity: 0.08;
  background-image: repeating-linear-gradient(100deg, rgb(var(--madrid-garnet)) 0 3px, transparent 3px 46px);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 80%);
  mask-image: radial-gradient(circle, #000 55%, transparent 80%);
}

/* -------------------- header -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 248, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 100%;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px;
}
.logo {
  font-family: "Trebuchet MS", sans-serif; font-weight: 800; font-size: 1.18rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo span { color: rgb(var(--accent)); }
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 22px; list-style: none; margin: 0; padding: 0;
  font-family: "Trebuchet MS", sans-serif; font-size: 0.94rem;
}
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: rgb(var(--accent)); }
.persistent-cta {
  justify-self: end;
  background: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent-2)));
  color: #fff; text-decoration: none; font-family: "Trebuchet MS", sans-serif; font-weight: 700;
  font-size: 0.9rem; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; justify-self: end;
  font-size: 1.2rem; color: var(--ink);
}
.nav-toggle span { display: block; }

/* -------------------- hero -------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 148px;
  background:
    linear-gradient(0deg, rgba(16,12,8,0.35), transparent 46%),
    linear-gradient(100deg, rgba(16,12,8,0.28), rgba(16,12,8,0.12) 55%),
    url("images/hero-granada.jpg");
  background-size: cover; background-position: center;
}
.hero .container { position: relative; z-index: 1; }
.hero-content {
  max-width: clamp(680px, 62%, 920px); padding: 30px 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14,11,8,0.72), rgba(14,11,8,0.58));
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
}
.hero h1 { color: #fff; }
.hero-dek { color: rgba(255,255,255,0.9); }
.hero .btn-ghost { border-color: rgba(255,255,255,0.85); color: #fff; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Trebuchet MS", sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--gold));
  margin-bottom: 14px;
}
.hero-kicker::before {
  content: ""; width: 26px; height: 2px; background: rgb(var(--gold));
}
.hero h1 { max-width: 16ch; }
.hero-dek { font-size: 1.15rem; max-width: 64ch; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; max-width: clamp(680px, 62%, 920px);
  font-family: "Trebuchet MS", sans-serif;
  border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius);
  background: rgba(255,255,255,0.88); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-stats div {
  flex: 1 1 130px; min-width: 130px; padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: none; }
.hero-stats b {
  display: block; font-size: 1.5rem; color: rgb(var(--accent)); font-weight: 800;
}
.hero-stats span { font-size: 0.8rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-family: "Trebuchet MS", sans-serif;
  font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent-2)));
  color: #fff; box-shadow: 0 10px 22px -10px rgba(0,0,0,0.4);
}
.btn-ghost {
  border: 1.5px solid rgb(var(--accent)); color: rgb(var(--accent)); background: transparent;
}

/* -------------------- image placeholder frame -------------------- */
.img-slot {
  border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(255,255,255,0.95); font-family: "Trebuchet MS", sans-serif;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.14), transparent 40%),
    linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2)));
  min-height: 240px; box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  outline: 1px solid var(--line);
}
.img-slot::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='white' stroke-width='1.4'><path d='M100 8 L122 66 L182 66 L134 102 L152 162 L100 126 L48 162 L66 102 L18 66 L78 66 Z'/></g></svg>");
  background-size: 220px; background-repeat: no-repeat; background-position: 108% 108%;
  opacity: 0.16; pointer-events: none;
}
.img-slot .img-slot-label {
  position: relative; z-index: 1;
  padding: 10px 16px; font-size: 0.8rem; line-height: 1.5; max-width: 30ch;
  background: rgba(0,0,0,0.28); border-radius: 999px; border: 1px solid rgba(255,255,255,0.3);
}
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* -------------------- sections & surface rhythm -------------------- */
section { position: relative; padding: 84px 0; }

main > section:not(.hero):not(.search-band):not(.cta-band)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-2)));
  opacity: 0.5;
}
.surface-a { background: var(--paper); }
.surface-b { background: var(--paper-2); }
.surface-c { background: var(--paper-3); }

.section-head { max-width: 66ch; margin-bottom: 36px; }
.section-eyebrow {
  font-family: "Trebuchet MS", sans-serif; font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--accent-2)); margin-bottom: 8px;
}

/* -------------------- search band (ribbon divider) -------------------- */
.search-band {
  position: relative; z-index: 2;
  margin: -64px 0 -64px;
  padding: 128px 0 148px;
  clip-path: polygon(0 64px, 100% 0, 100% calc(100% - 64px), 0 100%);
  background:
    radial-gradient(ellipse 700px 400px at 85% 10%, rgba(var(--gold), 0.16), transparent 60%),
    linear-gradient(155deg, var(--band-dark), var(--band-dark-2));
  color: #fff;
}
.search-band-head h2 { color: #fff; }
.search-band-head p { color: rgba(255,255,255,0.75); }
.search-band .section-eyebrow { color: rgb(var(--gold)); }
.search-panel {
  width: min(1500px, calc(100% - 56px)); margin: 0 auto;
}
.search-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 14px; }
.search-band .search-note { color: rgba(255,255,255,0.7); }
.search-band .search-note a { color: rgb(var(--gold)); }

/* -------------------- stat strip (route map) -------------------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; border-top: 4px solid rgb(var(--accent-2));
  box-shadow: var(--shadow);
}
.stat-card b {
  display: block; font-family: "Trebuchet MS", sans-serif; font-size: 1.6rem;
  color: rgb(var(--accent)); font-weight: 800; margin-bottom: 4px;
}
.stat-card span { font-size: 0.86rem; color: var(--ink-soft); }

/* -------------------- route map -------------------- */
.route-map-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px 32px; box-shadow: var(--shadow-lg); overflow-x: auto;
  position: relative;
}
.route-map-svg { width: 100%; min-width: 560px; height: auto; display: block; }
.route-line {
  stroke: rgb(var(--accent)); stroke-width: 3; fill: none;
  transition: stroke .25s ease;
}
.route-dot { fill: var(--paper); stroke: rgb(var(--accent-2)); stroke-width: 3; transition: stroke .25s ease; }
.route-dot.major { stroke: rgb(var(--gold)); stroke-width: 4; }
.route-label { font-family: "Trebuchet MS", sans-serif; font-size: 13px; fill: var(--ink); font-weight: 700; }
.route-sub { font-family: "Trebuchet MS", sans-serif; font-size: 11px; fill: var(--ink-soft); }

/* -------------------- narrative / two-col -------------------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: stretch; }
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse .img-slot { order: 2; }
.scenery-list { list-style: none; padding: 0; margin: 18px 0 0; }
.scenery-list li {
  padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative;
}
.scenery-list li:first-child { border-top: none; }
.scenery-list li::before {
  content: "●"; position: absolute; left: 4px; top: 15px; color: rgb(var(--gold)); font-size: 0.7em;
}

/* -------------------- step list (how to buy) -------------------- */
.step-grid { position: relative; display: grid; gap: 22px; max-width: var(--textw); }
.step-card {
  position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow);
}
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: "Trebuchet MS", sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff;
  background: linear-gradient(140deg, rgb(var(--accent)), rgb(var(--accent-2)));
  box-shadow: var(--shadow);
}
.step-card h3 { margin-bottom: 6px; }
.step-card p { margin-bottom: 0; }

/* -------------------- timeline (history) -------------------- */
.timeline { position: relative; max-width: var(--textw); }
.timeline::before {
  content: ""; position: absolute; left: 68px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, rgb(var(--accent)), rgb(var(--accent-2)));
  opacity: 0.4;
}
.timeline-item { position: relative; display: grid; grid-template-columns: 136px 1fr; gap: 24px; padding: 20px 0; }
.timeline-marker {
  position: relative; justify-self: start; align-self: start;
  font-family: "Trebuchet MS", sans-serif; font-weight: 800; font-size: 1rem;
  color: #fff; background: rgb(var(--accent-2)); border: 4px solid var(--paper-2);
  border-radius: 999px; padding: 10px 4px; width: 92px; text-align: center;
  box-shadow: var(--shadow); z-index: 1;
}
.timeline-body {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.timeline-body h3 { margin-bottom: 6px; }
.timeline-body p { margin-bottom: 0; }

/* -------------------- operator table -------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
table.ops {
  width: 100%; border-collapse: collapse; background: #fff; min-width: 640px;
}
table.ops th, table.ops td {
  text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 0.94rem;
}
table.ops thead th {
  background: rgb(var(--accent)); color: #fff; font-family: "Trebuchet MS", sans-serif;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em; text-transform: uppercase;
}
table.ops tbody tr:nth-child(even) { background: var(--paper-2); }
table.ops td:first-child strong { display: inline-flex; align-items: center; gap: 9px; }
table.ops td:first-child strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
table.ops tbody tr:nth-child(1) td:first-child strong { color: rgb(var(--accent)); }
table.ops tbody tr:nth-child(1) td:first-child strong::before { background: rgb(var(--accent)); }
table.ops tbody tr:nth-child(2) td:first-child strong { color: rgb(var(--gold)); }
table.ops tbody tr:nth-child(2) td:first-child strong::before { background: rgb(var(--gold)); }
table.ops tbody tr:nth-child(3) td:first-child strong { color: rgb(var(--accent-2)); }
table.ops tbody tr:nth-child(3) td:first-child strong::before { background: rgb(var(--accent-2)); }

/* -------------------- operator cards -------------------- */
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.op-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.op-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.op-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px; color: #fff;
}
.op-card-icon svg { width: 22px; height: 22px; }
.op-card h3 { margin-bottom: 8px; }
.op-ave::before, .op-ave .op-card-icon { background: rgb(var(--accent)); }
.op-alvia::before, .op-alvia .op-card-icon { background: rgb(var(--gold)); }
.op-avant::before, .op-avant .op-card-icon { background: rgb(var(--accent-2)); }

/* -------------------- duration compare (schedule / other transport) -------------------- */
.duration-compare { display: grid; gap: 18px; max-width: var(--textw); }
.duration-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow);
}
.duration-row.is-train { background: linear-gradient(100deg, rgba(var(--accent),0.06), rgba(var(--accent-2),0.06)); }
.duration-row-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px;
  font-family: "Trebuchet MS", sans-serif;
}
.duration-row-head h3 { margin: 0; font-size: 1.05rem; }
.duration-value { font-weight: 800; color: rgb(var(--accent-2)); white-space: nowrap; }
.duration-track {
  height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-bottom: 12px;
}
.duration-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-2)));
}
.duration-row p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.aside-note {
  max-width: var(--textw); margin-top: 22px; padding: 20px 26px;
  background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius);
}
.aside-note h3 { margin-bottom: 6px; font-size: 1.02rem; }
.aside-note p { margin: 0; color: var(--ink-soft); }

/* -------------------- feature trio (onboard) -------------------- */
.feature-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.feature-item { padding: 34px 28px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: none; }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 18px;
  background: linear-gradient(140deg, rgb(var(--accent)), rgb(var(--accent-2)));
  color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item h3 { margin-bottom: 8px; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------- ticket-style station cards -------------------- */
.ticket-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ticket-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.ticket-img {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
}
.ticket-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ticket-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,9,6,0.4), transparent 32%, transparent 68%, rgba(12,9,6,0.28));
}
.ticket-stub, .ticket-tag {
  position: absolute; z-index: 2; font-family: "Trebuchet MS", sans-serif; color: #fff;
  background: rgba(16,12,8,0.55); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
}
.ticket-stub {
  left: 14px; bottom: 14px; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em;
  padding: 5px 13px;
}
.ticket-tag {
  right: 14px; top: 14px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; padding: 5px 11px;
}
.ticket-body {
  padding: 22px 26px 26px; border-top: 4px solid rgb(var(--gold));
  display: flex; flex-direction: column; flex: 1;
}
.ticket-grid .ticket-card:nth-child(3n+2) .ticket-body { border-top-color: rgb(var(--accent)); }
.ticket-grid .ticket-card:nth-child(3n) .ticket-body { border-top-color: rgb(var(--accent-2)); }
.ticket-body h3 { margin-bottom: 8px; }
.ticket-body p { margin: 0; color: var(--ink-soft); }
.ticket-address {
  display: flex; align-items: flex-start; gap: 7px; margin-top: auto; padding-top: 16px;
  font-size: 0.82rem; color: var(--ink-soft); border-top: 1px dashed var(--line);
}
.ticket-address svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: rgb(var(--accent-2)); }

/* -------------------- station access panels -------------------- */
.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; }
.access-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.transit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.transit-chip {
  font-family: "Trebuchet MS", sans-serif; font-size: 0.78rem; font-weight: 700;
  color: rgb(var(--accent)); background: var(--paper-2); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.access-panel h3 { margin-bottom: 10px; }
.access-panel p { margin: 0; color: var(--ink-soft); }

/* -------------------- season strip (weather) -------------------- */
.season-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.season-block {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--line);
}
.season-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  color: #fff; font-family: "Trebuchet MS", sans-serif;
}
.season-head svg { width: 24px; height: 24px; flex-shrink: 0; }
.season-head h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.season-spring { background: linear-gradient(120deg, rgb(var(--accent-2)), #C9A227); }
.season-summer { background: linear-gradient(120deg, #C9A227, rgb(var(--accent-2))); }
.season-winter { background: linear-gradient(120deg, rgb(var(--accent)), #3C6E7E); }
.season-block p { margin: 0; padding: 18px 22px 22px; color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------- FAQ -------------------- */
.faq-list { max-width: 840px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; box-shadow: var(--shadow); }
.faq-item {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer; font-family: "Trebuchet MS", sans-serif; font-weight: 700; font-size: 1.02rem;
  padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; flex: 1;
}
.faq-item summary::after {
  content: "+"; color: rgb(var(--accent)); font-size: 1.3rem; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--ink-soft); max-width: 68ch; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent-2)));
  color: #fff; text-align: center; padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 56ch; margin: 0 auto 22px; }
.cta-band .btn-primary { background: #fff; color: rgb(var(--madrid-garnet)); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }

/* -------------------- footer -------------------- */
footer {
  background: var(--ink); color: rgba(251,247,240,0.82); padding: 44px 0 32px;
  font-size: 0.86rem;
}
footer .container { max-width: var(--textw); }
footer p { margin: 0 0 12px; line-height: 1.6; }
footer a { color: rgb(var(--gold)); }
footer a.affiliate-clk { color: rgb(var(--gold)); text-decoration: underline; }

/* ==================== responsive ==================== */
@media (max-width: 980px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .img-slot { order: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .op-grid, .ticket-grid, .access-grid { grid-template-columns: 1fr; }
  .feature-trio { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: none; }
  .season-strip { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 96px 1fr; gap: 16px; }
  .timeline::before { left: 46px; }
  .timeline-marker { width: 64px; font-size: 0.82rem; padding: 8px 2px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 8px 20px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-grid { grid-template-columns: auto 1fr auto auto; }
  .persistent-cta { font-size: 0.82rem; padding: 9px 14px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 48px 0 120px; }
  .search-band { margin: -48px 0 -48px; padding: 96px 0 112px; clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 0; }
  .hero-stats div { flex: 1 1 45%; }
  table.ops th, table.ops td { padding: 10px 10px; font-size: 0.86rem; }
  .step-card { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .duration-row-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ==================== first-screen: compact hero so the search widget is above the fold ==================== */
@media (min-width: 641px) {
  .hero { padding: 22px 0 52px; }
  .hero-content { max-width: min(1000px, 100%); padding: 20px 30px 22px; }
  .hero-kicker { margin-bottom: 8px; }
  .hero h1 { font-size: clamp(2rem, 3.1vw, 2.5rem); max-width: none; margin-bottom: 10px; }
  .hero-dek { font-size: 1.04rem; line-height: 1.5; max-width: none; margin-bottom: 0; }
  .hero-actions { margin-top: 16px; }
  .hero .btn { padding: 10px 22px; font-size: 0.94rem; }
  .hero-stats { margin-top: 14px; max-width: min(1000px, 100%); }
  .hero-stats div { flex: 1 1 0; min-width: 0; padding: 12px 18px; }
  .hero-stats b { font-size: 1.25rem; white-space: nowrap; }
  .hero-stats span { font-size: 0.76rem; line-height: 1.35; display: block; }
  .search-band { margin: -44px 0 -44px; padding: 62px 0 44px; clip-path: polygon(0 44px, 100% 0, 100% calc(100% - 44px), 0 100%); }
  .search-band-head { margin-bottom: 14px; max-width: none; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; }
  .search-band-head .section-eyebrow { grid-column: 1 / -1; }
  .search-band-head h2 { grid-column: 1; }
  .search-band-head p { grid-column: 2; font-size: 0.95rem; line-height: 1.45; margin-bottom: 6px; }
  .search-band-head .section-eyebrow { margin-bottom: 4px; }
  .search-band-head h2 { font-size: 1.6rem; margin-bottom: 0; }
  .search-panel { min-height: 311px; }
}

@media (min-width: 1025px) {
  .search-panel { margin-top: -40px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .search-band-head { display: block; }
  .search-band-head p { margin-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .header-grid { padding: 0 14px; gap: 10px; }
  .logo { font-size: 1.1rem; }
  .persistent-cta { font-size: 0.8rem; padding: 8px 13px; }
  .nav-toggle { width: 40px; height: 36px; }
  main { display: flex; flex-direction: column; }
  /* phone: photo + heading + intro together, then the widget, then the stat cards */
  .hero { display: contents; }
  .hero .container { display: contents; }
  .hero-content {
    order: -3; max-width: none; border-radius: 0; border: 0; box-shadow: none; backdrop-filter: none;
    padding: 12px 14px 24px;
    background:
      linear-gradient(180deg, rgba(14,11,8,0.58), rgba(14,11,8,0.5)),
      url("images/hero-granada.jpg") 28% center / cover;
  }
  .hero-kicker { font-size: 0.64rem; letter-spacing: 0.1em; margin-bottom: 4px; }
  .hero-kicker::before { width: 16px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.12; max-width: none; margin-bottom: 6px; }
  .hero-dek { font-size: 0.8rem; line-height: 1.38; max-width: none; margin: 0; }
  .hero-actions { display: none; }
  .search-band { order: -2; margin: -14px 0 0; padding: 26px 0 10px; clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%); }
  .search-band .container { padding: 0 14px; }
  .search-band-head { margin-bottom: 8px; }
  .search-band-head .section-eyebrow, .search-band-head p { display: none; }
  .search-band-head h2 { font-size: 1.05rem; margin: 0; }
  .search-panel { zoom: 0.86; width: calc(100% - 20px); min-height: 556px; background: var(--paper); border-radius: 14px; padding: 2px 8px 6px; }
  .hero-stats { order: -1; max-width: none; margin: 16px 14px 20px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stats div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hero-stats div:nth-child(2n) { border-right: none; }
  .hero-stats div:nth-child(n+3) { border-bottom: none; }
  .hero-stats b { font-size: 1.25rem; }
}

/* page-wide: keep the decorative emblem in #operators from creating sideways scroll on phones */
#operators { overflow-x: clip; }

@media (max-width: 360px) {
  .header-grid { gap: 8px; }
  .logo { font-size: 1rem; }
  .persistent-cta { font-size: 0.74rem; padding: 7px 11px; }
}
