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


.bottom-sheet {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.1s linear;
}
.bottom-sheet.show {
  opacity: 1;
  pointer-events: auto;
  z-index: 1000;
}
.bottom-sheet .sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background: #000;
}
.bottom-sheet .content {
  width: 100%;
  position: relative;
  background: #fff;
  max-height: 100vh;
  height: 50vh;
  max-width: 1150px;
  /* padding: 0px 30px 40px 30px; */
  transform: translateY(100%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  transition: 0.3s ease;
}
.bottom-sheet.show .content {
  transform: translateY(0%);
}
.bottom-sheet.dragging .content {
  transition: none;
}
.bottom-sheet.fullscreen .content {
  border-radius: 0;
}
.bottom-sheet .header {
  display: flex;
  justify-content: center;
}
.header .drag-icon {
  cursor: grab;
  user-select: none;
  padding: 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header .drag-icon span {
  height: 4px;
  width: 40px;
  display: block;
  background: #C7D0E1;
  border-radius: 50px;
}
/* Initially, the body is non-scrollable (50vh) */
.bottom-sheet .body {
  height: 100%;
  overflow-y: hidden;
  padding: 0;
  scrollbar-width: none;
}
/* In fullscreen mode, allow scrolling */
.bottom-sheet.fullscreen .body {
  overflow-y: auto;
}
.bottom-sheet .body::-webkit-scrollbar {
  width: 0;
}
.bottom-sheet .body h2 {
  font-size: 1.8rem;
}
.bottom-sheet .body p {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

/* Desktop Modal Styles */
@media (min-width: 769px) {
  .bottom-sheet {
    align-items: center;
    justify-content: center;
  }
  
  .bottom-sheet .content {
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 85vh;
    transform: scale(0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  
  /* Wider modal for calendar-based reservations */
  .bottom-sheet:has(.calendar-container) .content,
  #car-rental-modal .content,
  #accommodation-modal .content {
    max-width: 900px;
    width: 95%;
  }
  
  .bottom-sheet.show .content {
    transform: scale(1);
  }
  
  .bottom-sheet .header {
    display: none; /* Hide drag handle on desktop */
  }
  
  .bottom-sheet .body {
    overflow-y: auto;
    max-height: calc(85vh - 20px);
  }
  
  .bottom-sheet .sheet-overlay {
    opacity: 0.4;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }
  
  /* Close button for desktop */
  .bottom-sheet .desktop-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    display: none;
  }
  
  .bottom-sheet .desktop-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
  }
  
  /* Disable dragging on desktop */
  .bottom-sheet .content {
    cursor: default;
  }
  
  .bottom-sheet.dragging .content {
    transition: 0.3s ease;
  }
}

/* Large desktop adjustments */
@media (min-width: 1200px) {
  .bottom-sheet .content {
    max-width: 700px;
  }
  
  .bottom-sheet .body {
  }
  
  /* Even wider for calendar modals on large screens */
  .bottom-sheet:has(.calendar-container) .content,
  #car-rental-modal .content,
  #accommodation-modal .content {
    max-width: 800px;
    border-radius: 30px;
  }
}

/* Service Modal Content Responsive Styles */
@media (min-width: 500px) {
  /* Counter container adjustments for desktop */
  .bottom-sheet .counter-container {
    padding: 30px;
    /* margin-bottom: 20px; */
  }
  
  .bottom-sheet .counter-row {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .bottom-sheet .counter-row:last-child {
    border-bottom: none;
  }
  
  /* Ticket summary adjustments for desktop modal */
  .bottom-sheet .ticket-summary {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: #ffffff;
    border-top: 2px solid #f0f0f0;
    border-radius: 30px;
  }
  
  .bottom-sheet .total-section {
  width: 50%;
  }
  
  .bottom-sheet .purchase-btn {
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  /* Two-column layout for calendar modals */
  .bottom-sheet:has(.calendar-container) .body,
  #car-rental-modal .body,
  #accommodation-modal .body {
    display: flex;
    gap: 70px;
    padding: 40px 40px 40px 40px;
    border-radius: 30px;
  }
  
  .bottom-sheet:has(.calendar-container) .calendar-container,
  #car-rental-modal .calendar-container,
  #accommodation-modal .calendar-container {
    flex: 1;
    padding: 0;
    min-width: 0;
  }
  
  .bottom-sheet:has(.calendar-container) .modal-side-content,
  #car-rental-modal .modal-side-content,
  #accommodation-modal .modal-side-content {
    flex: 1;
    min-width: 0;
    /* padding-left: 20px; */
  }
  
  /* Calendar side styling */
  .bottom-sheet .calendar-container h3 {
    text-align: center;
    color: #333;
    font-size: 18px;
  }
  
  .bottom-sheet .month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .bottom-sheet .month-nav {
    /* background: #f8f9fa; */
    /* border: 1px solid #dee2e6; */
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .bottom-sheet .month-nav:hover {
    background: #e9ecef;
    border-color: #adb5bd;
  }
  
  /* Calendar specific adjustments */
  .bottom-sheet .calendar-container {
    padding: 0;
  }
  
  .bottom-sheet .calendar-grid {
  }
  
  .bottom-sheet .selected-dates {
    margin: 30px 0 0px 0;
    border: 0;
    border-radius: 8px;
    text-align: center;
  }
  
  /* Guest room selection adjustments */
  .bottom-sheet .guest-room-selection {
  }
  
  /* Driver option adjustments */
  .bottom-sheet .driver-option {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
  }
  
  .bottom-sheet .time-selection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
  }
  
  /* Total summary adjustments */
  .bottom-sheet .total-summary {
    width: calc(50% - 60px);
    left: 0 !important;
    right: auto;
    border-radius: 30px;
    padding: 40px 0;
    margin: 0 40px;
    box-shadow: unset;
    bottom: 0;
  }
}

/* Mobile specific overrides for calendar modals */
@media (max-width: 768px) {
  .bottom-sheet:has(.calendar-container) .body,
  #car-rental-modal .body,
  #accommodation-modal .body {
    display: block;
    padding: 0;
  }
  
  .bottom-sheet:has(.calendar-container) .calendar-container,
  #car-rental-modal .calendar-container,
  #accommodation-modal .calendar-container {
    padding: 20px;
  }
  
  .bottom-sheet:has(.calendar-container) .modal-side-content,
  #car-rental-modal .modal-side-content,
  #accommodation-modal .modal-side-content {
    padding: 0 20px;
  }
}