/* Layout Fixes for Chittering Heights */

.acres-layout {
  overflow: visible;
}

/* The acres drawing is wider than the screen. On a phone that extra width
   becomes the layout viewport and slides the fixed menu bar off to the right.
   A desktop window keeps the bar pinned, so only the narrow layout needs this. */
@media screen and (max-width: 991px) {
  .restaurant-section {
    overflow-x: clip;
  }
}

.big-image-section,
.collection-list-wrapper-2,
.footer,
.acres-layout .acres-copy {
  position: relative;
  z-index: 1;
}

.acres-layout {
  width: 90vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.acres-layout .acres-copy {
  flex: 1 1 0;
  min-width: 0;
}

@media screen and (max-width: 991px) {
  .acres-layout {
    width: min(92%, 40rem);
    margin: 0 auto;
    flex-direction: column;
  }
}

/* Fix navigation positioning - consistent top bar on all pages */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(10px);
  z-index: 1000 !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* Bar logo is only for the collapsed nav; desktop uses the logo inside the menu */
.brand-bar {
  display: none;
}

/* Ensure nav links are visible */
.nav-link-3.hvr-pop {
  opacity: 1 !important;
  color: #fff !important;
}

/* Desktop: transparent nav bar until hovered; links and logo stay visible */
@media screen and (min-width: 992px) {
  .navbar {
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
      background-color 0.25s ease,
      backdrop-filter 0.25s ease,
      -webkit-backdrop-filter 0.25s ease;
  }

  .navbar:hover,
  .navbar:focus-within {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@media screen and (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}

/* Fix hero section to be full-bleed */
.header-section {
  width: 100vw !important;
  height: 100vh !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding-top: 72px; /* Account for fixed navbar */
  background-color: #fff;
}

/* Scroll-linked shrink: the photo and title scale together over the dark hero */
.header-section .cover-photo,
.header-section .header-text-div {
  transform: scale(var(--cover-scale, 1));
  transform-origin: center center;
}

/* Fix header image to be full-bleed background */
.header-image-div {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  background-image: none !important;
}

/* Cover titles sit in a full-width overlay so the heading can center on the image */
.header-text-div {
  z-index: 2 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 20px !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

.header-text-div .heading-4 {
  opacity: 1 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  width: auto !important;
  max-width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Fix quote section - remove IX2 opacity:0 initial states */
.quote-section .heading-2 {
  opacity: 1 !important;
}

.quote-section .text-block {
  opacity: 1 !important;
}

@media screen and (max-width: 767px) {
  .quote-section {
    align-items: stretch;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .quote-section .heading-2 {
    text-align: left;
    width: 100%;
    max-width: 100%;
  }

  .quote-section .text-block {
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Fix 3-image section */
._3-image-section .grid {
  opacity: 1 !important;
}

/* Featured rooms: same image frame, and the title and copy are part of the link */
.rooms-grid > .element-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.rooms-grid > .element-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rooms-grid > .element-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.rooms-section .room-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rooms-section .room-card-link:hover,
.rooms-section .room-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.rooms-section .room-card-link:focus-visible {
  outline: 2px solid #853826;
  outline-offset: 4px;
}

.rooms-section .room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.rooms-section .room-card-link:hover .room-image,
.rooms-section .room-card-link:focus-visible .room-image {
  transform: scale(1.08);
}

/* Treehouse page: element card images */
.rooms-grid .image-wrapper .div-block-37 {
  transition: transform 0.45s ease;
}

.rooms-grid .image-wrapper:hover .div-block-37,
.rooms-grid .image-wrapper:focus-visible .div-block-37 {
  transform: scale(1.08);
}

/* Contact FAQs: Webflow IX2 left panes at height 0 and never bound clicks */
#answers-section .accordion-pane {
  height: auto;
}

#answers-section .accordion-pane[hidden] {
  display: none;
}

#answers-section .accordion-item-wrapper-white-2.is-open .arrow-div {
  transform: rotate(90deg);
}

/* Fix FAQ page hero positioning */
.head-div {
  padding-top: 72px !important; /* Account for fixed navbar */
}

/* Lodgify: transparent card on desktop, site green while in use.
   Below the desktop nav breakpoint it collapses to a floating button. */
#lodgify-book-now-box {
  position: fixed !important;
  bottom: calc(20px + var(--lodgify-banner-offset, 0px)) !important;
  left: 20px !important;
  right: auto !important;
  top: auto !important;
  z-index: 998 !important;
  width: 330px !important;
  max-width: calc(100vw - 40px) !important;
}

#lodgify-book-now-box [data-testid="book-now-box"] {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#lodgify-book-now-box.is-open [data-testid="book-now-box"],
#lodgify-book-now-box:hover [data-testid="book-now-box"],
#lodgify-book-now-box:focus-within [data-testid="book-now-box"],
#lodgify-book-now-box:has([aria-expanded="true"]) [data-testid="book-now-box"] {
  background-color: var(--colour7) !important;
  border-color: var(--colour7) !important;
  color: var(--colour6) !important;
}

#lodgify-book-now-box.is-open [data-testid="book-now-box"] p,
#lodgify-book-now-box:hover [data-testid="book-now-box"] p,
#lodgify-book-now-box:focus-within [data-testid="book-now-box"] p,
#lodgify-book-now-box:has([aria-expanded="true"]) [data-testid="book-now-box"] p,
#lodgify-book-now-box.is-open [data-suffix],
#lodgify-book-now-box:hover [data-suffix],
#lodgify-book-now-box:focus-within [data-suffix],
#lodgify-book-now-box:has([aria-expanded="true"]) [data-suffix] {
  color: var(--colour6) !important;
}

/* Cream fill on the booking button so it stays visible against the green panel */
#lodgify-book-now-box [data-testid="book-now-box.cta-button"]:hover,
#lodgify-book-now-box [data-testid="book-now-box.cta-button"]:focus-visible {
  background: var(--colour6) !important;
  color: var(--colour7) !important;
}

/* Guest count: a rounded outline instead of a solid white chip */
#lodgify-book-now-box [data-testid="book-now-box.guests"] {
  max-height: none !important;
  align-items: center;
}

