/* ==========================================================================
   Marrakech Museum Info — dark premium theme
   Night emerald + gold, Andalusian horseshoe arches, Majorelle-blue accent.
   RTL-first via logical properties (works for ar / en / fr).
   ========================================================================== */

:root {
  --night: #061a17;
  --deep: #0b2a25;
  --emerald: #0f3d35;
  --emerald-2: #155246;
  --gold: #c9a55a;
  --gold-2: #e6cf98;
  --gold-3: #8f7134;
  --ivory: #f3ecdf;
  --text: #e9e3d6;
  --muted: #a9b8b0;
  --majorelle: #2f4fd8;
  --clay: #b8643f;
  --line: rgba(201, 165, 90, .22);
  --card: rgba(15, 61, 53, .55);
  --r: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --ff-body: 'Tajawal', system-ui, sans-serif;
  --ff-head: 'Cormorant Garamond', 'Amiri', Georgia, serif;
  --wrap: 1220px;
  --arch: url('../img/arch-mask.svg');
}
.l-ar { --ff-head: 'Amiri', 'Cormorant Garamond', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 400 17px/1.8 var(--ff-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 79, 216, .14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(201, 165, 90, .08), transparent 60%),
    url('../img/mashrabiya.svg') 0 0 / 72px 72px,
    var(--night);
  -webkit-font-smoothing: antialiased;
}
.l-ar body, body.l-ar { line-height: 1.95; }
img { display: block; max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--ff-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--ivory); letter-spacing: .005em; }
.l-en h1, .l-fr h1, .l-en h2, .l-fr h2 { font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 880px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -80px; z-index: 999; background: var(--gold); color: var(--night); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.7rem; border-radius: 999px;
  font: 700 1rem/1.2 var(--ff-body); border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: var(--night); box-shadow: 0 10px 30px rgba(201, 165, 90, .25); }
