:root {
  color-scheme: light;
  --ink: #171714;
  --paper: #f3f0e9;
  --stone: #d8d0c2;
  --bronze: #a97842;
  --muted: #6d6a63;
  --line: rgba(23, 23, 20, .17);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 78px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; background: rgba(243,240,233,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; width: fit-content; }
.wordmark span { font-size: .62rem; letter-spacing: .17em; }
.wordmark strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { font-size: .78rem; text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a[aria-current="page"] { color: var(--ink); }
.quiet-button { justify-self: end; border: 1px solid var(--ink); background: transparent; padding: 10px 15px; cursor: pointer; }

.hero { position: relative; min-height: min(84vh, 860px); display: flex; align-items: end; overflow: hidden; color: white; background: #2d302d; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,12,.09), rgba(10,12,12,.78)); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 12vh 0 11vh; }
.eyebrow, .section-heading > p, .section-heading > div > p, .source-note > div > p { margin: 0 0 18px; font-size: .68rem; font-weight: 700; letter-spacing: .18em; }
.hero h1 { margin: 0; font: 400 clamp(5rem, 14vw, 13rem)/.74 Georgia, serif; letter-spacing: -.065em; }
.hero-deck { max-width: 620px; margin: 32px 0 28px; font: 400 clamp(1.15rem, 2.1vw, 1.75rem)/1.35 Georgia, serif; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.text-link { color: white; text-underline-offset: 5px; }
.photo-credit { position: absolute; right: 16px; bottom: 14px; z-index: 3; font-size: .62rem; color: rgba(255,255,255,.72); }

.decision-strip { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-right: 1px solid var(--line); }
.decision-strip > div { min-height: 115px; padding: 26px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.decision-strip small { font-size: .62rem; letter-spacing: .15em; color: var(--muted); }
.decision-strip strong { font: 400 1.05rem/1.25 Georgia, serif; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--bronze); }

.signature, .architecture, .routes, .stay, .map-section, .source-note { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.section-heading { margin-bottom: 45px; }
.section-heading h2, .source-note h2 { max-width: 900px; margin: 0; font: 400 clamp(2.5rem, 5.8vw, 5.8rem)/.92 Georgia, serif; letter-spacing: -.045em; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.split-heading > p { max-width: 360px; margin: 0; font-size: .92rem; line-height: 1.6; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.signature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.signature-grid article { padding: 28px 32px 0 0; }
.signature-grid article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.signature-grid span { color: var(--bronze); font-size: .68rem; }
.signature-grid h3 { margin: 46px 0 12px; font: 400 1.8rem Georgia, serif; }
.signature-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

.architecture { border-top: 1px solid var(--line); }
.filter-group, .route-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter, .route-tab { border: 1px solid var(--line); background: transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); }
.filter.is-active, .route-tab.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.architecture-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.architecture-grid article { min-height: 285px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: opacity .2s ease, transform .2s ease; }
.architecture-grid article.is-hidden { display: none; }
.architecture-grid small, .feature-card small, .map-layout aside small, dialog > small { color: var(--bronze); font-size: .63rem; letter-spacing: .16em; }
.architecture-grid h3 { margin: auto 0 11px; font: 400 1.65rem Georgia, serif; }
.architecture-grid p { min-height: 66px; margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.lens { width: fit-content; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: .76rem; cursor: pointer; }

.routes { width: 100%; max-width: none; padding-right: max(24px, calc((100vw - var(--max)) / 2)); padding-left: max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--paper); }
.routes .section-heading > div > p { color: #c09a70; }
.routes .route-tab { border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.7); }
.routes .route-tab.is-active { background: var(--paper); color: var(--ink); }
.route-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 40px; }
.route-intro h3 { margin: 0 0 16px; font: 400 2.4rem/1 Georgia, serif; }
.route-intro p { color: rgba(255,255,255,.68); line-height: 1.7; }
.route-meta { display: flex; gap: 22px; margin-top: 30px; font-size: .72rem; letter-spacing: .1em; color: #c09a70; }
.route-steps { margin: 0; padding: 0; list-style: none; }
.route-steps li { display: grid; grid-template-columns: 66px 1fr auto; gap: 20px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.16); align-items: baseline; }
.route-steps time { color: #c09a70; }
.route-steps strong { font: 400 1.15rem Georgia, serif; }
.route-steps span { color: rgba(255,255,255,.55); font-size: .78rem; }
.live-note { margin: 28px 0 0; max-width: 760px; color: rgba(255,255,255,.48); font-size: .78rem; line-height: 1.6; }

.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feature-card { min-height: 350px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.feature-card h3 { margin: auto 0 14px; font: 400 2rem/1.05 Georgia, serif; }
.feature-card p { color: var(--muted); line-height: 1.65; }
.feature-card-dark { background: var(--ink); color: var(--paper); }
.feature-card-dark p { color: rgba(255,255,255,.68); }
.feature-card-dark span { font-size: .72rem; color: rgba(255,255,255,.45); }
.booking-button, .text-button { width: fit-content; padding: 0 0 5px; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; }
.download-link { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

.map-section { border-top: 1px solid var(--line); }
.map-layout { display: grid; grid-template-columns: 1.5fr .7fr; min-height: 520px; border: 1px solid var(--line); }
.map-layout iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(.65) contrast(.95); }
.map-layout aside { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; }
.map-layout h3 { margin: auto 0 15px; font: 400 2.2rem Georgia, serif; }
.map-layout p { color: var(--muted); line-height: 1.65; }
.map-layout .primary-button { margin: 16px 0 22px; background: var(--ink); color: white; }

.source-note { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--line); }
.source-note h2 { font-size: clamp(2rem, 4vw, 4rem); }
.source-note > div:last-child { align-self: end; color: var(--muted); line-height: 1.7; }

footer { min-height: 130px; padding: 32px max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; font-size: .72rem; }
footer > a { font-family: Georgia, serif; font-size: 1rem; text-decoration: none; }
footer > span { color: rgba(255,255,255,.55); }
footer > div { justify-self: end; display: flex; gap: 18px; }
footer > div a { color: rgba(255,255,255,.72); }

dialog { width: min(520px, calc(100% - 36px)); padding: 42px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(8,9,8,.74); backdrop-filter: blur(6px); }
dialog h2 { font: 400 2.2rem Georgia, serif; }
dialog li { margin: 13px 0; }
.dialog-close { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 14px 18px; background: var(--ink); color: white; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .site-header nav { grid-column: 1 / -1; display: flex; gap: 18px; max-width: calc(100vw - 48px); overflow-x: auto; white-space: nowrap; padding: 0 0 10px; scrollbar-width: thin; }
  .decision-strip { grid-template-columns: 1fr 1fr; }
  .signature-grid, .stay-grid { grid-template-columns: 1fr; }
  .signature-grid article + article { padding-left: 0; border-left: 0; }
  .signature-grid article { padding: 25px 0; border-bottom: 1px solid var(--line); }
  .signature-grid h3 { margin-top: 26px; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .architecture-grid { grid-template-columns: 1fr 1fr; }
  .route-layout, .map-layout, .source-note { grid-template-columns: 1fr; gap: 38px; }
  .map-layout iframe { min-height: 420px; }
  footer { grid-template-columns: 1fr; }
  footer > div { justify-self: start; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 16px; }
  .wordmark span { display: none; }
  .quiet-button { padding: 8px 10px; font-size: .75rem; }
  .hero { min-height: 76vh; }
  .hero-content { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(4.2rem, 25vw, 7rem); }
  .hero-deck { font-size: 1.05rem; }
  .photo-credit { font-size: .55rem; }
  .decision-strip, .signature, .architecture, .stay, .map-section, .source-note { width: calc(100% - 32px); }
  .decision-strip { grid-template-columns: 1fr; }
  .decision-strip > div { min-height: 92px; }
  .signature, .architecture, .routes, .stay, .map-section, .source-note { padding-top: 72px; padding-bottom: 72px; }
  .architecture-grid { grid-template-columns: 1fr; }
  .architecture-grid article { min-height: 240px; }
  .route-tabs { display: grid; width: 100%; }
  .route-steps li { grid-template-columns: 58px 1fr; }
  .route-steps li span { grid-column: 2; }
  .map-layout aside { padding: 30px 24px; }
  .map-layout iframe { min-height: 330px; }
  footer { padding: 32px 16px; }
}

@media print {
  .site-header, .hero-actions, .filter-group, .route-tabs, .booking-button, .map-layout iframe, .map-layout .primary-button, .text-button, footer, dialog, .toast { display: none !important; }
  body { background: white; }
  .hero { min-height: 340px; break-after: page; }
  .hero-content { padding: 40px 0; }
  .signature, .architecture, .routes, .stay, .map-section, .source-note { width: 100%; padding: 36px 0; }
  .architecture-grid, .stay-grid { grid-template-columns: repeat(3, 1fr); }
  .architecture-grid article { min-height: 220px; }
  .routes { background: white; color: black; }
  .route-intro p, .route-steps span, .live-note { color: #555; }
  .route-steps li { border-color: #ccc; }
  .map-layout { display: block; min-height: 0; }
  .map-layout aside { padding: 0; }
}

/* ---- Dubai additions (mirrors the Istanbul pilot) ---- */
.boxes, .dashboard, .history, .attractions, .experiences, .planner, .eat, .travel-services, .directory, .endblock { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.section-intro { max-width: 760px; color: var(--muted); line-height: 1.7; }
.section-heading > p.section-intro { margin: 22px 0 0; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 48px; padding-bottom: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.box { display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: var(--ink); color: var(--paper); }
.box small { color: #c09a70; font-size: .63rem; letter-spacing: .16em; }
.box h2 { margin: 18px 0 10px; font: 400 1.9rem Georgia, serif; }
.box p { margin: 0 0 20px; color: rgba(255,255,255,.68); line-height: 1.6; font-size: .92rem; }
.box span { margin-top: auto; font-size: .78rem; border-bottom: 1px solid currentColor; width: fit-content; padding-bottom: 4px; }
.disclosure-note { width: min(var(--max), calc(100% - 48px)); margin: 22px auto 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.dashboard dl { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0; }
.dashboard dl > div { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dashboard dt { color: var(--bronze); font-size: .63rem; letter-spacing: .16em; margin-bottom: 12px; }
.dashboard dd { margin: 0; line-height: 1.6; }
.history { border-top: 1px solid var(--line); }
.history p { max-width: 820px; color: var(--muted); line-height: 1.8; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.visit-card, .exp-card { border: 1px solid var(--line); display: flex; flex-direction: column; background: white; }
.visit-card figure, .exp-card figure { margin: 0; }
.visit-card img, .exp-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.visit-card figcaption, .exp-card figcaption { padding: 10px 16px; font-size: .68rem; color: var(--muted); line-height: 1.5; }
.visit-card h3, .exp-card h3 { margin: 18px 20px 8px; font: 400 1.5rem Georgia, serif; }
.visit-card > p, .exp-card > p { margin: 0 20px 16px; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.visit-card dl, .exp-card dl { margin: 0 20px 18px; }
.visit-card dl > div, .exp-card dl > div { display: flex; gap: 10px; margin: 6px 0; font-size: .85rem; }
.visit-card dt, .exp-card dt { color: var(--muted); min-width: 110px; }
.visit-card dd, .exp-card dd { margin: 0; }
.card-actions { margin: auto 20px 20px; display: flex; flex-wrap: wrap; gap: 16px; }
.map-button, .ticket-button, .price-button { font-size: .78rem; text-underline-offset: 4px; }
.exp-card .primary-button { margin: auto 20px 20px; background: var(--ink); color: white; width: fit-content; }
.route-clarify, .route-distances { max-width: 900px; color: rgba(255,255,255,.68); font-size: .85rem; line-height: 1.7; }
.route-next { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.route-next p { width: 100%; margin: 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }
.routes .route-next p { color: rgba(255,255,255,.68); }
.planner-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 24px; }
.planner-form label { display: flex; flex-direction: column; gap: 8px; font-size: .72rem; letter-spacing: .1em; color: var(--muted); }
.planner-form select { min-width: 190px; padding: 12px; border: 1px solid var(--line); background: white; font: inherit; color: var(--ink); letter-spacing: 0; font-size: .9rem; }
.planner-form .primary-button { background: var(--ink); color: white; }
.planner-note { font-size: .85rem; color: var(--bronze); }
.planner-route { border: 1px solid var(--line); padding: 34px; margin-bottom: 24px; background: white; }
.planner-route.is-hidden { display: none; }
.planner-route h3 { margin: 0 0 14px; font: 400 2rem Georgia, serif; }
.route-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .82rem; }
.planner-route ol { list-style: none; margin: 20px 0; padding: 0; }
.planner-route li { display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.planner-route time { color: var(--bronze); }
.planner-route strong { font: 400 1.1rem Georgia, serif; }
.planner-route li span { color: var(--muted); font-size: .78rem; }
.planner-route li .stop-note { font-size: .95rem; }
.planner-route li .next-dist { white-space: nowrap; font-size: .85rem; }
.planner-route > p:not(.route-facts) { color: var(--muted); line-height: 1.7; }
.hotel-list, .eat-list, .dir-list { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--line); }
.hotel-list li, .eat-list li, .dir-list li { padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.hotel-list li { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.hotel-list .price-button { margin-left: auto; }
.stay h3, .directory h3 { font: 400 1.5rem Georgia, serif; margin: 34px 0 4px; }
.services-grid, .endblock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services-grid article, .endblock-grid article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.services-grid h3, .endblock-grid h3 { margin: 0; font: 400 1.4rem Georgia, serif; }
.services-grid p, .endblock-grid p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.services-grid .primary-button, .endblock-grid .primary-button { background: var(--ink); color: white; width: fit-content; margin-top: auto; }
.map-layout aside .primary-button { margin-bottom: 14px; }
.day-tour .primary-button { background: var(--ink); color: white; }
.day-tour .plan-book { list-style: none; padding: 0; }
.day-tour .plan-book li { margin: 10px 0; }
.affiliate-note { max-width: 760px; color: var(--muted); font-size: .82rem; line-height: 1.65; }

@media (max-width: 900px) {
  .boxes { grid-template-columns: 1fr; }
  .dashboard dl { grid-template-columns: 1fr 1fr; }
  .card-grid, .services-grid, .endblock-grid { grid-template-columns: 1fr 1fr; }
  .planner-route li { grid-template-columns: 58px 1fr; }
  .planner-route li span { grid-column: 2; }
}

@media (max-width: 560px) {
  .boxes, .dashboard, .history, .attractions, .experiences, .planner, .eat, .travel-services, .directory, .endblock { width: calc(100% - 32px); padding-top: 72px; padding-bottom: 72px; }
  .dashboard dl, .card-grid, .services-grid, .endblock-grid { grid-template-columns: 1fr; }
  .visit-card img, .exp-card img { height: 190px; }
  .planner-form select { min-width: 100%; }
  .hotel-list .price-button { margin-left: 0; }
}

@media print {
  .boxes, .planner-form, .route-next, .card-actions, .endblock { display: none !important; }
}
