/* ==========================================================================
   MONG VIEW SAPAN RESORT - MUJI MINIMALIST NATURE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* MUJI Minimalist Color Palette - Warm Oak, Linen & Mountain Mist */
  --primary: #385244;           /* Deep Forest Green */
  --primary-dark: #23362c;      /* Dark Pine */
  --primary-light: #4e6e5d;     /* Sage Leaf */
  
  --wood-dark: #6e4e30;         /* Deep Teak */
  --wood-main: #8c6742;         /* Warm Oak Wood */
  --wood-light: #bda17e;        /* Light Birch */
  --wood-subtle: #f0e6d8;       /* Pale Wood Grain */

  --accent: #b94038;            /* Subtle Muji Terracotta Red */
  --accent-soft: #df6e67;
  
  --bg-main: #faf8f5;           /* Soft Linen Off-White */
  --bg-surface: #ffffff;        /* Pure Clean Card */
  --bg-subtle: #f3ede2;         /* Warm Muji Beige */
  --bg-dark: #1e2421;           /* Soft Dark Charcoal */
  
  --text-main: #282828;         /* Soft Charcoal Black */
  --text-muted: #6e6e6e;        /* Muted Grey */
  --text-light: #faf8f5;        /* Light Cream */
  --border-color: #e6ded1;      /* Linen Border */
  --border-subtle: #eee7db;

  --success: #2e7d32;
  --warning: #c05621;
  --danger: #b94038;

  /* Zen Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(40, 35, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(40, 35, 30, 0.06);
  --shadow-lg: 0 16px 40px rgba(40, 35, 30, 0.09);
  --shadow-xl: 0 24px 60px rgba(40, 35, 30, 0.12);

  /* Organic Minimalist Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Typography */
  --font-thai: 'Noto Sans Thai', sans-serif;
  --font-heading: 'Pridi', serif;
  --font-en: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-thai);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.35;
  letter-spacing: -0.2px;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   NAVIGATION BAR (MUJI CLEAN & SERENE)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--wood-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--wood-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wood-main);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--wood-main);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(140, 103, 66, 0.2);
}

.btn-primary:hover {
  background: var(--wood-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(140, 103, 66, 0.3);
}

.btn-accent {
  background: var(--primary);
  color: #ffffff;
  font-weight: 500;
}

.btn-accent:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--wood-main);
  color: var(--wood-main);
  background: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.84rem;
}

/* ==========================================================================
   HERO SECTION (MUJI ZEN MOUNTAIN MIST)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  padding: 130px 24px 60px;
  background: linear-gradient(180deg, rgba(15, 28, 22, 0.55) 0%, rgba(15, 28, 22, 0.25) 50%, rgba(250, 248, 245, 1) 100%),
              url('/images/hero-bg.webp') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--bg-subtle);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 38px;
  font-weight: 300;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Search Bar (Muji Minimalist) */
.search-bar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  color: var(--text-main);
  max-width: 1000px;
  margin: 0 auto;
}

.search-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group input,
.search-input-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input-group input:focus,
.search-input-group select:focus {
  border-color: var(--wood-main);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(140, 103, 66, 0.12);
}

/* ==========================================================================
   INTERACTIVE RESORT MAP SECTION (MATCHING AERIAL REAL LAYOUT)
   ========================================================================== */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wood-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

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

/* View Mode Switcher */
.view-mode-toggle {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: #ffffff;
  color: var(--wood-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Interactive Map Canvas Wrapper (Coordinate-Locked 1100x780 Aspect Ratio) */
.resort-map-container {
  position: relative;
  width: 100%;
}

.resort-map-viewport {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #20352a;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.resort-map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 780;
  background: #20352a;
  overflow: hidden;
}

.map-svg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.desktop-only-popover {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.desktop-only-popover .map-popover-card {
  pointer-events: auto;
}

.mobile-only-popover {
  display: none;
}

/* ==========================================================================
   RESORT MAP PINS & INTERACTIVE OVERLAY (PERFECT CENTERING & NON-OVERLAPPING)
   ========================================================================== */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0.2s ease;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 35;
}

.map-pin.active {
  transform: translate(-50%, -50%) scale(1.22);
  z-index: 36;
}

.pin-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wood-main);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pin-marker.available {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.4);
}

.pin-marker.booked {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.room-card.room-unavailable {
  opacity: 0.92;
  border: 1.5px solid #fca5a5;
  background: #fffafa;
}

.room-card.room-unavailable .room-card-header img {
  filter: saturate(0.85);
}

.room-card.room-unavailable .btn-primary {
  background: #475569;
  border-color: #475569;
}

.pin-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Default label (Bottom centered) */
.pin-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(24, 34, 28, 0.94);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 12;
}

/* Smart Side Labels for Vertical Villa Stacks to eliminate overlap completely */
.map-pin.label-right .pin-label {
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}

.map-pin.label-left .pin-label {
  top: 50%;
  left: auto;
  right: calc(100% + 8px);
  transform: translateY(-50%);
}

.pin-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: pulse-ripple 2s infinite;
  pointer-events: none;
}

@keyframes pulse-ripple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Floating Room Popover Card on Map (Positioned perfectly inside the dashed border zone) */
.map-popover-card {
  position: absolute;
  left: 12.72%;
  top: 55.13%;
  width: 29.09%;
  height: 37.82%;
  min-width: 280px;
  min-height: 270px;
  max-width: 330px;
  max-height: 300px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
  border: 1.5px solid rgba(230, 222, 209, 0.95);
  overflow: hidden;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: popoverFadeIn 0.2s ease;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.popover-img-wrap {
  position: relative;
  height: 48%;
  min-height: 120px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.popover-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popover-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.popover-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.2;
}

.popover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.popover-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wood-dark);
  font-family: var(--font-en);
}

