:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-text: #2b2924;
  --color-muted: #6b6559;
  --color-border: #e6dfd2;
  --color-primary: #29523d;
  --color-primary-dark: #1e3a28;
  --color-accent: #2f6fae;
  --color-accent-dark: #24578c;
  --color-danger: #b3432f;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; color: var(--color-primary-dark); }
h1 { font-size: 2.1rem; margin: 0 0 0.6em; }
h2 { font-size: 1.6rem; margin: 0 0 0.7em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

a { color: var(--color-primary); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.logo-img { width: 42px; height: 42px; border-radius: 50%; display: block; flex-shrink: 0; }
.main-nav { display: flex; gap: 20px; flex: 1; justify-content: center; }
.main-nav a { text-decoration: none; color: var(--color-text); font-weight: 500; }
.main-nav a:hover { color: var(--color-primary); }
.header-cta { white-space: nowrap; }

@media (max-width: 720px) {
  .main-nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-small { padding: 5px 12px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 90px 0;
}
.hero-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-logo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: block;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero-lead { font-size: 1.15rem; opacity: 0.92; margin-bottom: 2em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #f3ede1; }
.about-text { white-space: pre-line; max-width: 760px; color: var(--color-text); }
.checkin-info { color: var(--color-muted); font-weight: 600; }
.section-cta { text-align: center; margin-top: 30px; }

/* ---------- House cards ---------- */
.house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.house-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.house-card:hover { box-shadow: 0 10px 30px rgba(43, 41, 36, 0.12); transform: translateY(-2px); }
.house-card-img { aspect-ratio: 4 / 3; background: var(--color-border); overflow: hidden; }
.house-card-img img { width: 100%; height: 100%; object-fit: cover; }
.house-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #d9d0bd, #c8bda3); }
.house-card-body { padding: 18px 20px 20px; }
.house-card-body h3 { margin-bottom: 0.3em; }
.house-card-body p { color: var(--color-muted); margin: 0 0 12px; font-size: 0.95rem; }
.house-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.house-card-meta .price { font-weight: 700; color: var(--color-accent-dark); }

/* ---------- Activities (rentals: boats, SUPs, etc.) ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.activity-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.activity-card-img { aspect-ratio: 4 / 3; background: var(--color-border); overflow: hidden; }
.activity-card-img img { width: 100%; height: 100%; object-fit: cover; }
.activity-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #d9d0bd, #c8bda3); }
.activity-thumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px 0; }
.activity-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.activity-card-body { padding: 18px 20px 20px; }
.activity-card-body h3 { margin-bottom: 0.3em; }
.activity-card-body p { color: var(--color-muted); margin: 0 0 14px; font-size: 0.95rem; white-space: pre-line; }
.activity-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.activity-price { font-weight: 700; color: var(--color-accent-dark); }

/* ---------- House detail ---------- */
.back-link { display: inline-block; margin-bottom: 14px; text-decoration: none; color: var(--color-muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.house-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .house-detail-grid { grid-template-columns: 1fr; }
}
.house-description { white-space: pre-line; }
.amenities-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; }
.amenities-list li { padding-left: 22px; position: relative; }
.amenities-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.house-facts { display: flex; gap: 16px; margin-top: 20px; color: var(--color-muted); font-weight: 600; flex-wrap: wrap; }

/* ---------- Booking widget ---------- */
.booking-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.booking-widget-price { font-size: 1.1rem; margin-bottom: 14px; }
.booking-widget-price strong { color: var(--color-accent-dark); font-size: 1.3rem; }

.booking-widget label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 12px 0 4px;
  font-weight: 600;
}
.booking-widget input[type=text],
.booking-widget input[type=tel],
.booking-widget input[type=email],
.booking-widget input[type=number],
.booking-widget textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.booking-summary { margin-top: 16px; padding: 12px 14px; background: #f3ede1; border-radius: 8px; font-size: 0.92rem; }
.booking-summary .row { display: flex; justify-content: space-between; padding: 3px 0; }
.booking-summary .row-total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--color-border); margin-top: 4px; padding-top: 8px; }
.booking-error { color: var(--color-danger); font-size: 0.88rem; margin-top: 10px; }
.booking-hint { font-size: 0.8rem; color: var(--color-muted); margin-top: 10px; }
.booking-widget form button { margin-top: 16px; }

/* ---------- Calendar ---------- */
.calendar-root { user-select: none; }
.cal-months { display: flex; gap: 18px; flex-wrap: wrap; }
.cal-month { flex: 1; min-width: 220px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-header button {
  background: none; border: 1px solid var(--color-border); border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer; font-size: 1rem; color: var(--color-primary);
}
.cal-header button[disabled] { opacity: 0.3; cursor: not-allowed; }
.cal-header .cal-title { font-weight: 700; font-size: 0.92rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-weekday { text-align: center; font-size: 0.72rem; color: var(--color-muted); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 0.82rem; cursor: pointer;
  background: #fff; border: 1px solid transparent;
}
.cal-day.empty { visibility: hidden; }
.cal-day.disabled { color: #c9c2b3; cursor: not-allowed; text-decoration: line-through; }
.cal-day.available:hover { border-color: var(--color-primary); }
.cal-day.in-range { background: #e4ede7; }
.cal-day.selected { background: var(--color-primary); color: #fff; font-weight: 700; }

/* ---------- Status pages ---------- */
.status-page { min-height: 40vh; display: flex; align-items: center; }
.status-container { text-align: center; max-width: 560px; margin: 0 auto; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 0.92rem; }
.flash-success { background: #e3f0e6; color: #285c37; }
.flash-error { background: #fbe7e2; color: #8a2f1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #f1ece0; padding: 40px 0 16px; margin-top: 60px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-inner a { color: #f1ece0; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.footer-social { display: flex; gap: 14px; align-self: center; }
.footer-bottom {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; font-size: 0.82rem; opacity: 0.8;
}
.footer-bottom a { color: #f1ece0; }

.map-embed iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); }

/* ---------- Photo gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.photo-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}
.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.photo-gallery-item:hover img { transform: scale(1.04); }
.photo-gallery-item .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 0.82rem;
}
.photo-gallery-preview { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------- Consent checkbox & cookie banner ---------- */
.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: var(--color-muted);
  line-height: 1.4;
}
.consent-label input[type=checkbox] { width: auto; margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--color-primary); }

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-primary-dark);
  color: #f1ece0;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.cookie-banner p { margin: 0; font-size: 0.85rem; flex: 1; min-width: 220px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button { flex-shrink: 0; }
.cookie-banner[hidden] { display: none; }

/* ---------- Lightbox (photo viewer with prev/next, all photo sections) ---------- */
body.lightbox-locked { overflow: hidden; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption { color: #f1ece0; font-size: 0.9rem; text-align: center; max-width: 640px; }
.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #f1ece0;
  font-size: 0.82rem;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .lightbox-prev { left: 6px; width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-next { right: 6px; width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 1.4rem; }
}
