/* ============================================================
   THE NEELA COLLECTION — collection structure (Nov 2026)
   Property bar · mega menu · Book Your Stay chooser ·
   collection homepage · Ocean Villas page.
   Loaded after style.css; nothing in style.css is changed.
   ============================================================ */

/* ---------- property bar (Stone Town / Ocean Villas pages) ---------- */
.site-header:not(.ctx-collection) { padding-top: 0; }
.site-header:not(.ctx-collection).scrolled,
.site-header:not(.ctx-collection).solid { padding-top: .55rem; }
.prop-bar {
  background: rgba(16,27,58,.5); border-bottom: 1px solid rgba(255,255,253,.12);
  margin-bottom: .9rem; max-height: 44px; overflow: hidden;
  transition: max-height .4s var(--ease), margin .4s var(--ease), opacity .3s;
}
.site-header.scrolled .prop-bar, .site-header.solid .prop-bar { max-height: 0; margin-bottom: 0; opacity: 0; border-bottom-width: 0; }
.prop-bar-inner {
  width: min(1360px, 94vw); margin-inline: auto; padding: .5rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}
.prop-bar a { color: rgba(255,255,253,.82); }
.prop-bar a:hover { color: var(--earth-soft); }
.prop-switch { display: flex; gap: 1.3rem; align-items: center; }
.ps-label { color: rgba(255,255,253,.5); }
.prop-switch a.on { color: var(--white); border-bottom: 1px solid var(--earth-soft); padding-bottom: .1rem; }

/* current page in the nav */
.main-nav > ul > li > a.current::after { transform: scaleX(1); }

.main-nav .m-only { display: none; }

/* ---------- mega menu (Hotels / Villas) — desktop ---------- */
@media (min-width: 1081px) {
  .main-nav > ul > li.has-mega { position: static; }
  .main-nav .sub.mega {
    left: 50%; width: min(980px, 94vw); min-width: 0;
    flex-direction: row; padding: 0; text-align: left;
    transform: translate(-50%, 12px);
  }
  .main-nav li.has-mega:hover > .sub.mega,
  .main-nav li.has-mega:focus-within > .sub.mega,
  .main-nav li.has-mega.open > .sub.mega { transform: translate(-50%, 0); }
  .main-nav .sub.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; } /* hover bridge */
  .mega-intro { flex: 1 1 44%; padding: 2.2rem 2.4rem 2.4rem; display: flex; flex-direction: column; gap: 1rem; }
  .mega-card { flex: 1 1 56%; position: relative; min-height: 310px; overflow: hidden; }
}
.mega-eyebrow { font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--earth); }
.mega-blurb { font-family: var(--font-display); color: var(--grey-green); font-size: 1.15rem; line-height: 1.45; }
.main-nav .mega a { padding: 0; width: auto; }
.main-nav .mega a:hover { background: transparent; }
.main-nav .mega a.mega-prop {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-transform: none; letter-spacing: 0; font-size: 1rem;
}
.mega-prop strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--navy); display: flex; align-items: center; gap: .6rem; transition: color .3s var(--ease); }
.main-nav .mega a.mega-prop:hover strong { color: var(--earth); }
.mega-prop em { font-style: normal; font-family: var(--font-body); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: .25rem .55rem; }
.mega-prop span { font-size: .82rem; color: var(--grey-green); }
.mega-quick { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.main-nav .mega .mega-quick a { font-size: .7rem; letter-spacing: .24em; color: var(--navy); border-bottom: 1px solid var(--earth-soft); padding-bottom: .2rem; }
.main-nav .mega .mega-quick a:hover { color: var(--earth); }
.mega-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mega-card:hover > img { transform: scale(1.05); }
.mega-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,27,58,0) 40%, rgba(16,27,58,.75)); }
.mega-card-logo { position: absolute; left: 2rem; bottom: 1.8rem; z-index: 2; width: 230px; }
.mega-card-logo.is-stacked { width: 140px; }
.mega-card-logo img { width: 100%; height: auto; }

/* ---------- Book Your Stay: choose a property ---------- */
.book-choice { position: relative; }
.book-choice .header-book { line-height: 1.7; } /* a <button> does not inherit the page line-height; keeps the header the same height as before */
.book-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 310px; z-index: 5;
  background: var(--white); box-shadow: var(--shadow-soft); border-top: 2px solid var(--earth);
  padding: .9rem 0; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.book-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.book-choice:hover .book-menu, .book-choice:focus-within .book-menu, .book-choice.open .book-menu { opacity: 1; visibility: visible; transform: none; }
.book-menu-label { display: block; padding: .2rem 1.5rem .6rem; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-green); }
.book-menu a { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1.5rem; color: var(--navy); }
.book-menu a:hover { background: var(--mist); color: var(--navy); }
.book-menu strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.book-menu span { font-size: .78rem; color: var(--grey-green); }