.popover-price small {
  font-size: 0.76rem;
  font-weight: normal;
  color: var(--text-muted);
}

/* ==========================================================================
   ROOMS SHOWCASE & FILTER
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--wood-main);
  color: var(--wood-main);
}

.filter-btn.active {
  background: var(--wood-main);
  color: #ffffff;
  border-color: var(--wood-main);
  box-shadow: var(--shadow-sm);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.room-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--wood-light);
}

.room-card-header {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.room-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-card-header img {
  transform: scale(1.04);
}

.room-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(35, 54, 44, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.room-photos-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-card-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.room-card-type {
  font-size: 0.82rem;
  color: var(--wood-dark);
  font-weight: 500;
  margin-bottom: 10px;
}

.room-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amenities-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.amenity-pill {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.room-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-price-box {
  display: flex;
  flex-direction: column;
}

.room-price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.room-price-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wood-dark);
  font-family: var(--font-en);
}

.room-price-val small {
  font-size: 0.78rem;
  font-weight: normal;
  color: var(--text-muted);
}

.room-card-actions {
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   MODALS (GALLERY, BOOKING, LOOKUP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 21, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  border: 1px solid var(--border-color);
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.modal-close-btn:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.gallery-modal-content {
  padding: 24px;
}

.gallery-main-view {
  position: relative;
  height: 460px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #181d1a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: auto;
}

.gallery-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-prev { left: 14px; }
.gallery-nav-next { right: 14px; }

.gallery-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb {
  width: 74px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--wood-main);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-modal-body {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--wood-main);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(140, 103, 66, 0.12);
}

.price-summary-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 18px 0;
  border: 1px solid var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.price-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.bank-info-box {
  background: #fbf8f2;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ==========================================================================
   FOOTER (MUJI NATURAL SLATE)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 70px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 18px;
  max-width: 340px;
}

.footer-col h4 {
  color: var(--wood-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 7px;
  cursor: pointer;
  z-index: 101;
}

.mobile-toggle-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border-color);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-links {
  list-style: none;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.mobile-link {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.mobile-link:hover {
  background: var(--bg-subtle);
  color: var(--wood-dark);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Contact & Location Card */
.contact-card-grid {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET OPTIMIZED)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .search-bar-card { grid-template-columns: 1fr 1fr; }
  .search-bar-card .btn { grid-column: 1 / -1; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .contact-card-grid { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}

@media (max-width: 768px) {
  .navbar { height: 64px; }
  .nav-container { padding: 0 16px; }
  .brand-title { font-size: 1.25rem; }
  .brand-sub { font-size: 0.65rem; }
  .nav-links { display: none; }
  .nav-btn-desktop { display: none !important; }
  .mobile-toggle-btn { display: flex; }

  .hero-section {
    min-height: auto;
    padding: 96px 16px 40px;
  }
  .hero-title { font-size: 1.9rem; line-height: 1.25; }
  .hero-subtitle { font-size: 0.95rem; line-height: 1.6; }
  .search-bar-card { grid-template-columns: 1fr; padding: 18px; border-radius: 14px; }

  .section-container { padding: 44px 16px; }
  .section-title { font-size: 1.65rem; }
  .section-desc { font-size: 0.92rem; }
  .section-header { margin-bottom: 24px; }

  /* Smooth horizontal scrolling category tabs on mobile */
  .filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.86rem;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .room-card-img-wrap {
    height: 220px;
  }
  .room-card-body {
    padding: 18px 16px;
  }
  .room-card-title {
    font-size: 1.25rem;
  }
  .room-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .room-price-box {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .room-card-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 8px;
    width: 100%;
  }
  .room-card-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
    font-size: 0.85rem;
  }

  /* Interactive map container on mobile (100% Fit-to-Screen, Zero Horizontal Scroll) */
  .resort-map-viewport { 
    overflow: hidden; 
    border-radius: 12px;
    width: 100%;
  }

  .resort-map-canvas { 
    width: 100%; 
    min-width: 0; 
    height: auto; 
    min-height: 0; 
    aspect-ratio: 1100 / 780;
    flex-shrink: 0;
  }

  .pin-marker {
    width: 24px;
    height: 24px;
    border-width: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .pin-icon {
    font-size: 0.7rem;
  }

  .pin-label {
    font-size: 0.6rem;
    padding: 1.5px 5px;
    border-radius: 4px;
    top: calc(100% + 3px);
  }

  .map-pin.label-right .pin-label {
    left: calc(100% + 4px);
  }

  .map-pin.label-left .pin-label {
    right: calc(100% + 4px);
  }

  .desktop-only-popover {
    display: none !important;
  }

  .mobile-only-popover {
    display: block;
    margin-top: 14px;
    width: 100%;
  }

  .mobile-only-popover .map-popover-card {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .mobile-only-popover .popover-img-wrap {
    height: 200px;
  }

  /* Contact & Location Section on mobile */
  .contact-card-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }
  .contact-card-grid h2 {
    font-size: 1.5rem !important;
  }
  .contact-map-col {
    height: 240px !important;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .gallery-main-view {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .brand-title { font-size: 1.15rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 1px; }
  
  .pin-marker {
    width: 20px;
    height: 20px;
    border-width: 1.2px;
  }
  .pin-icon {
    font-size: 0.58rem;
  }
  .pin-label {
    font-size: 0.52rem;
    padding: 1px 3px;
    border-radius: 3px;
  }

  .room-card-actions {
    grid-template-columns: 1fr;
  }
}