.btn-gold:hover { color: var(--night); box-shadow: 0 14px 36px rgba(201, 165, 90, .4); }
.btn-line { border-color: var(--gold); color: var(--gold-2); background: rgba(6, 26, 23, .3); }
.btn-line:hover { background: var(--gold); color: var(--night); }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: .55rem 1.2rem; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.btns.center { justify-content: center; }
.lnk { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; color: var(--gold-2); }
.arw { display: inline-block; transition: transform .2s; }
[dir="rtl"] .arw { transform: scaleX(-1); }
[dir="rtl"] .arw.back, [dir="ltr"] .arw.back { transform: none; }
[dir="ltr"] .arw.back { transform: scaleX(-1); }
.lnk:hover .arw { transform: translateX(4px); }
[dir="rtl"] .lnk:hover .arw { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(6, 26, 23, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.logo { display: flex; align-items: center; gap: .75rem; color: var(--ivory); }
.logo:hover { color: var(--gold-2); }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo b { font: 700 1.25rem/1.15 var(--ff-head); }
.logo small { font-size: .74rem; color: var(--gold); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav ul a { display: block; padding: .5rem .8rem; color: var(--text); font-weight: 500; font-size: .98rem; border-radius: 999px; }
.nav ul a:hover { color: var(--gold-2); }
.nav ul a.on { color: var(--night); background: var(--gold); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { min-width: 38px; text-align: center; padding: .25rem .6rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.langs a.on { background: var(--emerald-2); color: var(--gold-2); }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger i { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--gold-2); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- arch frames (horseshoe) ---------- */
.slider-frame, .card-arch, .place-arch, .hub-arch, .twin-arch img, .ess-img, .stop-img {
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.slider, .place-arch-wrap { position: relative; }
.slider::before, .place-arch::before { content: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(700px 500px at 70% 40%, rgba(15, 61, 53, .9), transparent 70%); pointer-events: none; }
[dir="rtl"] .hero-bg { background: radial-gradient(700px 500px at 30% 40%, rgba(15, 61, 53, .9), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold); font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.l-ar .kicker { letter-spacing: 0; text-transform: none; }
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.hero h1, .place-hero h1, .hub-hero h1 { background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-txt { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-bottom: 2rem; }

.slider { padding: 10px; background: linear-gradient(160deg, var(--gold-2), var(--gold-3)); -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; aspect-ratio: 4 / 5; }
.slider-frame { position: relative; height: 100%; background: var(--deep); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.on img { transform: scale(1); }
.slide figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 5rem 1.6rem 4.2rem; background: linear-gradient(to top, rgba(6, 26, 23, .95), transparent); text-align: center; }
.slide figcaption span { display: block; color: var(--gold); font-size: .85rem; letter-spacing: .06em; }
.slide figcaption a { font: 700 1.5rem/1.3 var(--ff-head); color: #fff; }
.slider-ctrl { position: absolute; z-index: 3; inset-inline: 0; bottom: 1.4rem; display: flex; justify-content: center; align-items: center; gap: .8rem; }
.sl-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); background: rgba(6, 26, 23, .6); color: var(--gold-2); cursor: pointer; }
.sl-btn:hover { background: var(--gold); color: var(--night); }
.sl-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .sl-btn svg { transform: scaleX(-1); }
.sl-dots { display: flex; gap: .4rem; }
.sl-dot { width: 26px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sl-dot span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(230, 207, 152, .35); overflow: hidden; position: relative; }
.sl-dot.on span::after { content: ''; position: absolute; inset: 0; background: var(--gold-2); transform-origin: left; animation: fill 6s linear forwards; }
[dir="rtl"] .sl-dot.on span::after { transform-origin: right; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- sections ---------- */
.sec { padding: 5.5rem 0; position: relative; }
.sec.alt { background: linear-gradient(180deg, rgba(15, 61, 53, .35), rgba(15, 61, 53, .12)); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.sec-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.sec-title.start { text-align: start; }
.sec-sub, .lead { color: var(--muted); font-size: 1.08rem; }
.orn { display: block; width: 120px; height: 18px; margin: 0 auto 1rem;
  background: linear-gradient(var(--gold), var(--gold)) left center / 42px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / 42px 1px no-repeat,
              radial-gradient(circle, var(--gold-2) 0 3px, transparent 4px) center / 18px 18px no-repeat; position: relative; }
.orn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border: 1px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg); }

/* hub teaser */
.hub-teaser { background: linear-gradient(120deg, rgba(47, 79, 216, .16), transparent 55%); border-block: 1px solid var(--line); }
.hub-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.hub-arch { display: block; aspect-ratio: 4 / 5; }
.hub-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.hub-arch:hover img { transform: scale(1.04); }
.mini-tl { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.mini-tl li { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 26, 23, .45); }
.mini-tl b { display: block; font: 700 1.6rem/1 var(--ff-head); color: var(--gold-2); margin-bottom: .3rem; }
.mini-tl span { font-size: .93rem; color: var(--muted); }

/* essentials (Museums of Marrakech) */
.ess-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.ess { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; padding: 1.4rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.ess:hover { border-color: rgba(201, 165, 90, .6); transform: translateY(-3px); }
.ess-img { display: block; aspect-ratio: 4 / 5; }
.ess-img img { width: 100%; height: 100%; object-fit: cover; }
.ess-num { font: 700 2.4rem/1 var(--ff-head); color: transparent; -webkit-text-stroke: 1px var(--gold); }
.ess h3 { font-size: 1.6rem; margin-top: .3rem; }
.ess h3 a { color: var(--ivory); }
.ess h3 a:hover { color: var(--gold-2); }
.ess p { color: var(--muted); }
.ess-meta { font-size: .92rem; }
.ess-meta b { color: var(--gold); font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.ticks li { position: relative; padding-inline-start: 1.2rem; font-size: .95rem; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.ticks.big { display: grid; gap: .6rem; }
.ticks.big li { font-size: 1.05rem; padding-inline-start: 1.5rem; }

/* routes teaser */
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.route-card { display: flex; flex-direction: column; padding: 2rem 1.8rem; border-radius: 160px 160px var(--r) var(--r); background: linear-gradient(180deg, rgba(21, 82, 70, .55), rgba(6, 26, 23, .6)); border: 1px solid var(--line); color: var(--text); text-align: center; transition: transform .3s, border-color .3s; }
.route-card:hover { transform: translateY(-5px); border-color: var(--gold); color: var(--text); }
.route-card h3 { font-size: 1.45rem; margin-top: 1rem; }
.route-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.route-time { align-self: center; padding: .2rem .9rem; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-2); font-size: .85rem; font-weight: 700; }
.route-steps { color: var(--gold); font-weight: 700; font-size: .9rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem 1.6rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card-arch { display: block; aspect-ratio: 4 / 5; background: var(--deep); position: relative; }
.card-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .7s; filter: saturate(.92); }
.card:hover .card-arch img { transform: scale(1.06); filter: saturate(1.1); }
.card-body { padding: 1.2rem .3rem 0; text-align: center; }
.eyebrow { color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.l-ar .eyebrow { letter-spacing: 0; }
.card h3 { font-size: 1.35rem; }
.card h3 a { color: var(--ivory); }
.card h3 a:hover { color: var(--gold-2); }
.card-txt { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: center; gap: 1rem; font-size: .85rem; color: var(--gold); }
.card-meta span + span::before { content: '◆'; margin-inline-end: 1rem; font-size: .6rem; vertical-align: middle; opacity: .6; }

/* accordion */
.acc { display: grid; gap: .8rem; }
.acc-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: border-color .3s; }
.acc-item[open] { border-color: rgba(201, 165, 90, .6); }
.acc-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary h2, .acc-item summary h3 { margin: 0; font: 700 1.08rem/1.5 var(--ff-body); color: var(--ivory); }
.acc-item summary::after { content: ''; flex: 0 0 12px; height: 12px; border-inline-end: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .3s; margin-top: -6px; }
.acc-item[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.acc-item p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }
.cta-box { margin-top: 3rem; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--r); }

/* page hero */
.page-hero { padding: 4.5rem 0 3.5rem; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 50% 0, rgba(21, 82, 70, .6), transparent 70%); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero p { color: var(--muted); max-width: 68ch; margin: 0 auto; font-size: 1.1rem; }

/* catalogue */
.finder { display: flex; gap: .7rem; max-width: 720px; margin: 0 auto 1.8rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ivory); background: rgba(6, 26, 23, .7); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #7f918a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 90, .15); }
select option { background: var(--deep); }
.filters { display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: center; }
.chips-l { color: var(--gold); font-size: .85rem; font-weight: 700; margin-inline-end: .4rem; }
.chip { padding: .35rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .93rem; }
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 700; }
.count { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.empty { text-align: center; padding: 3rem; border: 1px dashed var(--line); border-radius: var(--r); }

/* place page */
.place-hero, .hub-hero { padding: 3.5rem 0 4rem; border-bottom: 1px solid var(--line); background: radial-gradient(900px 500px at 75% 30%, rgba(21, 82, 70, .55), transparent 70%); }
.place-hero-grid, .hub-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; }
.place-hero h1, .hub-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs span { color: var(--gold-3); }
.place-arch { aspect-ratio: 4 / 5; background: var(--deep); box-shadow: var(--shadow); }
.place-arch img { width: 100%; height: 100%; object-fit: cover; }
.place-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3.5rem; align-items: start; }
.prose h2 { font-size: 1.75rem; margin-top: 2.4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.08rem; color: var(--text); }
.panel { position: sticky; top: 100px; padding: 2rem; border-radius: 120px 120px var(--r) var(--r); border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(21, 82, 70, .65), rgba(6, 26, 23, .85)); box-shadow: var(--shadow); }
.panel h2 { text-align: center; font-size: 1.5rem; margin: 1rem 0 1.2rem; }
.panel dl { margin: 0 0 1rem; }
.panel dl div { padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.panel dt { color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.panel dd { margin: 0; }
.panel .btn { margin: 1rem 0; }
.note { font-size: .88rem; color: var(--muted); padding: .7rem .9rem; border-inline-start: 2px solid var(--gold); background: rgba(201, 165, 90, .06); border-radius: 6px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.gal-i { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--deep); }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-i:hover img { transform: scale(1.07); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* hub page */
.twin-arch { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.twin-arch img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.twin-arch img:last-child { margin-top: 3rem; }
.hub-body { display: grid; grid-template-columns: 1fr 360px; gap: 3.5rem; align-items: start; }
.timeline { position: sticky; top: 100px; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.timeline h2 { font-size: 1.5rem; }
.timeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline ol::before { content: ''; position: absolute; inset-inline-start: 6px; top: .4rem; bottom: .4rem; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline li { position: relative; padding-inline-start: 1.9rem; padding-bottom: 1.1rem; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 0; top: .45rem; width: 13px; height: 13px; border: 2px solid var(--gold); background: var(--night); transform: rotate(45deg); }
.timeline time { font: 700 1.25rem/1 var(--ff-head); color: var(--gold-2); }
.timeline p { margin: .2rem 0 0; font-size: .93rem; color: var(--muted); }

/* routes page */
.route-head { max-width: 800px; margin-bottom: 2.5rem; }
.route-head .route-time { display: inline-block; margin-bottom: 1rem; }
.stops { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; counter-reset: s; }
.stop { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.stop-img { display: block; aspect-ratio: 4 / 5; }
.stop-img img { width: 100%; height: 100%; object-fit: cover; }
.stop-n { position: absolute; top: -14px; inset-inline-start: -10px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--gold); color: var(--night); font-weight: 700; transform: rotate(45deg); }
.stop-n b { transform: rotate(-45deg); line-height: 1; }
.stop h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.stop h3 a { color: var(--ivory); }
.stop p { font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }

/* legal */
.legal h2 { font-size: 1.4rem; }
.updated { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.form { padding: 2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { margin-bottom: 1.1rem; }
.fld label { display: block; font-weight: 700; color: var(--gold-2); margin-bottom: .35rem; font-size: .95rem; }
[aria-invalid="true"] { border-color: #e0826b; }
.f-err { color: #f0a08c; font-size: .88rem; margin: .35rem 0 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.3rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; }
.alert.ok { background: rgba(46, 160, 110, .15); border: 1px solid rgba(46, 160, 110, .5); color: #9fe3c1; }
.alert.bad { background: rgba(224, 130, 107, .12); border: 1px solid rgba(224, 130, 107, .5); color: #f0a08c; }

/* 404 */
.nf-arch { width: 220px; aspect-ratio: 4 / 5; margin: 0 auto 2rem; display: grid; place-items: center; font: 700 4rem/1 var(--ff-head); color: var(--night);
  background: linear-gradient(160deg, var(--gold-2), var(--gold-3)); -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }

/* footer */
.ftr { margin-top: 0; background: linear-gradient(180deg, var(--deep), #04120f); border-top: 1px solid var(--line); }
.arcade { height: 40px; background: url('../img/arcade.svg') repeat-x center / 64px 40px; opacity: .9; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3rem 0 2.5rem; }
.ftr h2 { font: 700 1.05rem/1.4 var(--ff-body); color: var(--gold); letter-spacing: .04em; margin-bottom: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ftr a { color: var(--text); }
.ftr a:hover { color: var(--gold-2); }
.ftr-brand p { color: var(--muted); margin-top: 1rem; font-size: .95rem; }
.ftr-bottom { border-top: 1px solid var(--line); padding: 1.1rem 0; font-size: .88rem; color: var(--muted); }
.ftr-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* notice + lightbox */
.notice { position: fixed; z-index: 300; inset-inline: 1rem; bottom: 1rem; max-width: 640px; margin-inline: auto; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-radius: 14px; background: rgba(11, 42, 37, .96); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.notice[hidden] { display: none; }
.notice p { margin: 0; flex: 1; font-size: .92rem; }
.lb { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 2rem; background: rgba(3, 12, 10, .94); }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lb-x { position: absolute; top: 1rem; inset-inline-end: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); background: var(--deep); color: var(--gold-2); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav ul a { padding: .45rem .55rem; font-size: .92rem; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .place-grid, .hub-body, .contact-grid { grid-template-columns: 1fr; }
  .panel, .timeline { position: static; }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem; background: rgba(6, 26, 23, .98); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .langs { align-self: flex-start; }
  .hero-grid, .hub-grid, .place-hero-grid, .hub-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .slider, .place-arch { max-width: 440px; margin-inline: auto; width: 100%; }
  .route-cards, .cards.three { grid-template-columns: 1fr; }
  .ess { grid-template-columns: 1fr; }
  .ess-img { max-width: 260px; }
  .sec { padding: 4rem 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row2, .gal, .mini-tl { grid-template-columns: 1fr; }
  .finder { flex-direction: column; }
  .ftr-grid { grid-template-columns: 1fr; }
  .notice { flex-direction: column; align-items: stretch; }
  .stop { grid-template-columns: 80px 1fr; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Arch boxes: lock the 4:5 ratio (aspect-ratio boxes otherwise grow with tall images) */
.card-arch, .ess-img, .stop-img, .hub-arch, .place-arch { position: relative; overflow: hidden; min-height: 0; }
.card-arch img, .ess-img img, .stop-img img, .hub-arch img, .place-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.twin-arch img { height: auto; aspect-ratio: 4 / 5; }
