/**
 * Savana Rengganis - Premium App-Centric Design System
 * Uniform Layout on Desktop and Mobile (Center App Shell)
 * Theme: Forest Emerald, Sage, Warm Stone, Clean White & Charcoal
 */

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

:root {
  /* Color Palette */
  --primary-forest: #1b4332;
  --primary-dark: #081c15;
  --primary-sage: #2d6a4f;
  --primary-emerald: #40916c;
  --accent-gold: #d4a373;
  --accent-amber: #e76f51;
  
  /* Status Colors */
  --color-available: #10b981;
  --color-available-bg: #ecfdf5;
  --color-available-border: #a7f3d0;
  
  --color-occupied: #ef4444;
  --color-occupied-bg: #fef2f2;
  --color-occupied-border: #fecaca;
  --color-occupied-dark: #991b1b;
  
  --color-maintenance: #6b7280;
  --color-maintenance-bg: #f3f4f6;
  --color-maintenance-border: #e5e7eb;

  /* Neutral Tones */
  --bg-sand: #f4f6f8;
  --bg-app: #ffffff;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-light: #e5e7eb;
  --border-focus: #2d6a4f;

  /* Elevation */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --shadow-shell: 0 0 50px rgba(8, 28, 21, 0.12);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Central App Width */
  --app-max-width: 580px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #0d281e;
  background-image: 
    radial-gradient(at 0% 0%, rgba(64, 145, 108, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(27, 67, 50, 0.4) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* App Centric Container (App Shell) */
.app-container {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  background: var(--bg-app);
  box-shadow: var(--shadow-shell);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Typography */
h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Header & Navigation */
.site-header {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  color: var(--accent-gold);
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--color-available-border);
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-admin-nav {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-admin-nav:hover {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
}

/* Hero / Information Section */
.hero-section {
  position: relative;
  background-color: #0b2318;
  background-image: url('../assets/images/savana-campsite-bg.jpg');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 2.25rem 1.25rem 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg, 
    rgba(11, 35, 24, 0.78) 0%, 
    rgba(13, 40, 30, 0.85) 60%, 
    rgba(11, 35, 24, 0.95) 100%
  );
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(116, 198, 157, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #d8f3dc;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-title-accent {
  color: #74c69d;
  font-family: inherit;
  font-style: italic;
  display: inline-block;
  text-shadow: 0 0 20px rgba(116, 198, 157, 0.3);
}

.hero-leaf-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.4rem auto 0.85rem;
}

.hero-leaf-ornament::before,
.hero-leaf-ornament::after {
  content: "";
  height: 1px;
  width: 36px;
  background: linear-gradient(90deg, transparent, rgba(116, 198, 157, 0.6), transparent);
}

.hero-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(240, 253, 244, 0.92);
  max-width: 470px;
  margin: 0 auto;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.85rem 1rem 3.25rem;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .hero-desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }
}

/* Booking Control Card (Date Selection) */
.booking-control-card {
  margin: -2.25rem 1rem 1.25rem;
  background: var(--bg-card);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(229, 237, 231, 0.8);
}

.booking-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Two-Column Date Picker Box */
.date-picker-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 0.85rem;
  position: relative;
  transition: var(--transition-smooth);
}

.date-picker-box:focus-within {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.15);
}

.date-box-col {
  padding: 0.65rem 0.85rem;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date-box-col:first-child {
  border-right: 1px solid #e5e7eb;
}

.date-box-col:hover {
  background: #f8faf9;
}

.date-box-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.date-box-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.date-box-time {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0.15rem;
  font-weight: 500;
}

.date-box-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.btn-check-dates {
  background: #0f2b1d;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  width: 100%;
  height: 46px;
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 12px rgba(15, 43, 29, 0.2);
}

.btn-check-dates:hover {
  background: #1b4332;
  transform: translateY(-1px);
}

.btn-view-map {
  background: #ffffff;
  color: #1b4332;
  border: 1.5px solid #a7f3d0;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
  width: 100%;
  height: 44px;
}

.btn-view-map:hover {
  background: #f0fdf4;
  border-color: var(--primary-emerald);
}

/* ==========================================================================
   Section 4: Layanan Savana (Gojek-style Compact Shortcuts on Mobile)
   ========================================================================== */
.layanan-section {
  padding: 0.25rem 1rem 0.85rem;
}

.layanan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.layanan-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.layanan-link-all {
  font-size: 0.78rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition-smooth);
}