#lodgify-book-now-box [data-testid="book-now-box.guests-input"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  height: 22px !important;
  margin: 0 4px 0 0 !important;
  padding: 0 8px !important;
}

/* The date popover is portaled to the page, so it must sit above the mobile scrim */
[data-radix-popper-content-wrapper] {
  z-index: 1003 !important;
}

/* Stay in one stacking context for the whole fade. Opacity below 1 would
   otherwise paint the fixed widget behind the hero, then pop it forward at 1. */
.lodgify-dock {
  position: relative;
  z-index: 998;
  opacity: 1;
  transition: opacity 1.15s ease-in-out;
}

.lodgify-dock.is-deferred {
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  .lodgify-dock {
    z-index: 1002;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lodgify-dock,
  .lodgify-dock.is-deferred {
    transition: none;
  }
}

.lodgify-fab,
.lodgify-scrim {
  display: none;
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
  .header-section {
    padding-top: 72px;
  }
  
  .head-div {
    padding-top: 72px !important;
  }
  
  /* Keep page content clear of the fixed promo banner */
  body:has(.banner) {
    padding-bottom: 90px !important;
  }

  .banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    margin-bottom: 0 !important;
  }
  
  .header-text-div {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
}

/* Collapsed booking box: a button until the guest asks for the full widget */
@media screen and (max-width: 991px) {
  .lodgify-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 16px;
    right: auto;
    bottom: calc(16px + var(--lodgify-banner-offset, 0px));
    z-index: 1002;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background-color: var(--colour7);
    color: var(--colour6);
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
  }

  .lodgify-fab:focus-visible {
    outline: 2px solid var(--colour6);
    outline-offset: 3px;
  }

  .lodgify-dock.is-open .lodgify-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 12, 8, 0.28);
  }

  /* The date popover must paint over the promo banner, which is otherwise fixed on top */
  body:has(.lodgify-dock.is-open) .banner {
    z-index: 990 !important;
  }

  #lodgify-book-now-box {
    left: 12px !important;
    right: auto !important;
    bottom: calc(76px + var(--lodgify-banner-offset, 0px)) !important;
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: none !important;
    z-index: 1001 !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  #lodgify-book-now-box:not(.is-open) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px);
  }

  #lodgify-book-now-box.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lodgify-book-now-box,
  #lodgify-book-now-box [data-testid="book-now-box"] {
    transition: none !important;
  }
}

