/* Phase 2 shared UI; values and breakpoints follow the approved static source. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px var(--gutter);
  border-bottom: 1px solid #ffffff2b;
  min-height: 110px;
}

/* WordPress offsets the document, but not this absolutely positioned header. */
body.admin-bar:not(.room-detail-page):not(.error404):not(.privacy-policy) .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar:not(.room-detail-page):not(.error404):not(.privacy-policy) .site-header {
    top: 46px;
  }
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: .07em;
  white-space: nowrap;
}

.wordmark-estate {
  font-size: 16px;
  letter-spacing: .48em;
  margin-top: 7px;
  margin-left: .48em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.6vw, 29px);
}

.main-nav > a,
.nav-dropdown > summary {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .07em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  padding-block: 9px;
}

.main-nav > a:not(.nav-cta) {
  border-bottom: 1px solid transparent;
}

.main-nav > a:not(.nav-cta):hover {
  border-bottom-color: currentColor;
}

.main-nav > a.nav-current-link {
  border-bottom-color: currentColor;
}

.main-nav .nav-cta {
  padding: 15px 20px;
  border: 1px solid #ffffffb0;
  margin-left: 2px;
  transition: background .2s, color .2s;
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-current > summary {
  border-bottom: 1px solid currentColor;
}

.chevron {
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  margin-top: -4px;
}

.nav-dropdown[open] .chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

.dropdown-links {
  position: absolute;
  left: -22px;
  top: calc(100% + 13px);
  min-width: 205px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 0;
  box-shadow: 0 8px 24px #162c2620;
}

.dropdown-links a {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  white-space: nowrap;
}

.dropdown-links a:hover {
  background: var(--cream);
}

.menu-toggle {
  display: none;
}

.site-footer {
  color: #ececdd;
  background: var(--green);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr .75fr;
  gap: 50px;
  padding-block: 66px 54px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-brand .wordmark {
  font-size: 29px;
}

.footer-brand > p {
  font-size: 13px;
  letter-spacing: .06em;
  color: #b7c6b7;
  margin-top: 22px;
}

.footer-contact .eyebrow {
  color: #c4b395;
  font-size: 12px;
  margin-bottom: 17px;
}

.footer-contact > a {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 5px;
}

.footer-contact > a:hover,
.footer-links > a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  padding-top: 2px;
}

.instagram-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  width: fit-content;
}

.instagram-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #ffffff24;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 23px;
  font-size: 12px;
  letter-spacing: .04em;
  color: #b7c6b7;
}

.footer-bottom > a {
  color: #dfdfcf;
}

.whatsapp-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadfca;
  background: var(--green);
  color: #f8f3e8;
  border-radius: 50%;
  box-shadow: 0 9px 28px #15281f38;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.whatsapp-float svg {
  width: 27px;
  height: 27px;
  flex: none;
}

.whatsapp-float::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(7px, -50%);
  padding: 8px 12px;
  border: 1px solid #d7cbb4;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 7px 20px #15281f18;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #355245;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px #15281f4d;
}

.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

@media (min-width: 1700px) {
  .site-header {
    padding-inline: max(75px, calc((100vw - 1520px) / 2));
  }
}

@media (max-width: 1260px) {
  .site-header {
    padding: 24px 35px;
    min-height: 98px;
  }

  .wordmark {
    font-size: 22px;
  }

  .wordmark-estate {
    font-size: 14px;
  }

  .has-js .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    z-index: 2;
    border: 1px solid #ffffff8a;
    background: transparent;
    color: inherit;
    width: 49px;
    height: 46px;
    padding: 10px;
  }

  .menu-toggle span {
    display: block;
    width: 23px;
    height: 1px;
    background: currentColor;
    transition: transform .15s;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 25px 35px 35px;
    max-height: calc(100svh - 90px);
    overflow: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 20px #122e2222;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .has-js .main-nav {
    display: none;
  }

  .has-js .site-header.menu-open .main-nav {
    display: flex;
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav > a,
  .nav-dropdown > summary {
    font-size: 14px;
    letter-spacing: .09em;
    padding-block: 11px;
  }

  .nav-dropdown > summary {
    justify-content: space-between;
  }

  .dropdown-links {
    position: static;
    box-shadow: none;
    border-left: 1px solid var(--line);
    padding: 4px 0;
    margin-bottom: 8px;
  }

  .dropdown-links a {
    font-size: 16px;
  }

  .main-nav .nav-cta {
    color: var(--paper);
    background: var(--green);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--green);
    margin-top: 12px;
  }

  .footer-main {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 24px;
    min-height: 99px;
  }

  .wordmark {
    font-size: 24px;
  }

  .main-nav {
    padding-inline: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 24px;
    padding-block: 50px 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
  }

  .footer-brand .wordmark {
    font-size: 29px;
  }

  .footer-brand > p {
    margin-top: 19px;
  }

  .footer-contact .eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
    margin-bottom: 14px;
  }

  .footer-contact > a {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .footer-links {
    font-size: 13px;
    gap: 14px;
    padding-top: 1px;
  }

  .footer-bottom {
    font-size: 10px;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 20px;
  }

  .footer-bottom > p:nth-child(2) {
    display: none;
  }

  .whatsapp-float {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }

  .whatsapp-float::before {
    display: none;
  }
}

