:root {
  --bg: #fcfbf7;
  --surface: #ffffff;
  --ink: #16211f;
  --muted: #66706d;
  --line: #dfe7e1;
  --teal: #0f766e;
  --deep: #153f3b;
  --coral: #d56b4f;
  --gold: #e7b84f;
  --shadow: 0 18px 48px rgba(16, 33, 31, 0.14);
  --radius: 8px;
  --max: 1180px;
  --anchor-offset: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(252, 251, 247, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(16, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(252, 251, 247, 0.92);
  box-shadow: 0 10px 28px rgba(7, 24, 23, 0.16);
}

.brand-logo {
  width: clamp(154px, 17vw, 205px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a:focus-visible,
.site-header.nav-open .site-nav a:hover,
.site-header.nav-open .site-nav a:focus-visible {
  background: rgba(15, 118, 110, 0.1);
}

.site-nav .nav-cta {
  background: var(--coral);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: #bd573d;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: 130px clamp(20px, 5vw, 72px) 34px;
  align-content: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 24, 23, 0.72), rgba(7, 24, 23, 0.32) 48%, rgba(7, 24, 23, 0.14)),
    url("assets/images/gallery/exterior/Napua-Point-ocean-side.jpg") center / cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 35%;
  background: linear-gradient(0deg, rgba(7, 24, 23, 0.72), rgba(7, 24, 23, 0));
  content: "";
}

.hero-content {
  width: min(760px, 100%);
  padding-bottom: clamp(28px, 5vw, 70px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd572;
}

.hero .eyebrow,
.hero h1,
.hero-address,
.hero-copy {
  text-shadow: 0 2px 18px rgba(7, 24, 23, 0.44);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 11vw, 8.5rem);
  font-weight: 500;
}

.hero-address {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: var(--coral);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #bd573d;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(780px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 31, 29, 0.42);
  backdrop-filter: blur(14px);
}

.hero-facts div {
  min-height: 98px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
}

.hero-facts span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 118px) 0;
}

.section[id] {
  scroll-margin-top: var(--anchor-offset);
}

.intro {
  padding-top: clamp(48px, 6vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
  max-width: none;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 500;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.intro-layout,
.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.58fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.intro-main .section-heading {
  margin-bottom: 30px;
}

.intro-copy {
  max-width: 720px;
  color: #2c3936;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.intro-copy p {
  margin: 0 0 22px;
}

.feature-panel,
.nearby-panel,
.detail-block,
.rate-card,
.contact-cards > *,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 33, 31, 0.06);
}

.feature-panel,
.nearby-panel {
  padding: clamp(24px, 4vw, 34px);
}

.feature-panel h3,
.nearby-panel h3,
.detail-block h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.feature-list,
.nearby-panel ul,
.detail-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.nearby-panel li,
.detail-block li {
  position: relative;
  padding-left: 22px;
  color: #33413e;
}

.feature-list li::before,
.nearby-panel li::before,
.detail-block li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.image-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 8px;
  width: min(1450px, calc(100% - 28px));
  margin: 0 auto;
}

.image-band img {
  width: 100%;
  height: clamp(220px, 34vw, 460px);
  object-fit: cover;
}

.image-band img:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.image-band img:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.rates-section {
  padding-bottom: clamp(42px, 7vw, 92px);
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rate-card {
  display: grid;
  min-height: 270px;
  padding: 28px;
  align-content: start;
}

.rate-card.highlighted {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.16);
}

