/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pine:    #2d5a27;
  --pine-dk: #1e3d1a;
  --gold:    #c8902a;
  --gold-lt: #f0b94a;
  --cream:   #faf7f2;
  --charcoal:#2c2c2c;
  --gray:    #666;
  --light:   #f5f5f0;
  --white:   #fff;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }
body { font-family: Georgia, "Times New Roman", serif; color: var(--charcoal); background: var(--white); line-height: 1.7; }
h1,h2,h3,h4,h5 { font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.25; }
a { color: var(--pine); text-decoration: underline; }
a:hover { color: var(--pine-dk); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-family: "Trebuchet MS", Arial, sans-serif; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: none; transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-dk); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #a8761f; color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header { background: var(--pine-dk); color: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { color: var(--white); text-decoration: none; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 1.25rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.main-nav { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-family: "Trebuchet MS", Arial, sans-serif; font-size: .9rem; white-space: nowrap; }
.main-nav a:hover { color: var(--white); }
.header-cta { white-space: nowrap; flex-shrink: 0; padding: 9px 20px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { background: linear-gradient(rgba(20,40,18,.62), rgba(20,40,18,.72)), url('/static/img/hero.jpg'); background-size: cover; background-position: center; color: var(--white); padding: 96px 20px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
.hero .tagline { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .9; margin-bottom: 32px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 16px; font-size: .85rem; margin-bottom: 24px; }

/* ── Cabin cards ─────────────────────────────────────────────── */
.cabin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; padding: 60px 0; }
.cabin-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #e8e0d5; background: var(--white); }
.cabin-card-img { height: 220px; background: linear-gradient(160deg, #4a8a42, var(--pine-dk)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .85rem; }
.cabin-card-body { padding: 24px; }
.cabin-card-body h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--pine-dk); }
.cabin-card-body .sleeps { font-size: .9rem; color: var(--gray); margin-bottom: 12px; }
.cabin-card-body p { font-size: .95rem; margin-bottom: 20px; }
.cabin-card-body .features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { background: var(--light); border-radius: 4px; padding: 4px 10px; font-size: .8rem; font-family: "Trebuchet MS", Arial, sans-serif; }

/* ── Section wrappers ───────────────────────────────────────── */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-light { background: var(--light); }
.section-pine { background: var(--pine-dk); color: var(--white); }
.section-pine h2, .section-pine h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--pine-dk); margin-bottom: 12px; }
.section-header p { color: var(--gray); max-width: 640px; margin: 0 auto; }

