:root {
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --sand: #f6f1e7;
  --sand-dark: #e9e0cd;
  --sea: #1f6f78;
  --sea-dark: #16535a;
  --sea-light: #e6f1f1;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 36, 48, 0.08);
  --max-width: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.15; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--sea-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sea-dark);
  margin: 0 0 0.6em;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); }
.btn-primary:disabled { background: #a9c4c6; cursor: not-allowed; }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,0.28); }
.btn-block { width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27,36,48,0.06);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 1.1rem; }
.brand-logo { width: 108px; height: 108px; object-fit: cover; border-radius: 8px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover { color: var(--sea-dark); }
.nav-cta { margin-left: 12px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

@media (max-width: 860px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 24px 20px; gap: 14px; display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
}

/* Hero */
.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,33,0.15) 0%, rgba(15,20,26,0.35) 55%, rgba(10,14,18,0.75) 100%); }
.hero-content { position: relative; padding-bottom: 64px; max-width: 720px; }
.hero-content .eyebrow { color: #d9ecec; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 0.2em; }
.hero-sub { color: #eef3f3; font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Strip */
.strip { background: var(--sea-dark); color: #fff; padding: 22px 0; }
.strip-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; text-align: center; }
.strip-item { flex: 1; min-width: 110px; }
.strip-item strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; }
.strip-item span { font-size: 0.82rem; color: #c9dede; text-transform: uppercase; letter-spacing: 0.06em; }

/* Sections */
.section { padding: 76px 0; }
.section.alt { background: var(--sand); }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.amenity-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.amenity-list li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 0.96rem; }
.amenity-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sea); font-weight: 700; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 10px;
  margin-top: 28px;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; }
.gallery-grid img:hover { transform: scale(1.02); filter: brightness(1.03); }
.gallery-grid .tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 340px; border: 0; }
@media (max-width: 800px) { .location-grid { grid-template-columns: 1fr; } }

/* Booking */
.booking-intro { max-width: 640px; }
.booking-panel { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 32px; margin-top: 24px; align-items: start; }
.booking-form, .booking-rates { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d8dde3; border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; }

.price-summary { background: var(--sea-light); border-radius: 10px; padding: 14px 16px; margin: 6px 0 16px; }
.price-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-soft); padding: 3px 0; }
.price-row.total { font-weight: 700; color: var(--ink); font-size: 1.05rem; border-top: 1px solid rgba(31,111,120,0.2); margin-top: 6px; padding-top: 8px; }

.booking-message { padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.booking-message.error { background: #fdecea; color: #9a2b1f; }
.booking-message.info { background: var(--sea-light); color: var(--sea-dark); }

.fine-print { font-size: 0.82rem; color: #7a8592; margin-top: 12px; }

.rates-list { list-style: none; padding: 0; margin: 0 0 14px; }
.rates-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.93rem; }
.rates-list li strong { color: var(--sea-dark); }
.rates-note { font-size: 0.82rem; color: #7a8592; }

.btn-ghost-outline { background: #fff; border: 1px solid #d8dde3; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.85rem; cursor: pointer; color: var(--ink); font-family: inherit; }
.btn-ghost-outline:hover { border-color: var(--sea); color: var(--sea-dark); }

/* Date range picker */
.date-range-field { position: relative; }
.date-range-trigger {
  width: 100%; display: flex; align-items: stretch; text-align: left;
  border: 1px solid #d8dde3; border-radius: 8px; background: #fff; cursor: pointer; padding: 0; overflow: hidden; font-family: inherit;
}
.date-range-trigger:focus, .date-range-trigger.open { outline: 2px solid var(--sea); outline-offset: 1px; }
.date-range-part { flex: 1; padding: 9px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.date-range-part-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.date-range-part-value { font-size: 0.95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-range-part-value.placeholder { color: #9aa3ad; }
.date-range-sep { display: flex; align-items: center; padding: 0 4px; color: #b7bec6; }

.calendar-popover {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  width: 340px; max-width: 92vw; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid #ecebe6; padding: 18px 18px 14px;
}
.calendar-popover-head { margin-bottom: 4px; }
.calendar-hint { font-weight: 700; color: var(--ink); margin: 0 0 2px; font-size: 0.95rem; }
.calendar-min-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }

.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 10px; }
.calendar-nav h4 { margin: 0; font-size: 0.95rem; }
.calendar-nav .btn-ghost-outline { padding: 5px 11px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-dow { text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; padding: 4px 0; }
.calendar-cell { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.calendar-cell.empty { visibility: hidden; }

.cal-day-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: none; cursor: pointer;
  font-size: 0.85rem; color: var(--ink); font-family: inherit; position: relative; display: flex; align-items: center; justify-content: center;
}
.cal-day-btn:hover:not(:disabled) { background: var(--sea-light); }

.cal-day-btn:disabled { cursor: default; color: #c3c9cf; }
.cal-day-btn.cal-blocked { color: #c3c9cf; text-decoration: line-through; }
.cal-day-btn.cal-min-gap { color: #c3c9cf; }

.calendar-cell.in-range .cal-day-btn { background: var(--sea-light); border-radius: 0; }
.calendar-cell.range-start .cal-day-btn,
.calendar-cell.range-end .cal-day-btn { background: var(--sea); color: #fff; }
.calendar-cell.range-start.in-range::before,
.calendar-cell.range-end.in-range::before { content: none; }
.calendar-cell.in-range::before { content: ""; position: absolute; inset: 0 -1px; background: var(--sea-light); z-index: -1; }
.calendar-cell.range-start::after { content: ""; position: absolute; inset: 0 0 0 50%; background: var(--sea-light); z-index: -1; }
.calendar-cell.range-end::after { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--sea-light); z-index: -1; }
.calendar-cell.range-start.range-end::after { content: none; }

.cal-day-btn.cal-today:not(.range-start):not(.range-end) { box-shadow: inset 0 0 0 1px var(--sea); }

/* Tooltip for disabled cells */
.calendar-cell[data-tooltip] .cal-day-btn:disabled { pointer-events: auto; }
.calendar-cell[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: #fff; font-size: 0.72rem; padding: 5px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.12s ease, transform 0.12s ease; z-index: 10;
}
.calendar-cell[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.calendar-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.legend-item { font-size: 0.76rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-blocked { background: #fff; border: 1px solid #c3c9cf; position: relative; }
.legend-blocked::after { content: ""; position: absolute; top: 50%; left: 1px; right: 1px; border-top: 1px solid #c3c9cf; }
.legend-selected { background: var(--sea); }

.calendar-popover-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; }
.calendar-popover-foot .btn-primary { padding: 9px 20px; font-size: 0.88rem; }
.calendar-popover-foot .btn-primary:disabled { background: #a9c4c6; cursor: not-allowed; }

@media (max-width: 480px) {
  .calendar-popover { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none; border-radius: 18px 18px 0 0; max-height: 86vh; overflow-y: auto; }
  .cal-day-btn { width: 30px; height: 30px; font-size: 0.8rem; }
}

@media (max-width: 860px) {
  .booking-panel { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 10px; }
.contact-form { background: #fff; border: 1px solid #eee; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6dd; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }
.footer-inner a { color: #cfd6dd; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,18,0.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; padding: 10px; }
.lightbox-close { top: 16px; right: 20px; font-size: 2rem; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
