/* ==========================================================================
   Fez Medina Guide — "The Guidebook"
   Parchment · indigo ink · gold leaf · pomegranate rubric · zellige green.
   Gloock (display) · Albert Sans (text) · Amiri (Arabic).
   Chapters in roman numerals, plates, an illustrated medina plan, margin notes.
   ========================================================================== */

:root {
	--parch: #F4ECDB;
	--parch-2: #EADFC8;
	--paper: #FCF8EF;
	--ink: #1C2142;
	--ink-2: #484B63;
	--ink-3: #2A3060;
	--muted: #7B7466;
	--gold: #A97C2F;
	--gold-d: #8A6420;
	--gold-l: #E6D2A2;
	--red: #9A2E25;
	--red-l: #F3DED6;
	--green: #2C6A55;
	--green-l: #DCEBE2;
	--line: #D5C6A6;
	--line-2: #E4D8BF;
	--display: "Gloock", Georgia, "Times New Roman", serif;
	--sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ar: "Amiri", "Noto Naskh Arabic", serif;
	--r: 4px;
	--shadow: 0 1px 0 rgba(28, 33, 66, .05), 0 12px 30px -20px rgba(28, 33, 66, .35);
	--shadow-lg: 0 30px 60px -34px rgba(28, 33, 66, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--parch); background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .45), transparent 40%), radial-gradient(circle at 90% 80%, rgba(169, 124, 47, .06), transparent 45%); background-attachment: fixed; color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.nav-open, body.basket-open { overflow: hidden; }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[lang="ar"] { font-family: var(--ar); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.ico { flex: none; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 32px; }
.sec { padding-block: 100px; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--display); font-weight: 400; margin: 0; color: inherit; letter-spacing: -.01em; }
.display { font-size: clamp(46px, 6.2vw, 88px); line-height: 1.02; }
.h1 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.06; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; }
.display em, .h1 em, .h2 em { font-style: normal; color: var(--red); }
.smallcaps { margin: 0 0 14px; font: 700 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }
.lead { font-size: clamp(17.5px, 1.4vw, 20px); color: var(--ink-2); max-width: 36em; margin: 22px 0 0; }
.dropcap::first-letter, .dropcap-prose > p:first-child::first-letter { float: left; font: 400 4.1em/.82 var(--display); color: var(--red); margin: .08em .1em 0 0; }
.prose { color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 1.6em 0 .5em; }
.prose-lg { font-size: 18.5px; }
.prose-page { max-width: 740px; }
.rn { font-family: var(--display); color: var(--gold); margin-right: 8px; }
.rubric { position: relative; padding-bottom: 12px; margin-bottom: 22px !important; border-bottom: 1px solid var(--line); }
.rubric::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--red); }

