/*
Theme Name: Pool Residences Modern
Theme URI: https://poolresidences.com/
Author: Private Pool Residences
Description: A modern, responsive WordPress theme for Private Pool Residences on Koh Phangan.
Version: 1.5.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: poolresidences-modern
*/

:root {
  --forest-950: #102c28;
  --forest-900: #153b35;
  --forest-800: #1e5148;
  --forest-700: #28695d;
  --sage-100: #e7efe9;
  --sand-50: #fbfaf6;
  --sand-100: #f4efe5;
  --sand-200: #e8ddcb;
  --coral-500: #d97559;
  --coral-600: #bc5c43;
  --ink: #1b2926;
  --muted: #60706c;
  --white: #ffffff;
  --shadow-sm: 0 12px 35px rgba(16, 44, 40, 0.08);
  --shadow-lg: 0 28px 70px rgba(16, 44, 40, 0.18);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--forest-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-600);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

p {
  margin: 0 0 1.35rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--forest-950);
  border-radius: 8px;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  padding: 1.25rem 0;
  color: var(--white);
}

.site-header.is-solid,
body:not(.home) .site-header {
  position: relative;
  background: var(--forest-950);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: -0.08em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-place {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.65rem);
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.nav-book {
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.nav-book:hover {
  color: var(--forest-950) !important;
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 38, 34, 0.96) 0%, rgba(12, 38, 34, 0.78) 43%, rgba(12, 38, 34, 0.16) 75%),
    linear-gradient(0deg, rgba(12, 38, 34, 0.55) 0%, transparent 40%);
}

.hero-media {
  position: absolute;
  inset: 0 0 0 43%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 760px;
  align-items: center;
  padding: 9rem 0 5rem;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  color: var(--coral-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 670px;
  color: var(--white);
}

.hero-lead {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--coral-500);
  box-shadow: 0 15px 35px rgba(217, 117, 89, 0.25);
}

.button-primary:hover {
  color: var(--white);
  background: var(--coral-600);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  color: var(--forest-950);
  background: var(--white);
}

.button-dark {
  color: var(--white);
  background: var(--forest-900);
}

.button-dark:hover {
  color: var(--white);
  background: var(--forest-700);
}

.hero-stats {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100vw - var(--content)) / 2));
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(16, 44, 40, 0.74);
  backdrop-filter: blur(14px);
}

.hero-stat {
  min-width: 130px;
  padding: 1rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat:last-child {
  border: 0;
}

.hero-stat strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-soft {
  background: var(--sand-100);
}

.section-dark {
  color: rgba(255, 255, 255, 0.76);
  background: var(--forest-950);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-intro p {
  color: rgba(255, 255, 255, 0.68);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.story-media {
  position: relative;
  min-height: 610px;
}

.story-media-main {
  position: absolute;
  inset: 0 16% 0 0;
  width: 84%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.story-media-detail {
  position: absolute;
  right: 0;
  bottom: 3rem;
  width: 38%;
  height: 250px;
  object-fit: cover;
  border: 8px solid var(--sand-50);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.story-copy p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 210px;
  padding: 1.65rem;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--forest-800);
  background: var(--sage-100);
  border-radius: 50%;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-sm);
}

.gallery-grid figure:first-child {
  grid-row: 1 / span 2;
}

.gallery-grid figure:nth-child(4) {
  grid-column: 2 / span 2;
}

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

.gallery-grid figure:hover img {
  transform: scale(1.035);
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.85fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.location-copy {
  padding: clamp(2rem, 5vw, 5rem);
}

.location-copy p {
  color: var(--muted);
}

.distance-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.distance-list li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--sand-200);
}

.distance-list strong {
  color: var(--forest-900);
}

.location-media {
  min-height: 520px;
}

.location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 7vw, 6rem);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--forest-900);
}

.cta-panel::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.04), 0 0 0 110px rgba(255, 255, 255, 0.025);
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-panel .button-row {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 15%, rgba(217, 117, 89, 0.24), transparent 28%),
    var(--forest-950);
}

.page-hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.entry-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.entry-content > * {
  max-width: 760px;
}

