/* Bot River Lodge - Complete Stylesheet */

/* CSS Variables */
:root {
  --brand: #0b6b6b;
  --brand-2: #0a8f8f;
  --accent: #f0b429;
  --bg: #e6f3ff;
  --bg-secondary: #e6f3ff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #b3d9ff;
  --neon: #22d3ee;
  --neon-2: #60a5fa;
  --purple: #7c3aed;
  --pink: #ec4899;
  --blue: #0ea5e9;
}

/* Reset and Base Styles */
* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Performance optimizations */
img { 
  max-width: 100%; 
  height: auto; 
  display: block;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card, .unit, .btn, .wa-icon, .floating-wa {
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(96,165,250,0.25), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(34,211,238,0.25), transparent 60%),
    radial-gradient(700px 500px at -10% 100%, rgba(124,58,237,0.18), transparent 60%),
    var(--bg);
  line-height: 1.6;
  text-align: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Layout */
.container { 
  width: min(1100px, 92%); 
  margin: 0 auto; 
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240,248,255,0.95);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
}

.brand {
  font-weight: 700; 
  font-size: 1.2rem; 
  color: var(--brand); 
  text-decoration: none;
}

.nav a { 
  color: var(--text); 
  text-decoration: none; 
  margin: 0 10px; 
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav a:hover { 
  color: var(--brand-2); 
  background: var(--bg-secondary);
  border-color: var(--border);
}

.nav a.nav-active {
  color: white;
  background: #0d4d4d;
  border-color: #0a3a3a;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 77, 77, 0.3);
}

/* Buttons */
.btn { 
  display: inline-block; 
  padding: 12px 20px; 
  border-radius: 12px; 
  text-decoration: none; 
  font-weight: 600; 
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--blue), var(--neon));
  color: #0b1220; 
  border-color: var(--neon);
  box-shadow: 0 6px 20px rgba(34,211,238,0.35);
}

.btn-primary:hover { 
  background: linear-gradient(135deg, var(--neon-2), var(--neon));
  border-color: var(--neon-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(34,211,238,0.45);
}

.btn-accent { 
  background: var(--accent); 
  color: #1f2937; 
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #f4c430;
  border-color: #f4c430;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,180,41,0.3);
}

.btn-light { 
  background: var(--bg-secondary); 
  color: var(--text); 
  border-color: var(--border);
}

.btn-light:hover {
  background: #e6f3ff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* Hero Section */
.hero { 
  position: relative; 
  overflow: hidden; 
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.hero-image {
  width: 100%;
  display: block;
}

.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-inner { 
  width: 100%;
  padding: 60px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 { 
  font-size: clamp(2.2rem, 4vw + 1rem, 4rem); 
  margin: 0 0 16px 0; 
  color: var(--brand-2); 
}

.hero p.lead { 
  max-width: 70ch; 
  margin: 0 auto 24px auto; 
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero p { 
  color: var(--muted); 
  max-width: 60ch; 
}

.hero-cta { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-top: 8px; 
  justify-content: center; 
}

.hero-img {
  width: 100%; 
  height: 380px; 
  object-fit: cover; 
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Hero Image with Neon Frame */
.hero-img-framed {
  position: relative;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-img-framed::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 20px;
  background: linear-gradient(45deg, 
    var(--neon), 
    var(--neon-2), 
    var(--purple), 
    var(--pink), 
    var(--blue), 
    var(--neon)
  );
  background-size: 400% 400%;
  animation: neonRotate 3s ease-in-out infinite;
  z-index: -1;
}

.hero-img-framed::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 18px;
  background: var(--bg);
  z-index: -1;
}

@keyframes neonRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Prevent flickering on animations */
.hero-img-framed::before {
  will-change: background-position;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Hero responsive design */
@media (max-width: 768px) {
  .hero-inner {
    padding: 40px 0;
  }
  
  .hero-content {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
  }
  
  .hero p.lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 30px 0;
  }
  
  .hero-content {
    padding: 0 12px;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 8vw + 1rem, 2.2rem);
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-img-framed::before {
    animation: none;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sections */
section { 
  padding: 48px 0; 
}

section h2 { 
  font-size: 2rem; 
  font-weight: 800; 
  margin: 0 0 10px 0; 
}

section .lead { 
  color: var(--muted); 
  margin-top: 0; 
}

main h1 {
  font-size: clamp(2rem, 3.2vw + 1rem, 3.2rem);
  font-weight: 800;
  color: var(--brand-2);
  margin: 0 0 10px 0;
}

/* Card Grid */
.card-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px; 
}

.card { 
  border: 3px solid var(--brand); 
  border-radius: 18px; 
  padding: 22px; 
  background: rgba(255,255,255,0.45); 
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12), 0 0 0 4px rgba(96,165,250,0.15);
  border-color: var(--neon-2);
}

.card h3 { 
  margin-top: 0; 
}

/* Pool & Games card background */
.card-pool {
  position: relative;
  overflow: hidden;
  color: #0b1220;
}

.card-pool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../hero/pool cropped.png") center/cover no-repeat;
  filter: saturate(110%) contrast(105%);
  opacity: 0.28;
  pointer-events: none;
}

.card-pool > * { 
  position: relative; 
}

/* Self‑catering Units card background */
.card-self {
  position: relative;
  overflow: hidden;
  color: #0b1220;
}

.card-self::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../hero/spitbraai.cropped.png") center/cover no-repeat;
  filter: saturate(110%) contrast(105%);
  opacity: 0.28;
  pointer-events: none;
}

.card-self > * { 
  position: relative; 
}

/* Events card background */
.card-events {
  position: relative;
  overflow: hidden;
  color: #0b1220;
}

.card-events::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../events.jpg") center/cover no-repeat;
  filter: saturate(110%) contrast(105%);
  opacity: 0.28;
  pointer-events: none;
}

.card-events > * { 
  position: relative; 
}

/* House Cards Grid */
.house-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.house-card {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  border: 2px solid var(--neon-2);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.house-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.house-card > * {
  position: relative;
  z-index: 1;
}

.house-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.house-card-image .carousel {
  height: 100%;
}

.house-card-image .carousel-slide {
  height: 200px;
}

.house-card-image .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-card-image .image-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #666;
}

.house-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.house-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.house-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-2);
  margin: 0;
  text-shadow: 0 2px 4px rgba(11, 107, 107, 0.1);
}

