@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700&display=swap');

:root {
  --paper: #fcf5e9;
  --surface: #fffcf4;
  --ink: #193c35;
  --muted: #53645b;
  --deep: #174640;
  --coral: #a4402a;
  --gold: #f6c36e;
  --line: #ded1bc;
  --map-water: #deebe4;
  --map-land: #fbf4e1;
  --map-border: #bdcfc0;
  --map-country: #c86e55;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Golos Text', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.06; letter-spacing: -.042em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
[hidden] { display: none !important; }

.wrap { width: min(100% - clamp(2rem, 7vw, 7rem), 78rem); margin-inline: auto; }
.section { margin-top: clamp(3.7rem, 8vw, 7rem); }
.overline { font-size: .875rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .105em; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; z-index: 5; left: 1rem; top: 1rem; background: var(--surface); padding: .6rem 1rem; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { display: flex; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.1rem; flex-wrap: wrap; }
.wordmark { text-decoration: none; white-space: nowrap; letter-spacing: -.055em; font: 800 clamp(1.45rem, 3vw, 1.75rem)/1 var(--serif); }
.wordmark span { color: var(--coral); }
.masthead nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(1rem, 3vw, 2rem); }
.masthead nav a { text-decoration: none; font-size: .875rem; font-weight: 600; }
.masthead nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(.6rem, 1.8vw, 1.3rem); margin-top: clamp(.7rem, 1.8vw, 1.3rem); }
.hero-copy {
  padding: clamp(1.55rem, 4.1vw, 4rem);
  background: var(--deep); color: var(--surface); display: flex; flex-direction: column;
  justify-content: center; align-items: start;
}
.hero-copy .overline, .tours .overline { color: var(--gold); }
.hero h1 { font-size: clamp(3.45rem, 6.35vw, 5.75rem); line-height: .96; margin: .9rem 0 1.2rem; }
.hero h1 em, .tours em { color: var(--gold); font-weight: 600; }
.hero-copy > p:not(.overline) { max-width: 29ch; font-size: clamp(1rem, 1.55vw, 1.24rem); line-height: 1.5; }
.hero-copy .button { margin-top: 1.45rem; }
.hero-art img { height: 100%; min-height: 25rem; width: 100%; object-fit: cover; object-position: 66% center; }

.button {
  width: fit-content; min-height: 2.85rem; display: inline-flex; justify-content: center; align-items: center;
  padding: .6rem 1.05rem; border: 1px solid transparent; border-radius: .25rem;
  font-size: .9rem; text-decoration: none; font-weight: 700; line-height: 1.3; text-align: center;
}
.button-gold { background: var(--gold); color: #23382c; }
.button-gold:hover { background: #ffd48f; }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--map-water); }
.plain-link { font-weight: 650; font-size: .9rem; }

.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem 1.5rem; justify-content: space-between; margin-bottom: 1.2rem; }
.section-head p, .byline { color: var(--muted); }
.map { position: relative; isolation: isolate; background: var(--map-water); border: 1px solid var(--map-border); }
.map svg { display: block; width: 100%; height: auto; }
.ej-gridlines { fill: none; stroke: var(--map-border); stroke-width: .7; }
.ej-land path { fill: var(--map-land); stroke: var(--map-border); stroke-width: .7; stroke-linejoin: round; }
.ej-land path[data-country] { fill: var(--map-country); }
.ej-land path.is-selected { fill: var(--coral); }
.map-pins { position: absolute; inset: 0; pointer-events: none; }

.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); pointer-events: auto;
  display: grid; place-items: center; width: 2.15rem; height: 2.15rem; padding: 0; border: 0;
  background: transparent; color: var(--ink); border-radius: 50%;
}
.pin::before {
  content: ''; width: .95rem; height: .95rem; border: 2px solid var(--surface);
  border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px var(--coral);
}
.pin[aria-pressed="true"] { z-index: 1; }
.pin[aria-pressed="true"]::before { background: var(--deep); box-shadow: 0 0 0 4px var(--gold); }
.pin-label {
  position: absolute; top: 50%; left: 100%; transform: translateY(-50%); pointer-events: none;
  white-space: nowrap; background: var(--surface); border: 1px solid var(--map-border); border-radius: 3px;
  padding: .13rem .42rem; font-size: .875rem; font-weight: 700; line-height: 1.25;
}
.pin[data-country="turkey"] .pin-label { left: auto; right: 85%; transform: translateY(-115%); }
.pin[data-country="egypt"] .pin-label { left: auto; right: 85%; transform: translateY(50%); }
.atlas-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .85rem; }
.country-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.country-buttons button {
  min-height: 2.75rem; padding: .35rem 1.02rem; border: 1px solid var(--line); border-radius: 2rem;
  background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600;
}
.country-buttons button:hover { border-color: var(--coral); }
.country-buttons button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: white; }
.map-credit { color: var(--muted); font-size: .8rem; }

