/* Sondos homepage 0.5.3: layout alignment approved by site owner. */
:root { --sc-header-height: 96px; }

/* Hero overlay header with a balanced logo / navigation / action layout. */
.site-header { background: linear-gradient(180deg, rgb(6 43 53 / 88%), rgb(6 43 53 / 24%) 75%, transparent); }
.site-header .header-inner {
  min-height: 96px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
}
.site-header .brand { justify-self: start; margin: 0; }
.site-header .main-nav { justify-self: center; margin: 0; }
.site-header .menu-items { gap: clamp(14px, 1.35vw, 26px); }
.site-header .header-cta { justify-self: end; margin: 0; white-space: nowrap; }
.site-header .brand-original-light { margin-right: 0; }

/* Full-width hero; editable theme photo stays intact. */
.hero { min-height: clamp(690px, 54vw, 790px); background-position: center 48%; }
.hero-shade { background: linear-gradient(90deg, rgb(5 34 47 / 64%), rgb(5 34 47 / 16%) 60%, transparent 88%); }
.hero .hero-content { padding-top: 172px; padding-bottom: 178px; }
.hero h1 { font-size: clamp(4rem, 6.1vw, 6.85rem); max-width: 750px; line-height: 1.04; }
.hero p { max-width: 540px; font-size: clamp(1rem, 1.1vw, 1.13rem); }
.hero-actions { margin-top: 26px; }
.booking-strip { width: min(1200px, calc(100% - 64px)); max-width: none; margin: -78px auto 0; padding: 22px 28px 16px; border-radius: 20px; }
.booking-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .75fr) auto; gap: 18px; }
.booking-fields label { min-width: 0; }
.booking-search-button { min-height: 54px; }
.feature-band { padding-top: 112px; }

/* Three legible stays per view, sliding through the same seven groups. */
.section { padding-block: clamp(76px, 6vw, 104px); }
.stays-section { overflow: clip; }
.stays-header { margin-bottom: 34px; }
.stays-header h2 { font-size: clamp(2.25rem, 3.2vw, 3.5rem); }
.stays-header p { max-width: 760px; }
.stays-carousel-shell { min-width: 0; }
.stays-grid {
  display: flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: 8px 0 22px;
  margin: 0;
}
.stay-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 20px;
  background: #fffdfa;
  box-shadow: 0 9px 26px rgb(17 65 75 / 11%);
}
.stay-card img, .stay-placeholder { height: 260px; width: 100%; object-fit: cover; }
.stay-info { padding: 20px 22px 26px; min-height: 165px; }
.stay-location { font-size: .7rem; }
.stay-info h3 { font-size: clamp(1.25rem, 1.45vw, 1.65rem); margin: 7px 0; }
.stay-info p { font-size: .89rem; margin-bottom: 12px; }
.stay-occupancy { font-size: .81rem; }
.stay-card-arrow { right: 20px; bottom: 20px; width: 34px; height: 34px; }
.stays-controls { justify-content: center; gap: 14px; margin-top: 18px; }
.stays-carousel-button { width: 44px; height: 44px; }
.section-action { margin-top: 24px; }
.map-grid { gap: clamp(32px, 4vw, 72px); }
.dining-grid { gap: clamp(32px, 4vw, 72px); }