/* ---------- footer: five columns, logo per property ---------- */
.footer-inner.footer-5 { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2.4rem; }
.footer-brand img { width: 230px; height: auto; }
.footer-brand img.footer-logo-stacked { width: 130px; }

/* ---------- collection homepage ---------- */
.collection-hero-logo { width: 170px; height: auto; margin: 0 auto 1.2rem; }
#stay { scroll-margin-top: 80px; }

.loc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.loc-head h2 { margin: 0; }
.loc-sub { max-width: 440px; color: rgba(255,255,253,.78); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 3.4vw, 3rem); }
.loc-card { display: flex; flex-direction: column; gap: .5rem; }
.loc-card .eyebrow { margin: 0; }
.loc-media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1.1rem;
  border-radius: 50% 50% 0 0 / 24% 24% 0 0;   /* the Neela arch, softened for a wide frame */
}
.loc-media img { width: 100%; height: 100%; object-fit: cover; }
.loc-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,27,58,0) 45%, rgba(16,27,58,.7)); pointer-events: none; }
.loc-media::after { content: ""; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgba(255,255,253,.5); border-radius: inherit; pointer-events: none; }
.loc-logo { position: absolute; left: 1.8rem; bottom: 1.5rem; z-index: 2; width: 220px; }
.loc-logo.is-stacked { width: 120px; }
.loc-logo img { width: 100%; height: auto; }
.loc-tag {
  position: absolute; right: 1.4rem; bottom: 1.5rem; z-index: 2;
  background: var(--white); color: var(--navy);
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; padding: .45rem .8rem;
}
.section-navy .loc-card h3 a { color: var(--white); }
.section-navy .loc-card h3 a:hover { color: var(--earth-soft); }
.loc-card p { color: rgba(255,255,253,.78); }
.loc-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: .5rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.section-navy .loc-links a { color: var(--white); border-bottom: 1px solid var(--earth-soft); padding-bottom: .25rem; }
.section-navy .loc-links a:hover { color: var(--earth-soft); }

/* a stay at both */
.both-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.6rem 0 2.4rem; }
.both-tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 0; }
.both-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.both-tile:hover img { transform: scale(1.04); }
.both-tile .loc-tag { left: 1.2rem; right: auto; bottom: 1.2rem; }

/* Stone Town: also in the collection */
.cross-media { display: block; max-width: 460px; margin-inline: auto; aspect-ratio: 4 / 4.3; overflow: hidden; border-radius: var(--arch-radius); position: relative; }
.cross-media img { width: 100%; height: 100%; object-fit: cover; }
.cross-media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,253,.55); border-radius: var(--arch-radius); pointer-events: none; }

/* ---------- Ocean Villas ---------- */
.ov-page [id] { scroll-margin-top: 110px; }
.ov-hero::before { background: rgba(16,27,58,.42); }
.hero-content .ov-hero-title { margin: 0 0 2.2rem; line-height: 0; }
.ov-hero-logo { width: min(340px, 72vw); height: auto; margin: 0 auto; }
.ov-hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-solid-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-solid-white::after { background: var(--earth); }
.btn-solid-white:hover { color: var(--white); border-color: var(--earth); }
.ov-caps { text-transform: uppercase; letter-spacing: .08em; }

.ov-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ov-intro-grid p { margin-bottom: 1rem; }
.ov-spec { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); }
.ov-spec-rule { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.6rem; text-align: right; }

/* villa sub-pages (The Villas, Inside, The Shore, Book Your Villa) */
.ov-sub-hero::before { background: rgba(16,27,58,.42); }
.ov-sub-hero.is-short { min-height: 42vh; }
.ov-lead-spec { margin: 0 0 2.4rem; }
.ov-lead { max-width: 820px; margin: 0 auto 2.4rem; }
.ov-villa-name { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }

