/*
 * Layers (3.2.0) — inner pages in the homepage's design language.
 *
 * Loads after front-page.css + home-destinations.css (now site-wide) and
 * only adds what inner pages need on top of the homepage components:
 * hero size variants, on-photo breadcrumbs, glass chips, country pills,
 * grouped destination sections, country facts card, content pages and
 * contact cards. Tokens: style.css :root (--ink, --gold, --forest…).
 */

/* ── Hero ───────────────────────────────────────────────────────────── */
.lyr-hero { align-items: flex-end; }
.lyr-hero--tall  { min-height: clamp(500px, 62vw, 660px); }
.lyr-hero--mid   { min-height: clamp(420px, 48vw, 560px); }
.lyr-hero--short { min-height: clamp(330px, 34vw, 430px); }

/* one / two / three photo crossfades (homepage uses three) */
.lyr-hero--n1 .fp-hero__bg img { animation: none; opacity: 1; }
.lyr-hero--n2 .fp-hero__bg img { animation: lyr-x2 14s infinite; }
.lyr-hero--n2 .fp-hero__bg img:nth-child(2) { animation-delay: 7s; }
@keyframes lyr-x2 {
  0%, 4%   { opacity: 0; }
  8%, 46%  { opacity: 1; }
  54%, 100%{ opacity: 0; }
}
.lyr-hero--n2 .fp-hero__bg img:first-child { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lyr-hero .fp-hero__bg img { animation: none !important; opacity: 0; }
  .lyr-hero .fp-hero__bg img:first-child { opacity: 1; }
}
.lyr-hero .fp-hero__bg img:not([style*="object-position"]) { object-position: 50% 50%; }
.lyr-hero .fp-hero__scrim {
  background:
    linear-gradient(180deg, rgba(20,14,6,.55) 0%, rgba(20,14,6,0) 22%),
    linear-gradient(0deg, rgba(20,14,6,.78) 0%, rgba(20,14,6,.32) 48%, rgba(20,14,6,.1) 72%, transparent 100%);
}

