/* =========================
   30 Alder — coastal/airy
   ========================= */

:root {
  --bg: #FBF8F2;              /* warm off-white */
  --bg-alt: #F2EDE2;          /* sand */
  --ink: #1B2A36;             /* deep navy ink */
  --ink-soft: #4A5B69;        /* muted slate */
  --line: #E2DACB;            /* hairline */
  --accent: #3E6B82;          /* atlantic blue */
  --accent-soft: #C8D8DF;     /* sea glass */
  --available: #4F7A52;       /* moss green */
  --rented: #B86A5E;          /* faded terracotta */
  --blocked: #9A9388;         /* driftwood grey */
  --shadow: 0 12px 40px -16px rgba(27, 42, 54, 0.18);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.4em; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: 'Fraunces', serif;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-header { padding: 0.8rem 1rem; }
  .site-nav { gap: 0.9rem; }
  .site-nav a { font-size: 0.82rem; }
  .brand-name { display: none; }
}
@media (max-width: 420px) {
  .site-nav { gap: 0.7rem; }
  .site-nav a { font-size: 0.76rem; }
}

/* =========================
   Hero
   ========================= */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('images/deck.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--accent-soft);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,54,0) 35%, rgba(27,42,54,0.55) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  color: #FBF8F2;
}

.hero-overlay .eyebrow { color: rgba(251, 248, 242, 0.85); }
.hero-overlay h1 { color: #FBF8F2; }
.hero-sub {
  font-size: 1.1rem;
  max-width: 540px;
  color: rgba(251, 248, 242, 0.92);
  margin-bottom: 1.8rem;
}

.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #FBF8F2;
}
.btn-primary:hover { background: #2F5667; }

.btn-ghost {
  background: transparent;
  color: #FBF8F2;
  border-color: rgba(251, 248, 242, 0.65);
}
.btn-ghost:hover { background: rgba(251, 248, 242, 0.12); }

.btn-inquire {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.btn-inquire:hover { background: var(--accent); color: #FBF8F2; text-decoration: none; }

/* =========================
   Sections
   ========================= */

.section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.about { background: var(--bg); }
.gallery-section { background: var(--bg-alt); }
.availability { background: var(--bg); }
.inquire { background: var(--bg-alt); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.about-copy p { font-size: 1.05rem; color: var(--ink-soft); }
.about-copy p:first-of-type { font-size: 1.18rem; color: var(--ink); }

.amenity-list {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.amenity-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.amenity-list li:last-child { border-bottom: 0; }
.amenity-list strong { color: var(--ink); font-weight: 600; }
.amenity-list span { color: var(--ink-soft); text-align: right; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery .tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-soft);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery .tile:hover img { transform: scale(1.04); }

.tile-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(27, 42, 54, 0.55);
  color: #FBF8F2;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.gallery .tile:hover .tile-zoom {
  background: rgba(27, 42, 54, 0.85);
  transform: scale(1.08);
}

.gallery .tile.wide { grid-column: span 2; }
.gallery .tile.tall { grid-row: span 2; aspect-ratio: 3 / 4; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .tile.wide { grid-column: span 2; }
  .gallery .tile.tall { grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .tile.wide { grid-column: auto; }
}

/* Availability */
.availability-note {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legend-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-available { background: var(--available); }
.dot-rented { background: var(--rented); }
.dot-blocked { background: var(--blocked); }

.weeks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.week {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.week.is-available { border-left: 4px solid var(--available); }
.week.is-rented    { border-left: 4px solid var(--rented); opacity: 0.7; }
.week.is-blocked   { border-left: 4px solid var(--blocked); opacity: 0.55; }

.week.is-available:hover {
  transform: translateY(-1px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.week-dates { font-weight: 500; font-size: 1.02rem; }
.week-dates small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; margin-top: 2px; }

.week-status {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.week.is-available .week-status { color: var(--available); background: rgba(79,122,82,0.10); }
.week.is-rented    .week-status { color: var(--rented);    background: rgba(184,106,94,0.10); }
.week.is-blocked   .week-status { color: var(--blocked);   background: rgba(154,147,136,0.12); }

.week-price {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  min-width: 90px;
  text-align: right;
}
.week-price small { font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; display: block; }

@media (max-width: 640px) {
  .week {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
  }
  .week-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .week-price { grid-column: 1 / -1; text-align: left; }
  .btn-inquire { grid-column: 1 / -1; justify-self: start; }
}

/* Inquire */
.inquire-sub { color: var(--ink-soft); margin-bottom: 2rem; max-width: 640px; }

.inquire-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
}
.inquire-email-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.inquire-email {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin: 0 0 1.4rem;
}
.inquire-email a { color: var(--ink); text-decoration: none; }
.inquire-email a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .inquire-card { padding: 1.4rem; }
  .inquire-email { font-size: 1.2rem; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 242, 0.78);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer .brand-mark { color: #C8D8DF; }
.site-footer .brand-name { color: #FBF8F2; }
.footer-meta { margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.footer-meta a { color: var(--accent-soft); }
.footer-fineprint { font-size: 0.8rem; color: rgba(251, 248, 242, 0.5); margin: 0.5rem 0 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(251, 248, 242, 0.1);
  color: #FBF8F2;
  border: none;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(251, 248, 242, 0.22); }
.lightbox-close { top: 1.2rem; right: 1.2rem; font-size: 2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { display: none; }
}