/* overview: one tile per villa page */
.ov-explore-wrap { padding-bottom: clamp(3rem, 7vw, 6rem); }
.ov-explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.ov-tile { display: flex; flex-direction: column; background: var(--mist); color: var(--ink, #23293b); }
.ov-tile-media { display: block; aspect-ratio: 4 / 4.4; overflow: hidden; }
.ov-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ov-tile:hover .ov-tile-media img { transform: scale(1.04); }
.ov-tile-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.ov-tile-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.ov-tile-text { color: var(--grey-green); font-size: .95rem; line-height: 1.55; }
.ov-tile-more { margin-top: auto; padding-top: .8rem; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--earth); }
.ov-tile:hover .ov-tile-title { color: var(--earth); }

/* previous / next villa page */
.ov-pager { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ov-pager-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.ov-pager a { display: flex; flex-direction: column; gap: .25rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.ov-pager a span { font-family: var(--font-body); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--earth); }
.ov-pager a:hover { color: var(--earth); }
.ov-pager-prev span::before { content: "\2190  "; }
.ov-pager-next { text-align: right; margin-left: auto; }
.ov-pager-next span::after { content: "  \2192"; }

/* "Book Your Villa" band on every villa page */
.ov-cta { background: #f1ede6; }
.ov-cta p { max-width: 560px; margin: 1rem auto 1.8rem; }
.ov-cta .ov-enq-logo { margin-inline: auto; }
.ov-villa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ov-villa { background: var(--mist); display: flex; flex-direction: column; }
.ov-villa-media { aspect-ratio: 16 / 10.5; }
.ov-villa-media img { width: 100%; height: 100%; object-fit: cover; }
.ov-villa-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.ov-villa-body .eyebrow, .ov-villa-body h3 { margin: 0; }
.ov-villa-body .ov-spec { color: var(--grey-green); }
.ov-rate { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--navy); }
.ov-rate .btn { padding: .9rem 1.5rem; font-size: .7rem; }

.ov-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: .5rem; margin-top: 2rem; }
.ov-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ov-gallery .g-wide { grid-column: span 2; }
.ov-gallery .g-tall { grid-row: span 2; }

.ov-shore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.section-navy .ov-shore-text { color: rgba(255,255,253,.88); margin: 0; }
.ov-dists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
.ov-dist { border-top: 1px solid rgba(255,255,253,.25); padding-top: .8rem; }
.ov-dist b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--white); }
.ov-dist span { font-size: .82rem; color: rgba(255,255,253,.7); }

.ov-enquire { background: #f1ede6; }
.ov-enq-logo { width: 190px; height: auto; margin-bottom: 1.6rem; }
.ov-contact { color: var(--navy); line-height: 1.9; }
.ov-form-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .book-choice { display: none; }
  .main-nav .m-only { display: list-item; }
  .main-nav .m-sep { margin-top: .8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,253,.16); }
  .ps-label { display: none; }
  .prop-bar-inner { font-size: .6rem; letter-spacing: .14em; }

  /* phone menu: submenus were inheriting the desktop sideways shift and sliding off the left edge (also on the live site) */
  .main-nav li:hover > .sub, .main-nav li:focus-within > .sub, .main-nav li.open > .sub { transform: none; }
  .main-nav .sub a:hover { background: transparent; color: var(--earth-soft); }

  /* mega menu collapses to a simple list in the mobile menu */
  .main-nav .sub.mega { flex-direction: column; align-items: center; max-width: 86vw; margin-inline: auto; } /* cap it, or the quick links are measured as one long line wider than the phone */
  .mega-prop strong { flex-wrap: wrap; justify-content: center; text-align: center; }
  .main-nav .mega .mega-card, .mega-eyebrow, .mega-blurb { display: none; } /* .main-nav a sets inline-block, so this needs the extra weight */
  .mega-intro { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .3rem 0 .2rem; }
  .main-nav .mega a.mega-prop { border: 0; padding: .2rem 0; align-items: center; }
  .mega-prop strong { color: var(--white); font-size: 1.05rem; }
  .mega-prop em { background: var(--earth); }
  .mega-prop span { color: rgba(255,255,253,.6); font-size: .78rem; }
  .mega-quick { justify-content: center; }
  .main-nav .mega .mega-quick a { color: rgba(255,255,253,.72); border: 0; font-size: .74rem; }

  .footer-inner.footer-5 { grid-template-columns: 1fr 1fr; }
  .footer-5 .footer-brand { grid-column: 1 / -1; }
  .loc-grid, .both-grid, .ov-intro-grid, .ov-villa-grid, .ov-shore-grid { grid-template-columns: 1fr; }
  .ov-spec-rule { text-align: left; }
}
@media (max-width: 620px) {
  .footer-inner.footer-5 { grid-template-columns: 1fr; }
  .prop-switch { gap: .9rem; }
  .loc-logo { width: 170px; left: 1.3rem; bottom: 1.2rem; }
  .loc-logo.is-stacked { width: 96px; }
  .loc-tag { right: 1rem; bottom: 1.2rem; }
  .ov-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .ov-gallery .g-tall { grid-row: span 1; }
  .ov-explore { grid-template-columns: 1fr; }
  .ov-tile-media { aspect-ratio: 16 / 10; }
  .ov-pager a { font-size: 1.05rem; }
  .ov-dists { gap: .9rem 1.2rem; }
  .ov-dist b { font-size: 1.3rem; }
  .ov-spec { letter-spacing: .14em; }
  .collection-hero-logo { width: 130px; }
}

/* intro arch on the collection and Stone Town homepages: a full arch window (the photo is landscape) */
.arch-frame.arch-tall { aspect-ratio: 4 / 5; width: 100%; }
.arch-frame.arch-tall img { width: 100%; height: 100%; object-fit: cover; }

/* Experiences cards on the new homepages: the image link was inline, so the card height ignored the
   title and text and the "All Experiences" button sat on top of them (as on the current homepage).
   Same tall arch shape, now laid out properly. */
.exp-cards .room-card { background: transparent; }
.exp-cards .room-card > a.img-zoom { display: block; aspect-ratio: 3 / 4.2; }
