:root {
  --green-700: #15803d;
  --green-800: #166534;
  --green-50: #f0fdf4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }

.btn {
  display: inline-block;
  padding: 1rem 1.25rem; /* bigger tap area */
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.2s ease;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-soft { background: rgba(255, 255, 255, 0.9); color: #111; }
.btn-soft:hover { background: #fff; }
.btn-ghost { background: #fff; color: #111; border: 1px solid var(--border); }

/* Header */
header.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-inline: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
nav.primary { display: none; gap: 1.25rem; font-size: 0.95rem; flex-wrap: wrap; }
nav.primary a { padding: 0.25rem 0; transition: color 0.2s; white-space: nowrap; }
nav.primary a:hover { color: var(--green-700); }
.cta-desktop { display: none; }

@media (min-width: 768px) {
  nav.primary { display: flex; }
  .cta-desktop { display: inline-block; }
}

/* Hero */
.hero { position: relative; height: 75vh; }
@media (min-width: 768px) { .hero { height: 80vh; } }

.hero picture { position: absolute; inset: 0; display: block; }
.hero .bg { width: 100%; height: 100%; object-fit: cover; }

/* Fallback if someone uses <img class="bg"> without <picture> wrapper */
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.3), rgba(0,0,0,.1));
}
.hero .content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 3.5rem;
}
.hero h1 {
  color: #fff; font-weight: 800; line-height: 1.1;
  font-size: clamp(1.75rem, 6vw, 3.5rem); margin: 0; max-width: 46rem;
}
.hero p {
  color: rgba(255,255,255,.9); max-width: 36rem;
  margin-top: 1rem; font-size: clamp(1rem, 4vw, 1.25rem);
}
.hero .actions { margin-top: 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Sections */
section { scroll-margin-top: 84px; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
h2 { font-size: 2rem; font-weight: 800; margin: 0 0 .75rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin: .5rem 0; }
.lead { margin-bottom: 1rem; }
.rounded-xl { border-radius: 20px; }
.shadow-xl { box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* Amenities */
.section-muted { background: var(--green-50); padding-block: 2.5rem; }
.cards { display: grid; gap: 1rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3,1fr); } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card p { color: var(--gray-600); }

/* ---------- Image aspect-ratio control ---------- */

/* Make wrappers block-level and full width */
.gallery picture, .stack picture { display: block; width: 100%; }

/* Uniform tiles: reserve aspect space to prevent CLS */
.ratio-4x3   { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; }

/* Images fill their frame without distortion; neat crops */
.gallery picture img,
.stack picture img,
.gallery img /* fallback for raw <img> */,
.stack img   /* fallback for raw <img> */ {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Gallery grid */
.gallery { display: grid; gap: 1rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2,1fr); } }

/* Form */
.section-alt { background: var(--gray-50); padding-block: 2.5rem; }
form.booking {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: grid; gap: 1.2rem;
}
.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
}
input[type="text"],input[type="email"],input[type="date"],input[type="number"],textarea{
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; font: inherit; font-size: 1rem;
}
input:focus, textarea:focus { outline: 2px solid rgba(21,128,61,.2); border-color: var(--green-700); }
.helper { font-size: .75rem; color: #6b7280; text-align: center; margin-top: .75rem; }
.form-message { display: none; color: green; text-align: center; font-size: medium; }

/* Map/info */
.info-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.map-placeholder {
  background: var(--gray-100); color: var(--gray-500); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 16 / 9; /* reserve space for the iframe */
}
.map-large { height: auto; }

/* Footer */
footer { background: var(--green-800); color: #fff; }
footer .bar { border-top: 1px solid rgba(255,255,255,.1); }
footer .inner {
  font-size: .75rem; display: flex; align-items: center; justify-content: center;
  min-height: 48px; line-height: 1.4; padding: 0 .9rem; flex-direction: column; text-align: center;
}

/* Custom spacing */
.section-spacing { padding-block: 2.5rem; }
.about-text h3 { margin-top: 1rem; }
.about-text ul {
  padding-left: 1.25rem; margin: 0; display: grid; gap: .35rem; list-style: disc;
}
.text-center { text-align: center; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-7 { margin-bottom: 1.75rem; }
.font-semibold { font-weight: 600; }
.text-xl { font-size: 1.25rem; }
.mb-2 { margin-bottom: .5rem; }
.logo-img { height: clamp(36px, 10vw, 60px); width: auto; margin-block: -10px; }
.hidden-honeypot {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0;
}

/* Performance hint for below-the-fold blocks */
.section-muted, .section-alt, .container.section-spacing {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

/* Mobile-first refinements */
@media (max-width: 480px) {
  .split, .grid-2, .grid-3, .info-grid { grid-template-columns: 1fr !important; }
  .gallery { grid-template-columns: 1fr !important; }
}
