/* Starlight Cottages — simple, clean directory-style look */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy: #1d3a5f;
  --navy-dark: #14293f;
  --gold: #e8a13d;
  --sand: #faf7f2;
  --text: #2c3540;
  --muted: #6b7683;
  --line: #e3e7ec;
  --green: #2e7d4f;
  --green-bg: #e6f4ec;
  --red: #b3403a;
  --red-bg: #fbeae9;
  --amber: #9a6b12;
  --amber-bg: #fdf3df;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

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

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  flex-wrap: wrap;
  gap: 8px;
}
.logo {
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 9px 0 7px;
  display: inline-block;
}
.logo .wordmark {
  display: block;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1;
  position: relative;
}
.logo .wordmark::after {
  content: '✦';
  color: var(--gold);
  font-size: .42em;
  position: absolute;
  top: -2px;
  margin-left: 5px;
}
.logo .subword {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  text-indent: 4.5px; /* balances the letter-spacing on the last glyph */
  color: #e9eef5;
}
.logo .subword::before,
.logo .subword::after {
  content: '';
  height: 1px;
  width: 30px;
  background: var(--gold);
  opacity: .85;
}

/* serif display type for brand headings */
.hero h1, .section h2, .detail-head h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}
.site-nav a {
  color: #e9eef5;
  text-decoration: none;
  margin-left: 22px;
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 90px 20px 100px;
  background: linear-gradient(rgba(20,41,63,.55), rgba(20,41,63,.65)),
              url('../images/park-hero.jpg') center/cover no-repeat;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: #f0b055; }
.btn.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  margin-left: 12px;
}
.btn.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn.btn-navy { background: var(--navy); color: #fff; }
.btn.btn-navy:hover { background: var(--navy-dark); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--sand); }
.section h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 6px; }
.section .sub { color: var(--muted); margin-bottom: 30px; }