.rate-term {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-card h3 {
  min-height: 58px;
  font-size: 1.24rem;
}

.rate-price {
  margin: 30px 0 6px;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.rate-price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.rate-tax {
  margin: 0;
  color: var(--muted);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.detail-block {
  min-height: 205px;
  padding: 24px;
}

.downloads {
  display: grid;
  align-content: start;
  gap: 12px;
}

.downloads h3 {
  margin-bottom: 6px;
}

.downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--deep);
  font-weight: 900;
}

.downloads a::after {
  color: var(--coral);
  content: "PDF";
  font-size: 0.72rem;
}

.gallery-section {
  width: min(1420px, calc(100% - 40px));
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  outline: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #d9e5df;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(7, 24, 23, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  text-wrap: balance;
  backdrop-filter: blur(8px);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.map-wrap {
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #d9e5df;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
}

.nearby-panel {
  align-self: stretch;
}

.contact-section {
  padding-top: clamp(42px, 7vw, 92px);
}

.contact-section .section-heading.split {
  align-items: center;
}

.contact-cards {
  display: grid;
  gap: 10px;
}

.contact-cards > * {
  display: grid;
  gap: 2px;
  min-height: 78px;
  padding: 15px 18px;
}

.contact-cards span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-cards strong {
  color: var(--deep);
  font-size: 1.08rem;
}

.contact-cards small {
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #33413e;
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd9d4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

.contact-form input {
  min-height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.message-field,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  width: max-content;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 28px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
}

.form-status.success,
.form-status.error,
.form-status.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: status-pop 260ms ease both;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: #bd573d;
}

.form-status.notice {
  color: #8a6421;
}

.form-status.success::before,
.form-status.error::before,
.form-status.notice::before {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1;
}

.form-status.success::before {
  background: var(--teal);
  content: "✓";
}

.form-status.error::before {
  background: #bd573d;
  content: "!";
}

.form-status.notice::before {
  background: var(--gold);
  color: var(--ink);
  content: "i";
}

@keyframes status-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 172px;
  height: auto;
}

.site-footer a {
  color: var(--teal);
  font-weight: 900;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  justify-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(7, 24, 23, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0;
  min-height: 0;
}

.lightbox img {
  width: 100%;
  max-height: 70svh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #0a1716;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-weight: 800;
}

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  width: min(920px, calc(100vw - 112px));
  max-width: 100%;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  scrollbar-color: rgba(255, 255, 255, 0.42) transparent;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #0a1716;
  cursor: pointer;
  opacity: 0.62;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.lightbox-thumb:hover,
.lightbox-thumb:focus-visible,
.lightbox-thumb.active {
  border-color: var(--gold);
  opacity: 1;
  outline: none;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-close::before,
.lightbox-close::after {
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-arrow::before {
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
}

.lightbox-arrow.prev {
  left: 18px;
}

.lightbox-arrow.prev::before {
  transform: translateX(2px) rotate(-45deg);
}

.lightbox-arrow.next {
  right: 18px;
}

.lightbox-arrow.next::before {
  transform: translateX(-2px) rotate(135deg);
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-content {
    padding-bottom: 30px;
  }

  .hero-facts,
  .rate-grid,
  .details-grid,
  .intro-layout,
  .location-layout,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    max-width: 520px;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .rate-card h3 {
    min-height: 0;
  }

  .gallery-controls {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --anchor-offset: 32px;
  }

  .brand {
    padding: 4px 8px;
  }

  .brand-logo {
    width: 146px;
  }

  .hero {
    min-height: 92svh;
    padding: 96px 18px 24px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 24, 23, 0.24), rgba(7, 24, 23, 0.14) 34%, rgba(7, 24, 23, 0.72)),
      linear-gradient(90deg, rgba(7, 24, 23, 0.86), rgba(7, 24, 23, 0.58) 58%, rgba(7, 24, 23, 0.26)),
      url("assets/images/gallery/exterior/Napua-Point-ocean-side.jpg") 48% center / cover;
  }

  .hero::after {
    height: 48%;
    background: linear-gradient(0deg, rgba(7, 24, 23, 0.84), rgba(7, 24, 23, 0));
  }

  .hero-content {
    padding-bottom: 22px;
  }

  .hero-copy {
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 44px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts div {
    min-height: 78px;
    padding: 14px;
  }

  .hero-facts div:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-facts div:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }

  .section,
  .gallery-section {
    width: min(100% - 32px, var(--max));
  }

  .image-band {
    grid-template-columns: 1fr;
  }

  .image-band img,
  .image-band img:first-child,
  .image-band img:last-child {
    height: 260px;
    border-radius: var(--radius);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }

  .footer-brand {
    display: grid;
    gap: 10px;
  }

  .footer-brand img {
    width: 164px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 92px;
    transform: none;
  }

  .lightbox {
    padding: 16px;
    gap: 10px;
  }

  .lightbox img {
    max-height: 64svh;
  }

  .lightbox-thumbs {
    width: calc(100vw - 32px);
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
