/* ==========================================================================
   Echoes — booking & navigation layer (2026-10)
   Loaded last on every page. Covers:
   - sticky header that turns ivory on scroll
   - stronger "Check availability" button
   - booking bar (dates / guests → WebHotelier)
   - suite "Check availability" strip reused on every suite
   ========================================================================== */

:root {
  --eb-navy: #07131d;
  --eb-ink: #16222b;
  --eb-ivory: #f7f4ee;
  --eb-sand: #c8ad86;
  --eb-line: rgba(7, 19, 29, .12);
  --eb-serif: "Baskerville", "Iowan Old Style", "Times New Roman", serif;
  --eb-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- 29 · Sticky header ---------- */
.nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background-color .35s ease, color .35s ease, height .35s ease,
              box-shadow .35s ease, border-color .35s ease;
}

.nav.is-scrolled:not(.open) {
  height: 74px;
  min-height: 74px;
  color: var(--eb-ink);
  background: rgba(247, 244, 238, .97);
  border-bottom: 1px solid var(--eb-line);
  box-shadow: 0 10px 34px rgba(7, 19, 29, .07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav.is-scrolled:not(.open) .logo img {
  filter: brightness(0) opacity(.86);
}

.nav.is-scrolled:not(.open) .nav-center > a,
.nav.is-scrolled:not(.open) .suites-trigger,
.nav.is-scrolled:not(.open) .lang {
  color: var(--eb-ink) !important;
  text-shadow: none !important;
}

.nav.is-scrolled:not(.open) .menu {
  color: var(--eb-ink);
}

/* ---------- 25 · Stronger "Check availability" ---------- */
.nav .reserve {
  display: inline-flex;
  align-items: center;
  gap: 14px !important;
  padding: 13px 20px !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  border-radius: 1px;
  color: var(--eb-ink) !important;
  background: rgba(247, 244, 238, .94);
  text-shadow: none !important;
  box-shadow: 0 6px 22px rgba(2, 10, 16, .18);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.nav .reserve i { color: #9a7a4c; font-style: normal; }

.nav .reserve:hover,
.nav .reserve:focus-visible {
  color: #fff !important;
  background: var(--eb-navy);
  border-color: var(--eb-navy) !important;
}

.nav .reserve:hover i,
.nav .reserve:focus-visible i { color: var(--eb-sand); }

.nav.is-scrolled:not(.open) .reserve {
  color: #fff !important;
  background: var(--eb-navy);
  border-color: var(--eb-navy) !important;
  box-shadow: none;
}

.nav.is-scrolled:not(.open) .reserve i { color: var(--eb-sand); }

.reserve .eb-short { display: none; }

@media (max-width: 760px) {
  /* one row on every page: logo · Book · burger (some pages use a 3-column grid) */
  .nav:not(.open) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: none !important;
  }
  .nav:not(.open) .logo { flex: 0 1 auto; width: auto !important; min-width: 0; }
  .nav:not(.open) .nav-center { display: none !important; }
  .nav:not(.open) .menu {
    position: static !important;
    flex: 0 0 auto;
    margin-left: 10px !important;
  }

  /* keep a compact Book button visible next to the menu icon */
  .nav:not(.open) .nav-right {
    display: flex !important;
    margin-left: auto;
    gap: 0;
  }
  .nav:not(.open) .nav-right .lang { display: none !important; }
  .nav:not(.open) .reserve {
    min-height: 40px;
    padding: 0 14px !important;
    font-size: 10px !important;
    letter-spacing: .16em !important;
  }
  .nav:not(.open) .reserve .eb-long { display: none; }
  .nav:not(.open) .reserve .eb-short { display: inline; }
  .nav:not(.open) .reserve i { display: none; }
  .nav.is-scrolled:not(.open) { height: 66px; min-height: 66px; }
}

@media (max-width: 380px) {
  .nav:not(.open) .logo img { width: 120px !important; }
}

/* ---------- 26 / 28 · Booking bar ---------- */
.eb-book {
  position: relative;
  z-index: 5;
  font-family: var(--eb-sans);
  color: var(--eb-ink);
  background: var(--eb-ivory);
  border-bottom: 1px solid var(--eb-line);
}

.eb-book__inner {
  width: min(1240px, calc(100% - 76px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) repeat(4, minmax(110px, 1fr)) auto;
  align-items: stretch;
}

.eb-book__intro,
.eb-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 18px 22px;
  border-right: 1px solid var(--eb-line);
}

.eb-book__intro { padding-left: 0; }

.eb-book__intro span,
.eb-field span {
  margin-bottom: 9px;
  color: #7b888e;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eb-book__intro strong {
  font: 400 21px/1.2 var(--eb-serif);
  letter-spacing: 0;
}

.eb-field input,
.eb-field select {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(7, 19, 29, .28);
  border-radius: 0;
  color: var(--eb-ink);
  background: transparent;
  font: 400 17px/1.2 var(--eb-serif);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.eb-field select {
  background-image: linear-gradient(45deg, transparent 50%, #9a7a4c 50%),
                    linear-gradient(135deg, #9a7a4c 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.eb-field input:focus,
.eb-field select:focus {
  outline: none;
  border-bottom-color: var(--eb-navy);
}

.eb-book__submit {
  display: flex;
  align-items: center;
  padding-left: 28px;
}

.eb-book__submit button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--eb-navy);
  color: #fff;
  background: var(--eb-navy);
  font: 400 11px/1 var(--eb-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.eb-book__submit button i { color: var(--eb-sand); font-style: normal; font-size: 16px; }

.eb-book__submit button:hover,
.eb-book__submit button:focus-visible {
  color: var(--eb-navy);
  background: transparent;
}

/* end-of-page variant */
.eb-book--end {
  color: #fff;
  background: var(--eb-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.eb-book--end .eb-book__intro,
.eb-book--end .eb-field { border-right-color: rgba(255, 255, 255, .12); }
.eb-book--end .eb-book__intro span,
.eb-book--end .eb-field span { color: rgba(255, 255, 255, .55); }
.eb-book--end .eb-field input,
.eb-book--end .eb-field select {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .35);
  color-scheme: dark;
}
.eb-book--end .eb-field select option { color: var(--eb-ink); }
.eb-book--end .eb-field input:focus,
.eb-book--end .eb-field select:focus { border-bottom-color: var(--eb-sand); }
.eb-book--end .eb-book__submit button {
  color: var(--eb-navy);
  background: var(--eb-ivory);
  border-color: var(--eb-ivory);
}
.eb-book--end .eb-book__submit button i { color: #9a7a4c; }
.eb-book--end .eb-book__submit button:hover,
.eb-book--end .eb-book__submit button:focus-visible {
  color: #fff;
  background: transparent;
}

@media (max-width: 1100px) {
  .eb-book__inner {
    width: calc(100% - 40px);
    grid-template-columns: repeat(4, 1fr);
  }
  .eb-book__intro {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 26px 0 8px;
    border-right: 0;
  }
  .eb-field { min-height: 88px; padding: 14px 16px 14px 0; border-right: 0; }
  .eb-book__submit { grid-column: 1 / -1; padding: 6px 0 26px; }
  .eb-book__submit button { width: 100%; }
}

@media (max-width: 600px) {
  .eb-book__inner { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .eb-field { min-height: 76px; padding: 10px 0; }
  .eb-field input,
  .eb-field select { font-size: 16px; }
}

/* ---------- 27 · Suite strip shared by all suites ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .suite-assurance-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* burger turns into × when the mobile menu is open (missing on some pages) */
@media (max-width: 760px) {
  .nav.open .menu span { transition: transform .3s ease, opacity .2s ease; }
  .nav.open .menu span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu span:nth-child(2) { opacity: 0; }
  .nav.open .menu span:last-child { transform: translateY(-7px) rotate(-45deg); }
}

/* images carry width/height for layout stability (CLS); let CSS aspect-ratio decide the shown height */
.experience-image img,
.occasion-category img,
.occasion-image img { height: auto; }

/* mobile: show content photos whole, at their natural proportions (no cropping) (2026-10) */
@media (max-width: 760px) {
  .story-image, .story-row:first-child .story-image,
  .occasion-image, .experience-image, .occasion-category > a,
  .moments .editorial-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  .story-image img, .occasion-image img, .experience-image img,
  .occasion-category img, .moments .editorial-card img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

/* mobile: full-width photos are shown whole, with their text underneath (no cropping) (2026-10) */
@media (max-width: 760px) {
  .hero, .suite-hero, .experience-hero, .echoes-hero,
  .signature, .final, .cinema, .occasion-cinema {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    background: #07131d !important;
    color: #fff;
    overflow: hidden;
  }
  .hero::before, .hero::after, .hero-media::before, .hero-media::after,
  .suite-hero::before, .suite-hero::after, .experience-hero::before, .experience-hero::after,
  .echoes-hero::before, .echoes-hero::after, .signature::before, .signature::after,
  .final::before, .final::after, .cinema::before, .cinema::after,
  .occasion-cinema::before, .occasion-cinema::after { display: none !important; }
  .hero-media, .hero-media picture {
    position: static !important;
    display: block !important;
    height: auto !important;
    inset: auto !important;
  }
  .hero-media img, .suite-hero > img, .experience-hero > img, .echoes-hero > img,
  .signature > img, .final > img, .cinema > img, .occasion-cinema > img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
  .hero-copy, .experience-hero-copy, .echoes-hero-copy, .signature-copy,
  .final-content, .cinema-copy, .occasion-cinema-copy {
    position: static !important;
    transform: none !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 24px 44px !important;
    color: #fff !important;
    text-shadow: none !important;
  }
  .hero-facts { position: static !important; padding: 0 24px 34px !important; margin: 0 !important; }
  .hero-side, .hero .scroll, .cinema-label { display: none !important; }

  /* suite slider on the home page: height follows the photo shown */
  .suite-visual { height: auto !important; min-height: 0 !important; }
  .suite-visual img { object-fit: contain !important; }
  .suite-visual img.active { position: relative !important; inset: auto !important; height: auto !important; }
}
@media (max-width: 760px) {
  /* first photo of the page starts below the header, so the header never covers it */
  .hero, .suite-hero, .experience-hero, .echoes-hero { padding-top: 74px !important; }
}

/* readable text: everything that was 13px is now 15px (2026-10) */
.int-note small,
.occasion-points li,
.detail-list li,
.experience-content p,
.booking-confidence-actions .booking-contact { font-size: 15px !important; }
@media (max-width: 760px) {
  .suite-hero .hero-copy p { font-size: 15px !important; }
}

/* 20/10/2026: "Check availability" at the end of the suites, 13px -> 15px like the rest of the text */
a.cta { font-size: 15px !important; }


/* home, mobile: hero photo fills 60% of the screen height, centred on the woman (2026-10) */
@media (max-width: 760px) {
  .hero-media.hero-zoom { height: 60svh !important; min-height: 380px !important; overflow: hidden !important; }
  .hero-media.hero-zoom picture { height: 100% !important; }
  .hero-media.hero-zoom img { height: 100% !important; object-fit: cover !important; object-position: 50% 58% !important; transform: none !important; }
}

/* home "Entirely your own", mobile: photo 40% taller (2026-10) */
@media (max-width: 760px) {
  .cinema.cinema-tall > img { aspect-ratio: 1 / 1 !important; height: auto !important; object-fit: cover !important; object-position: 66% 50% !important; }
}

/* suite heroes, mobile: photo 40% taller than its natural height (2026-10) */
@media (max-width: 760px) {
  .hero-media.hero-tall img { height: auto !important; aspect-ratio: var(--hero-ar) !important; object-fit: cover !important; }
}