/* Collapsed nav: same dark glass as desktop, with the mark and a menu control */
@media screen and (max-width: 991px) {
  .navbar {
    background-color: rgba(12, 16, 12, 0.78) !important;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 2px solid #853826;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }

  .nav-bar-wrap {
    width: 100%;
    min-height: 48px;
    padding-left: 16px;
    padding-right: 12px;
  }

  .brand-bar {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 12px;
  }

  .brand-bar .image-4 {
    width: auto;
    height: 52px;
    margin: 0;
    padding: 0;
    /* Source mark is mid-gray; lift it to cream so it reads on the dark glass */
    filter: brightness(0) invert(0.94) sepia(0.22) saturate(0.45);
  }

  .nav-menu-2 > .brand {
    display: none !important;
  }

  .navbar .menu-button.w-nav-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    float: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    color: #fff2dd;
    background-color: rgba(255, 242, 221, 0.06) !important;
    border: 1px solid rgba(255, 242, 221, 0.38);
    border-radius: 50%;
  }

  .navbar .menu-button.w-nav-button:focus-visible {
    outline: 2px solid #fff2dd;
    outline-offset: 3px;
  }

  .navbar .menu-button.w--open {
    background-color: rgba(133, 56, 38, 0.35) !important;
    border-color: #c46a52;
    border-radius: 50%;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
  }

  .nav-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #fff2dd;
    border-radius: 1px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .menu-button.w--open .nav-burger span:nth-child(1) {
    transform: translateY(5.25px) rotate(45deg);
  }

  .menu-button.w--open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.w--open .nav-burger span:nth-child(3) {
    transform: translateY(-5.25px) rotate(-45deg);
  }

  .navbar .w-nav-overlay {
    background-color: rgba(8, 10, 8, 0.45);
  }

  .navbar .nav-menu-2,
  .navbar [data-nav-menu-open] {
    background-color: rgba(18, 24, 17, 0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .navbar .nav-menu-2[data-nav-menu-open] {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 6px 0 8px;
    border-bottom: 2px solid #853826;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }

  .navbar .nav-link-3.hvr-pop {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 16px 24px !important;
    color: #fff2dd !important;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-align: left;
    border-bottom: 1px solid rgba(255, 242, 221, 0.1);
  }

  .navbar .nav-link-3.hvr-pop:last-child {
    border-bottom: 0;
  }

  .navbar .nav-link-3.hvr-pop:hover,
  .navbar .nav-link-3.hvr-pop:focus-visible {
    color: #fff !important;
    background-color: rgba(255, 242, 221, 0.06);
  }

  .navbar .nav-link-3.hvr-pop.w--current {
    color: #fff2dd !important;
    box-shadow: inset 3px 0 0 #853826;
  }
}

/* Photos that used to be CSS backgrounds, now real images */
.image-div-1,
.image-div-2,
.image-div-3,
.big-image-div,
.header-image-location-div,
.header-image-spa-div,
.contact-header-image-div,
.rooms-header-image-div,
.spa-big-image-div {
  position: relative;
  background-image: none !important;
}

.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}

.header-image-div .cover-photo {
  object-position: 100% 100%;
}

.image-div-1 .cover-photo {
  object-position: center;
}

.image-div-2 .cover-photo {
  object-position: 50% 65%;
}

.image-div-3 .cover-photo {
  object-position: center bottom;
}

.big-image-div .cover-photo {
  object-position: left top;
}

.header-image-location-div .cover-photo,
.rooms-header-image-div .cover-photo {
  object-position: left center;
}

.contact-header-image-div .cover-photo {
  object-position: right center;
}

.header-image-spa-div .cover-photo {
  object-position: left top;
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  z-index: 1;
  pointer-events: none;
}

.spa-big-image-div .cta-text-wrap {
  position: relative;
  z-index: 2;
}

.spa-big-image-div .cta-heading {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

.share-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #fff2dd;
}

.share-link img {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
}

.share-link:hover,
.share-link:focus-visible {
  background: #fff;
}

.share-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.room-image-div .room-image,
.room-image-div .activities-image,
.menu-image-div .menu-image,
img.div-block-37 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background-image: none !important;
}

img.div-block-37 {
  height: 500px;
}

.content-photo,
.gallery-photo {
  width: 100%;
  height: auto;
  display: block;
}

.content-photo {
  max-width: 800px;
  margin-inline: auto;
}

.gallery-photo {
  border-radius: 8px;
}

.faq-circle {
  overflow: hidden;
}

.faq-circle .faq-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-rating,
img.image-3,
img.image-5,
.property-map {
  height: auto;
}

img.image-3,
.property-map {
  width: 250px;
  max-width: 100%;
}

.heart-scroll {
  transform-origin: center center;
}

@media screen and (max-width: 479px) {
  .big-image-div .cover-photo {
    object-position: center;
  }
}

/* Two-up element cards: the description absorbs the height difference in each pair,
   so amenity icons and See More line up. One column keeps natural text height. */
@media screen and (min-width: 992px) {
  .rooms-grid > .w-dyn-item {
    display: flex;
  }

  .rooms-grid .room-page-wrapper.room-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
  }

  .rooms-grid .image-wrapper {
    flex: 0 0 auto;
  }

  .rooms-grid .card.room-page {
    flex: 1 1 auto;
  }

  .rooms-grid .paragraph-20 {
    flex: 1 1 auto;
  }
}

