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

:root {
  --primary: #0F382C;
  --primary-light: #1A5342;
  --primary-dark: #0A261E;
  --gold: #D4AF37;
  --gold-light: #F4E5A8;
  --gold-hover: #B89324;
  --sand: #FAF8F5;
  --card-bg: #FFFFFF;
  --text-main: #1C2421;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --accent: #E07A5F;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 2px 8px rgba(15, 56, 44, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 56, 44, 0.1), 0 8px 10px -6px rgba(15, 56, 44, 0.05);
  --shadow-lg: 0 20px 35px -5px rgba(15, 56, 44, 0.15), 0 10px 15px -5px rgba(15, 56, 44, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Prompt', 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--sand);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

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

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 56, 44, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-brand span.highlight {
  color: var(--gold);
  font-family: var(--font-serif);
}

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

.nav-links a {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  color: #0A261E !important;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 38, 30, 0.75) 0%, rgba(15, 56, 44, 0.85) 100%),
              url('https://images.unsplash.com/photo-1540541338287-41700207dee6?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff;
  padding: 8rem 1.5rem 5rem;
}

.hero-content {
  max-width: 850px;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: #E2E8F0;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  color: #0A261E;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--gold-hover);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  color: var(--primary);
}

/* Room Cards Grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.room-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.room-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #cbd5e1;
}

.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.room-type-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 56, 44, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.room-price-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.room-price-badge span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.room-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.room-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.room-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.amenity-chip {
  background: var(--sand);
  border: 1px solid var(--border);
  color: #475569;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
}

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

.capacity-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-book-room {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-book-room:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 56, 44, 0.2);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 38, 30, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: modalScaleUp 0.3s ease-out;
}

.modal-header {
  padding: 1.5rem 2rem;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--gold-light);
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 56, 44, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.price-summary-box {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.price-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #CBD5E1;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile Bottom Sheet & Mobile-First Booking UI */
.sheet-drag-handle {
  display: none;
  width: 40px;
  height: 5px;
  background: #CBD5E1;
  border-radius: 10px;
  margin: 10px auto 4px;
}

.selected-room-banner {
  background: linear-gradient(135deg, rgba(15, 56, 44, 0.06) 0%, rgba(212, 175, 55, 0.12) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-banner-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.room-banner-price span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Date Selection Grid */
.date-selection-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 1.2rem;
}

.date-input-card {
  background: #F8FAFC;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

.date-input-card:focus-within, .date-input-card:hover {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.date-input-card label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.mobile-date-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  outline: none;
  padding: 0;
}

.night-count-pill {
  background: var(--primary);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 56, 44, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Mobile Inputs */
.mobile-input {
  font-size: 16px !important; /* Prevents auto-zoom on iOS */
  padding: 0.85rem 1rem !important;
  border-radius: 12px !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #FAFAFA !important;
  transition: var(--transition);
}

.mobile-input:focus {
  background: #FFFFFF !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(15, 56, 44, 0.1) !important;
}

/* Sticky Mobile Bottom Bar inside Modal */
.mobile-sticky-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 10;
}

.sticky-price-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sticky-price-info strong {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
}

.btn-mobile-submit {
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Mobile Bottom Navigation Bar (App Style) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 56, 44, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 990;
  padding: 8px 12px 10px;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 8px;
}

.mobile-nav-item i {
  font-size: 1.15rem;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--gold);
}

/* Mobile Responsiveness for Small Screens */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for bottom nav */
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding: 6rem 1.2rem 4rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }

  .room-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .room-card {
    border-radius: 18px;
  }

  /* Bottom Sheet Transformation */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card.mobile-sheet {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
  }

  .sheet-drag-handle {
    display: block;
  }

  .modal-header {
    padding: 1rem 1.25rem;
    border-radius: 24px 24px 0 0;
  }

  .date-selection-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .night-count-pill {
    align-self: center;
    margin: -4px 0;
  }

  .mobile-sticky-footer {
    border-radius: 0;
    padding: 0.8rem 1.2rem;
  }
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ==========================================================================
   Unified Date Card (Trip.com / Agoda Style Single Range Selector Box)
   ========================================================================== */
.unified-date-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(15, 56, 44, 0.05);
  position: relative;
  user-select: none;
  margin-bottom: 4px;
}

.unified-date-card:hover, .unified-date-card:focus {
  border-color: #2563EB;
  background: #F8FAFC;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.unified-date-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-sec {
  text-align: right;
}

.ud-label {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.checkout-sec .ud-label {
  justify-content: flex-end;
}

.ud-date-main {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0F382C;
  line-height: 1.25;
}

.ud-sub {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
}

.unified-date-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 6px;
}

.unified-night-badge {
  background: #0F382C;
  color: #F4E5A8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 56, 44, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.unified-action-icon {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-left: 2px;
  transition: transform 0.2s, color 0.2s;
}

.unified-date-card:hover .unified-action-icon {
  color: #2563EB;
  transform: translateX(3px);
}

/* ==========================================================================
   Trip.com / Agoda Style Dual-Month Booking Calendar Modal & Component
   ========================================================================== */
.trip-calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 38, 30, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 15px;
}

.trip-calendar-modal.active {
  opacity: 1;
  visibility: visible;
}

.trip-cal-container {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1E293B;
}

.trip-calendar-modal.active .trip-cal-container {
  transform: scale(1) translateY(0);
}

/* Top Header Bar */
.trip-cal-header-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trip-cal-range-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  color: #1D4ED8;
  font-size: 0.95rem;
}