.layanan-link-all:hover {
  color: #15803d;
  transform: translateX(2px);
}

/* Mobile Static Grid: 4 columns
   Row 1: Sepeda (1), Sewa ATV (2), Sewa Villa (3), Panggil Porter (4)
   Row 2: Savana Shop (5 - automatically Col 1) */
.layanan-scroll-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem 0.35rem;
  padding-bottom: 0;
  overflow-x: visible;
}

.layanan-card {
  background: #ffffff;
  border: 1px solid #eef2ef;
  border-radius: 12px;
  padding: 0.45rem 0.2rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.layanan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.layanan-card:active {
  transform: scale(0.96);
}

.layanan-card-img-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.1);
}

.layanan-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.layanan-card:hover .layanan-card-img {
  transform: scale(1.08);
}

.layanan-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.layanan-card-desc {
  display: none;
}

.layanan-card-badge {
  display: none;
}

/* Desktop & Tablet: Restores full horizontal card layout (min-width: 768px) */
@media (min-width: 768px) {
  .layanan-section {
    padding: 0.5rem 1rem 1.5rem;
  }

  .layanan-header {
    margin-bottom: 0.85rem;
  }

  .layanan-title {
    font-size: 1.05rem;
  }

  .layanan-scroll-track {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }

  .layanan-card {
    background: #f9fbf9;
    border: 1px solid #e8f0ea;
    border-radius: 16px;
    padding: 0.85rem 0.65rem 0.75rem;
  }

  .layanan-card-img-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin-bottom: 0.55rem;
  }

  .layanan-card-name {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
  }

  .layanan-card-desc {
    display: -webkit-box;
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    min-height: 2.6em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .layanan-card-badge {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-top: auto;
  }
}

/* ==========================================================================
   Section 5: Status Ketersediaan Kavling Card
   ========================================================================== */
.availability-status-card {
  margin: 0 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5ede7;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}

.status-indicator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f2937;
}