/* Reviews stack on narrow screens. The old column wrappers are gone, so this replaces that stacking. */
.section-4 .column-wrapper {
  flex-direction: column;
}

.section-4 .faq-question-wrap {
  width: 100%;
}

/* Two-up reviews: each quote fills its row, so the review below starts level with its neighbour. */
@media screen and (min-width: 992px) {
  .section-4 .column-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 20px;
    align-items: stretch;
  }

  .section-4 .column-wrapper + .column-wrapper {
    margin-top: 20px;
  }

  .section-4 .faq-question-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .section-4 .faq {
    flex: 0 0 auto;
  }

  .section-4 .faq-content {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    overflow: visible;
    min-height: auto;
  }

  .section-4 .faq-content .paragraph {
    flex: 1 0 auto;
  }
}

/* Quiet note under the treehouse room cards. The icons are decorative; the sentence names them. */
.house-facilities {
  width: min(28rem, 80%);
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e4e0d8;
  text-align: center;
}

.house-facilities-icons {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.house-facilities-icons img {
  width: 40px;
  height: 40px;
}

.house-facilities p {
  margin: 0.85rem 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: #4f5d44;
}

.element-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Element pages: the text column is 80% and left-stuck once the container padding drops to 0.
   Give it the same inset on both sides, and keep the title, body, and section headings on one left edge. */
@media screen and (max-width: 991px) {
  .element-detail .room-text-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
  }

  .element-detail .room-text-wrapper .heading-5,
  .element-detail .room-text-wrapper .paragraph-5,
  .element-detail .room-text-wrapper h2 {
    text-align: left;
  }
}
