/* ============================================================
   SHARED SHELL CSS
   Contains layout fundamentals, header, footer, mobile drawer, 
   and bottom tab bar for all Garnet HTML prototypes.
   ============================================================ */

/* 1. BASE + TOKENS */
:root {
  --bar-h: 60px;
  --nav-h: 72px;
  --tabbar-h: 74px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --card-r: 22px;
  --ink: #111110;
  --muted: #6b6b66;
  --line: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Readex Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 1.25rem);
}
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
    background: var(--paper);
  }
}

/* 2. SITE HEADER */
.site-header {
  position: sticky;
  top: 0;
  /* Above page-level sticky elements (e.g. hotel-single tabs .fx-tabs-wrap at z-index 40)
     and below the off-canvas drawer (z-index 60). The currency dropdown inside the
     header is bounded by this stacking context. */
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(var(--safe-top) + 0.85rem) 1.1rem 0.8rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
.site-header__logo svg { width: 22px; height: 22px; color: var(--garnet-red); }
.site-header__logo span {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* WordPress custom logo (uploaded via Customizer / Site Identity) */
.site-header__logo-wrapper { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__logo-wrapper .custom-logo-link { display: inline-flex; align-items: center; }
.site-header__logo-wrapper .custom-logo {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}
.site-header__nav { display: none; }
.site-header__cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--garnet-red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__cta:hover { filter: brightness(0.92); }
.site-header__cta svg { width: 14px; height: 14px; }
.site-header__menu {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
}
.site-header__menu svg { width: 20px; height: 20px; }

.site-header__currency-wrap {
  display: none;
  position: relative;
  flex-shrink: 0;
}
.site-header__currency-label,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header__currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  background: var(--garnet-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
}
.site-header__currency-btn:hover { filter: brightness(0.88); }
.site-header__currency-btn svg { opacity: 0.8; transition: transform 0.2s; }
.site-header__currency-wrap.is-open .site-header__currency-btn svg { transform: rotate(180deg); }

.site-header__currency-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--garnet-red);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  z-index: 50;
  overflow: hidden;
}
.site-header__currency-wrap.is-open .site-header__currency-list { display: block; }
.site-header__currency-list li {
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.site-header__currency-list li:hover { background: rgba(255,255,255,0.15); color: #fff; }
.site-header__currency-list li.is-active { color: #fff; background: rgba(255,255,255,0.12); }

@media (min-width: 1024px) {
  .site-header {
    height: var(--nav-h);
    padding: 0 2.5rem;
  }
  .site-header__logo { flex-shrink: 0; }
  .site-header__logo svg { width: 26px; height: 26px; }
  .site-header__logo span { font-size: 1.25rem; }
  .site-header__logo-wrapper .custom-logo { max-height: 46px; }
  .site-header__nav {
    display: flex;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    justify-content: center;
    gap: 1.25rem;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
  }
  @media (min-width: 1200px) {
    .site-header__nav { gap: 1.75rem; }
  }
  .site-header__nav a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.15s;
  }
  .site-header__nav a:hover,
  .site-header__nav a.is-active { color: var(--garnet-red); }

  .site-header__has-sub {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .site-header__has-sub > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
  }
  .site-header__has-sub > a svg {
    opacity: 0.45;
    transition: transform 0.25s, opacity 0.25s;
  }
  .site-header__has-sub:hover > a svg {
    transform: rotate(180deg);
    opacity: 0.8;
  }
  .site-header__has-sub:hover > a { color: var(--garnet-red); }
  .site-header__sub {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 180px;
    padding: 0.55rem 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
  }
  .site-header__sub::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
  }
  .site-header__has-sub:hover .site-header__sub {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  .site-header__sub a {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink-soft);
    transition: color 0.15s, background 0.15s;
    border-radius: 0;
  }
  .site-header__sub a:hover {
    color: var(--garnet-red);
    background: rgba(183, 28, 28, 0.05);
  }

  .site-header__currency-wrap { display: block; }
  .site-header__cta {
    display: inline-flex;
    flex-shrink: 0;
    padding: 0.58rem 1.25rem;
    font-size: 0.9rem;
  }
  .site-header__menu { display: none; }
}
@media (min-width: 1280px) {
  .site-header__cta {
    padding: 0.62rem 1.5rem;
    font-size: 0.95rem;
  }
}
@media (min-width: 1440px) {
  .site-header__nav { gap: 2rem; }
  .site-header__cta {
    padding: 0.65rem 1.65rem;
    font-size: 0.98rem;
  }
}

/* 3. RIBBON (desktop only seasonal announcement) */
.ribbon { display: none; }
@media (min-width: 1024px) {
  .ribbon {
    display: block;
    background: var(--garnet-red);
    color: #fff;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 50;
  }
  .ribbon b {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .ribbon a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 0.35rem;
  }
}

/* 4. FOOTER */
.site-footer {
  padding: 2.5rem 1.1rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  background: var(--surface);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.site-footer__brand svg { width: 22px; height: 22px; color: var(--garnet-red); }
.site-footer__brand span { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.site-footer__brand .custom-logo-link { display: inline-flex; align-items: center; }
.site-footer__brand .custom-logo { max-height: 32px; width: auto; object-fit: contain; }
.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-footer__logo-img {
  display: block;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-footer__logo-wrapper--customizer .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.site-footer__logo-wrapper--customizer .custom-logo {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}
.site-footer__pill { margin-top: 0.75rem; display: inline-block; }
.site-footer__sig {
  margin: 1rem 0 0;
  font-size: 0.72rem;
}
.site-footer__grid { display: none; }

@media (min-width: 1024px) {
  .site-footer {
    background: var(--garnet-red);
    color: rgba(255,255,255,0.62);
    padding: 5rem 2.5rem 2rem;
    text-align: left;
    margin-top: 0;
  }
  .site-footer > .site-footer__brand,
  .site-footer > .site-footer__pill,
  .site-footer > .site-footer__sig,
  .site-footer > .site-footer__tagline {
    display: none;
  }
  .site-footer__grid {
    display: grid;
    max-width: 1320px;
    margin: 0 auto;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
  }
  .site-footer__col h4 {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.1rem;
    font-weight: 600;
  }
  .site-footer__col a {
    display: block;
    padding: 0.3rem 0;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
  }
  .site-footer__col a:hover { color: #fff; }
  .site-footer__col p {
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.6;
  }
  .site-footer__col .site-footer__brand {
    display: inline-flex;
    margin-bottom: 0.6rem;
  }
  .site-footer__col .site-footer__brand span { color: #fff; }
  .site-footer__col p.site-footer__col-tagline {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 1rem;
  }
  /* Dedicated footer logo: no filter (asset is for dark bg). Customizer fallback: invert for colour logo on ink. */
  .site-footer__col .site-footer__brand .site-footer__logo-img {
    max-height: 36px;
    filter: none;
  }
  .site-footer__col .site-footer__brand .site-footer__logo-wrapper--customizer .custom-logo {
    max-height: 36px;
    filter: brightness(0) invert(1);
  }
  .site-footer__foot {
    max-width: 1320px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
  }
}
.site-footer__foot { display: none; }
@media (min-width: 1024px) { .site-footer__foot { display: flex; } }

/* 5. BOTTOM TAB BAR */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px rgba(0,0,0,0.05);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--garnet-red); }

@media (min-width: 1024px) {
  .tabbar { display: none; }
}

/* 6. NAV DRAWER */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(82%, 340px);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.12);
  padding: calc(var(--safe-top) + 1.2rem) 0 calc(var(--safe-bottom) + 1rem);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.2rem 1rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head .site-header__logo-wrapper,
.drawer__head > a.site-header__logo {
  flex: 1 1 auto;
  min-width: 0;
}
.drawer__currency {
  flex: 0 0 auto;
  max-width: 38%;
}
.drawer__head .site-header__logo span { font-size: 1.2rem; }
.drawer__close {
  width: 36px; height: 36px;
  border: none;
  background: #f3f3f5;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.drawer__close svg { width: 16px; height: 16px; }
.drawer__links {
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
}
.drawer__link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.drawer__link svg {
  width: 20px; height: 20px; color: var(--muted);
  flex-shrink: 0;
}
.drawer__link:hover { background: #f8f8fa; }
.drawer__link.is-active {
  color: var(--garnet-red);
  background: var(--garnet-red-soft);
}
.drawer__link.is-active svg { color: var(--garnet-red); }
.drawer__foot {
  padding: 1rem 1.4rem 0;
  border-top: 1px solid var(--line);
}
.drawer__cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--garnet-red);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.drawer__foot p {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* 7. SHARED HERO (V5 Design Language) */
.hero { display: flex; flex-direction: column; }
.hero__photo {
  position: relative;
  height: 200px;
  margin: 0.8rem 1.1rem 0;
  border-radius: var(--card-r);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo::before, .hero__photo::after {
  content: '';
  position: absolute; left: 70%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface);
  transform: translateX(-50%);
  z-index: 3; pointer-events: none;
}
.hero__photo::before { top: -11px; }
.hero__photo::after { bottom: -11px; }
.hero__pass-outline {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; display: block;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(600px 320px at 70% 30%, rgba(255, 220, 180, 0.35), transparent 60%),
    radial-gradient(600px 320px at 20% 80%, rgba(50, 20, 15, 0.35), transparent 60%),
    linear-gradient(135deg, #c28668 0%, #8a3d2a 45%, #3b1812 100%);
}
.hero__sun {
  display: none; position: absolute; right: 8%; top: 18%;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #ffe1b3 0%, #f5c795 40%, transparent 70%);
  z-index: -1; opacity: 0.7; pointer-events: none;
}
.hero__dest-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity; opacity: 0.5; z-index: -1;
}
.hero__overlay { display: none; }
.hero__inner {
  padding: 1.4rem 1.1rem 0;
  display: flex; flex-direction: column; gap: 1rem;
}

@media (min-width: 768px) {
  .hero__photo { height: 340px; margin: 1rem 2rem 0; border-radius: 28px; }
  .hero__inner { padding: 2rem 2rem 0; }
}
@media (min-width: 1024px) {
  .hero__photo::before, .hero__photo::after { display: none; }
  .hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: grid; place-items: center; isolation: isolate;
    color: #fff; overflow: hidden; padding: 5rem 2rem 5rem;
  }
  .hero__photo {
    position: absolute; inset: 0; height: auto; margin: 0;
    border-radius: 0; z-index: -2;
  }
  .hero__overlay {
    display: block; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.55) 100%);
  }
  .hero__sun { display: block; }
}
