:root {
  --ocean: #0c4a6e;
  --ocean-light: #0e7490;
  --teal: #14b8a6;
  --sand: #faf6f0;
  --sand-dark: #f0e8dc;
  --palm: #1a4d3e;
  --sunset: #e07a4f;
  --sunset-soft: #fff4ee;
  --text: #1c2b33;
  --muted: #5c6b73;
  --line: #e2d9cf;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(12, 74, 110, 0.12);
  --radius: 16px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  overflow-x: clip;
}

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

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

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}

.site-nav.scrolled .nav-logo {
  color: var(--ocean);
}

.nav-logo span {
  font-style: italic;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.site-nav.scrolled .nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-direct {
  background: var(--sunset);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.site-nav.scrolled .nav-direct {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}

.site-nav.scrolled .nav-toggle span {
  background: var(--ocean);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat var(--ocean);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 36, 48, 0.85) 0%,
    rgba(12, 74, 110, 0.4) 50%,
    rgba(12, 74, 110, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.92;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-stats strong {
  font-size: 1.1rem;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sunset);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(224, 122, 79, 0.35);
}

.btn-primary:hover {
  background: #d06a42;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border-color: var(--ocean);
}

.btn-full {
  width: 100%;
}

/* Sections */
section {
  padding: 5rem 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--ocean);
}

.highlight-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Gallery */
.gallery-section {
  padding: 5rem 0 0;
}

.gallery-section h2 {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  margin: 0;
}

.gallery-hero {
  grid-row: span 2;
  grid-column: span 2;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.amenity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  list-style: none;
}

.amenity-list li {
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
}

.amenity-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.bedroom-cards {
  display: grid;
  gap: 0.75rem;
}

.bedroom-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.bedroom-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.bedroom-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Availability */
.availability-section {
  background: linear-gradient(180deg, var(--sand-dark) 0%, var(--sand) 100%);
  padding: 5rem 0;
}

.availability-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.availability-copy p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.booking-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.direct-note {
  font-size: 0.85rem;
  font-style: italic;
}

.calendar-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sand);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.cal-nav:hover {
  background: var(--sand-dark);
}

.calendar-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.calendar-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dot.available { background: #d1fae5; border: 1px solid #6ee7b7; }
.dot.blocked { background: #fee2e2; border: 1px solid #fca5a5; }
.dot.selected { background: var(--ocean); }

.calendar-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cal-month h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  background: #ecfdf5;
  color: var(--text);
}

.cal-day.empty {
  background: transparent;
  cursor: default;
}

.cal-day.past,
.cal-day.blocked {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.blocked {
  background: #fef2f2;
}

.cal-day.check-in,
.cal-day.check-out {
  background: var(--ocean);
  color: var(--white);
  font-weight: 700;
}

.cal-day.in-range {
  background: #bae6fd;
}

.cal-day.available:hover {
  background: #a7f3d0;
}

.calendar-selection {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--sand);
  border-radius: 10px;
  font-size: 0.9rem;
}

.calendar-status {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.nearby-list {
  margin-top: 1.25rem;
  list-style: none;
}

.nearby-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* Reviews */
.review-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.review-score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--ocean);
  line-height: 1;
}

.review-banner h2 {
  margin-bottom: 0.25rem;
}

.review-banner p {
  color: var(--muted);
  font-size: 0.95rem;
}

.review-banner .btn {
  margin-left: auto;
}

/* Contact */
.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--palm) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  flex-wrap: wrap;
}

.contact-card .eyebrow {
  color: var(--teal);
}

.contact-card p {
  opacity: 0.9;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  background: var(--ocean);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo span {
  font-style: italic;
  color: var(--teal);
}

.footer-sub,
.footer-links {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

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

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1rem;
}

/* Book page */
.book-page .site-nav {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.book-page .nav-logo {
  color: var(--ocean);
}

.book-page .nav-links a {
  color: var(--muted);
}

.book-main {
  padding: 7rem 0 4rem;
  min-height: 80vh;
}

.access-card,
.booking-header {
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: center;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

.access-form label,
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.access-form input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}

.access-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.access-hint a {
  color: var(--ocean-light);
  text-decoration: underline;
}

.access-error {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.booking-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-estimate {
  background: var(--sand);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.9rem;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.estimate-total {
  font-weight: 700;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.estimate-note,
.estimate-warn {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.estimate-warn {
  color: #dc2626;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.sidebar-perks {
  list-style: none;
  margin-top: 1rem;
}

.sidebar-perks li {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: var(--muted);
}

.calendar-mini .calendar-months,
.calendar-mini #mini-calendar-grid {
  display: block;
}

.booking-success {
  text-align: center;
  padding: 3rem;
  background: var(--sunset-soft);
  border-radius: var(--radius);
}

.booking-success h2 {
  color: var(--palm);
}

/* Responsive */
@media (max-width: 900px) {
  .intro-grid,
  .highlight-grid,
  .amenities-grid,
  .availability-layout,
  .location-grid,
  .booking-layout {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-hero {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 260px;
  }

  .calendar-months {
    grid-template-columns: 1fr;
  }

  .review-banner .btn {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--text) !important;
  }

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

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

  .gallery-hero {
    grid-column: span 1;
  }

  .amenity-list {
    grid-template-columns: 1fr;
  }

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

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-actions {
    align-items: center;
  }
}
