/* =============================================
   THE MAPLE BAY HOUSE — Stylesheet
   ============================================= */

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

:root {
  --ocean:    #2a6080;
  --ocean-lt: #4a8faa;
  --ocean-dk: #1a4560;
  --sand:     #f5f0e8;
  --bark:     #8b6f4e;
  --white:    #ffffff;
  --text:     #2c2c2c;
  --text-lt:  #666666;
  --border:   #e0e0e0;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:0 8px 48px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
p  { color: var(--text-lt); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean-lt);
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.center { text-align: center; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--ocean);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--ocean-dk); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-full { width: 100%; text-align: center; padding: 1rem; font-size: 1rem; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ocean-dk);
}
.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--ocean); }
.btn-nav {
  background: var(--ocean);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--ocean-dk) !important; }
.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text);
}
.nav-mobile {
  display: none; flex-direction: column; padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile a {
  padding: 0.6rem 0; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a4560 0%, #2a6080 40%, #4a8faa 70%, #6bafc5 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,69,96,0.5) 0%, rgba(26,69,96,0.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  max-width: 800px; padding: 0 1.5rem;
}
.hero-location {
  font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 580px; margin: 0 auto 2.5rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem; animation: bounce 2s infinite;
  cursor: pointer;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── HIGHLIGHTS BAR ── */
.highlights {
  background: var(--ocean);
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0;
}
.highlight-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.highlight-item:last-child { border-right: none; }
.highlight-icon { font-size: 1.2rem; }

/* ── GALLERY ── */
.gallery-section { background: #000; padding-bottom: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 4px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; }
.gallery-item:hover img { opacity: 0.9; }
.gallery-hero { grid-column: span 2; grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-more {
  display: block; width: 100%;
  background: rgba(0,0,0,0.8); color: rgba(255,255,255,0.8);
  border: none; padding: 1rem; font-size: 0.9rem;
  cursor: pointer; transition: background 0.2s;
}
.gallery-more:hover { background: var(--ocean); color: var(--white); }
.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gallery-grid-full img { width: 100%; height: 220px; object-fit: cover; }

/* ── ABOUT ── */
.about { background: var(--sand); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p  { margin-bottom: 1rem; font-size: 1.05rem; }
.about-badges  { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.badge {
  background: var(--ocean);
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
  background: linear-gradient(135deg, #c8d8e0, #a0b8c8);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── UNITS ── */
.units-section { background: var(--white); }
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.unit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex; flex-direction: column;
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.unit-card.featured { border-color: var(--ocean); border-width: 2px; }
.unit-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--ocean); color: var(--white);
  padding: 0.25rem 0.75rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; z-index: 2;
}
.unit-image {
  height: 200px; position: relative;
  background: #c8d8e0;
  overflow: hidden;
}
.unit-image img { width: 100%; height: 100%; object-fit: cover; }
.unit-image-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--white);
  font-size: 0.8rem; font-weight: 600;
  padding: 1.5rem 1rem 0.75rem;
}
.unit-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.unit-size  { font-size: 0.85rem; color: var(--ocean-lt); font-weight: 500; margin-bottom: 1rem; }
.unit-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.unit-features li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.unit-features li::before { content: '✓ '; color: var(--ocean); font-weight: 700; }
.unit-price { margin-bottom: 1.25rem; }
.price { font-size: 1.75rem; font-weight: 700; color: var(--ocean-dk); font-family: 'Playfair Display', serif; }
.per   { font-size: 0.9rem; color: var(--text-lt); }
.units-note {
  text-align: center; font-size: 0.85rem;
  color: var(--text-lt); margin-top: 2rem;
}

/* ── AREA ── */
.area-section { background: var(--sand); }
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.area-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.area-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.area-card h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ocean-dk); }
.area-card p  { font-size: 0.9rem; margin: 0; }

/* ── CALENDAR ── */
.calendar-section { background: var(--white); }
.calendar-unit-selector {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.cal-unit-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 25px;
  background: var(--white);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  color: var(--text);
}
.cal-unit-btn.active, .cal-unit-btn:hover {
  border-color: var(--ocean);
  background: var(--ocean);
  color: var(--white);
}
.calendar-wrapper {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.calendar-loading { color: var(--text-lt); font-style: italic; }
.calendar-grid { width: 100%; }
.calendar-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 700px; margin: 0 auto;
}
.cal-day-label {
  text-align: center;
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-lt);
  padding: 0.5rem 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 0.6rem 0.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.cal-day:hover { background: rgba(42, 96, 128, 0.1); }
.cal-day.booked { background: #e0e0e0; color: #aaa; cursor: not-allowed; text-decoration: line-through; }
.cal-day.available { color: var(--text); }
.cal-day.past { color: #ccc; cursor: default; }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.selected { background: var(--ocean); color: var(--white); }
.cal-month-header {
  text-align: center; margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--ocean-dk);
}
.cal-nav { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.cal-nav button {
  background: none; border: 1px solid var(--border);
  padding: 0.4rem 1rem; border-radius: 6px;
  cursor: pointer; font-size: 0.9rem;
  transition: all 0.15s;
}
.cal-nav button:hover { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.calendar-note {
  text-align: center; font-size: 0.85rem;
  color: var(--text-lt); margin-top: 1.5rem;
}
.calendar-note a { color: var(--ocean); text-decoration: underline; }

/* ── BOOKING ── */
.booking-section { background: var(--ocean-dk); }
.booking-section h2 { color: var(--white); }
.booking-section .section-label { color: rgba(255,255,255,0.6); }
.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.booking-info p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.booking-perks { margin: 1.5rem 0; }
.perk { color: rgba(255,255,255,0.9); padding: 0.35rem 0; font-size: 0.95rem; font-weight: 500; }
.pricing-summary {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.pricing-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.pricing-row:last-child { border-bottom: none; }

.booking-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--ocean); }
.form-note {
  text-align: center; font-size: 0.8rem;
  color: var(--text-lt); margin-top: 0.75rem;
}

/* ── FOOTER ── */
.footer { background: #0f2535; padding: 3rem 0 1.5rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); }
.footer-loc  { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); text-align: center; margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .two-col           { grid-template-columns: 1fr; }
  .units-grid        { grid-template-columns: 1fr; }
  .area-grid         { grid-template-columns: 1fr 1fr; }
  .booking-container { grid-template-columns: 1fr; }
  .about-image       { min-height: 280px; }
}
@media (max-width: 680px) {
  .nav-links  { display: none; }
  .nav-hamburger { display: block; }
  .highlights { flex-direction: column; align-items: stretch; }
  .highlight-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .area-grid  { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .section    { padding: 4rem 0; }
}