@media (max-width: 370px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media print {
  .whatsapp-float {
    display: none;
  }
}

/* The approved source's hero foundation is shared by Home, Stay, Retreats,
   Weddings and Gallery. Page modules override only their own variants. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 710px;
  height: min(880px, 94svh);
  color: #fffef8;
  background: #13261e;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #071b251e 0%, transparent 27%, #08201b18 40%, #0a201d80 65%, #0a201dca 100%);
}

.hero-content {
  position: absolute;
  bottom: 117px;
  left: var(--gutter);
  right: var(--gutter);
  text-align: center;
  max-width: 1150px;
  margin-inline: auto;
}

.hero-location {
  color: #f0e8d7;
  margin-bottom: 21px;
  font-size: 13px;
}

.hero h1 {
  text-shadow: 0 2px 22px #06130a30;
}

.hero-support {
  font-size: 16px;
  letter-spacing: .075em;
  margin-top: 25px;
  line-height: 1.6;
}

.hero-support span {
  margin-inline: 9px;
  color: #d4bb8f;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.hero-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #ffffff30;
  padding-top: 23px;
  font-size: 13px;
  letter-spacing: .05em;
  color: #eeeadd;
}

.hero-rate {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .13em;
}

.hero-rate strong {
  font-weight: 400;
  font-size: 17px;
  margin-left: 6px;
  letter-spacing: .06em;
}

@media (min-width: 1700px) {
  .hero-content { bottom: 130px; }
  .hero h1 { font-size: 77px; }
}

@media (max-width: 1260px) {
  .hero { height: 850px; max-height: 94svh; min-height: 730px; }
  .hero h1 { font-size: 58px; }
  .hero-content { bottom: 118px; }
}

@media (max-width: 760px) {
  .hero { height: 850px; min-height: 735px; max-height: none; }
  .hero-image { object-position: 50% 45%; }
  .hero-shade { background: linear-gradient(180deg, #071b2535 0%, transparent 24%, #08201b40 43%, #0a201dd6 85%, #0a201def 100%); }
  .hero-content { bottom: 121px; left: 22px; right: 22px; }
  .hero h1 { font-size: clamp(39px, 8.8vw, 58px); line-height: 1.08; letter-spacing: -.025em; }
  .desktop-break { display: none; }
  .hero-location { font-size: 12px; letter-spacing: .17em; margin-bottom: 22px; }
  .hero-support { font-size: 14px; letter-spacing: .02em; line-height: 1.9; max-width: 310px; margin: 22px auto 0; }
  .hero-support span { margin-inline: 5px; }
  .hero-actions { gap: 12px; margin-top: 26px; flex-direction: column; align-items: center; }
  .hero-actions .button { min-width: 255px; min-height: 51px; padding: 16px 22px; }
  .hero-bottom { bottom: 24px; padding-top: 21px; gap: 12px; align-items: center; }
  .hero-small-note { font-size: 12px; max-width: 175px; line-height: 1.6; }
  .hero-rate { font-size: 10px; white-space: normal; display: flex; flex-direction: column; gap: 2px; text-align: right; }
  .hero-rate strong { font-size: 17px; margin: 0; white-space: nowrap; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 38px; }
  .hero { min-height: 790px; }
}
