/* Atlas pages — a photo journal, a place index and a roadbook.
   Only presentation lives here. Destination photography retains its original
   attribution, offline illustration, crop and separate save action. */
:where(.screen, .details-dialog) {
  --atlas-paper: #f8f7f1;
  --atlas-sheet: #fffefa;
  --atlas-ink: #172d29;
  --atlas-jade: #38665c;
  --atlas-rule: #cbd3c9;
  --atlas-wash: #e9eee5;
  --atlas-type: Georgia, "Times New Roman", serif;
  --atlas-gutter: clamp(1rem, 4vw, 2.25rem);
}

/* Section openers: textual folios, not competing colored billboards. */
:is([data-screen="explore"], [data-screen="saved"], [data-screen="guide"], [data-screen="food"], [data-screen="stay"], [data-screen="trips"]) .screen-intro {
  min-height: 0;
  padding: clamp(2rem, 5vw, 4rem) var(--atlas-gutter) clamp(1.5rem, 4vw, 2.5rem);
  border: 0; border-bottom: 1px solid var(--atlas-rule);
  background: var(--atlas-paper); color: var(--atlas-ink);
}
:is([data-screen="explore"], [data-screen="saved"], [data-screen="guide"], [data-screen="food"], [data-screen="stay"], [data-screen="trips"]) .screen-intro h1 {
  margin: 0; max-width: 18ch; font: normal clamp(2.75rem, 7.7vw, 5rem)/1 var(--atlas-type);
  letter-spacing: -.055em; text-transform: none; text-wrap: balance;
}
:is([data-screen="explore"], [data-screen="saved"], [data-screen="guide"], [data-screen="food"], [data-screen="stay"], [data-screen="trips"]) .screen-intro > .eyebrow {
  color: var(--atlas-jade); margin-bottom: .85rem;
}
:is(.guide-screen, .food-screen, .stay-screen, [data-screen="trips"], [data-screen="saved"]) .screen-intro > p:last-child {
  margin: 1rem 0 0; font-weight: 450; line-height: 1.55; max-width: 52ch;
}
.screen .guide-intro::before, .screen .guide-intro::after,
.screen .food-intro::after, .screen .stay-intro::after { content: none; }
/* These two already-bundled photographs are CC0; the full source record is
   in photo-credits.html. Opaque ink is the fallback without imagery. */