.entry-content > .alignwide {
  width: min(1080px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content img {
  border-radius: var(--radius-sm);
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.booking-aside {
  position: sticky;
  top: 2rem;
}

.booking-aside img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.booking-points {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.booking-points li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
}

.booking-points li::before {
  flex: 0 0 auto;
  color: var(--coral-500);
  content: "✓";
  font-weight: 900;
}

.whatsapp-card {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 1.1rem;
  color: var(--forest-950);
  background: var(--sage-100);
  border-radius: 14px;
}

.whatsapp-card p {
  margin: 0;
}

.whatsapp-card a {
  color: var(--forest-800);
  font-weight: 800;
}

.whatsapp-qr-link {
  display: inline-flex;
  padding: 0.55rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.whatsapp-card .whatsapp-qr {
  width: 150px;
  height: 150px;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.whatsapp-qr-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.booking-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.booking-card h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.booking-note {
  padding: 1rem 1.1rem;
  color: var(--forest-900);
  background: var(--sage-100);
  border-radius: 12px;
  font-size: 0.92rem;
}

.availability-status {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  color: var(--forest-800);
  background: var(--sage-100);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.availability-status span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 0.35rem;
  background: var(--forest-700);
  border-radius: 50%;
}

.availability-status.is-unavailable {
  color: #7d2d23;
  background: #fcebe6;
}

.availability-status.is-unavailable span {
  background: var(--coral-600);
}

.availability-status.is-available {
  color: var(--forest-800);
  background: #dfeee7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.7rem;
}

.field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--forest-950);
  font-size: 0.86rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(40, 105, 93, 0.13);
}

.date-picker-field {
  position: relative;
}

.date-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
}

.date-input-wrap .date-display {
  border-radius: 10px 0 0 10px;
}

.date-picker-trigger {
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--forest-900);
  background: var(--sage-100);
  border: 1px solid var(--sand-200);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 1.15rem;
}

.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
  color: var(--white);
  background: var(--forest-700);
  outline: none;
}

.date-calendar {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.55rem);
  left: 0;
  width: min(340px, calc(100vw - 48px));
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(16, 44, 40, 0.2);
}

.calendar-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 0.8rem;
}

.calendar-title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 850;
}

.calendar-nav {
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--forest-900);
  background: var(--sand-100);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  color: var(--white);
  background: var(--forest-700);
  outline: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
}