.house-card-capacity {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #0b1220;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.house-card-description {
  color: var(--text);
  margin: 0 0 16px 0;
  line-height: 1.6;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 4px solid var(--neon);
}

.house-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.amenity-tag {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #f59e0b;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.house-card-actions {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.house-card-actions .btn {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Color variations for different house types */
.house-card[data-house-id="H1"] {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border-color: #f59e0b;
}

.house-card[data-house-id="H2"] {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border-color: #10b981;
}

.house-card[data-house-id="H3"] {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 50%, #fca5a5 100%);
  border-color: #ef4444;
}

.house-card[data-house-id="H4"] {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  border-color: #0ea5e9;
}

.house-card[data-house-id="H5"] {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
  border-color: #8b5cf6;
}

.house-card[data-house-id="H6"] {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  border-color: #22c55e;
}

.house-card[data-house-id="H7"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  border-color: #f59e0b;
}

.house-card[data-house-id="H8"] {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
  border-color: #ec4899;
}

.house-card[data-house-id="H9"] {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border-color: #059669;
}

/* Gallery grid */
.gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 8px; 
}

.gallery-grid img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
  border-radius: 12px; 
  border: 2px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(14,165,233,0.25);
}

/* Blueprint */
.blueprint-container {
  max-width: 1000px;
  margin: 0 auto;
}

.blueprint {
  position: relative;
  border: 3px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  min-height: 360px;
  background: var(--bg);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

/* Driveway */
.driveway {
  position: absolute;
  background: linear-gradient(90deg, #8B7355, #A0956B);
  border: 2px solid #6B5B47;
  z-index: 1;
}

.driveway-vertical {
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
}

.driveway-horizontal {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
}

.unit {
  position: absolute;
  border-radius: 12px;
  background: #c7f9cc;
  border: 3px solid #10b981;
  padding: 10px 12px;
  color: #065f46;
  font-weight: 600;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16,185,129,0.2);
  min-width: 120px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  line-height: 1.2;
}

.unit small {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.9;
}

/* House-shaped units */
.unit-house-shape {
  position: relative;
  border-radius: 0;
  overflow: visible;
}

.unit-house-shape::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 15px solid #10b981;
  z-index: 1;
}