/* Tablet: accessible navigation and two readable accommodation cards. */
@media (max-width: 1180px) {
  :root { --sc-header-height: 82px; }
  .site-header .header-inner { display: flex; min-height: 82px; gap: 14px; }
  .site-header .brand { margin-right: auto; }
  .site-header .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    background: #103b47;
    padding: 18px 28px;
    box-shadow: var(--sc-shadow-floating);
  }
  .site-header .main-nav.is-open { display: block; }
  .site-header .menu-items { display: grid; gap: 0; }
  .site-header .menu-items > li > a { min-height: 46px; width: 100%; }
  .site-header .menu-items .sub-menu { position: static; display: grid; background: #164754; box-shadow: none; }
  .site-header .menu-toggle { display: flex; order: 4; flex: none; }
  .site-header .header-cta { margin-left: auto; }
  .stays-grid { gap: 20px; }
  .stay-card { flex-basis: calc((100% - 20px) / 2); }
  .stay-card img, .stay-placeholder { height: 240px; }
  .booking-fields { gap: 12px; }
}
@media (max-width: 720px) {
  :root { --sc-header-height: 72px; }
  .site-header { background: linear-gradient(180deg, rgb(7 49 60 / 95%), rgb(7 49 60 / 76%)); }
  .site-header .header-inner { min-height: 72px; }
  .hero { min-height: 665px; background-position: 59% center; }
  .hero .hero-content { padding-top: 155px; padding-bottom: 180px; }
  .hero h1 { font-size: clamp(3.25rem, 11.7vw, 5.15rem); }
  .hero p { max-width: 390px; }
  .booking-strip { width: calc(100% - 36px); margin-top: -125px; padding: 16px; }
  .booking-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .booking-search-button { grid-column: 1 / -1; }
  .feature-band { padding-top: 156px; }
  .section { padding-block: 64px; }
  .stays-header { margin-bottom: 22px; }
  .stays-grid { display: flex; gap: 14px; margin: 0; padding: 4px 0 20px; }
  .stay-card { flex: 0 0 100%; }
  .stay-card img, .stay-placeholder { height: clamp(220px, 60vw, 300px); }
  .stay-info { min-height: 152px; padding: 18px 18px 22px; }
  .stay-info h3 { font-size: 1.45rem; }
  .stay-info p { font-size: .85rem; }
  .stay-occupancy { font-size: .78rem; }
  .stays-controls { margin-top: 10px; }
}
@media (max-width: 480px) {
  .site-header .header-cta { display: none; }
  .hero { min-height: 640px; }
  .hero .hero-content { padding-top: 145px; padding-bottom: 170px; }
  .booking-strip { margin-top: -105px; }
  .feature-band { padding-top: 140px; }
  .booking-fields label:last-of-type { grid-column: 1 / -1; }
  .stays-grid { gap: 12px; }
}

/* Accessible interactive photography and direct enquiry. */

.dining-photos figure,
.memories-photos figure,
.inner-content figure,
.inner-stay-card,
.stay-card { position: relative; }

