:root {
  --ink: #16232b;
  --muted: #667783;
  --line: #e2e8ea;
  --paper: #f7f3ec;
  --sand: #efe3d0;
  --sea: #087f8c;
  --lagoon: #10a5a5;
  --deep: #0b3140;
  --sun: #f3b64d;
  --coral: #df6d55;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 62px);
  background: rgba(247, 243, 236, .9);
  border-bottom: 1px solid rgba(22, 35, 43, .08);
  backdrop-filter: blur(18px);
}
.brand {
  font-weight: 900;
  font-size: 1.18rem;
  color: var(--deep);
}
.nav { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: .95rem; }
.nav a { padding: 8px 0; }
.nav a:hover, .text-link { color: var(--sea); }

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(36px, 7vw, 92px);
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 49, 64, .1), rgba(11, 49, 64, .84)),
    url("https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?auto=format&fit=crop&w=1900&q=82") center/cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(247,243,236,0), var(--paper));
}
.hero-content { position: relative; z-index: 1; max-width: 1050px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sea);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #baf3ec; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 14px; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 8vw, 7.4rem); max-width: 1050px; }
h2 { font-size: clamp(2rem, 4vw, 4.1rem); }
h3 { font-size: 1.35rem; }
.hero p, .page-hero p { max-width: 720px; font-size: clamp(1.08rem, 1.7vw, 1.35rem); color: rgba(255,255,255,.88); }

.button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(223,109,85,.22);
}
.button.secondary { background: var(--white); color: var(--deep); border: 1px solid var(--line); box-shadow: none; }
.button.full { width: 100%; margin-top: 10px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero-search {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}
.hero-search input,
.hero-search select {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: #f5f8f8;
  font: inherit;
}
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.hero-stats strong { color: var(--sun); }

.section, .page-hero, .place-layout, .place-hero, .form-section, .site-footer {
  padding: clamp(38px, 6vw, 84px) clamp(18px, 4vw, 62px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 { max-width: 820px; }
.intro-band {
  display: grid;
  grid-template-columns: 1.15fr .85fr auto;
  gap: 24px;
  align-items: center;
  margin-top: -20px;
}
.intro-band p { color: var(--muted); font-size: 1.05rem; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}
.image-tile,
.experience-card {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 50px rgba(11,49,64,.14);
}
.image-tile::before,
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,49,64,.05), rgba(11,49,64,.82));
}
.image-tile div,
.experience-card div {
  position: relative;
  padding: 22px;
}
.image-tile p,
.experience-card span { color: rgba(255,255,255,.84); }

.beach-feature {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: center;
  background: var(--deep);
  color: var(--white);
}
.feature-copy { max-width: 520px; }
.feature-copy .eyebrow { color: #baf3ec; }
.feature-copy p { color: rgba(255,255,255,.78); font-size: 1.08rem; }
.beach-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.beach-mosaic div {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.beach-mosaic div:nth-child(1) {
  grid-row: span 2;
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1000&q=82");
}
.beach-mosaic div:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=900&q=82");
}
.beach-mosaic div:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&w=900&q=82");
}

.category-grid, .card-grid, .listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-tile, .card, .info-panel, .admin-card, .admin-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.category-tile {
  position: relative;
  min-height: 185px;
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(11,49,64,.12);
}
.category-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--sand);
  color: var(--deep);
  font-weight: 900;
}
.category-tile strong { display: block; margin-bottom: 12px; font-size: 1.2rem; }
.category-tile span, .category-tile small, .card p, .site-footer p, .empty { color: var(--muted); }
.card {
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(11,49,64,.08);
}
.card-image, .place-photo {
  min-height: 235px;
  background:
    linear-gradient(135deg, rgba(8,127,140,.45), rgba(242,184,75,.28)),
    url("https://images.unsplash.com/photo-1540541338287-41700207dee6?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.card-body { padding: 22px; }

.dark-section {
  background: #123949;
  color: var(--white);
}
.dark-section .eyebrow { color: #baf3ec; }
.experience-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 16px;
}
.experience-card:first-child { min-height: 420px; }
.experience-card:not(:first-child) { min-height: 320px; }

.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr;
  grid-auto-rows: 180px;
  gap: 12px;
}
.gallery-grid div {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.gallery-grid div:first-child,
.gallery-grid div:nth-child(4) { grid-row: span 2; }

.split-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--deep);
  color: var(--white);
}
.split-band p { color: rgba(255,255,255,.78); }
.split-band .eyebrow { color: #baf3ec; }

.page-hero {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11,49,64,.96), rgba(8,127,140,.84)),
    url("https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.page-hero .eyebrow { color: #baf3ec; }
.place-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}
.place-hero p { color: var(--muted); font-size: 1.15rem; }
.place-photo { border-radius: 8px; min-height: 390px; }
.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.prose { font-size: 1.08rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.info-panel { padding: 22px; align-self: start; }

.public-form, .admin-form {
  display: grid;
  gap: 14px;
  max-width: 920px;
  padding: 24px;
}
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-errors, .flash { padding: 12px 14px; border-radius: 8px; background: #fff2d3; color: #6d4b05; }
.flash { margin: 18px clamp(18px, 4vw, 56px); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.admin-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: #f4f7f7; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; background: var(--deep); color: var(--white); }
.admin-sidebar nav { display: grid; gap: 8px; margin: 28px 0; }
.admin-sidebar a, .admin-sidebar button { padding: 10px 0; color: rgba(255,255,255,.88); background: transparent; border: 0; text-align: left; font: inherit; cursor: pointer; }
.admin-main { padding: 28px; overflow-x: auto; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, 520px) minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-form h2, .admin-form h3 { margin-top: 10px; }
.compact { margin: 10vh auto; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.stats div { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.stats strong { display: block; font-size: 2rem; }
.stats span { color: var(--muted); }
.admin-card { padding: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .82rem; color: var(--muted); text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }
.inline-form { display: flex; gap: 8px; }
.inline-form button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }

@media (max-width: 1080px) {
  .quick-grid, .experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-band, .beach-feature { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .category-grid, .card-grid, .listing-grid, .split-band, .place-hero, .place-layout, .admin-body, .admin-grid, .hero-search, .gallery-grid { grid-template-columns: 1fr; }
  .quick-grid, .experience-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .site-header, .site-footer, .section-head { align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  h1 { font-size: 2.7rem; }
  .hero { min-height: 82vh; }
  .beach-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(3, 220px); }
  .beach-mosaic div:nth-child(1), .gallery-grid div:first-child, .gallery-grid div:nth-child(4) { grid-row: span 1; }
}