.unit-house-shape::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 37px solid transparent;
  border-right: 37px solid transparent;
  border-bottom: 12px solid #c7f9cc;
  z-index: 2;
}

/* Pool-shaped units */
.unit-pool-shape {
  border-radius: 50px;
  background: linear-gradient(135deg, #87CEEB, #4682B4);
  border-color: #4682B4;
  color: #1e3a8a;
}

.unit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.unit.booked { 
  background: #fecaca; 
  border-color: #ef4444; 
  color: #7f1d1d; 
  box-shadow: 0 2px 8px rgba(239,68,68,0.2);
}

.unit.booked:hover {
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.unit.booked.unit-house-shape::before {
  border-bottom-color: #ef4444;
}

.unit.booked.unit-house-shape::after {
  border-bottom-color: #fecaca;
}

.unit.facility {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.unit.facility.unit-house-shape::before {
  border-bottom-color: #3b82f6;
}

.unit.facility.unit-house-shape::after {
  border-bottom-color: #dbeafe;
}

.unit.accommodation {
  background: #c7f9cc;
  border-color: #10b981;
  color: #065f46;
}

.unit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.unit-name {
  font-weight: 700;
  font-size: 0.7rem;
}

.unit-type {
  font-size: 0.65rem;
  opacity: 0.8;
}

.legend { 
  display: flex; 
  gap: 14px; 
  align-items: center; 
  margin-top: 10px; 
  color: var(--muted); 
}

.legend .dot { 
  width: 14px; 
  height: 14px; 
  border-radius: 50%; 
  display: inline-block; 
  margin-right: 6px; 
}

.legend .available { 
  background: #10b981; 
}

.legend .booked { 
  background: #ef4444; 
}

.legend .dot.facility {
  background: #3b82f6;
}

/* Admin calendar */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar .day, .calendar .dow {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.6);
}

.calendar .dow { 
  font-weight: 700; 
  background: var(--bg-secondary); 
}

.calendar .day { 
  min-height: 56px; 
  display: flex; 
  align-items: flex-start; 
  justify-content: flex-end; 
  font-weight: 700; 
}

.calendar .day .num { 
  font-weight: 800; 
}

.calendar .day.booked { 
  background: #fecaca; 
  border-color: #ef4444; 
  color: #7f1d1d; 
}

.calendar .day.available { 
  background: #c7f9cc; 
  border-color: #10b981; 
  color: #065f46; 
}

.calendar-controls { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin: 6px 0 10px 0; 
}

/* Footer */
footer { 
  border-top: 2px solid var(--border); 
  padding: 24px 0; 
  color: var(--muted); 
  background: var(--bg-secondary);
  margin-top: auto;
}

/* App install modal */
.install-modal {
  position: fixed; 
  inset: 0; 
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 100;
  background: rgba(0,0,0,0.45);
}

.install-card { 
  background: var(--bg-secondary); 
  width: min(520px, 92%); 
  border-radius: 20px; 
  padding: 24px; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 2px solid var(--border);
}

.install-card h3 { 
  margin: 0 0 6px 0; 
}

.install-actions { 
  display: flex; 
  gap: 10px; 
  justify-content: flex-end; 
  margin-top: 12px; 
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed; 
  right: 16px; 
  bottom: 16px; 
  background: #25D366; 
  color: #fff; 
  padding: 12px; 
  border-radius: 999px; 
  text-decoration: none; 
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  width: 54px; 
  height: 54px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

/* WhatsApp icon button */
.wa-icon { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 42px; 
  height: 42px; 
  border-radius: 999px; 
  background: #25D366; 
  color: #fff; 
  text-decoration: none; 
}

.wa-icon svg { 
  width: 22px; 
  height: 22px; 
  fill: #fff; 
  display: block; 
}

/* Generic hover effects for links, text, images */
a:hover { 
  color: var(--brand-2); 
}

img { 
  transition: transform 0.25s ease, box-shadow 0.25s ease; 
}

img:hover { 
  transform: scale(1.02); 
  box-shadow: 0 10px 28px rgba(14,165,233,0.18); 
}

/* Scroll reveal */
.reveal { 
  opacity: 0; 
  transform: translateY(18px); 
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reveal.visible { 
  opacity: 1; 
  transform: translateY(0);
  will-change: auto;
}

/* Click ripple */
.ripple-container { 
  position: relative; 
  overflow: hidden; 
}

.ripple { 
  position: absolute; 
  border-radius: 50%; 
  transform: scale(0); 
  background: rgba(14,165,233,0.35); 
  animation: ripple 500ms linear; 
  pointer-events: none; 
}

@keyframes ripple { 
  to { 
    transform: scale(10); 
    opacity: 0; 
  } 
}

.visually-hidden { 
  position: absolute !important; 
  height: 1px; 
  width: 1px; 
  overflow: hidden; 
  clip: rect(1px, 1px, 1px, 1px); 
  white-space: nowrap; 
}

/* Availability form */
.availability { 
  border: 2px solid var(--border); 
  border-radius: 16px; 
  padding: 20px; 
  background: var(--bg-secondary); 
  margin-top: 16px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.availability form { 
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr auto; 
  gap: 12px; 
  align-items: end; 
}

.availability form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: var(--text);
}

.availability form input,
.availability form select {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.availability form input:focus,
.availability form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,107,107,0.1);
}

.availability-results { 
  margin-top: 12px; 
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-2);
  margin: 0 0 10px 0;
}

/* Property Page Specific Styles */
.blueprint-container {
  position: relative;
  margin: 40px 0;
}

.blueprint {
  position: relative;
  border: 3px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  min-height: 400px;
  background: var(--bg);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  overflow: auto;
}

.blueprint-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 2px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  color: var(--brand-2);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.unit-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.unit-photos {
  min-height: 200px;
  background: var(--bg);
  border-radius: 12px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.unit-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
  border-bottom: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Booking Section */
.booking-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.availability-card,
.confirmation-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.availability-card h3,
.confirmation-card h3 {
  margin: 0 0 20px 0;
  color: var(--brand-2);
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-of-type {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

.form-row input,
.form-row select {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,107,107,0.1);
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

.booking-details {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: var(--text);
}

.detail-row .value {
  color: var(--brand-2);
  font-weight: 600;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Units Overview */
.units-overview {
  padding: 60px 0;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.reveal-in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

.unit-card {
  background: var(--bg);
  border: 3px solid var(--brand);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.unit-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border-color: var(--brand);
}

.unit-card-title { text-align:center; margin-bottom: 12px; }
.unit-card-name { font-size: 1.5rem; font-weight: 800; color: var(--brand-2); margin: 0; }
.unit-card-capacity { margin: 6px 0 0; color: var(--muted); font-weight: 600; }

.unit-card-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.unit-card-status.available {
  background: #dcfce7;
  color: #166534;
}

.unit-card-status.booked {
  background: #fef2f2;
  color: #991b1b;
}

.unit-card-details {
  color: var(--muted);
  margin-bottom: 16px;
}

.unit-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.amenity-tag { animation: fadeSlideIn .4s ease both; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Carousel */
.carousel { position: relative; width: 100%; max-width: 720px; margin: 0 auto 12px; overflow: hidden; border-radius: 12px; }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-slide { min-width: 100%; display: grid; place-items: center; background: #f7f7f7; }
.carousel-slide img { width: 100%; height: 360px; object-fit: cover; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
.carousel-dot.active { background: var(--brand); }

/* Button ripple */
.btn { position: relative; overflow: hidden; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple .6s linear; background: rgba(255,255,255,.5); pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.unit-card-actions {
  display: flex;
  gap: 8px;
}

.unit-card-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* Accommodation page styles */
.house-section {
  border-bottom: 2px solid var(--border);
  padding: 40px 0;
}

.house-section:last-of-type {
  border-bottom: none;
}

.house-description {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.house-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.house-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.house-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(14,165,233,0.2);
}

.coming-soon {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 40px 20px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin: 0;
}

/* Gallery specific styles */
.gallery-item {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.2);
}

.gallery-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  border-radius: 8px;
  border: 2px dashed var(--border);
}

.placeholder-content h3 {
  margin: 0 0 10px 0;
  color: var(--brand-2);
  font-size: 1.2rem;
}

.placeholder-content p {
  margin: 0 0 15px 0;
  color: var(--muted);
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.6;
}

/* Availability styles */
.availability-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.availability-item {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.availability-item h5 {
  margin: 0 0 8px 0;
  color: var(--brand-2);
  font-size: 1.1rem;
}

.availability-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.availability-item .btn {
  margin-top: 12px;
  width: 100%;
}

/* Mobile-first responsive design */
@media (max-width: 1200px) {
  .blueprint { 
    overflow-x: auto; 
  }
  
  .unit { 
    min-width: 100px; 
    min-height: 60px; 
    font-size: 0.9rem; 
  }
}

@media (max-width: 900px) {
  .card-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .gallery-grid { 
    grid-template-columns: 1fr 1fr 1fr; 
  }
  
  .house-gallery { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  }
  
  .availability form { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .availability form button { 
    grid-column: 1 / -1; 
  }
  
  .booking-container { 
    grid-template-columns: 1fr; 
  }
  
  .unit-info-grid { 
    grid-template-columns: 1fr; 
  }
  
  .form-row { 
    grid-template-columns: 1fr; 
  }
  
  .form-row:last-of-type { 
    grid-template-columns: 1fr; 
  }
  
  .units-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  }
}

@media (max-width: 640px) {
  .nav { 
    flex-wrap: wrap; 
    gap: 8px; 
    padding: 10px 0; 
  }
  
  .nav a { 
    margin: 2px 4px; 
    padding: 6px 12px; 
    font-size: 0.9rem; 
  }
  
  .card-grid { 
    grid-template-columns: 1fr; 
  }
  
  .gallery-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .hero-inner { 
    padding: 28px 0; 
  }
  
  .house-gallery { 
    grid-template-columns: 1fr; 
  }
  
  .house-gallery img { 
    height: 200px; 
  }
  
  .availability form { 
    grid-template-columns: 1fr; 
  }
  
  .floating-wa { 
    width: 48px; 
    height: 48px; 
    right: 12px; 
    bottom: 12px; 
  }
  
  .floating-wa svg { 
    width: 24px; 
    height: 24px; 
  }
  
  .wa-icon { 
    width: 36px; 
    height: 36px; 
  }
  
  .wa-icon svg { 
    width: 18px; 
    height: 18px; 
  }
  
  .blueprint { 
    padding: 12px; 
    min-height: 300px; 
  }
  
  .unit { 
    min-width: 80px; 
    min-height: 50px; 
    font-size: 0.8rem; 
    padding: 6px 8px; 
  }
  
  .install-card { 
    width: 95%; 
    padding: 20px; 
  }
  
  .install-actions { 
    flex-direction: column; 
  }
  
  .install-actions .btn { 
    width: 100%; 
  }
  
  .blueprint-legend { 
    flex-direction: column; 
    gap: 12px; 
  }
  
  .modal-content { 
    margin: 10px; 
    max-height: 90vh; 
  }
  
  .modal-actions { 
    flex-direction: column; 
  }
  
  .confirmation-actions { 
    flex-direction: column; 
  }
  
  .units-grid { 
    grid-template-columns: 1fr; 
  }
  
  .unit-card-actions { 
    flex-direction: column; 
  }
  
  .gallery-item {
    padding: 16px;
  }
  
  .gallery-placeholder {
    min-height: 150px;
  }
  
  .availability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { 
    width: 95%; 
  }
  
  .hero h1 { 
    font-size: 1.8rem; 
  }
  
  .hero p.lead { 
    font-size: 1rem; 
  }
  
  .nav { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .nav a { 
    margin: 1px 2px; 
  }
  
  .gallery-grid { 
    grid-template-columns: 1fr; 
  }
  
  .calendar { 
    grid-template-columns: repeat(7, 1fr); 
    gap: 4px; 
  }
  
  .calendar .day, .calendar .dow { 
    padding: 6px; 
    font-size: 0.8rem; 
  }
}