.sc-open-photo {
  position: absolute;
  inset: auto 12px 12px auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: rgb(12 59 70 / 91%);
  color: #fff;
  font: 700 12px/1.2 var(--font-text, Arial, sans-serif);
  padding: 10px 12px;
  cursor: zoom-in;
  box-shadow: 0 5px 18px rgb(0 0 0 / 20%);
  transition: transform 180ms ease, background-color 180ms ease;
}
.inner-content figure > .sc-open-photo { bottom: 14px; right: 14px; }
.stay-card > .sc-open-photo,
.inner-stay-card > .sc-open-photo { top: 12px; bottom: auto; }
.sc-open-photo:hover,
.sc-open-photo:focus-visible { background: var(--sc-color-teal); transform: translateY(-2px); }
.sc-open-photo:focus-visible,
.sc-gallery__open:focus-visible,
.sc-lightbox button:focus-visible { outline: 3px solid #f5c46f; outline-offset: 3px; }
.sc-zoomable-image { transition: transform 300ms ease; }
figure:hover > .sc-zoomable-image,
.sc-gallery__open:hover img { transform: scale(1.035); }
.inner-content .wp-block-image,
.inner-content .sc-editorial-image,
.inner-content .sc-photo-mosaic figure,
.dining-photos figure,
.memories-photos figure { overflow: hidden; }

.sc-gallery { display: grid; grid-template-columns: repeat(var(--sc-gallery-columns, 3), minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px); width: 100%; margin: 40px auto; }
.sc-gallery__item { margin: 0; border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 9px 30px rgb(22 62 71 / 10%); }
.sc-gallery__open { position: relative; width: 100%; background: transparent; border: 0; display: block; padding: 0; cursor: zoom-in; overflow: hidden; }
.sc-gallery__open img { width: 100%; height: clamp(210px, 19vw, 320px); object-fit: cover; display: block; transition: transform 350ms ease; }
.sc-gallery__icon { position: absolute; bottom: 14px; right: 14px; background: var(--sc-color-card-ink); color: white; padding: 6px 11px; border-radius: 10px; font-size: 1.1rem; }
.sc-gallery figcaption { padding: 13px 16px 17px; color: var(--sc-color-card-ink); font-size: .84rem; }

.sc-lightbox[hidden] { display: none !important; }
.sc-lightbox { position: fixed; z-index: 2147483000; inset: 0; background: rgb(3 16 23 / 95%); color: white; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; gap: 10px; padding: 66px 16px 22px; }
.sc-lightbox__bar { position: absolute; inset: 12px 20px auto; display: flex; justify-content: space-between; align-items: center; }
.sc-lightbox__counter { letter-spacing: .12em; font-size: .85rem; }
.sc-lightbox button { border: 0; background: rgb(255 255 255 / 13%); color: #fff; border-radius: 50%; min-height: 46px; min-width: 46px; font-size: 2.1rem; cursor: pointer; }
.sc-lightbox button:hover { background: rgb(255 255 255 / 25%); }
.sc-lightbox__close { line-height: 1; }
.sc-lightbox__nav { justify-self: center; }
.sc-lightbox__nav:disabled { opacity: .25; cursor: not-allowed; }
.sc-lightbox__figure { min-height: 0; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.sc-lightbox__figure img { max-height: min(74dvh, 1000px); max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.sc-lightbox__figure figcaption { font-size: clamp(.82rem, 1vw, 1rem); color: #dce9e9; text-align: center; max-width: 760px; }
body.sc-lightbox-open { overflow: hidden; }

.sc-enquiry { margin: 35px auto 90px; padding: clamp(25px, 4vw, 52px); background: linear-gradient(145deg, #e8f0ef, #fdfbf6); border: 1px solid #d8e6e2; border-radius: 28px; box-shadow: 0 15px 40px rgb(17 65 75 / 8%); }
.sc-enquiry__intro { margin: 0 0 26px; max-width: 800px; }
.sc-enquiry__intro h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--sc-color-card-ink); margin: 7px 0 14px; }
.sc-enquiry__intro p { color: #4b6770; line-height: 1.7; }
.sc-enquiry__form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: end; }
.sc-enquiry__form label { display: flex; flex-direction: column; gap: 7px; color: #31535c; font-weight: 700; font-size: .82rem; }
.sc-enquiry__form input:not([type='checkbox']), .sc-enquiry__form select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #c9d9d9; border-radius: 12px; background: #fff; padding: 10px 12px; color: var(--sc-color-card-ink); font: inherit; box-sizing: border-box; }
.sc-enquiry__form .sc-enquiry__consent { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.sc-enquiry__consent input { accent-color: var(--sc-color-teal); margin-top: 4px; }
.sc-enquiry__submit { grid-column: 1 / span 2; justify-self: start; }
.sc-enquiry__disclaimer { grid-column: span 2; color: #566e74; margin: 0; line-height: 1.5; font-size: .76rem; }
.sc-enquiry__feedback { padding: 16px 20px; border-radius: 12px; background: #d2eae0; color: #1a5645; }
.sc-enquiry__feedback--error { background: #ffe5db; color: #8b3424; }
.sc-honeypot { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip-path: inset(100%); }
.booking-search-button:disabled { opacity: 1; }
.booking-note { font-size: .78rem; line-height: 1.5; }

@media (max-width: 900px) {
  .sc-gallery { --sc-gallery-columns: 2; }
  .sc-enquiry__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-enquiry__submit, .sc-enquiry__disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sc-gallery { gap: 10px; }
  .sc-gallery__open img { height: 190px; }
  .sc-lightbox { grid-template-columns: 43px minmax(0, 1fr) 43px; gap: 0; padding: 64px 6px 20px; }
  .sc-lightbox button { min-width: 38px; min-height: 38px; font-size: 1.8rem; }
  .sc-lightbox__figure img { max-height: 70dvh; }
  .sc-enquiry { margin-block: 20px 55px; padding: 22px 15px; }
  .sc-enquiry__form { grid-template-columns: 1fr; gap: 14px; }
  .sc-enquiry__form .sc-enquiry__consent, .sc-enquiry__submit, .sc-enquiry__disclaimer { grid-column: 1; }
  .sc-open-photo { padding: 9px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-open-photo, .sc-zoomable-image, .sc-gallery__open img { transition: none !important; }
}