.story-layout {
  display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(14rem, 1fr);
  column-gap: clamp(1.4rem, 5.3vw, 5rem); align-items: start; border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 5vw, 4rem);
}
.story-head .overline, .guide .overline, .first-heading .overline, .dialog-inner .overline { color: var(--coral); }
.story-head h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin-top: .4rem; }
.story-head h2:focus { outline: none; }
.byline { margin-top: .8rem; font-size: .9rem; }
.story-art { margin: 1.45rem 0; }
.story-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.story-body { max-width: 66ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.story-body p + p, .first-copy p + p, .dialog-copy p + p { margin-top: .92rem; }
.story > .plain-link { display: inline-block; margin-top: 1.3rem; }
.guide { background: var(--surface); padding: clamp(1rem, 2.4vw, 1.7rem); border-top: 4px solid var(--coral); }
.guide h3 { margin: .45rem 0 .85rem; }
.guide .button { margin-top: 1.12rem; }
.guide .plain-link { display: block; margin-top: .8rem; }

.first-trip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(1.8rem, 5vw, 4.4rem);
  display: grid; grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(1rem, 6vw, 6rem);
}
.first-heading h2 { margin-top: .55rem; }
.first-heading em { color: var(--coral); font-weight: 600; }
.first-copy { font-size: clamp(1rem, 1.5vw, 1.13rem); max-width: 63ch; }
.first-copy details { margin-top: 1.1rem; }
.first-copy summary { width: fit-content; color: var(--coral); cursor: pointer; font-weight: 700; }
.first-copy ol { padding-left: 1.2rem; }
.first-copy li + li { margin-top: .4rem; }

.tours {
  background: var(--deep); color: var(--surface); padding: clamp(1.25rem, 4.5vw, 4rem);
  display: grid; grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.2fr);
  gap: 1.5rem clamp(1rem, 6vw, 6rem);
}
.tours h2 { margin: .5rem 0 1.25rem; }
.tours-intro > p:last-child { max-width: 30ch; }
.tours .country-buttons { margin-bottom: 1.25rem; }
.tours .country-buttons button { background: transparent; color: var(--surface); border-color: #a5bdb2; }
.tours .country-buttons button:hover { border-color: var(--gold); }
.tours .country-buttons button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #23382c; }
.tours :focus-visible, .hero :focus-visible { outline-color: var(--gold); }
.tour-box h3 { letter-spacing: -.026em; margin-bottom: .75rem; }
.tour-box ul { margin: .65rem 0 0; padding-left: 1.1rem; }
.tour-note { margin: .75rem 0 1.1rem; color: #e3deca; font-size: .875rem; }
.footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 6rem); }
.footer-inner { padding-block: 1.6rem; }

dialog {
  width: min(calc(100% - 2rem), 37rem); max-height: calc(100% - 2rem); padding: 0;
  border: 1px solid var(--line); border-top: 4px solid var(--coral);
  color: var(--ink); background: var(--surface);
}
dialog::backdrop { background: rgb(16 45 39 / .72); }
.dialog-inner { position: relative; padding: clamp(1.2rem, 4.5vw, 2.15rem); }
.dialog-inner > .overline { padding-right: 2.5rem; }
.dialog-inner h2 { font-size: clamp(1.85rem, 4.65vw, 3.1rem); margin: .45rem 0 1rem; }
.dialog-foot { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.15rem; color: var(--muted); }
.close {
  position: absolute; right: .65rem; top: .65rem; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; background: transparent; color: var(--ink); font-size: 1.75rem; line-height: 1;
}
.close:hover { background: var(--paper); }
#inquiry-form { display: grid; gap: .8rem; margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .65rem; }
#inquiry-dialog label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 650; }
#inquiry-dialog input, #inquiry-dialog textarea {
  width: 100%; border: 1px solid var(--line); border-radius: .25rem; padding: .45rem .6rem;
  background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 400;
}
#inquiry-dialog textarea { resize: vertical; }
.inquiry-result { display: grid; gap: .55rem; margin-top: 1.05rem; }
#copy-status { color: var(--muted); min-height: 1.5em; font-size: .875rem; }

@media (max-width: 52rem) {
  .hero h1 { font-size: clamp(2.95rem, 7.15vw, 5.5rem); }
  .hero-art img { min-height: 21rem; }
  .story-layout { column-gap: 1.4rem; }
}
@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: clamp(3rem, 11vw, 5.25rem); }
  .hero-art img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .story-layout, .first-trip, .tours { grid-template-columns: minmax(0, 1fr); }
  .guide { margin-top: 1.65rem; }
  .pin-label { display: none; }
  .pin { width: 1.38rem; height: 1.38rem; }
  .pin::before { width: .72rem; height: .72rem; }
}
@media (max-width: 27rem) {
  .masthead nav { gap: .45rem 1rem; }
  .masthead-inner { gap: .65rem; }
  .form-row { grid-template-columns: 1fr; }
}
