:root {
  --ink: #16343c;
  --ink-soft: #3d5a62;
  --ocean: #0e4a58;
  --sea: #1b7d8c;
  --aqua: #3aa8b5;
  --foam: #e7f4f6;
  --sand: #f6efe6;
  --sand-deep: #e4d3b8;
  --coral: #d06a4f;
  --gold: #c9a46a;
  --paper: #fffdf9;
  --line: rgba(14, 74, 88, 0.12);
  --shadow: 0 18px 50px rgba(14, 74, 88, 0.12);
  --radius: 22px;
  --header: 84px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff9f43 !important;
  margin-bottom: 10px;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 520; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.12; margin: 0 0 16px; }
h3 { font-size: 1.55rem; margin: 0 0 8px; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 650;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(208, 106, 79, 0.28); }
.btn-dark { background: var(--ocean); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ocean);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.05;
}

.brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9f43;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.active { color: var(--ocean); }

.nav-cta { margin-left: 6px; padding: 10px 18px; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ocean);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 36, 44, 0.18) 0%, rgba(10, 36, 44, 0.62) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=80") center/cover;
}

.hero-copy {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.hero .lede { color: rgba(255,255,255,0.88); }
.eyebrow-blue { color: #1d4f91 !important; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta strong { display: block; font-size: 1.35rem; font-family: var(--serif); }
.hero-meta span { font-size: 0.85rem; opacity: 0.8; }

.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-ocean { background: var(--ocean); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 42px; }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.home-card, .amenity, .pay-card, .review, .quote-card, .agree-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-card img {
  height: auto;
  width: 100%;
  display: block;
}
.grid-2 .home-card img { height: auto; }
.home-card-body, .amenity, .pay-card, .review, .agree-card { padding: 22px; }
.home-card .meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 14px; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.price-row strong { font-size: 1.2rem; }
.price-row em { font-style: normal; color: var(--ink-soft); font-size: 0.88rem; }

.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--foam);
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.amenity h3 { font-size: 1.25rem; }
.amenity p, .pay-card p, .review p { color: var(--ink-soft); margin: 0; }

.icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--foam);
  color: var(--sea);
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.story-photo {
  border-radius: 28px;
  min-height: 460px;
  background:
    url("https://images.unsplash.com/photo-1499793983690-e29da59ef1c2?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: var(--shadow);
}

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; }
.stat span { color: var(--ink-soft); font-size: 0.9rem; }