/* ── Three-column grid ───────────────────────────────────────── */
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.three-col .col { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.three-col .col h3 { color: var(--pine-dk); margin-bottom: 12px; }

/* ── Two-col with sidebar ────────────────────────────────────── */
.two-col-main { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .two-col-main { grid-template-columns: 1fr; } }

/* ── Sidebar booking box ─────────────────────────────────────── */
.booking-box { background: var(--cream); border: 2px solid var(--pine); border-radius: var(--radius); padding: 28px; position: sticky; top: 90px; }
.booking-box h3 { color: var(--pine-dk); margin-bottom: 16px; font-size: 1.2rem; }
.booking-box .price-note { font-size: .85rem; color: var(--gray); margin-bottom: 20px; }
.booking-box .btn { width: 100%; text-align: center; margin-bottom: 12px; }
.booking-box .phone-big { font-size: 1.3rem; font-weight: 700; color: var(--pine-dk); text-decoration: none; display: block; text-align: center; margin-bottom: 8px; }

/* ── Contact form ────────────────────────────────────────────── */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: "Trebuchet MS", Arial, sans-serif; font-size: .9rem; margin-bottom: 6px; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid #ccc; border-radius: var(--radius); font-size: 1rem; font-family: Georgia, serif; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; padding: 20px 0; }
.faq-item h3 { font-size: 1.05rem; color: var(--pine-dk); cursor: pointer; }
.faq-item p { margin-top: 10px; color: var(--gray); }

/* ── CTA strip ───────────────────────────────────────────────── */
.cta-strip { background: var(--gold); color: var(--white); padding: 48px 20px; text-align: center; }
.cta-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; color: var(--white); }
.cta-strip p { margin-bottom: 28px; opacity: .95; }
.cta-strip .btn-primary { background: var(--white); color: var(--pine-dk); }
.cta-strip .btn-primary:hover { background: var(--cream); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: var(--gray); }
.breadcrumb a { color: var(--pine); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Blog grid ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.blog-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card-body p { font-size: .9rem; color: var(--gray); margin-bottom: 16px; }

/* ── Property page ───────────────────────────────────────────── */
.property-hero { background: linear-gradient(160deg, var(--pine-dk), #3d7a35); color: var(--white); padding: 60px 20px; }
.property-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
.property-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.stat { background: rgba(255,255,255,.15); border-radius: var(--radius); padding: 12px 20px; text-align: center; }
.stat .num { font-size: 1.6rem; font-weight: 700; display: block; }
.stat .lbl { font-size: .8rem; opacity: .85; }

/* ── Amenity list ────────────────────────────────────────────── */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.amenity { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--light); border-radius: 6px; font-size: .9rem; }
.amenity::before { content: "✓"; color: var(--pine); font-weight: 700; flex-shrink: 0; }

/* ── Process steps ───────────────────────────────────────────── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin: 0 auto; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { background: var(--pine); color: var(--white); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-family: "Trebuchet MS", Arial, sans-serif; }
.step-body h3 { margin-bottom: 6px; color: var(--pine-dk); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; padding-bottom: 40px; }
.footer-inner strong { color: var(--white); display: block; margin-bottom: 12px; font-family: "Trebuchet MS", Arial, sans-serif; }
.footer-inner p { font-size: .9rem; margin-bottom: 14px; }
.footer-inner ul li { margin-bottom: 8px; }
.footer-inner a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-inner a:hover { color: var(--white); }
.footer-inner .btn { margin-top: 4px; font-size: .85rem; padding: 10px 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ── Photo gallery ───────────────────────────────────────────── */
.gallery-hero { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; cursor: pointer; box-shadow: var(--shadow); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-more { grid-column: 1 / -1; text-align: center; margin-top: 8px; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: none; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; cursor: pointer; background: none; border: none; padding: 0 20px; user-select: none; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-family: "Trebuchet MS", Arial, sans-serif; font-size: .9rem; }
@media (max-width: 768px) { .gallery-hero { height: 260px; } .gallery-grid img { height: 110px; } .lightbox .lb-nav { font-size: 2rem; padding: 0 10px; } }

/* Cabin card real images */
.cabin-card-img.has-photo { background: none; padding: 0; overflow: hidden; }
.cabin-card-img.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Availability calendar ───────────────────────────────────── */
.availability { border: 1px solid #e2dccf; border-radius: var(--radius); padding: 24px; background: var(--white); box-shadow: var(--shadow); }
.avail-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.avail-head h3 { color: var(--pine-dk); font-size: 1.2rem; }
.avail-legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: "Trebuchet MS", Arial, sans-serif; font-size: .8rem; }
.avail-legend .lg { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); }
.avail-legend .lg::before { content: ""; width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.lg-open::before { background: #eef6ea; border: 1px solid #bcdcae; }
.lg-booked::before { background: #e9c9c4; border: 1px solid #d99; position: relative; }
.lg-today::before { background: var(--white); border: 2px solid var(--gold); }

.avail-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.avail-controls button { background: var(--pine); color: #fff; border: none; border-radius: 6px; padding: 8px 16px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: .85rem; cursor: pointer; }
.avail-controls button:disabled { background: #ccc; cursor: default; }
.avail-range { font-family: "Trebuchet MS", Arial, sans-serif; font-weight: 700; color: var(--pine-dk); }

.avail-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cal-month h4 { text-align: center; color: var(--pine-dk); font-family: "Trebuchet MS", Arial, sans-serif; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .7rem; font-family: "Trebuchet MS", Arial, sans-serif; color: var(--gray); padding: 4px 0; font-weight: 700; }
.cal-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: .85rem; border-radius: 5px; background: #eef6ea; color: var(--charcoal); border: 1px solid #d6e8cc; }
.cal-day.empty { background: transparent; border: none; }
.cal-day.past { background: #f3f3f3; color: #bbb; border-color: #eee; }
.cal-day.booked { background: #e9c9c4; color: #9a5b52; border-color: #dcaea6; text-decoration: line-through; }
.cal-day.today { border: 2px solid var(--gold); font-weight: 700; }
.avail-note { font-size: .85rem; color: var(--gray); margin-top: 16px; line-height: 1.6; }
.avail-status { font-size: .78rem; color: var(--gray); margin-top: 8px; font-style: italic; }
.avail-fallback { text-align: center; padding: 24px; color: var(--gray); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; }
  .hero { padding: 48px 20px; }
  .section { padding: 40px 0; }
  .cabin-cards { gap: 20px; }
}