.calendar-weekday {
  padding: 0.2rem 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-weekday:nth-child(6),
.calendar-weekday:nth-child(7) {
  color: var(--muted);
}

.calendar-day,
.calendar-blank {
  aspect-ratio: 1;
}

.calendar-day {
  display: grid;
  padding: 0;
  place-items: center;
  color: var(--forest-950);
  background: var(--sand-50);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.calendar-day:hover:not(:disabled),
.calendar-day:focus-visible {
  border-color: var(--forest-700);
  outline: none;
}

.calendar-day.is-today {
  border-color: var(--forest-700);
}

.calendar-day.is-selected {
  color: var(--white);
  background: var(--forest-800);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--forest-800);
}

.calendar-day.is-booked {
  color: #a62f25;
  background: #fde8e6;
  border-color: #a62f25;
}

.calendar-day.is-weekend:not(.is-booked):not(.is-past) {
  color: var(--forest-950);
}

.calendar-day.is-booked.is-selected {
  color: var(--white);
  background: #a62f25;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #a62f25;
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.calendar-day.is-past:not(.is-booked) {
  color: #a5aaa7;
  background: #f1f1ee;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.calendar-legend-dot {
  width: 12px;
  height: 12px;
  background: #c84336;
  border-radius: 3px;
}

.form-consent {
  display: flex;
  grid-column: 1 / -1;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
}

.form-submit {
  grid-column: 1 / -1;
  min-height: 54px;
  color: var(--white);
  background: var(--coral-500);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  margin-top: 3.5rem;
}

.form-submit:hover {
  background: var(--coral-600);
}

.form-alert {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
}

.form-alert-success {
  color: #164b33;
  background: #e5f5eb;
  border: 1px solid #b6dfc6;
}

.form-alert-error {
  color: #7a2f2b;
  background: #fff0ed;
  border: 1px solid #efc2ba;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-footer {
  padding: 4.5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.68);
  background: #0c2420;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .brand {
  margin-bottom: 1.2rem;
}

.footer-brand p {
  max-width: 420px;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-actions {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.footer-contact-action {
  display: block;
  width: 96px;
  text-align: center;
}

.footer-contact-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-contact-icon svg {
  width: 46px;
  height: 46px;
}

.footer-contact-icon:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.footer-whatsapp-qr {
  width: 96px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
}

.footer-whatsapp-label {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  text-align: center;
}

.destination-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.destination-hero-media,
.destination-hero-media::after {
  position: absolute;
  inset: 0;
}

.destination-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-hero-media::after {
  content: "";
  background: linear-gradient(180deg, rgba(7, 25, 24, 0.12) 15%, rgba(7, 25, 24, 0.86) 100%);
}

.destination-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-block: clamp(8rem, 20vw, 13rem) clamp(3.5rem, 8vw, 6.5rem);
}

.destination-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.destination-hero-lead {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.island-guide-grid,
.beach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.island-guide-card,
.beach-card {
  overflow: hidden;
  border: 1px solid rgba(18, 62, 58, 0.12);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(16, 52, 48, 0.08);
}

.island-guide-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.island-guide-card h2,
.beach-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.island-guide-card p,
.beach-card p {
  margin: 0;
  color: var(--ink-soft);
}

.beach-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.beach-card-copy {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.beach-meta {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--coral-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.travel-note {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 4px solid var(--coral-500);
  border-radius: 0 14px 14px 0;
  background: var(--sand-100);
}

.travel-note h2 {
  margin-top: 0;
}

.amenities-photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 270px 270px;
  gap: 1rem;
}

.amenities-photo-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-sm);
}

.amenities-photo-grid figure:first-child {
  grid-row: 1 / span 2;
}

.amenities-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-review-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.booking-review-score {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  color: var(--white);
  border-radius: 22px 22px 22px 6px;
  background: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.booking-review-summary p {
  margin: 0;
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.7rem;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.review-summary {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.4;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-source-link {
  margin-top: 2rem;
}

.review-disclosure {
  margin: -0.75rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.more-reviews {
  margin-top: 1.5rem;
}

.more-reviews summary {
  display: inline-flex;
  min-height: 50px;
  cursor: pointer;
  align-items: center;
  padding: 0.7rem 1.2rem;
  color: var(--white);
  border-radius: 999px;
  background: var(--forest-900);
  font-weight: 750;
  list-style: none;
}

.more-reviews summary::-webkit-details-marker {
  display: none;
}

.more-reviews[open] summary {
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.68);
}

.not-found {
  min-height: 60vh;
  padding: 8rem 0;
  text-align: center;
}

@media (max-width: 960px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .amenities-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .amenities-photo-grid figure:first-child {
    grid-row: auto;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    display: flex;
    width: min(420px, 88vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 5rem 2rem 2rem;
    background: var(--forest-950);
    box-shadow: -20px 0 55px rgba(0, 0, 0, 0.24);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav a {
    padding: 0.7rem 0;
    font-size: 1.08rem;
  }

  .nav-book {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-media {
    inset: 0;
    opacity: 0.56;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(12, 38, 34, 0.92), rgba(12, 38, 34, 0.62));
  }

  .hero-stats {
    right: 20px;
    left: 20px;
  }

  .section-intro,
  .story-grid,
  .location-card,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .story-media {
    min-height: 520px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 340px 240px 240px;
  }

  .gallery-grid figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-grid figure:nth-child(4) {
    grid-column: 1 / -1;
  }

  .location-media {
    min-height: 420px;
  }

  .booking-aside {
    position: static;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .island-guide-grid,
  .beach-grid {
    grid-template-columns: 1fr;
  }

  .destination-hero {
    min-height: 540px;
  }

  .amenities-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 230px);
  }

  .booking-review-summary {
    align-items: flex-start;
  }

  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand-place {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    align-items: start;
    padding-top: 9.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-stat:last-child {
    border: 0;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .story-media {
    min-height: 440px;
  }

  .story-media-main {
    right: 10%;
    width: 90%;
  }

  .story-media-detail {
    height: 180px;
  }

  .feature-grid,
  .gallery-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-rows: repeat(4, 280px);
  }

  .gallery-grid figure,
  .gallery-grid figure:first-child,
  .gallery-grid figure:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .field-full,
  .form-consent,
  .form-submit {
    grid-column: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