/* ---------- Ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 420px; margin: 0 auto; padding-bottom: 6px; color: var(--gold); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.star8 { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ornament-light { color: var(--gold-l); padding-block: 10px; }
.ornament-light span { background: linear-gradient(90deg, transparent, rgba(230, 210, 162, .6)); }
.ornament-light span:last-child { background: linear-gradient(90deg, rgba(230, 210, 162, .6), transparent); }

/* ---------- Buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r); border: 1.5px solid transparent; font: 700 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--gold-l); color: var(--ink); }
.btn-gold:hover { background: #F1E1B8; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(252, 248, 239, .4); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-more:hover { color: var(--red); }
.linkish { background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; text-decoration: underline; cursor: pointer; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-on .rn { color: var(--gold-l); }
.chips-center { justify-content: center; }
.opener .chips { margin-top: 26px; }

.inp { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 33, 66, .12); }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231C2142' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; }
.inp-sm { min-height: 40px; padding-block: 7px; width: auto; }

/* ---------- Topline & navbar ---------- */
.topline { background: var(--ink); color: #CFD1E3; font-size: 13px; }
.topline-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topline p { margin: 0; letter-spacing: .03em; }
.topline-r { display: flex; align-items: center; gap: 22px; }
.topline a { color: var(--paper); text-decoration: none; }
.topline a:hover { color: var(--gold-l); }
.langs { color: var(--gold-l); letter-spacing: .1em; font-weight: 700; }

.navbar { position: sticky; top: 0; z-index: 100; background: rgba(244, 236, 219, .97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--paper) inset; }
.navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--line); }
.navbar-in { display: flex; align-items: center; gap: 22px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { max-height: 56px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font: 400 25px/1 var(--display); letter-spacing: -.01em; }
.brand-txt small { font: 400 15px/1.3 var(--ar); color: var(--gold-d); margin-top: 4px; }
.mark .mark-a { fill: var(--ink); }
.mark .mark-b { fill: var(--gold-l); }
.nav { margin-left: auto; }
.nav .menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav .menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav .menu > li > a:hover, .nav .menu > li:focus-within > a { color: var(--red); border-bottom-color: var(--red); }
.nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .6; }
.nav .sub-menu { list-style: none; position: absolute; top: calc(100% + 6px); left: -10px; min-width: 330px; margin: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); outline: 1px solid var(--gold-l); outline-offset: -6px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav .sub-menu.is-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; min-width: 640px; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu ul { list-style: none; margin: 0; padding: 0; }
.nav .sub-menu a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav .sub-menu a small { color: var(--gold-d); font-weight: 700; }
.nav .sub-menu a:hover { background: var(--parch); color: var(--red); }
.nav .sub-menu .sub-head { font: 400 18px/1.2 var(--display); border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-top: 6px; }
.nav .sub-menu .sub-head small { font: 700 12px var(--sans); }
.nav-foot { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.itin-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.itin-btn:hover { background: var(--paper); }
.itin-btn.is-bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }
.basket-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 700 12px/1 var(--sans); }
.burger { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.ar-water { position: absolute; right: -2%; top: -12%; margin: 0; font: 400 clamp(220px, 34vw, 520px)/1 var(--ar); color: rgba(169, 124, 47, .09); pointer-events: none; user-select: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 72px 90px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-notes li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 16px 18px 0; }
.hero-notes li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-notes .ico { color: var(--gold); margin-top: 3px; }
.hero-notes span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hero-notes b { font: 400 21px/1.15 var(--display); color: var(--ink); margin-bottom: 3px; }

/* ---------- Medina map ---------- */
.medmap { margin: 0; padding: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(.6deg); }
.medmap-svg { display: block; width: 100%; height: auto; }
.mm-frame { fill: #F7EEDC; stroke: var(--ink); stroke-width: 1.5; }
.mm-frame-in { fill: none; stroke: var(--gold); stroke-width: 1; }
.mm-hill { fill: #E7DABD; stroke: var(--ink); stroke-width: 1; stroke-opacity: .4; }
.mm-hill-line { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-dasharray: 3 4; }
.mm-wall { fill: #EFE2C3; stroke: var(--ink); stroke-width: 2.5; }
.mm-hatch { stroke: var(--ink); stroke-opacity: .1; stroke-width: 1; }
.mm-river { fill: none; stroke: #5E8AA0; stroke-width: 3.5; stroke-linecap: round; opacity: .8; }
.mm-lanes path { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1.2; stroke-linecap: round; }
.mm-jdid { fill: #E7DABD; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.mm-label { font: 700 11px var(--sans); letter-spacing: .18em; fill: var(--ink-2); }
.mm-label-c { text-anchor: middle; }
.mm-label-i { font-style: italic; letter-spacing: .05em; font-weight: 500; fill: #5E8AA0; }
.mm-rose-c { fill: none; stroke: var(--gold); }
.mm-rose-n { fill: var(--gold); }
.mm-pin { cursor: pointer; }
.mm-pin-halo { fill: var(--red); opacity: 0; transition: opacity .2s, transform .2s; }
.mm-pin-c { fill: var(--red); stroke: var(--paper); stroke-width: 2; }
.mm-pin-n { font: 700 12px var(--sans); fill: #fff; text-anchor: middle; }
.mm-pin.is-on .mm-pin-halo { opacity: .25; transform: scale(1.5); }
.mm-pin.is-on .mm-pin-c { fill: var(--ink); }
.medmap-cap { margin: 12px 2px 0; font-size: 13.5px; font-style: italic; color: var(--muted); }
.medmap-cap span { font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; color: var(--gold-d); margin-right: 6px; }
.medmap-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.medmap-legend li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 6px; cursor: default; border-radius: 2px; transition: background .15s; }
.medmap-legend li.is-on, .medmap-legend li:hover { background: var(--parch); }
.ml-n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 700 11.5px var(--sans); margin-top: 2px; }
.medmap-legend b { display: block; font-size: 14px; line-height: 1.3; }
.medmap-legend small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Section head ---------- */
.sec-head { margin-bottom: 48px; max-width: 760px; }
.sec-head .sec-text { margin: 16px 0 0; color: var(--ink-2); font-size: 18px; }
.sec-head .sec-aside { margin-top: 22px; }
.sec-head.has-aside { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px 60px; }
.sec-head.has-aside .sec-main { max-width: 720px; }
.sec-head.has-aside .sec-aside { margin: 0 0 4px; flex: none; }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head.is-light { color: var(--paper); }
.sec-head.is-light .smallcaps { color: var(--gold-l); }
.sec-head.is-light .h2 em { color: var(--gold-l); }

/* ---------- Table of contents ---------- */
.contents-sec { background: var(--paper); border-bottom: 1px solid var(--line); }
.toc { list-style: none; margin: 0 auto; padding: 0; max-width: 1060px; border-top: 2px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(40px, 120px) auto 130px; align-items: center; gap: 22px; padding: 22px 8px; color: var(--ink); text-decoration: none; transition: background .2s; }
.toc-row:hover { background: var(--parch); color: var(--ink); }
.toc-n { font: 400 54px/1 var(--display); color: var(--gold); text-align: center; }
.toc-main { display: flex; flex-direction: column; min-width: 0; }
.toc-main b { font: 400 28px/1.15 var(--display); }
.toc-main small { font: 700 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.toc-text { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.toc-lead { align-self: center; border-bottom: 2px dotted var(--line); height: 1px; }
.toc-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 600; white-space: nowrap; }
.toc-meta em { font: normal 400 22px/1.2 var(--display); color: var(--red); }
.toc-thumb { width: 130px; height: 90px; overflow: hidden; border: 1px solid var(--line); outline: 1px solid var(--gold-l); outline-offset: -5px; filter: sepia(.25); transition: filter .3s; }
.toc-row:hover .toc-thumb { filter: none; }
.toc-thumb .fmg-img { width: 100%; height: 100%; object-fit: cover; }
.toc-compact .toc-row { grid-template-columns: 70px minmax(0, 1fr) minmax(40px, 1fr) auto; padding-block: 16px; }
.toc-compact .toc-n { font-size: 38px; }
.toc-compact .toc-main b { font-size: 23px; }

/* ---------- Plates ---------- */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.plate { position: relative; display: flex; flex-direction: column; padding: 14px 14px 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.plate:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plate-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; outline: 1px solid var(--gold-l); outline-offset: -8px; background: var(--parch-2); }
.plate-media .fmg-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.plate:hover .plate-media .fmg-img { transform: scale(1.04); }
.plate-badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; background: var(--red); color: #fff; font: 700 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.plate-cap { display: flex; justify-content: space-between; gap: 10px; margin: 12px 4px 0; font: 700 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.plate-cap span:last-child { text-align: right; }
.plate-title { margin: 10px 4px 0; font: 400 25px/1.15 var(--display); }
.plate-title a { color: var(--ink); text-decoration: none; }
.plate-title a::after { content: ""; position: absolute; inset: 0; }
.plate-title a:hover { color: var(--red); }
.plate-meta { margin: 6px 4px 0; font-style: italic; font-size: 14.5px; color: var(--muted); }
.plate-text { margin: 10px 4px 0; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plate-price { display: flex; align-items: baseline; gap: 8px; margin: auto 4px 0; padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.plate-price i { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.plate-price b { font: 400 28px/1 var(--display); color: var(--ink); }
.plate-price b.sm { font: 600 15px var(--sans); }
.plate-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 4px 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.plate-foot .link-more, .plate-foot .basket-add { position: relative; z-index: 2; }

.basket-add { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px dashed var(--gold-d); border-radius: var(--r); background: transparent; color: var(--gold-d); font: 700 13px/1 var(--sans); cursor: pointer; transition: all .15s; white-space: nowrap; }
.basket-add span { display: inline-flex; align-items: center; gap: 6px; }
.basket-add .ba-on { display: none; }
.basket-add:hover { background: var(--parch); border-style: solid; }
.basket-add.is-in { border-style: solid; border-color: var(--green); background: var(--green); color: #fff; }
.basket-add.is-in .ba-on { display: inline-flex; }
.basket-add.is-in .ba-off { display: none; }
.basket-add.is-wide { width: 100%; justify-content: center; min-height: 44px; }

/* ---------- Guide ---------- */
.guide-sec { background: var(--parch-2); border-block: 1px solid var(--line); }
.guide { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.guide-photo { position: relative; aspect-ratio: 3 / 4; max-width: 400px; border-radius: 50% / 40%; overflow: hidden; border: 1px solid var(--ink); box-shadow: 0 0 0 10px var(--parch-2), 0 0 0 11px var(--gold); }
.guide-photo .fmg-img { width: 100%; height: 100%; object-fit: cover; }
.guide-bio { font-size: 19px; color: var(--ink-2); margin: 18px 0 0; max-width: 34em; }
.guide-facts { display: grid; gap: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); }
.guide-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.guide-facts dt { font: 700 12px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.guide-facts dd { margin: 0; font-size: 15.5px; }

/* ---------- Field notes ---------- */
.notes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; }
.notes li { padding-top: 18px; border-top: 2px solid var(--ink); }
.note-n { font: 400 30px/1 var(--display); color: var(--red); font-style: italic; }
.notes h3 { margin: 12px 0 8px; font: 400 23px/1.2 var(--display); }
.notes p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Method ---------- */
.method-sec { background: var(--ink); color: var(--paper); }
.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.method .sec-head { margin-bottom: 18px; }
.method-text { color: #CFD1E3; font-size: 18px; margin: 0; max-width: 30em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(252, 248, 239, .15); }
.steps li:first-child { border-top: 1px solid rgba(252, 248, 239, .15); }
.steps span { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid var(--gold-l); border-radius: 50%; font: 400 22px/1 var(--display); color: var(--gold-l); }
.steps b { font: 400 25px/1.2 var(--display); }
.steps p { margin: 4px 0 0; color: #CFD1E3; font-size: 15.5px; }

/* ---------- Reviews & FAQ ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { margin: 0; padding: 30px; background: var(--paper); border: 1px solid var(--line); }
.review blockquote { margin: 0; font: 400 20px/1.45 var(--display); }
.review figcaption { margin-top: 18px; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--ink); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { position: relative; list-style: none; padding: 20px 44px 20px 0; font: 400 21px/1.3 var(--display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✦"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 18px; transition: transform .25s, color .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--red); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 46em; }

/* ---------- Chapter opener ---------- */
.opener { position: relative; border-bottom: 1px solid var(--line); padding-bottom: 30px; overflow: hidden; }
.opener-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 60px; align-items: center; padding-block: 50px 40px; }
.opener.has-media .opener-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.numeral { position: absolute; left: -24px; top: -40px; margin: 0; font: 400 clamp(180px, 24vw, 360px)/1 var(--display); color: rgba(169, 124, 47, .1); -webkit-text-stroke: 1px rgba(169, 124, 47, .3); pointer-events: none; z-index: -1; }
.opener-copy { position: relative; isolation: isolate; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--red); }
.opener-fig { margin: 0; }
.frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; padding: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold-l); pointer-events: none; }
.frame > a, .frame > .fmg-img { display: block; width: 100%; height: 100%; }
.frame .fmg-img { width: 100%; height: 100%; object-fit: cover; }
.opener-fig figcaption { margin-top: 10px; font-size: 13.5px; font-style: italic; color: var(--muted); text-align: right; }
.opener-price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 0; color: var(--muted); }
.opener-price b { font: 400 40px/1 var(--display); color: var(--ink); }
.opener-price b.sm { font-size: 24px; }
.badge-inline { color: var(--red); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs a { width: 70px; height: 70px; overflow: hidden; border: 1px solid var(--line); }
.thumbs .fmg-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Toolbar & more ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sort { display: inline-flex; align-items: center; gap: 10px; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.empty { padding: 40px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.more-chapters { background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- Single tour: spread ---------- */
.spread { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 64px 100px; }
.margin { display: grid; gap: 22px; }
.glance { padding: 22px 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.glance .smallcaps { margin-bottom: 8px; }
.glance dl { margin: 0; }
.glance div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
.glance div:last-child { border-bottom: 0; }
.glance dt { font: 700 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.glance dd { margin: 0; font-size: 15px; }
.book { padding: 24px; background: var(--paper); border: 1px solid var(--line); outline: 1px solid var(--gold-l); outline-offset: -8px; box-shadow: var(--shadow); }
.book-head { display: grid; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.book-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.book-price b { font: 400 40px/1 var(--display); color: var(--ink); }
.book-price b.sm { font-size: 24px; }
.book-title { margin: 0 0 14px; font: 400 23px/1.2 var(--display); }
.book-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 12px; color: var(--green); font-weight: 700; text-decoration: none; border-top: 1px dotted var(--line); }
.book-wa:hover { color: var(--ink); }
.tsec + .tsec { margin-top: 56px; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.hl li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.hl-star { width: 16px; height: 16px; fill: var(--gold); margin-top: 5px; }
.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab { min-height: 46px; padding: 8px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 15px; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--red); border-bottom-color: var(--red); }
.tabs-day .tab { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; line-height: 1.2; }
.tabs-day .tab b { font: 400 19px/1.1 var(--display); }
.tabs-day .tab small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dotted var(--line); font-size: 16.5px; }
.rl-n { font: italic 400 20px/1.3 var(--display); color: var(--red); text-align: right; }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.incl-box { padding-top: 14px; border-top: 2px solid var(--green); }
.incl-out { border-top-color: var(--red); }
.incl-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.incl-box li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.incl-box .ico { margin-top: 3px; }
.incl-in .smallcaps, .incl-in .ico { color: var(--green); }
.incl-out .smallcaps, .incl-out .ico { color: var(--red); }
.related { background: var(--paper); border-top: 1px solid var(--line); }
.dock { display: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 700 11.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.req { color: var(--red); }
.fmg-form .btn { margin-top: 16px; }
.fmg-form .btn-blue, .fmg-form .btn-fire { background: var(--ink); color: var(--paper); }
.form-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.form-note .ico { color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 14px; padding: 16px; margin-bottom: 18px; border-left: 3px solid; }
.alert p { margin: 4px 0 8px; }
.alert a { font-weight: 700; }
.alert.is-ok { background: var(--green-l); border-color: var(--green); color: #173F32; }
.alert.is-ok .ico { color: var(--green); }
.alert.is-err { background: var(--red-l); border-color: var(--red); color: #5E1A14; }
.alert.is-err .ico { color: var(--red); }

/* ---------- Transfers ---------- */
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.timetable { border-top: 2px solid var(--ink); }
.tt-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px 110px auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.tt-th { font: 700 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-block: 10px; }
.tt-route { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt-route .ico { color: var(--gold-d); }
.tt-route b { font-weight: 600; font-size: 15.5px; }
.tt-time { font-style: italic; color: var(--muted); font-size: 14.5px; }
.tt-p { font-weight: 700; font-size: 14px; }
.tt-p small { display: none; }
.marginnote { margin: 18px 0 0; padding: 18px 22px; background: var(--paper); border-left: 3px solid var(--gold); }
.marginnote .smallcaps { margin-bottom: 6px; }
.marginnote p { margin: 0; font-size: 15px; color: var(--ink-2); }
.perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 0; padding: 0; }
.perks li { display: flex; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 14.5px; color: var(--ink-2); }
.perks .ico { color: var(--gold-d); }
.perks b { display: block; color: var(--ink); font: 400 19px/1.2 var(--display); margin-bottom: 2px; }
.tr-grid .book { position: sticky; top: 100px; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pillars li { display: grid; grid-template-columns: 50px 1fr; gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pillars .rn { grid-row: span 2; font-size: 32px; line-height: 1; }
.pillars b { font: 400 23px/1.2 var(--display); }
.pillars p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.addressbook dl { margin: 0 0 24px; border-top: 2px solid var(--ink); }
.addressbook dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dotted var(--line); }
.addressbook dt { font: 700 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.addressbook dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.addressbook a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-l); }
.addressbook a:hover { color: var(--red); }
.map { aspect-ratio: 4 / 3; padding: 10px; background: var(--paper); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.35) contrast(1.02); }
.enquire .sec-head { margin-bottom: 26px; }
.basket-inline { margin-bottom: 16px; padding: 12px 16px; background: var(--gold-l); }
.basket-inline p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; }

/* ---------- 404 & posts ---------- */
.lost { position: relative; overflow: hidden; text-align: center; }
.lost .ar-water { right: auto; left: 50%; transform: translateX(-50%); top: -20%; }
.lost-in { position: relative; padding-block: 120px; display: flex; flex-direction: column; align-items: center; }
.lost .lead { margin-inline: auto; margin-bottom: 30px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card .tcard-meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.post-card .tcard-title { font: 400 24px/1.2 var(--display); margin: 0; }
.post-card .tcard-title a { color: var(--ink); text-decoration: none; }
.post-card .tcard-text { color: var(--ink-2); font-size: 15px; }
.post-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.post-media .fmg-img { width: 100%; height: 100%; object-fit: cover; }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; gap: 8px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); }

/* ---------- Colophon ---------- */
.colophon { background: var(--ink); color: #CFD1E3; }
.colo-cta { padding-block: 90px 50px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ar-big { margin: 0 0 18px; font: 700 clamp(70px, 9vw, 130px)/1.35 var(--ar); color: var(--gold-l); }
.colophon .smallcaps { color: var(--gold-l); margin-top: 6px; }
.colo-cta .h2 { color: var(--paper); }
.colo-cta .h2 em { color: var(--gold-l); }
.colo-lead { margin: 16px 0 0; font-size: 18px; max-width: 34em; }
.colo-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.colo-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 50px; }
.colophon .brand { color: var(--paper); }
.colophon .brand-txt small { color: var(--gold-l); }
.colophon .mark .mark-a { fill: var(--gold-l); }
.colophon .mark .mark-b { fill: var(--ink); }
.colo-brand p { margin: 16px 0 0; font-size: 15px; max-width: 26em; }
.colo-contact a { color: var(--paper); text-decoration: none; }
.colo-col h3 { margin: 0 0 14px; font: 700 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-l); }
.colo-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.colo-col a { color: #E4E5F0; text-decoration: none; font-size: 15px; }
.colo-col a:hover { color: #fff; text-decoration: underline; }
.colo-col .rn { color: var(--gold-l); }
.social { list-style: none; display: flex; gap: 8px; margin: 18px 0 0; padding: 0; }
.social a { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(252, 248, 239, .3); color: var(--paper); text-decoration: none; font-size: 13px; }
.colo-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(252, 248, 239, .15); font-size: 13px; }
.colo-bottom p { margin: 0; }

/* ---------- Itinerary drawer, toast, WhatsApp, zoom ---------- */
.basket { position: fixed; inset: 0; z-index: 400; }
.basket-scrim { position: absolute; inset: 0; background: rgba(28, 33, 66, .5); opacity: 0; transition: opacity .2s; }
.basket-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); background-image: repeating-linear-gradient(transparent 0 33px, rgba(169, 124, 47, .14) 33px 34px); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; border-left: 1px solid var(--line); }
.basket.is-open .basket-scrim { opacity: 1; }
.basket.is-open .basket-panel { transform: none; }
.basket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 26px 18px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.basket-head .smallcaps { margin-bottom: 4px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; cursor: pointer; }
.basket-list { list-style: none; counter-reset: b; margin: 0; padding: 8px 26px; overflow: auto; flex: 1; }
.basket-list:empty { display: none; }
.basket-list li { counter-increment: b; display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px dotted var(--line); }
.basket-list li::before { content: counter(b, lower-roman) "."; font: italic 400 18px var(--display); color: var(--red); }
.basket-list a { color: var(--ink); text-decoration: none; font: 400 18px/1.25 var(--display); }
.basket-list a:hover { color: var(--red); }
.bl-price { font-weight: 700; font-size: 14px; }
.bl-rm { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: var(--parch); color: var(--muted); cursor: pointer; }
.bl-rm:hover { background: var(--red-l); color: var(--red); }
.basket-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 30px; text-align: center; color: var(--muted); background: var(--paper); }
.basket-empty .ico { color: var(--gold); }
.basket-foot { padding: 18px 26px 8px; border-top: 2px solid var(--ink); background: var(--paper); }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.basket-total b { font: 400 32px/1 var(--display); color: var(--ink); letter-spacing: 0; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 450; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 20px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(18, 140, 75, .7); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.zoom { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 30px; background: rgba(28, 33, 66, .92); }
.zoom img { max-height: 88vh; width: auto; border: 10px solid var(--paper); }
.zoom button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; }


/* ==========================================================================
   v1.1 refinements — texture, zellige ribbons, seals, motion
   ========================================================================== */
body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .45), transparent 40%), radial-gradient(circle at 90% 80%, rgba(169, 124, 47, .06), transparent 45%); }
::selection { background: var(--gold-l); color: var(--ink); }

/* Zellige ribbon */
.band { height: 26px; border-block: 1px solid var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath transform='translate(11 3) scale(.45)' fill='%231C2142' d='M20 2l4.6 6.9 8.1-1.6-1.6 8.1L38 20l-6.9 4.6 1.6 8.1-8.1-1.6L20 38l-4.6-6.9-8.1 1.6 1.6-8.1L2 20l6.9-4.6-1.6-8.1 8.1 1.6z'/%3E%3Cpath transform='translate(51 3) scale(.45)' fill='%232C6A55' d='M20 2l4.6 6.9 8.1-1.6-1.6 8.1L38 20l-6.9 4.6 1.6 8.1-8.1-1.6L20 38l-4.6-6.9-8.1 1.6 1.6-8.1L2 20l6.9-4.6-1.6-8.1 8.1 1.6z'/%3E%3Ccircle cx='20' cy='12' r='2.2' fill='%23E6D2A2'/%3E%3Ccircle cx='60' cy='12' r='2.2' fill='%23E6D2A2'/%3E%3Cpath d='M40 6l6 6-6 6-6-6z' fill='%239A2E25'/%3E%3Cpath d='M0 6l6 6-6 6M80 6l-6 6 6 6' fill='%23A97C2F'/%3E%3C/svg%3E") center / 80px 24px repeat-x; }
.band-foot { border-bottom: 0; }

/* Seals */
.stamp { display: block; }
.stamp-ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.stamp circle:first-of-type { fill: var(--paper); }
.stamp-txt { font: 700 12.5px var(--sans); letter-spacing: .24em; fill: currentColor; }
.stamp-star { fill: currentColor; }
.hero-map { position: relative; }
.hero-stamp { position: absolute; z-index: 2; left: -54px; top: -46px; width: 132px; height: 132px; color: var(--red); transform: rotate(-12deg); filter: drop-shadow(0 8px 14px rgba(28, 33, 66, .18)); }
.guide-fig { position: relative; max-width: 400px; }
.guide-stamp { position: absolute; z-index: 2; right: -38px; bottom: 36px; width: 120px; height: 120px; color: var(--gold-d); transform: rotate(10deg); }
@media (prefers-reduced-motion: no-preference) {
	.hero-stamp .stamp-txt, .guide-stamp .stamp-txt { transform-origin: 80px 80px; animation: spin 40s linear infinite; }
	.mm-lanes path, .mm-river { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.6s .3s ease forwards; }
	.mm-pin { animation: pinIn .5s both; }
	.mm-pin:nth-of-type(2) { animation-delay: .9s; } .mm-pin:nth-of-type(3) { animation-delay: 1s; } .mm-pin:nth-of-type(4) { animation-delay: 1.1s; } .mm-pin:nth-of-type(5) { animation-delay: 1.2s; } .mm-pin:nth-of-type(6) { animation-delay: 1.3s; } .mm-pin:nth-of-type(7) { animation-delay: 1.4s; } .mm-pin:nth-of-type(8) { animation-delay: 1.5s; }
	.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
	.js .rv.is-in { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pinIn { from { opacity: 0; } }
.mm-pin-halo { transform-box: fill-box; transform-origin: center; }

/* Navbar on scroll */
.navbar { transition: box-shadow .25s, background .25s; }
.navbar.is-stuck { background: rgba(252, 248, 239, .96); box-shadow: 0 10px 30px -22px rgba(28, 33, 66, .55); }
.navbar-in { transition: min-height .25s; }
.navbar.is-stuck .navbar-in { min-height: 66px; }
@supports (backdrop-filter: blur(8px)) { .navbar.is-stuck { background: rgba(252, 248, 239, .86); backdrop-filter: saturate(1.2) blur(10px); } }

/* Buttons */
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-ink { box-shadow: inset 0 0 0 1px rgba(230, 210, 162, .22), 0 10px 20px -14px rgba(28, 33, 66, .8); }
.link-more { background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat; transition: background-size .3s, color .2s; }
.link-more:hover { background-size: 100% 1px; }

/* Contents */
.toc-row { position: relative; }
.toc-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.toc-row:hover::before { transform: none; }
.toc-n { transition: color .2s, transform .3s; }
.toc-row:hover .toc-n { color: var(--red); transform: scale(1.06); }
.toc-thumb { transition: filter .3s, transform .3s; }
.toc-row:hover .toc-thumb { transform: rotate(-1.5deg) scale(1.04); }

/* Plates */
.plate::before { content: ""; position: absolute; inset: 5px; border: 1px solid transparent; pointer-events: none; transition: border-color .25s; }
.plate:hover::before { border-color: var(--gold-l); }
.plate:hover { border-color: var(--gold); }
.plate-badge { left: 22px; top: 22px; padding: 6px 12px 6px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); padding-right: 18px; }
.plate-chip { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(252, 248, 239, .94); color: var(--ink); font: 700 12.5px/1 var(--sans); box-shadow: 0 6px 16px -10px rgba(28, 33, 66, .6); }
.plate-chip .ico { color: var(--gold-d); }
.plate-price b { transition: color .2s; }
.plate:hover .plate-price b { color: var(--red); }

/* A morning in the medina */
.walk-sec { background: var(--paper); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.walk { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; }
.walk::before { content: ""; position: absolute; left: 4%; right: 4%; top: 60px; border-top: 2px dashed var(--gold); }
.walk-stop { position: relative; }
.walk-time { display: block; font: italic 400 22px/1 var(--display); color: var(--red); margin-bottom: 14px; }
.walk-dot { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 15px/1 var(--sans); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold); transition: background .2s, transform .25s; }
.walk-stop:hover .walk-dot { background: var(--red); transform: scale(1.08); }
.walk-stop h3 { margin: 22px 0 8px; font: 400 23px/1.2 var(--display); }
.walk-stop p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* Guide */
.guide-photo { max-width: none; }
.guide-motto { margin: 22px 0 0; padding-left: 20px; border-left: 3px solid var(--red); font: italic 400 24px/1.35 var(--display); color: var(--ink); max-width: 26em; }
.guide-bio { font-size: 17.5px; }

/* Field notes */
.notes li { position: relative; padding: 22px 22px 24px; border-top: 2px solid var(--ink); background: linear-gradient(var(--paper), rgba(252, 248, 239, 0)); transition: background-color .2s, transform .25s; }
.notes li:hover { transform: translateY(-3px); }
.note-n { font-size: 34px; }

/* Method */
.method-sec { position: relative; overflow: hidden; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 40 40'%3E%3Cpath fill='none' stroke='%23E6D2A2' stroke-opacity='.07' stroke-width='.6' d='M20 2l4.6 6.9 8.1-1.6-1.6 8.1L38 20l-6.9 4.6 1.6 8.1-8.1-1.6L20 38l-4.6-6.9-8.1 1.6 1.6-8.1L2 20l6.9-4.6-1.6-8.1 8.1 1.6z'/%3E%3C/svg%3E") 0 0 / 72px 72px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 82px; bottom: -22px; border-left: 1px dashed rgba(230, 210, 162, .45); }
.steps span { background: var(--ink); transition: background .2s, color .2s; }
.steps li:hover span { background: var(--gold-l); color: var(--ink); }

/* FAQ */
.faq { counter-reset: q; }
.faq details { counter-increment: q; }
.faq summary { padding-left: 46px; transition: color .2s; }
.faq summary::before { content: counter(q, upper-roman) "."; position: absolute; left: 0; top: 23px; width: 36px; font: italic 400 17px/1 var(--display); color: var(--gold); }
.faq summary:hover, .faq details[open] summary { color: var(--red); }
.faq details p { padding-left: 46px; }

/* Single tour */
.margin .book { position: relative; }
.book::before { content: ""; position: absolute; left: 50%; top: -1px; width: 60px; height: 3px; background: var(--red); transform: translateX(-50%); }
.route-list li { transition: background .2s; }
.route-list li:hover { background: linear-gradient(90deg, rgba(230, 210, 162, .35), transparent); }

/* Colophon */
.ar-big { background: linear-gradient(180deg, #F1E1B8, var(--gold) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1260px) {
	.nav-cta { display: none; }
	.spread { grid-template-columns: 340px minmax(0, 1fr); gap: 44px; }
	.tr-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
	.tt-row { grid-template-columns: minmax(0, 1fr) 80px 96px 96px; }
	.tt-row .btn { grid-column: 1 / -1; justify-self: start; }
	.tt-th span:last-child { display: none; }
}

@media (max-width: 1180px) {
	.burger { display: grid; }
	.nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(420px, 90vw); margin: 0; padding: 90px 22px 24px; background: var(--paper); border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(105%); transition: transform .22s ease; visibility: hidden; }
	.nav.is-open { transform: none; visibility: visible; }
	body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 120; background: rgba(28, 33, 66, .5); }
	body.nav-open .navbar { z-index: 200; }
	.burger { position: relative; z-index: 160; }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav .menu > li { border-bottom: 1px solid var(--line); }
	.nav .menu > li > a { justify-content: space-between; padding: 14px 6px; font-size: 18px; font-family: var(--display); font-weight: 400; border: 0; }
	.nav .sub-menu, .nav .sub-menu.is-wide { position: static; display: none; min-width: 0; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; outline: 0; padding: 0 0 10px 6px; background: transparent; }
	.nav .menu > li.is-expanded > .sub-menu { display: block; }
	.nav-foot { display: grid; gap: 10px; margin-top: 24px; }
	.hero-in, .opener.has-media .opener-in, .guide, .method, .faq-grid, .story-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.hero-map { max-width: 640px; }
	.opener-fig { max-width: 560px; }
	.plates, .reviews, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.notes { grid-template-columns: 1fr 1fr; }
	.toc-row { grid-template-columns: 70px minmax(0, 1fr) auto; }
	.toc-lead, .toc-thumb { display: none; }
	.spread, .tr-grid { grid-template-columns: minmax(0, 1fr); }
	.spread .text { order: -1; }
	.tr-grid .book { position: static; }
	.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; padding-right: 90px; background: var(--paper); border-top: 2px solid var(--ink); }
	.dock b { font: 400 26px/1 var(--display); }
	.dock small { color: var(--muted); }
	.single-fmg_tour .colophon { padding-bottom: 70px; }
	.colo-grid { grid-template-columns: 1fr 1fr; }
	.colo-brand { grid-column: 1 / -1; }
	.walk { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 0; }
	.walk::before { left: 22px; right: auto; top: 10px; bottom: 60px; border-top: 0; border-left: 2px dashed var(--gold); }
	.walk-stop { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 22px; padding-bottom: 28px; }
	.walk-dot { grid-row: 1 / span 3; grid-column: 1; }
	.walk-time { grid-column: 2; margin: 4px 0 0; font-size: 19px; }
	.walk-stop h3 { grid-column: 2; margin: 4px 0 6px; }
	.walk-stop p { grid-column: 2; }
	.hero-stamp { left: auto; right: -10px; top: -50px; width: 112px; height: 112px; }
	.guide-fig { max-width: 360px; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap { padding-inline: 18px; }
	.sec { padding-block: 66px; }
	.topline-in { justify-content: center; }
	.topline-in > p:first-child, .hide-sm { display: none; }
	.navbar-in { min-height: 68px; gap: 10px; }
	.brand-txt b { font-size: 20px; }
	.brand-txt small { font-size: 13px; }
	.brand .mark { width: 34px; height: 34px; }
	.itin-label { display: none; }
	.itin-btn { padding: 0 11px; }
	.hero-in { padding-block: 44px 60px; }
	.medmap { padding: 10px; transform: none; }
	.medmap-legend { grid-template-columns: 1fr; }
	.plates, .reviews, .posts, .notes, .hl, .incl, .perks { grid-template-columns: minmax(0, 1fr); }
	.toc-row { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px 4px; }
	.toc-meta { grid-column: 2; align-items: flex-start; }
	.toc-n { font-size: 40px; }
	.toc-main b { font-size: 23px; }
	.toc-compact .toc-row { grid-template-columns: 52px minmax(0, 1fr); }
	.numeral { font-size: 150px; top: -10px; }
	.guide-facts div, .addressbook dl div { grid-template-columns: 1fr; gap: 2px; }
	.glance div { grid-template-columns: 90px 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.tabs::-webkit-scrollbar { display: none; }
	.tab { flex: none; }
	.tt-th { display: none; }
	.tt-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
	.tt-route { grid-column: 1 / -1; }
	.tt-time { grid-column: 1 / -1; }
	.tt-p small { display: inline; font-weight: 500; color: var(--muted); margin-right: 6px; }
	.toolbar { flex-direction: column; align-items: flex-start; }
	.colo-grid { grid-template-columns: 1fr; gap: 30px; }
	.wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
	.hero-notes { grid-template-columns: minmax(0, 1fr); }
	.hero-notes li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.hero-notes li { padding: 12px 0; }
	.hero-stamp { width: 88px; height: 88px; right: 4px; top: -40px; }
	.guide-stamp { width: 92px; height: 92px; right: 4px; bottom: 20px; }
	.sec-head.has-aside { flex-direction: column; align-items: flex-start; gap: 22px; }
	.guide-motto { font-size: 20px; }
	.faq summary { padding-left: 38px; font-size: 19px; }
	.faq details p { padding-left: 38px; }
	.notes li { padding: 18px 4px 20px; background: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