.guide-screen .screen-intro.guide-intro, [data-screen="trips"] .screen-intro.trips-intro {
  border: 0; color: #fffef8; background-color: var(--atlas-ink);
  background-image: linear-gradient(90deg,rgba(14,33,29,.92),rgba(14,33,29,.77) 50%,rgba(14,33,29,.44)),url("/destinations/misfat-al-abriyeen.webp");
  background-position: center,center 53%; background-size: cover;
}
[data-screen="trips"] .screen-intro.trips-intro {
  background-image: linear-gradient(90deg,rgba(14,33,29,.94),rgba(14,33,29,.78) 50%,rgba(14,33,29,.46)),url("/destinations/masirah-island.webp");
}
.guide-screen .screen-intro.guide-intro > .eyebrow,
[data-screen="trips"] .screen-intro.trips-intro > .eyebrow { color: #e4f4a7; }
.screen .large-search {
  width: min(100%, 37rem); margin-top: 1.5rem; border-radius: .75rem; height: 3.25rem;
  border: 1px solid #98aaa0; color: var(--atlas-jade); background: var(--atlas-sheet);
}
.large-search:focus-within { outline: 3px solid var(--atlas-jade); outline-offset: 2px; }
.screen .large-search input { font-weight: 450; }
.screen :is(.filter, .trip-tab) {
  min-height: 44px; padding: .45rem .9rem; background: var(--atlas-sheet);
  border: 1px solid #9baea3; color: var(--atlas-ink); font-size: .875rem; font-weight: 600;
}
.screen :is(.filter, .trip-tab).is-active { border-color: var(--atlas-jade); color: #fff; background: var(--atlas-jade); }
.screen .filter-row { flex-wrap: wrap; overflow: visible; }

/* Photographs and their captions read as one card. */
.screen .place-list, .screen .trip-list { padding: clamp(1rem, 3vw, 1.75rem) var(--atlas-gutter); gap: 1.25rem; }
.screen .place-list:empty { padding: 0; }
.screen .place-card, .screen .place-card.compact {
  min-height: 0; min-width: 0;
  background: var(--atlas-sheet); border: 1px solid var(--atlas-rule); border-radius: 1rem;
  box-shadow: 0 3px 12px rgb(23 45 41 / 5%);
}
.screen .place-card .destination-media, .screen .place-card > .place-art {
  height: auto; aspect-ratio: 1.65; border-bottom: 1px solid var(--atlas-rule);
}
.screen .place-card .destination-art-stamp { width: 46px; height: 46px; border: 1px solid #fff; }
.screen .place-card .destination-art-stamp .place-art { transform: scale(.22); }
:is(.screen, .details-dialog) .destination-credit {
  left: .6rem; bottom: .6rem; padding: .22rem .4rem; max-width: calc(100% - 5rem);
  background: rgb(15 34 31 / 88%); color: #fff; font: 500 .75rem/1.3 system-ui,sans-serif; border-radius: .25rem;
}
.screen .place-body { padding: 1rem 1.15rem 1.25rem; background: var(--atlas-sheet); }
.screen .place-meta { align-items: baseline; flex-wrap: wrap; gap: .4rem; color: var(--atlas-jade); font-size: .75rem; font-weight: 650; }
.screen .place-body h3 { margin: 0 0 .45rem; color: var(--atlas-ink); font: 500 1.9rem/1.08 var(--atlas-type); letter-spacing: -.04em; text-transform: none; }
.screen .place-body p { font-size: .96rem; line-height: 1.5; color: #42544d; }
.screen .place-card.is-premium-locked .place-body p { opacity: 1; }
.screen .place-card .heart-button { top: .65rem; right: .65rem; background: #fffef8; color: var(--atlas-ink); border: 1px solid #61766b; }
.screen .place-card .heart-button.is-saved { color: var(--lime); background: var(--atlas-ink); border-color: var(--atlas-ink); }
.screen .place-card .premium-card-badge {
  top: .8rem; left: .7rem; max-width: calc(100% - 4.75rem); color: #e4f4a7;
  border: 0; border-radius: .35rem; background: #172d29; font-size: .7rem;
}
.screen .empty-state { margin: clamp(1rem, 3vw, 2rem) var(--atlas-gutter); padding: 2rem 1rem; border: 1px dashed #9faea3; border-radius: 1rem; }
.screen .empty-state span { color: var(--atlas-jade); font-size: 2.75rem; }
.screen .empty-state h2 { font: normal 1.9rem/1.14 var(--atlas-type); letter-spacing: -.035em; text-transform: none; }

/* Guide entries: one broad editorial spread, lighter-weight indices below. */
.screen :is(.guide-choice-grid, .food-choice-grid, .stay-principles) { gap: .75rem; border: 0; padding: 1.25rem var(--atlas-gutter); }
.screen :is(.guide-choice-card, .food-choice-card, .stay-principles article) {
  border: 1px solid var(--atlas-rule); border-radius: .9rem; padding: clamp(.95rem,3vw,1.75rem);
  min-height: 12.5rem; background: var(--atlas-wash); color: var(--atlas-ink);
}
.screen :is(.guide-choice-card.is-food, .food-choice-card.is-lime) { background: #ece9dd; }
.screen :is(.guide-choice-card.is-stay, .food-choice-card.is-dark) { background: #dce9df; color: var(--atlas-ink); }
.screen .guide-choice-copy { padding-top: 1.75rem; }
.screen .guide-choice-symbol { width: 2.3rem; height: 2.3rem; border: 1px solid currentColor; color: var(--atlas-jade); }
.screen :is(.guide-choice-copy strong, .food-choice-card h2, .stay-principles h2) {
  font: normal clamp(1.65rem,4.5vw,2.8rem)/1.06 var(--atlas-type); text-transform: none; letter-spacing: -.04em;
}
.screen :is(.guide-choice-copy small,.food-choice-card p,.stay-principles p) { font-size: .93rem; line-height: 1.47; }
.screen .guide-choice-card > b { font-weight: 450; color: var(--atlas-jade); }
.screen .guide-switch { border-bottom: 1px solid var(--atlas-rule); }
.screen .guide-switch button { min-height: 48px; border: 0; background: var(--atlas-paper); font-size: .8rem; }
.screen .guide-switch button.is-active { background: var(--atlas-wash); box-shadow: inset 0 -3px var(--atlas-jade); color: var(--atlas-ink); }
.screen :is(.guide-promise-card,.food-method-card,.stay-partnership-policy,.custom-trip-card) {
  border: 1px solid var(--atlas-rule); border-radius: 1rem; box-shadow: none; padding: clamp(1.25rem,4vw,2.5rem); margin-inline: var(--atlas-gutter);
}
.screen .guide-promise-card { background: var(--atlas-sheet); }
.screen :is(.guide-promise-card,.food-method-card,.stay-partnership-policy,.custom-trip-card) h2 {
  font: normal clamp(1.85rem,5vw,3rem)/1.08 var(--atlas-type); letter-spacing: -.04em; text-transform: none;
}
.screen :is(.food-method-card,.stay-partnership-policy,.custom-trip-card) { background: var(--atlas-ink); color: var(--atlas-paper); }
.screen :is(.food-method-card,.stay-partnership-policy,.custom-trip-card) h2 { color: var(--atlas-paper); }
.screen :is(.food-section,.stay-section,.stay-featured-section) { padding: 1.75rem var(--atlas-gutter); border-bottom: 1px solid var(--atlas-rule); }
.screen :is(.food-section,.stay-section,.stay-featured-section) .section-heading h2 {
  font: normal clamp(1.75rem,4.2vw,2.55rem)/1.08 var(--atlas-type); letter-spacing: -.035em; text-transform: none;
}
.screen :is(.restaurant-section,.stay-featured-section,.stay-featured-section.is-candidate) { background: var(--atlas-wash); }
.screen .stay-featured-section.is-online { background: var(--atlas-paper); }
.screen .dish-card, .screen .stay-property-card {
  min-height: 0; border-radius: .75rem; border: 1px solid var(--atlas-rule); background: var(--atlas-sheet); color: var(--atlas-ink);
}
.screen .dish-card { gap: .55rem; padding: 1rem; min-height: 9.5rem; }
.screen .dish-card.is-dark, .screen .stay-property-card.is-dark { background: #e9eee5; color: var(--atlas-ink); }
.screen .dish-card strong, .screen .stay-property-copy strong {
  font: normal clamp(1.35rem,3vw,1.9rem)/1.1 var(--atlas-type); letter-spacing: -.03em; text-transform: none;
}
.screen .dish-card small, .screen .stay-property-copy em { font-size: .875rem; line-height: 1.42; }
.screen .dish-card.is-premium-locked::after { background: #edf4dc; color: var(--atlas-ink); border: 0; border-radius: .3rem; font-size: .66rem; }
.screen :is(.restaurant-area-list,.stay-area-list), .details-dialog :is(.restaurant-dialog-list,.stay-area-property-list) {
  border: 1px solid var(--atlas-rule); overflow: hidden; border-radius: .85rem;
}
.screen :is(.restaurant-area-list,.stay-area-list) button, .details-dialog :is(.restaurant-dialog-list,.stay-area-property-list) button {
  background: var(--atlas-sheet); border-color: var(--atlas-rule); color: var(--atlas-ink);
}
.screen :is(.restaurant-area-list,.stay-area-list) button strong, .details-dialog :is(.restaurant-dialog-list,.stay-area-property-list) strong {
  font: normal 1.4rem/1.1 var(--atlas-type); letter-spacing: -.025em; text-transform: none;
}
.screen :is(.restaurant-area-list,.stay-area-list) button small, .details-dialog :is(.restaurant-dialog-list,.stay-area-property-list) small { font-size: .875rem; line-height: 1.4; }
.screen :is(.stay-coming-badge,.stay-verified-date,.stay-property-status), .details-dialog .stay-property-status {
  border-radius: .35rem; font-size: .7rem; line-height: 1.3; white-space: normal; text-align: left;
}
.screen .stay-coming-badge, .screen .stay-property-status.status-online { background: var(--atlas-wash); color: var(--atlas-ink); }
.screen .stay-property-card.is-dark .stay-property-copy small { color: var(--atlas-jade); }
.screen .stay-property-copy small, .screen .stay-property-number { font-size: .75rem; }
.screen .stay-editorial-status, .details-dialog :is(.stay-source-note,.selection-source-note) { font-size: .8125rem; line-height: 1.52; }
.screen .stay-property-card:hover, .screen .stay-property-card:focus-visible { transform: none; box-shadow: inset 0 0 0 1px var(--atlas-jade); }

/* A route is a sequence, not another gallery. Keep its spine and day markers. */
.screen .trip-tabs { padding-inline: var(--atlas-gutter); flex-wrap: wrap; }
.screen .trip-intro-note {
  margin-inline: var(--atlas-gutter); padding: .65rem 1rem; border: 0; border-inline-start: 3px solid var(--atlas-jade);
  background: var(--atlas-wash); color: var(--atlas-ink);
}
.trip-intro-note span { font-size: .9rem; }
.screen .trip-card { border: 1px solid var(--atlas-rule); border-radius: 1rem; background: var(--atlas-sheet); }
.screen .trip-card .trip-head { background: var(--atlas-sheet); gap: .85rem; padding: 1.2rem; }
.screen .trip-days {
  min-width: 2.75rem; color: var(--atlas-jade); -webkit-text-stroke: 0;
  font: italic 2.8rem/.95 var(--atlas-type); letter-spacing: -.07em; font-variant-numeric: lining-nums;
}
.screen .trip-days small { margin-top: .3rem; font: 600 .72rem/1.2 system-ui,sans-serif; color: var(--atlas-jade); letter-spacing: .07em; }
.screen .trip-head h3, .screen .roadbook-stage h4 { font: normal 1.65rem/1.12 var(--atlas-type); letter-spacing: -.035em; text-transform: none; }
.screen .trip-head p, .screen :is(.roadbook-path,.roadbook-note) { font-size: .9rem; line-height: 1.5; }
.screen .trip-total, .screen .roadbook-stage-head > strong { background: var(--atlas-wash); color: var(--atlas-jade); border-radius: .25rem; font-size: .75rem; }
.screen :is(.trip-toggle,.trip-lock-symbol) { border: 1px solid var(--atlas-rule); background: var(--atlas-wash); color: var(--atlas-jade); }
.screen .trip-premium-lock { min-height: 4rem; grid-template-columns: auto minmax(0,1fr) auto; background: var(--atlas-ink); }
.screen .trip-premium-lock > strong { font-weight: 550; font-size: .875rem; }
.screen .roadbook-list li:not(:last-child)::after { width: 1px; background: #aec0b4; }
.screen .roadbook-marker { border: 1px solid #8b9f93; background: var(--atlas-wash); color: var(--atlas-ink); }
.screen .roadbook-stage { border: 1px solid var(--atlas-rule); border-radius: .75rem; background: var(--atlas-sheet); }
.screen .roadbook-stage-head { flex-wrap: wrap; }
.screen .roadbook-stage h4 { font-size: 1.3rem; }
.screen .roadbook-stage .maps-button { background: var(--atlas-jade); border: 0; border-radius: .5rem; color: #fff; font-size: .78rem; }
.screen .trip-distance-note { border-color: var(--atlas-rule); background: var(--atlas-wash); font-size: .8rem; }

/* Reuse the reading treatment inside sheets without changing modal behavior. */
.details-dialog { border: 1px solid var(--atlas-rule); border-radius: 1.05rem; background: var(--atlas-sheet); }
.details-dialog::backdrop { background: rgb(14 31 28 / 66%); }
.details-dialog .dialog-close { background: var(--atlas-sheet); color: var(--atlas-ink); border: 1px solid #8da296; }
.details-dialog .dialog-hero:not(.money-dialog-hero,.tides-dialog-hero,.moon-dialog-hero) {
  background: var(--atlas-wash); color: var(--atlas-ink); border-bottom: 1px solid var(--atlas-rule);
  padding: 1.4rem clamp(1.2rem,4vw,2rem);
}
.details-dialog .dialog-hero h2 {
  font: normal clamp(2rem,6vw,3.3rem)/1.04 var(--atlas-type); text-transform: none; letter-spacing: -.045em;
}
.details-dialog :is(.food-dialog-hero,.stay-dialog-hero) p { color: var(--atlas-jade); }
.details-dialog .place-experience, .details-dialog .tip-box { background: var(--atlas-ink); color: var(--atlas-paper); border-radius: .7rem; }
.details-dialog .place-experience h3 { font: normal 1.7rem/1.12 var(--atlas-type); text-transform: none; }
.details-dialog .editorial-detail-grid { border: 1px solid var(--atlas-rule); border-radius: .75rem; overflow: hidden; }
.details-dialog .editorial-detail-grid > div { min-height: 0; border-color: var(--atlas-rule); }
.details-dialog .editorial-detail-grid > div:last-child { background: var(--atlas-wash); }
.details-dialog .editorial-detail-grid p { font-size: .94rem; margin-top: 1rem; }
.details-dialog .official-links a { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid #8fa79a; border-radius: .4rem; font-size: .75rem; }

@media (hover:hover) {
  .screen .place-card:hover { border-color: #779286; }
  .screen :is(.guide-choice-card,.dish-card):hover { box-shadow: inset 0 0 0 1px var(--atlas-jade); }
}
@media (max-width: 420px) {
  .screen .trip-card .trip-head { gap: .65rem; padding: 1rem; }
  .screen .trip-head h3 { font-size: 1.4rem; }
  .screen .trip-premium-lock { padding: .9rem; column-gap: .65rem; }
  .screen .trip-premium-lock > span { letter-spacing: .045em; }
}
@media (max-width: 360px) {
  .screen :is(.guide-choice-card,.food-choice-card,.stay-principles article) { min-height: 9rem; }
  .screen .guide-choice-copy { padding-top: 1rem; }
}