.status-square {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.status-square-available {
  background-color: #10b981;
}

.status-square-occupied {
  background-color: #ef4444;
}

.status-square-selected {
  background-color: #064e3b;
  border: 1px solid #10b981;
}

.stay-summary-pill {
  background: #f8faf8;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.45rem 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

/* ==========================================================================
   Section 6: Benefit / Trust Section
   ========================================================================== */
.benefit-section {
  margin: 0 1rem 2rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.benefit-card {
  background: #f9fbf9;
  border: 1px solid #e8f0ea;
  border-radius: 14px;
  padding: 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  background: #ffffff;
  border-color: #bbf7d0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.benefit-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.benefit-desc {
  font-size: 0.68rem;
  color: #6b7280;
  line-height: 1.35;
  padding-left: 0.1rem;
}

/* Main Container */
.main-container {
  padding: 0 1rem calc(90px + env(safe-area-inset-bottom, 12px));
  flex: 1;
}

@media (min-width: 768px) {
  .main-container {
    padding: 0 1rem 7rem;
  }
}

.section-header {
  margin-bottom: 1rem;
  scroll-margin-top: 1rem;
}

.section-title {
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Zone Tabs */
.zone-filter-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.zone-filter-bar::-webkit-scrollbar {
  display: none;
}

.zone-filter-btn {
  background: var(--bg-sand);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.zone-filter-btn:hover, .zone-filter-btn.active {
  background: var(--primary-forest);
  color: #ffffff;
  border-color: var(--primary-forest);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 1.75rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #ffffff;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Matriks Okupansi — Button Card (on booking-control-card)
   ========================================================================== */

.btn-view-matrix {
  background: #ffffff;
  color: var(--primary-forest);
  border: 1.5px solid #d1fae5;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.btn-view-matrix:hover,
.btn-view-matrix:focus-visible {
  background: #f0fdf4;
  border-color: var(--primary-emerald);
  box-shadow: 0 4px 16px rgba(27,67,50,0.1);
  transform: translateY(-1px);
}

.btn-view-matrix:active {
  transform: translateY(0);
}

.btn-matrix-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.btn-matrix-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.btn-matrix-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-forest);
  line-height: 1.2;
}

.btn-matrix-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-matrix-arrow {
  font-size: 1.4rem;
  color: var(--primary-emerald);
  flex-shrink: 0;
  font-weight: 700;
}

/* ==========================================================================
   Matriks Okupansi — Full-Screen Slide-In Panel
   ========================================================================== */

.matrix-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg-sand);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* constrained to app-container width on desktop */
  left: 50%;
  translate: -50% 0;
  max-width: 480px;
  width: 100%;
  border-radius: 0;
}

@media (min-width: 520px) {
  .matrix-panel {
    border-radius: 0;
  }
}

.matrix-panel.active {
  transform: translateX(0);
}

.matrix-panel[aria-hidden="true"] {
  pointer-events: none;
}

.matrix-panel[aria-hidden="false"] {
  pointer-events: auto;
}

.matrix-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Panel Header — sticky top */
.matrix-panel-header {
  background: var(--primary-forest);
  color: #ffffff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(8,28,21,0.3);
}

.matrix-back-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.matrix-back-btn:hover {
  background: rgba(255,255,255,0.22);
}

.matrix-header-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.matrix-header-icon {
  font-size: 1.1rem;
}

.matrix-title-text {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

/* Panel Body — vertical scroll */
.matrix-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.matrix-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Month Navigator */
.matrix-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.matrix-month-btn {
  background: none;
  border: none;
  color: var(--primary-forest);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.matrix-month-btn:hover {
  background: #f0fdf4;
}

.matrix-month-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-forest);
}

.matrix-month-icon {
  font-size: 1rem;
}

/* Summary Cards */
.matrix-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.matrix-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  box-shadow: var(--shadow-sm);
}

.matrix-summary-avail {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.matrix-summary-occ {
  border-color: #fecaca;
  background: #fef2f2;
}

.matrix-summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.matrix-summary-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.matrix-summary-avail .matrix-summary-num { color: #059669; }
.matrix-summary-occ .matrix-summary-num   { color: #dc2626; }

.matrix-summary-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Legend */
.matrix-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.matrix-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Shared dot */
.matrix-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.matrix-dot-green { background: #10b981; }
.matrix-dot-red   { background: #ef4444; }

/* Loading */
.matrix-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.matrix-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d1fae5;
  border-top-color: var(--primary-emerald);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 0.75rem;
}

.matrix-loading.hidden { display: none; }

/* Matrix Table Scroll Wrapper */
.matrix-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  /* prevent body overflow bleed */
  max-width: 100%;
}

/* Matrix Table */
.matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  min-width: max-content;
  width: 100%;
}

/* Sticky header row */
.matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--primary-forest);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0;
  white-space: nowrap;
  border-bottom: 2px solid var(--primary-sage);
}

/* Sticky first column (kavling label) */
.matrix-table th.matrix-col-label,
.matrix-table td.matrix-col-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8fafc;
  font-weight: 700;
  color: var(--primary-forest);
  padding: 0 0.6rem;
  white-space: nowrap;
  border-right: 2px solid #e2e8f0;
  min-width: 52px;
  text-align: center;
}

/* Sticky corner — header + first col */
.matrix-table thead th.matrix-col-label {
  z-index: 4;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Date header cells */
.matrix-th-date {
  min-width: 36px;
  padding: 0.5rem 0.2rem;
}

/* Data rows */
.matrix-table tbody tr {
  transition: background 0.15s;
}

.matrix-table tbody tr:hover {
  background: #f8fafc;
}

.matrix-table tbody tr:hover td.matrix-col-label {
  background: #edf2f7;
}

/* Data cells */
.matrix-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Cell dot (circle indicator) */
.matrix-cell-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  vertical-align: middle;
}

.matrix-cell-dot:hover,
.matrix-cell-dot:focus-visible {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
  outline: none;
}

.matrix-cell-dot:active {
  transform: scale(1.1);
}

.matrix-dot-avail {
  background: #10b981;
  box-shadow: 0 1px 3px rgba(16,185,129,0.35);
}

.matrix-dot-occ {
  background: #ef4444;
  box-shadow: 0 1px 3px rgba(239,68,68,0.35);
}

/* CTA Section */
.matrix-cta-section {
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.matrix-cta-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.matrix-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin: 0;
}

.matrix-cta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

/* Cell Info Tooltip (bottom sheet style) */
.matrix-cell-tooltip {
  position: fixed;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 480px;
  z-index: 1300;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.matrix-cell-tooltip.active {
  transform: translateY(0);
  pointer-events: auto;
}

.matrix-tooltip-inner {
  background: #ffffff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.matrix-tooltip-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.matrix-tooltip-msg {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.matrix-tooltip-close {
  background: var(--primary-forest);
  color: #ffffff;
  border: none;
  padding: 0.55rem 2rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.2s;
}

.matrix-tooltip-close:hover {
  background: var(--primary-sage);
}

/* Desktop: wider panel */
@media (min-width: 520px) {
  .matrix-panel {
    box-shadow: var(--shadow-shell);
  }
}

/* ==========================================================================
   Kalender Ketersediaan Kavling — Button Card
   ========================================================================== */

.btn-view-calendar {
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: 14px;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.btn-view-calendar:hover,
.btn-view-calendar:focus-visible {
  background: #f0fdf4;
  border-color: var(--primary-emerald);
  box-shadow: 0 4px 16px rgba(27,67,50,0.1);
  transform: translateY(-1px);
}

.btn-view-calendar:active { transform: translateY(0); }

.btn-cal-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.btn-cal-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #f0fdf4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1fae5;
}

.btn-cal-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.btn-cal-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-forest);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cal-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-cal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.btn-cal-badge {
  background: #d4a373;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.btn-cal-arrow {
  font-size: 1.3rem;
  color: var(--primary-emerald);
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   Kalender — Full-Screen Slide-In Panel
   ========================================================================== */

.cal-panel {
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  z-index: 1200;
  background: #f4f6f8;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cal-panel.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.cal-panel[aria-hidden="true"]  { pointer-events: none; }
.cal-panel[aria-hidden="false"] { pointer-events: auto; }

.cal-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Panel Header */
.cal-panel-header {
  background: var(--primary-forest);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(8,28,21,0.3);
}

.cal-back-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cal-back-btn:hover { background: rgba(255,255,255,0.22); }

.cal-header-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
  flex: 1;
  line-height: 1.3;
}

.cal-header-icon-box {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Panel Body */
.cal-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.cal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

/* Month Navigator */
.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.cal-month-btn {
  background: none;
  border: none;
  color: var(--primary-forest);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cal-month-btn:hover { background: #f0fdf4; }

.cal-month-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-forest);
}

/* Summary Cards */
.cal-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cal-summary-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  box-shadow: var(--shadow-sm);
}

.cal-summary-avail { border-color: #a7f3d0; background: #f0fdf4; }
.cal-summary-occ   { border-color: #fecaca; background: #fef2f2; }

.cal-summary-emoji { font-size: 1.1rem; line-height: 1; }

.cal-summary-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 0.1rem;
}

.cal-summary-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.cal-summary-avail .cal-summary-num { color: #059669; }
.cal-summary-occ   .cal-summary-num { color: #dc2626; }

.cal-summary-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Legend */
.cal-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Shared dots */
.cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-dot-green { background: #10b981; }
.cal-dot-red   { background: #ef4444; }

/* Loading */
.cal-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cal-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d1fae5;
  border-top-color: var(--primary-emerald);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 0.75rem;
}

.cal-loading.hidden { display: none; }

/* Table scroll wrapper — ONLY this scrolls horizontally */
.cal-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  max-width: 100%;
}

/* Table */
.cal-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  min-width: max-content;
  width: 100%;
}

/* Sticky header row */
.cal-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--primary-forest);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0;
  white-space: nowrap;
  border-bottom: 2px solid var(--primary-sage);
}

/* Sticky first column */
.cal-table th.cal-col-label,
.cal-table td.cal-col-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8fafc;
  font-weight: 700;
  color: var(--primary-forest);
  padding: 0 0.5rem;
  white-space: nowrap;
  border-right: 2px solid #e2e8f0;
  min-width: 50px;
  text-align: center;
}

/* Sticky corner */
.cal-table thead th.cal-col-label {
  z-index: 4;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-th-date {
  min-width: 34px;
  padding: 0.5rem 0.15rem;
}

/* Body rows */
.cal-table tbody tr { transition: background 0.15s; }
.cal-table tbody tr:hover { background: #f8fafc; }
.cal-table tbody tr:hover td.cal-col-label { background: #edf2f7; }

.cal-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 0.3rem 0.15rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Cell dot */
.cal-cell-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  vertical-align: middle;
}

.cal-cell-dot:hover,
.cal-cell-dot:focus-visible {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
  outline: none;
}

.cal-cell-dot:active { transform: scale(1.1); }

.cal-dot-avail {
  background: #10b981;
  box-shadow: 0 1px 3px rgba(16,185,129,0.3);
}

.cal-dot-occ {
  background: #ef4444;
  box-shadow: 0 1px 3px rgba(239,68,68,0.3);
}

/* Cara membaca hint */
.cal-hint-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.cal-hint-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.cal-hint-text {
  font-size: 0.78rem;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

/* CTA Section */
.cal-cta-section {
  background: #fff;
  border: 1.5px solid #d1fae5;
  border-radius: 16px;
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cal-cta-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin: 0 0 0.2rem;
}

.cal-cta-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.cal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

/* ==========================================================================
   Kalender — Cell Info Modal (centered overlay)
   ========================================================================== */

.cal-cell-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  pointer-events: none;
}

.cal-cell-modal.active {
  visibility: visible;
  pointer-events: auto;
}

.cal-cell-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.cal-cell-modal.active .cal-cell-modal-backdrop {
  opacity: 1;
}

.cal-cell-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.25rem 1.25rem;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  text-align: center;
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s;
}

.cal-cell-modal.active .cal-cell-modal-card {
  transform: scale(1);
  opacity: 1;
}

.cal-cell-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f3f4f6;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.cal-cell-modal-close:hover { background: #e5e7eb; color: var(--text-main); }

.cal-modal-status-icon { margin-bottom: 0.6rem; }

.cal-modal-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cal-modal-circle-green { background: #10b981; }
.cal-modal-circle-red   { background: #ef4444; }

.cal-modal-status-label {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cal-modal-label-green { color: #059669; }
.cal-modal-label-red   { color: #dc2626; }

.cal-modal-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.cal-modal-close-btn {
  background: var(--primary-forest);
  color: #fff;
  border: none;
  padding: 0.6rem 2.5rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.cal-modal-close-btn:hover { background: var(--primary-sage); }

@media (min-width: 520px) {
  .cal-panel { box-shadow: var(--shadow-shell); }
}

/* ==========================================================================
   v6.5.0 — 3 Action Icon Cards (Peta, Cek Kalender, Cara Reservasi)
   ========================================================================== */

.booking-action-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.action-icon-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 0.4rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: visible;
}

.action-icon-card:hover,
.action-icon-card:focus-visible {
  background: #f0fdf4;
  border-color: var(--primary-emerald);
  box-shadow: 0 4px 14px rgba(27,67,50,0.12);
  transform: translateY(-2px);
}

.action-icon-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.action-icon-wrap {
  width: 52px;
  height: 52px;
  background: #f0fdf4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1fae5;
  flex-shrink: 0;
  position: relative;
}

/* Wrapper that allows the badge to overflow */
.action-icon-wrap--rel {
  overflow: visible;
}

.action-icon-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #d4a373;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.12rem 0.32rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.action-icon-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.2;
  white-space: nowrap;
}

/* ==========================================================================
   v6.5.0 — Cara Reservasi Slide-In Panel
   ========================================================================== */

/* ==========================================================================
   Cara Reservasi — Guide Panel  (v6.8.0 responsive rewrite)
   Mobile  : full-screen slide-in from right
   Desktop : right-side panel (fixed width, maxH calc(100vh-2rem), backdrop)
   ========================================================================== */

/* ── Backdrop (desktop only, hidden on mobile) ─────────────────────────── */
.guide-backdrop {
  display: none;                    /* hidden by default everywhere */
}

/* ── Panel shell ───────────────────────────────────────────────────────── */
.guide-panel {
  /* Position */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;                       /* override old left:50% / translate */
  translate: none;                  /* override old translate */
  width: 100%;
  max-width: 480px;
  height: 100%;                     /* mobile: full height */

  /* Layering */
  z-index: 1400;

  /* Visual */
  background: #f4f6f8;

  /* Animation: slide from right */
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.32s;

  /* Layout */
  display: flex;
  flex-direction: column;
  overflow: hidden;                 /* clip outer box; inner body scrolls */
}

/* Active state */
.guide-panel.active {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
}

.guide-panel[aria-hidden="true"]  { pointer-events: none; }
.guide-panel[aria-hidden="false"] { pointer-events: auto; }

/* ── Inner layout ──────────────────────────────────────────────────────── */
.guide-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;                     /* fill panel shell */
  min-height: 0;                    /* allow flex children to shrink */
  overflow: hidden;                 /* clip, not scroll — body child scrolls */
}

/* ── Sticky Header ─────────────────────────────────────────────────────── */
.guide-panel-header {
  background: var(--primary-forest);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;                   /* NEVER shrink — stays visible */
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(8, 28, 21, 0.3);
}

.guide-back-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  /* Ensure it's always on top and clickable */
  position: relative;
  z-index: 11;
}

.guide-back-btn:hover { background: rgba(255,255,255,0.22); }
.guide-back-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

.guide-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
  flex: 1;
}

.guide-header-icon-box {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Scrollable Body ───────────────────────────────────────────────────── */
.guide-panel-body {
  flex: 1;                          /* take all remaining height */
  min-height: 0;                    /* critical: allow flex child to shrink below content size */
  overflow-y: auto;                 /* THIS is the scroll container */
  overflow-x: hidden;
  padding: 1rem 1rem 2rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     /* prevent scroll bleeding to body */
}

/* ── Step content (unchanged) ──────────────────────────────────────────── */
.guide-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.1rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.85rem 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-bottom: none;
  position: relative;
}

.guide-step:first-child { border-radius: 14px 14px 0 0; }
.guide-step--last {
  border-bottom: 1px solid var(--border-light);
  border-radius: 0 0 14px 14px;
  padding-bottom: 0.85rem;
  background: #f0fdf4;
  border-color: #a7f3d0;
}

/* Connecting line between steps */
.guide-step::before {
  content: '';
  position: absolute;
  left: calc(0.85rem + 16px);
  top: calc(0.85rem + 32px);
  width: 2px;
  height: calc(100% - 0.85rem - 32px + 1px);
  background: #e2e8f0;
}

.guide-step--last::before { display: none; }

.guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-forest);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 0.85rem;
}

.guide-step-num--done {
  background: #10b981;
  font-size: 1rem;
}

.guide-step-content { padding-bottom: 0.85rem; flex: 1; }

.guide-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.guide-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Info box */
.guide-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.guide-info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.guide-info-text {
  font-size: 0.78rem;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

/* WhatsApp CTA */
.guide-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(37,211,102,0.3);
}

.guide-wa-btn:hover  { background: #1ebe5d; transform: translateY(-1px); }
.guide-wa-btn:active { transform: translateY(0); }

/* Start booking button */
.guide-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary-forest);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.guide-book-btn:hover  { background: var(--primary-sage); transform: translateY(-1px); }
.guide-book-btn:active { transform: translateY(0); }

/* ==========================================================================
   DESKTOP ≥ 768px — Panel becomes a fixed right-side modal with backdrop
   ========================================================================== */
@media (min-width: 768px) {

  /* Backdrop */
  .guide-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1399;                  /* below panel (1400), above everything else */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s;
  }

  .guide-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Panel: right-side fixed, not full-height */
  .guide-panel {
    top: 1rem;
    bottom: 1rem;
    right: 1rem;
    height: auto;                   /* auto from top+bottom */
    max-height: calc(100vh - 2rem);
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
  }

  /* Panel inner must also support flex layout inside bounded height */
  .guide-panel-inner {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  /* Body scrolls inside its bounded container */
  .guide-panel-body {
    overscroll-behavior: contain;
  }
}

/* Extra-large: slightly wider */
@media (min-width: 1280px) {
  .guide-panel {
    max-width: 520px;
  }
}


/* ==========================================================================
   Guide Panel — body scroll lock helper  (v6.8.0)
   ========================================================================== */

/* Used by JS: document.body.classList.add('guide-open')
   This is the modern scroll-lock that preserves scrollbar position */
body.guide-open {
  position: fixed;
  width: 100%;
  overflow-y: scroll; /* keep scrollbar space so page doesn't jump */
}

/* ==========================================================================
   v7.0.0 — DESKTOP RESPONSIVE LAYOUT
   Clean rewrite. Single @media block. No conflicts.

   Mobile  (<768px): unchanged — body flex+center, app-container 580px max
   Desktop (≥768px): body block, app-container 100%, 2-col grid layout
   ========================================================================== */

/* ── Mobile base: wrapper divs are transparent (display:contents) ────── */
.desktop-content-wrapper { display: contents; }
.desktop-sidebar          { display: contents; }
.desktop-main             { display: contents; }

/* ── Desktop layout ≥ 768px ─────────────────────────────────────────── */
@media (min-width: 768px) {

  /* 1. Body: drop mobile centering, use neutral bg */
  body {
    display: block;
    background: #dde4de;
  }

  body.guide-open {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
  }

  /* 2. App shell: expand to full viewport width */
  .app-container {
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    background: #f1f4f1;
  }

  /* 3. Header: full-width bar, inner content max 1320px */
  .site-header { padding: 0.85rem 2rem; }
  .header-container {
    max-width: 1320px;
    margin: 0 auto;
  }

  /* 4. Hero: full-width, taller, centered text */
  .hero-section {
    padding: 4rem 2rem 6rem;
    text-align: center;
  }
  .hero-container {
    max-width: 700px;
    margin: 0 auto;
  }
  .hero-title { font-size: 2.6rem; line-height: 1.2; }
  .hero-desc  { font-size: 1rem; max-width: 560px; }

  /* 5. Main content wrapper: 2-column grid */
  .desktop-content-wrapper {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 1.75rem;
    max-width: min(1380px, calc(100% - 4rem));
    margin: 0 auto;
    padding: 1.75rem 0 3rem;
    align-items: start;
  }

  /* 6. Sidebar (left column) */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: calc(56px + 1rem);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .desktop-sidebar::-webkit-scrollbar { display: none; }

  /* 7. Main (right column) */
  .desktop-main {
    display: block;
    min-width: 0;
  }

  /* 8. Booking card: no hero overlap margin on desktop */
  .booking-control-card {
    margin: 0;
    border-radius: 16px;
  }

  /* 9. Main container padding handled by wrapper */
  .main-container { padding: 0; flex: initial; }

  /* 10. Kavling grid: use more columns in wide right area */
  .desktop-main .sites-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.55rem;
  }

  /* 11. Section headers */
  .desktop-main .section-header { margin-top: 0; }
  .section-title { font-size: 1.4rem; }

  /* 12. Filter bar: allow wrap, no forced scroll */
  .zone-filter-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  /* 13. Footer */
  .site-footer { padding: 1.5rem 2rem; }

  /* 14. Hide mobile-only bottom bar */
  .bottom-action-bar { display: none !important; }

  /* 15. Layanan section — full-width row (grid-column: 1/-1) */
  .desktop-content-wrapper > .layanan-section {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    order: 10; /* after sidebar+main */
    margin-top: 0;
  }

  .desktop-content-wrapper > .layanan-section .layanan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .desktop-content-wrapper > .layanan-section .layanan-title {
    font-size: 1.1rem;
    font-weight: 700;
  }

  /* Layanan: 5-card horizontal flex row */
  .desktop-content-wrapper > .layanan-section .layanan-scroll-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .desktop-content-wrapper > .layanan-section .layanan-card {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    border-radius: 14px;
    padding: 0.9rem 0.75rem 0.75rem;
    text-align: center;
    border: 1.5px solid #e8f5e9;
    background: #fafffe;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .desktop-content-wrapper > .layanan-section .layanan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(27,67,50,0.12);
    border-color: #a7f3d0;
  }

  .desktop-content-wrapper > .layanan-section .layanan-card-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .desktop-content-wrapper > .layanan-section .layanan-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s;
  }

  .desktop-content-wrapper > .layanan-section .layanan-card:hover .layanan-card-img {
    transform: scale(1.07);
  }

  .desktop-content-wrapper > .layanan-section .layanan-card-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1b4332;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
  }

  /* Hide description on desktop for clean look */
  .desktop-content-wrapper > .layanan-section .layanan-card-desc {
    display: none;
  }

  .desktop-content-wrapper > .layanan-section .layanan-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    padding: 0.1rem 0.5rem;
    border-radius: 99px;
  }

  /* 16. Calendar / Matrix panels: right-side modal on desktop */
  .cal-panel {
    left: auto !important;
    right: 1rem;
    top: 1rem;
    bottom: 1rem;
    height: auto;
    max-height: calc(100vh - 2rem);
    max-width: 820px;
    width: 90vw;
    border-radius: 16px;
    z-index: 1400;
    transform: translateX(calc(100% + 3rem));
    box-shadow: -8px 0 48px rgba(0,0,0,0.22);
    translate: none !important;
  }

  .cal-panel-inner {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .cal-panel-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .matrix-panel {
    left: auto !important;
    right: 1rem;
    top: 1rem;
    bottom: 1rem;
    height: auto;
    max-height: calc(100vh - 2rem);
    max-width: 560px;
    border-radius: 16px;
    z-index: 1400;
    box-shadow: -8px 0 48px rgba(0,0,0,0.22);
    translate: none !important;
  }

  .matrix-panel-inner {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .matrix-panel-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ── Extra-wide desktop ≥ 1440px ──────────────────────────────────────── */
@media (min-width: 1440px) {
  .desktop-content-wrapper {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 2rem;
  }

  .desktop-main .sites-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