/* ---------- cottage cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.cottage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cottage-card:hover { box-shadow: 0 6px 18px rgba(29,58,95,.14); transform: translateY(-2px); }
.cottage-card a.thumb { display: block; }
.cottage-card .thumb img { height: 210px; width: 100%; object-fit: cover; }
.cottage-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cottage-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 2px; }
.cottage-card h3 a { text-decoration: none; color: inherit; }
.cottage-card .tagline { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.specs { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.specs span { margin-right: 12px; white-space: nowrap; }
.card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.price { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price small { color: var(--muted); font-weight: 400; }
.availability-pill {
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.pill-open { background: var(--green-bg); color: var(--green); }
.pill-low { background: var(--amber-bg); color: var(--amber); }
.pill-full { background: var(--red-bg); color: var(--red); }

/* ---------- feature strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.feature .icon { font-size: 1.7rem; margin-bottom: 8px; }
.feature h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 4px; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- availability table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.avail {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
  background: #fff;
  font-size: .84rem;
}
table.avail th, table.avail td {
  border: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
}
table.avail thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.avail td.cname { text-align: left; font-weight: 600; white-space: nowrap; padding-left: 12px; }
table.avail td.cname a { text-decoration: none; }
td.cell-available { background: var(--green-bg); color: var(--green); font-weight: 600; }
td.cell-available a { color: var(--green); text-decoration: none; display: block; }
td.cell-booked { background: var(--red-bg); color: var(--red); }
td.cell-pending { background: var(--amber-bg); color: var(--amber); font-weight: 600; }

.legend { display: flex; gap: 18px; margin: 14px 2px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.legend .chip { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.chip.g { background: var(--green-bg); }
.chip.r { background: var(--red-bg); }
.chip.y { background: var(--amber-bg); }

.stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 22px; text-align: center; min-width: 130px;
}
.stat .num { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.stat .lbl { font-size: .8rem; color: var(--muted); }

/* ---------- cottage detail page ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.detail-head h1 { color: var(--navy); font-size: 1.9rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 18px 0 6px; }
.breadcrumb a { color: var(--muted); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 30px; }
.gallery .main img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.gallery .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.gallery .thumbs img {
  width: 100%; height: 100px; object-fit: cover; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
}
.gallery .thumbs img.active { border-color: var(--gold); }

.detail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.detail-cols h2 { font-size: 1.25rem; color: var(--navy); margin: 22px 0 8px; }
.detail-cols h2:first-child { margin-top: 0; }
.amenity-list { list-style: none; }
.amenity-list li { padding: 4px 0 4px 26px; position: relative; font-size: .95rem; }
.amenity-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

.rates-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rates-table th, .rates-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.rates-table th { background: var(--sand); color: var(--navy); }

/* ---------- booking box ---------- */
.book-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: var(--sand);
  position: sticky;
  top: 84px;
}
.book-box h2 { margin-top: 0 !important; }
.week-list { list-style: none; margin: 12px 0 4px; }
.week-list li { margin-bottom: 8px; }
.week-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
}
.week-option .st { font-size: .78rem; font-weight: 700; }
.week-option.available .st { color: var(--green); }
.week-option.available:hover { border-color: var(--green); }
.week-option.available.selected { border-color: var(--green); background: var(--green-bg); box-shadow: 0 0 0 1px var(--green); }
.week-option.booked { background: var(--red-bg); color: #a08a88; cursor: not-allowed; }
.week-option.booked .st { color: var(--red); }
.week-option.pending { background: var(--amber-bg); cursor: not-allowed; }
.week-option.pending .st { color: var(--amber); }

.book-form { margin-top: 14px; }
.book-form label { display: block; font-size: .82rem; font-weight: 600; margin: 10px 0 3px; color: var(--navy); }
.book-form input, .book-form select, .book-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .92rem;
  font-family: inherit;
  background: #fff;
}
.book-form textarea { resize: vertical; min-height: 64px; }
.book-total {
  display: flex; justify-content: space-between;
  font-weight: 700; color: var(--navy);
  margin: 14px 0 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.book-form .btn { width: 100%; text-align: center; }
.form-error { color: var(--red); font-size: .85rem; margin-top: 8px; display: none; }

.confirmation {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 18px;
  margin-top: 14px;
}
.confirmation h3 { color: var(--green); margin-bottom: 6px; }
.confirmation p { font-size: .9rem; margin-bottom: 8px; }
.confirmation .ref { font-family: ui-monospace, monospace; font-weight: 700; }

/* ---------- contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.contact-form { max-width: 640px; margin: 28px auto 0; }
.contact-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-size: .82rem; font-weight: 600; margin: 12px 0 3px; color: var(--navy); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: .95rem; font-family: inherit; background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { margin-top: 16px; width: 100%; text-align: center; }
#cf-confirmation .confirmation { max-width: 640px; margin: 20px auto 0; }
@media (max-width: 640px) { .contact-form .cf-row { grid-template-columns: 1fr; } }

.site-footer { background: var(--navy-dark); color: #b9c6d4; padding: 40px 0 30px; margin-top: 60px; font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #e9eef5; }
.site-footer h4 { color: #fff; margin-bottom: 8px; }
.footer-logo {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}
.footer-logo .spark { color: var(--gold); font-size: .6em; vertical-align: super; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .main img { height: 300px; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
  .detail-cols { grid-template-columns: 1fr; }
  .book-box { position: static; }

  /* header: centered logo with nav row underneath */
  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 12px;
  }
  .logo { padding: 12px 0 4px; }
  .logo .wordmark { font-size: 1.6rem; }
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: 8px;
    padding-top: 6px;
    width: 100%;
  }
  .site-nav a { margin-left: 0; font-size: .9rem; padding: 4px 0; }

  /* hero: stacked full-width CTAs */
  .hero { padding: 56px 20px 64px; }
  .hero h1 { font-size: 1.9rem; line-height: 1.25; }
  .hero p { font-size: 1.02rem; margin-bottom: 24px; }
  .hero .btn {
    display: block;
    max-width: 320px;
    margin: 0 auto 12px;
    padding: 14px 20px;
  }
  .hero .btn.btn-outline { margin-left: auto; }

  .section { padding: 40px 0; }
  .stats { gap: 10px; }
  .stat { flex: 1; min-width: 100px; padding: 12px 10px; }
  .detail-head h1 { font-size: 1.5rem; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
