@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #123C55;
  --navy-deep: #0C2A3C;
  --ocean: #1D7A94;
  --coral: #E2694B;
  --gold: #E8A93D;
  --sea-glass: #3F9C82;
  --sand: #F6EFDF;
  --paper: #FFFDF8;
  --ink: #16232B;
  --line: rgba(18,60,85,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #EAF2F1;
  opacity: 0.75;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--coral);
  transition: right 0.25s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { right: 0; }

.lang-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 4px;
  flex-shrink: 0;
}
.lang-toggle button {
  border: none;
  background: transparent;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  color: #EAF2F1;
  opacity: 0.55;
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  background: var(--coral);
  color: #fff;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  border: none; background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #EAF2F1; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; order: 2; }
  .lang-toggle { order: 1; }
  .site-nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    border-top: 0 solid rgba(255,255,255,0.15);
    transition: max-height 0.25s ease;
  }
  .site-nav.open {
    max-height: 320px;
    border-top-width: 1px;
    margin-top: 12px;
  }
  .site-nav a {
    padding: 14px 4px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav a::after { display: none; }
}

@media (max-width: 380px) {
  .site-header-inner {
    padding: 12px 14px;
    gap: 10px;
  }
  .site-logo {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .lang-toggle button { padding: 6px 10px; }
  .nav-toggle { flex-shrink: 0; }
}

/* ---------- generic layout ---------- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 5px 14px 5px 4px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}
.hero-caption .eyebrow { color: var(--gold); }
.hero-caption .eyebrow::before { background: var(--gold); }

h1, h2, h3 { font-family: 'Fraunces', serif; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(38px, 6.5vw, 68px); letter-spacing: -0.015em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4.2vw, 38px); letter-spacing: -0.01em; line-height: 1.15; }

.tide-divider { width: 100%; height: 28px; margin: 8px 0; }
.tide-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 440px;
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,42,60,0.18) 0%, rgba(12,42,60,0.05) 32%, rgba(12,42,60,0.78) 100%);
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  bottom: 48px;
  left: 28px;
  right: 28px;
  color: #fff;
  z-index: 2;
}
.hero-caption h1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.35); max-width: 16ch; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 44px 0; }
.section-intro { max-width: 60ch; font-size: 17px; color: #33474E; margin-top: 16px; }
.narrow .section-intro { font-size: 19px; line-height: 1.65; }

.wrap section.tight:has(#leaflet-map),
section:has(> .eyebrow) { }

/* Bold color block sections */
.block-navy { background: var(--navy); color: #EAF2F1; }
.block-navy h2, .block-navy h3 { color: #fff; }
.block-navy .eyebrow { color: var(--gold); }
.block-navy .eyebrow::before { background: var(--gold); }
.block-navy .section-intro { color: #CFE0DE; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(.2,.7,.3,1); }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 680px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.house-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(2,clamp(170px,22vw,290px)); gap:16px; margin-top:0; }
.house-gallery a { aspect-ratio:auto; min-height:0; border-radius:8px; box-shadow:0 8px 24px rgba(12,42,60,.12); }
.house-gallery a:first-child { grid-column:span 2; grid-row:span 2; }
.house-gallery img { transition:transform .55s cubic-bezier(.2,.7,.3,1),filter .35s ease; }
.house-gallery a:hover img,.house-gallery a:focus-visible img { transform:scale(1.08); filter:saturate(1.04); }
.house-gallery a:focus-visible { outline:3px solid var(--gold); outline-offset:4px; }
.booking-cta { display:inline-flex; align-items:center; justify-content:center; min-height:58px; margin-top:30px; padding:15px 30px; border-radius:999px; background:var(--coral); color:#fff; font-size:16px; font-weight:700; letter-spacing:.02em; text-decoration:none; box-shadow:0 10px 26px rgba(226,105,75,.28); transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.booking-cta:hover { transform:translateY(-2px); background:#d75d40; box-shadow:0 14px 30px rgba(226,105,75,.34); }
.booking-cta:focus-visible { outline:3px solid var(--navy); outline-offset:4px; }
@media (max-width:760px) { .house-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(250px,62vw) repeat(2,minmax(150px,42vw)); gap:10px; } .house-gallery a:first-child { grid-column:1/-1; grid-row:auto; } .booking-cta { width:100%; } }

/* ---------- poi list / map ---------- */
.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } }
#leaflet-map {
  height: 520px;
  border-radius: 6px;
  border: 3px solid var(--navy);
  background: var(--paper);
}
.poi-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.poi-tab {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--navy);
  background: transparent; cursor: pointer; color: var(--navy); opacity: 0.7;
  transition: all 0.15s ease;
}
.poi-tab:hover { opacity: 1; }
.poi-tab.active { background: var(--navy); color: #fff; opacity: 1; }
.poi-list { max-height: 520px; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 10px; }
.poi-item {
  padding: 16px 18px; cursor: pointer; background: var(--paper);
  border-radius: 6px; border-left: 4px solid var(--coral);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.poi-item:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(18,60,85,0.12); }
.poi-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--navy); }
.poi-meta { font-size: 12.5px; letter-spacing: 0.03em; color: var(--ocean); margin-top: 4px; text-transform: uppercase; font-weight: 600; }
.poi-desc { font-size: 13.5px; color: #33474E; margin-top: 7px; line-height: 1.55; }
.poi-desc-line { margin-top: 4px; }
.poi-desc-line:first-child { margin-top: 0; }

/* ---------- practical info ---------- */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 780px) { .practical-grid { grid-template-columns: 1fr; } }
.practical-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 30px 26px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.practical-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.practical-card .icon-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.practical-card .icon { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; margin-bottom: 0; }
.practical-card h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin-bottom: 10px; font-family: 'Work Sans', sans-serif; }
.practical-card p { font-size: 14px; color: #CFE0DE; }
.practical-card a.btn-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* Light-background variant of practical cards (used outside block-navy sections) */
.practical-card.light { background: var(--paper); border: 1px solid var(--line); }
.practical-card.light h3 { color: var(--navy); }
.practical-card.light p { color: #33474E; }
.practical-card.light a.btn-link { color: var(--coral); border-bottom-color: var(--coral); }

/* ---------- footer ---------- */
footer {
  background: var(--navy-deep);
  padding: 48px 0 56px;
  margin-top: 0;
}
footer .wrap { display: flex; justify-content: center; }
footer .tide-divider { max-width: 200px; opacity: 0.6; filter: brightness(2); }

/* ---------- editable-content banner (dev aid, removable) ---------- */
.edit-hint {
  background: #FFF3D6;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: #7A5C1E;
  margin: 16px 0;
}