.trip-cal-range-preview .nights-badge {
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.trip-cal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748B;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.trip-cal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Months Grid Body */
.trip-cal-body {
  padding: 16px 20px 10px;
  overflow-y: auto;
  flex: 1;
}

.trip-cal-months-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  position: relative;
}

.trip-cal-month {
  display: flex;
  flex-direction: column;
}

.trip-cal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  height: 38px;
}

.trip-cal-month-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  text-align: center;
  flex: 1;
}

.trip-cal-nav-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.trip-cal-nav-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.trip-cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #F1F5F9;
  color: #94A3B8;
}

/* Weekday Headers */
.trip-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
}

.trip-cal-weekdays .is-weekend {
  color: #2563EB;
}

/* Days Grid */
.trip-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 0;
  position: relative;
}

.trip-cal-day {
  position: relative;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  transition: background-color 0.15s, color 0.15s;
  border-radius: 0;
}

.trip-cal-day.is-weekend-day {
  color: #1D4ED8;
}

.trip-cal-day:hover:not(.is-disabled):not(.is-booked) {
  background-color: #DBEAFE;
  border-radius: 8px;
  color: #1E3A8A;
}

/* Past or Empty Days */
.trip-cal-day.is-empty {
  cursor: default;
  pointer-events: none;
}

.trip-cal-day.is-past {
  color: #CBD5E1 !important;
  cursor: not-allowed;
}

/* BOOKED DATES (ตัวหนังสือสีแดง + ป้ายกำกับ จองแล้ว) */
.trip-cal-day.is-booked {
  color: #DC2626 !important;
  background-color: #FEF2F2 !important;
  cursor: not-allowed;
  opacity: 0.95;
  border-radius: 6px;
  font-weight: 700;
}

.trip-cal-badge-booked {
  display: block;
  font-size: 0.65rem;
  line-height: 1;
  color: #EF4444;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: -0.2px;
}

.trip-cal-day.is-booked .day-num {
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.5);
}

/* Selected Check-in & Check-out Styling */
.trip-cal-day.is-start {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

.trip-cal-day.is-end {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

.trip-cal-day.is-start.is-end {
  border-radius: 10px !important;
}

.trip-cal-day.is-in-range,
.trip-cal-day.is-hover-range {
  background-color: #EFF6FF !important;
  color: #1E40AF !important;
}

.trip-cal-day.is-start::after,
.trip-cal-day.is-end::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Floating Tooltip */
.trip-cal-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 500;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: tooltipFadeIn 0.2s ease;
}

.trip-cal-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Bottom Bar / Legend & Actions */
.trip-cal-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trip-cal-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748B;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.available {
  background: #10B981;
}

.legend-dot.booked {
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.legend-dot.selected {
  background: #2563EB;
}

.trip-cal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cal-confirm {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  padding: 8px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-cal-confirm:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.btn-cal-clear {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #64748B;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cal-clear:hover {
  background: #F1F5F9;
  color: #1E293B;
}

/* Responsive for Mobile Devices */
@media (max-width: 768px) {
  .trip-calendar-modal {
    align-items: flex-end;
    padding: 0;
  }

  .trip-cal-container {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }

  .trip-cal-months-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trip-cal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 20px;
  }

  .trip-cal-actions {
    justify-content: flex-end;
  }
}