.review { box-shadow: none; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.page-hero {
  padding: 72px 0 36px;
  background:
    linear-gradient(180deg, rgba(14, 74, 88, 0.72), rgba(14, 74, 88, 0.45)),
    url("https://images.unsplash.com/photo-1471922694854-ff1b63b20054?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.page-hero .lede { color: rgba(255,255,255,0.86); }
.page-hero .eyebrow { color: #ff9f43 !important; }

.property-hero-grid {
  margin: 22px 0 36px;
}

.gallery-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}
.gallery-photo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 680px;
  height: auto;
}
.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sea);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}
.gallery-control:hover { background: #fff; }
.gallery-control.previous { left: 16px; }
.gallery-control.next { right: 16px; }
.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 74, 88, 0.86);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.calendar-shell, .quote-card { padding: 22px; box-shadow: var(--shadow); }
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cal-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.month-label { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dow span, .day {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.day {
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}

.day:hover:not(:disabled) { background: var(--foam); }
.day.start, .day.end { background: var(--coral); color: #fff; }
.day.in-range { background: #f8d8cf; }
.day.booked, .day:disabled { color: #b7c2c5; text-decoration: line-through; cursor: not-allowed; }
.day.today { outline: 1px solid var(--aqua); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: var(--ink-soft); font-size: 0.85rem; }
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.form-grid { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 16px;
  max-width: 100%;
}

textarea { min-height: 110px; resize: vertical; }

.line-item, .total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.total-line {
  border: 0;
  font-size: 1.15rem;
  font-weight: 750;
  padding-top: 14px;
}

.hint { color: var(--ink-soft); font-size: 0.86rem; }

.pay-options { display: grid; gap: 10px; margin: 8px 0 16px; }
.pay-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.pay-option input { margin-top: 4px; accent-color: var(--sea); }
.pay-option.selected { border-color: var(--aqua); background: var(--foam); }
.pay-option em { font-style: normal; }
button.pay-option {
  width: 100%;
  text-align: left;
  background: #fff;
}

.checkout-page { background: #f6f5f3; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.stripe-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.stripe-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.stripe-brand strong { font-size: 1.4rem; }
.stripe-brand span { color: var(--ink-soft); font-size: 0.9rem; }

.stripe-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fafafa;
  margin-bottom: 18px;
}

.stripe-box-title { font-weight: 750; margin: 0 0 8px; }
.card-brands { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }

.btn-stripe {
  width: 100%;
  background: #635bff;
  color: #fff;
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.28);
}

.stripe-secure {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 12px 0;
}

.checkout-summary img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 16px;
}

.error { color: #b42318; font-size: 0.9rem; }

.admin-body { min-height: 100vh; background: var(--sand); }
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-login .stripe-card { width: min(460px, 100%); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--ocean);
  color: #fff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-side .brand-name { color: #fff; }
.admin-side .brand-name span { color: #7fd3dc; }
.admin-tab {
  background: transparent;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
}
.admin-tab.active, .admin-tab:hover { background: rgba(255,255,255,0.12); }
.admin-main { padding: 36px 32px 64px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-list { display: grid; gap: 14px; margin-top: 22px; }
.admin-home {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.admin-home img { width: 92px; height: 72px; object-fit: cover; border-radius: 12px; }
.admin-booking {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.admin-booking p { margin: 6px 0 0; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 24px 16px 48px; }
  .admin-home { grid-template-columns: 72px 1fr; }
  .admin-home .btn { grid-column: 1 / -1; }
}
.agree-box {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 500;
}

.agree-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  max-width: 18px;
  margin: 3px 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--sea);
}

.card-fields { display: none; gap: 12px; }
.card-fields.open { display: grid; }

.success {
  display: none;
  text-align: center;
  padding: 28px 8px 8px;
}

.success.open { display: block; }
.success h3 { font-size: 2rem; }

.agree-list { display: grid; gap: 18px; }
.agree-card h3 { font-size: 1.35rem; }
.agree-card p, .agree-card li { color: var(--ink-soft); }
.agree-card ol { padding-left: 18px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.info-tile {
  background: var(--ocean);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.info-tile a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  background: #0b3038;
  color: rgba(255,255,255,0.82);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h4 {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.site-footer a { display: block; margin: 6px 0; color: rgba(255,255,255,0.78); }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

@media (max-width: 980px) {
  :root { --header: 72px; }

  .wrap,
  .header-inner,
  .hero-copy {
    width: min(1180px, calc(100% - 28px));
  }

  h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  h3 { font-size: 1.3rem; }
  .lede { font-size: 1.02rem; }

  .grid-3, .grid-4, .grid-2, .story, .booking-layout, .months,
  .property-hero-grid, .contact-grid, .footer-grid, .cta-band, .form-row, .checkout-layout {
    grid-template-columns: 1fr;
  }

  .site-header { position: sticky; }

  .nav {
    display: none;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    padding: 18px 22px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 50;
    overflow: auto;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 14px 4px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 16px 0 0;
    width: 100%;
    border: 0;
    text-align: center;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    z-index: 60;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 40px;
    place-items: end start;
  }

  .hero-copy { margin-bottom: 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn,
  .cta-band .btn,
  .price-row .btn,
  .agree-list .btn,
  [data-submit] { width: 100%; }

  .hero-meta { gap: 18px; }
  .section { padding: 56px 0; }
  .story { gap: 28px; }
  .story-photo { min-height: 240px; }
  .stat-row { gap: 12px; }
  .stat strong { font-size: 1.45rem; }
  .page-hero { padding: 40px 0 28px; }
  .gallery-control { width: 38px; height: 38px; }
  .gallery-photo { max-height: 70vh; }
  .calendar-shell,
  .quote-card { padding: 16px; box-shadow: none; }
  .day {
    height: 44px;
    min-height: 44px;
    border-radius: 8px;
  }
  .price-row { flex-wrap: wrap; }
  .grid-2 .home-card img,
  .home-card img { height: auto; }
  .info-tile { padding: 24px; }
}

@media (max-width: 640px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .stat-row { grid-template-columns: 1fr; }
  .property-hero-grid .stack { grid-template-columns: 1fr 1fr; }
  .property-hero-grid .stack img { height: 110px; }
  .hero-meta { flex-direction: column; gap: 12px; }
}