/* Inner pages read left-to-right: copy left, pill below it. */
.lyr-hero__content { max-width: 1360px; width: 100%; }
.lyr-hero .fp-hero__copy { text-align: left; max-width: 780px; }
.lyr-hero .fp-hero__content h1 {
  margin: 10px 0 12px; max-width: 20ch;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.lyr-hero--short .fp-hero__content h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.lyr-hero .fp-hero__sub { margin: 0 0 22px; max-width: 58ch; font-size: 1.06rem; }
@media (min-width: 1024px) { .lyr-hero .fp-hero__sub { font-size: 1.04rem; } }
.lyr-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.lyr-hero__eyebrow svg { width: 22px; height: 22px; }
.lyr-hero .eyebrow--light { color: var(--lyr-accent, var(--gold)); }
.lyr-hero[style*="--lyr-accent"] .eyebrow--light { color: var(--gold); }

/* breadcrumbs sit on the photo */
.lyr-hero__crumbs { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
.lyr-hero__crumbs .breadcrumb {
  max-width: none; margin: 0; padding: 18px 0 0;
  color: rgba(255,248,230,.86); text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.lyr-hero__crumbs .breadcrumb a { color: #fff; }
.lyr-hero__crumbs .breadcrumb a:hover { color: var(--gold); }
.lyr-hero__crumbs .breadcrumb .sep { color: var(--gold); }

/* glass chips — same treatment as the homepage country panels */
.lyr-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.lyr-hero__chips a {
  display: inline-block; padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: .85rem; font-weight: 500; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.lyr-hero__chips a:hover { background: rgba(238,174,5,.28); border-color: var(--gold); }
.lyr-hero__chips a.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink-ongold, #241a06); font-weight: 600; }

.lyr-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.lyr-hero__actions .btn { border-radius: 100px; }
.btn--glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--forest); }

.lyr-hero__search { margin-top: 4px; }
.lyr-hero .act-trustline { margin: 0 0 18px; }
.lyr-hero .act-trustline li, .lyr-hero .act-trustline span { color: #f3ecdc; }

@media (max-width: 780px) {
  .lyr-hero__crumbs .breadcrumb { font-size: .78rem; padding-top: 12px; }
  .lyr-hero .fp-hero__content h1 { max-width: 100%; }
}

/* ── Section rhythm (mirrors the homepage) ─────────────────────────── */
.lyr-hero + .section,
.lyr-hero + .lyr-band { padding-top: clamp(40px, 6vw, 72px); }
.lyr-head { margin-bottom: 28px; }
.lyr-head .fp-bigheading { max-width: none; }
.lyr-head__lead { margin-top: 10px; }
.lyr-band { padding: clamp(36px, 5vw, 56px) 0; }
.lyr-band + .section { padding-top: 0; }
.lyr-band--line { border-bottom: 1px solid var(--line); }
.lyr-subhead {
  display: flex; align-items: center; gap: 14px; margin: 26px 0 14px;
  font: 600 .76rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.lyr-subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lyr-subhead:first-child { margin-top: 0; }

/* Country pills — homepage tag cloud, left-aligned with active state */
.lyr-pills { justify-content: flex-start; }
.lyr-pills a.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.lyr-pills__n {
  display: inline-block; min-width: 20px; margin-left: 4px; padding: 1px 6px; border-radius: 100px;
  background: var(--paper-2); color: var(--ink-soft); font-size: .72rem; font-weight: 600; text-align: center;
}
.lyr-pills a.is-active .lyr-pills__n { background: rgba(255,255,255,.18); color: #fff; }

/* Experience rail — homepage tiles with active state + counts */
.lyr-exp-rail .exp-tile { position: relative; }
.lyr-exp-rail .exp-tile.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.lyr-exp-rail__n {
  position: absolute; top: 8px; right: 8px; min-width: 22px; padding: 2px 6px; border-radius: 100px;
  background: var(--forest); color: #fff; font-size: .7rem; font-weight: 700; text-align: center;
}

/* Results header: filters + toolbar on one clean row */
.lyr-results .filters { margin-bottom: 18px; }
.lyr-results .filters select { background: var(--card); box-shadow: var(--aaa-elev-1); border-color: var(--line); }
.lyr-results .ltbar { margin-bottom: 26px; }
.lyr-empty {
  padding: 46px 28px; border: 1px dashed var(--line); border-radius: 18px;
  background: var(--card); text-align: center;
}
.lyr-empty h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.5rem; }
.lyr-empty p { margin: 0 auto 20px; max-width: 52ch; color: var(--ink-soft); }

/* ── Destinations hub: one section per country ─────────────────────── */
.lyr-country-sec { scroll-margin-top: 90px; }
.lyr-country-sec + .lyr-country-sec { padding-top: 0; }
.lyr-country-sec__num {
  display: inline-block; margin-right: 10px; padding-bottom: 4px;
  border-bottom: 2px solid var(--gold); color: var(--gold-deep);
  font: 600 .8rem/1 var(--font-body); letter-spacing: .2em;
}
.lyr-country-sec__links { display: flex; flex-wrap: wrap; gap: 10px; }
.lyr-country-sec__links .btn { border-radius: 100px; padding-block: 9px; font-size: .9rem; }
.lyr-jump { position: sticky; top: 0; z-index: 20; background: rgba(255,248,230,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lyr-jump .fp-tagcloud__list { flex-wrap: nowrap; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.lyr-jump .fp-tagcloud__list::-webkit-scrollbar { display: none; }
.lyr-jump .fp-tagcloud__list a { white-space: nowrap; padding: 6px 14px; }

/* ── Country hub (/country/<slug>/) ────────────────────────────────── */
.lyr-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lyr-intro__copy p { font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }
.lyr-intro__copy p:first-of-type { font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.55 var(--font-display); color: var(--ink); }
.lyr-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.lyr-checks li { display: flex; gap: 12px; align-items: flex-start; }
.lyr-checks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink-ongold, #241a06); font-size: .78rem; font-weight: 700; margin-top: 2px;
}
.lyr-facts {
  position: relative; overflow: hidden; padding: 28px; border-radius: 18px;
  background: var(--forest-deep); color: var(--cream); box-shadow: var(--shadow);
}
.lyr-facts .eyebrow { color: var(--gold); }
.lyr-facts h3 { margin: 6px 0 18px; color: #fff; font-family: var(--font-display); font-size: 1.5rem; }
.lyr-facts__map { position: absolute; right: -10px; top: -10px; width: 46%; max-width: 220px; opacity: .22; pointer-events: none; }
.lyr-facts__map svg { width: 100%; height: auto; }
.lyr-facts__map svg * { stroke: var(--gold) !important; }
.lyr-facts dl { position: relative; margin: 0; display: grid; gap: 0; }
.lyr-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); }
.lyr-facts dt { color: #d9c79a; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.lyr-facts dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.lyr-facts dd a { color: var(--gold); }
.lyr-facts .btn { margin-top: 20px; width: 100%; justify-content: center; }
@media (max-width: 900px) { .lyr-intro { grid-template-columns: 1fr; } }

/* ── Content pages ─────────────────────────────────────────────────── */
.lyr-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 60px); align-items: start; }
.lyr-page--full { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.lyr-page__body.entry-content > :first-child { margin-top: 0; }
.lyr-page__body.entry-content > p:first-of-type { font: 500 clamp(1.12rem, 1.5vw, 1.28rem)/1.6 var(--font-display); color: var(--ink); }
.lyr-page__body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--forest); }
.lyr-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.lyr-aside__card { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--aaa-elev-1); }
.lyr-aside__card--dark { background: var(--forest-deep); color: var(--cream); border-color: transparent; }
.lyr-aside__card--dark h3 { color: #fff; }
.lyr-aside__card h3 { margin: 4px 0 10px; font-family: var(--font-display); font-size: 1.2rem; }
.lyr-aside__card p { margin: 0 0 14px; font-size: .92rem; color: inherit; opacity: .9; }
.lyr-aside__card .btn { width: 100%; justify-content: center; border-radius: 100px; }
.lyr-aside__card .btn + .btn { margin-top: 8px; }
.lyr-aside__list { list-style: none; margin: 0; padding: 0; }
.lyr-aside__list li + li { border-top: 1px solid var(--line); }
.lyr-aside__list a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: .94rem; }
.lyr-aside__list a::after { content: "→"; color: var(--gold-deep); }
.lyr-aside__list a[aria-current] { color: var(--forest); font-weight: 700; }
@media (max-width: 960px) {
  .lyr-page { grid-template-columns: 1fr; }
  .lyr-aside { position: static; }
}

/* Contact cards (homepage "Why us" feature cards, light) */
.lyr-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lyr-contact a {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--aaa-elev-1);
  color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lyr-contact a:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--aaa-elev-2); }
.lyr-contact__k { font: 600 .72rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.lyr-contact__v { font: 600 1.08rem/1.35 var(--font-display); word-break: break-word; }
.lyr-contact__i { font-size: 1.5rem; }
@media (max-width: 980px) { .lyr-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lyr-contact { grid-template-columns: 1fr; } }
.contact-map__frame iframe { width: 100%; min-height: 420px; border-radius: 18px; display: block; }

/* CTA band buttons */
.lyr-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lyr-cta__btns .btn { border-radius: 100px; }

/* Experience hub tiles sit on the homepage paper */
.aaat-layered .exp-feature { box-shadow: var(--shadow); }

/* Hide the old dark archive header if any template still prints one */
.aaat-layered .lyr-hero ~ .archive-head { display: none; }

/* Homepage experience rail, also on /experiences/ (where experiences.css
   reuses the .exp-tile name for its big cards). */
@media (min-width: 681px) {
  .lyr-exp-rail { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}
.lyr-exp-rail .exp-tile {
  align-items: center; padding: 16px 8px; overflow: visible;
  box-shadow: none; border-radius: var(--radius); text-decoration: none;
}
.lyr-exp-rail .exp-tile:hover { box-shadow: var(--shadow-sm); }

.lyr-trustline { margin: -10px 0 22px; }

/* Single destination body */
.dest-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 20px; }
.dest-body > h2, .dest-body #regions { font-family: var(--font-display); color: var(--forest); font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.6em; }
.dest-overview { max-width: 820px; }
.dest-overview > p:first-child { font: 500 clamp(1.12rem, 1.5vw, 1.28rem)/1.6 var(--font-display); color: var(--ink); }

/* Eyebrow on bright photos: dark glass tab so the gold always reads */
.lyr-hero .lyr-hero__eyebrow {
  padding: 6px 12px 6px 10px; border-radius: 100px;
  background: rgba(20,14,6,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-shadow: none;
}

/* Keep hero copy clear of the on-photo breadcrumbs */
.lyr-hero { padding-top: 64px; }
@media (max-width: 780px) { .lyr-hero { padding-top: 52px; } .lyr-hero__chips { margin-bottom: 16px; } }
.lyr-facts__map { opacity: .16; }
