.filtering-modal-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-filtering-modal {
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 10px !important;
  margin-right: 10px !important;
  font-size: 15px;
}

.modal-title {
  font-size: 16px;
  font-weight: bold;
}

#searchRoam {
  overflow: hidden !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

.modal-dialog-slideup-search {
  margin: 0;
  max-width: 100% !important;
  width: 100% !important;
  height: 100%;
}

.modal-dialog-slideup-search .modal-content {
  height: 100%;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

#searchRoam .modal-body {
  padding: 0;
  height: 750px;
  position: relative;
}


.all-map-modal-body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: none;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.15);
}

.search-container {
  padding: 5px 10px 0px 10px;
  height: calc(100% - 100px);
  overflow-y: auto;
  position: relative;
}

/* Updated search section with proper border containment */
.search-section {
  background: white;
  border-radius: 16px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #aaa;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
/* 
.search-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 181, 144, 0.1),
    transparent
  );
  transition: left 0.8s ease;
  z-index: 1;
} */

.search-section:hover::before {
  left: 100%;
}

.section-header {
  padding: 10px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.search-section.active .section-header {
  border-bottom-color: #e2e8f0;
}

.section-icon {
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid #3b5a9b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
}

.search-section:hover .section-icon {
  transform: scale(1.05);
}

.section-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.section-input {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Dropdown content properly contained within border */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafbfc;
  border-top: 1px solid #e2e8f0;
}

.dropdown-content.show {
  max-height: 800px; /* Controlled max height */
  opacity: 1;
}

/* Specific heights for different sections */
#where-dropdown.show {
  max-height: 250px;
}

#when-dropdown.show {
  max-height: 450px;
}

#who-dropdown.show {
  max-height: 450px;
}

.guests-container,
.where-container {
  padding: 10px;
  background: #fafbfc;
}

.calendar-container {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0px 30px 150px 30px;
  background: #fafbfc;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.calendar-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.month-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin: 12px 0 8px;
  padding-left: 6px;
}

.month-calendar {
  margin-bottom: 18px;
}

.month-calendar .flatpickr-months {
  display: none !important;
}

.month-calendar .flatpickr-day.prevMonthDay,
.month-calendar .flatpickr-day.nextMonthDay {
  visibility: hidden !important;
}

.flatpickr-calendar {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  background: none !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  visibility: hidden;
}

.month-calendar .flatpickr-calendar {
  box-shadow: none;
  border: 0;
  background: transparent;
}

.flatpickr-calendar.inline {
  display: block !important;
  width: 100% !important;
}

.flatpickr-months .flatpickr-month {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  padding: 5px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  text-transform: none;
}

.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flatpickr-current-month span.cur-month {
  margin-right: 6px;
}

.flatpickr-current-month span.cur-month,
.flatpickr-current-month input.cur-year {
  font-size: 1.1em;
  font-weight: 600;
}

.flatpickr-months {
  flex-direction: column !important;
  display: none !important;
}

.flatpickr-months .flatpickr-month {
  margin-bottom: 10px;
}

/* Force the inner container (days grid) to stack vertically */
.flatpickr-innerContainer {
  display: flex;
  flex-direction: column !important;
}

.flatpickr-rContainer {
  display: flex;
  flex-direction: column !important;
}

.flatpickr-days {
  display: flex;
  flex-direction: column !important;
  width: 100% !important;
}

.flatpickr-day {
  max-width: 50px !important;
  height: 50px !important;
  line-height: 50px !important;
  font-size: 14px;
}

@media (max-width: 768px) {
  .flatpickr-day {
    font-size: 16px;
  }
}

.dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 15px;
}

.calendar {
  width: 100%;
}

/* FullCalendar custom styling */
.fc-theme-standard .fc-scrollgrid {
  border: none;
}

.fc .fc-button-primary {
  background: linear-gradient(135deg, #3b5a9b, #1c8d75);
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

.fc .fc-button-primary:hover {
  background: linear-gradient(135deg, #3b5a9b, #1c8d75);
}

.fc-day-today {
  background: #3b5a9b !important;
}

.fc .fc-daygrid-day:hover {
  background: #3b5a9b;
}

.fc .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
}

.flatpickr-day.today {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  border-radius: 50% !important;
  background: #3b5a9b !important;
  border: 1px solid #3b5a9b !important;
}
.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange {
  border-radius: 50% !important;
  z-index: 11;
  color: white !important;
  background: #3b5a9b !important;
  border: 1px solid #3b5a9b;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
  -webkit-box-shadow: -30px 0 0 transparent !important;
  box-shadow: -30px 0 0 transparent !important;
  position: relative !important;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1))::before,
.flatpickr-day.startRange.startRange
  + .endRange:not(:nth-child(7n + 1))::before,
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1))::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px; /* same as your shadow offset */
  width: 60px;
  height: 100%;
  background-color: #e6e6e6;
  border-radius: 8px 0 0 8px; /* rounded left side */
  z-index: -1; /* put it behind the date text */
}

.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
  border-radius: 50% !important;
  background: #3b5a9b !important;
  border: 1px solid #3b5a9b;
}

.flatpickr-day.inRange {
  border-radius: 0;
  -webkit-box-shadow: -16px 0 0 #e6e6e6, 16px 0 0 #e6e6e6 !important;
  box-shadow: -16px 0 0 #e6e6e6, 16px 0 0 #e6e6e6 !important;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.guest-row:last-child {
  border-bottom: none;
}

.guest-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.guest-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.guest-details {
  flex: 1;
}

.guest-label {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.guest-description {
  font-size: 12px;
  color: #64748b;
}

.guest-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.control-btn {
  width: 32px;
  height: 32px;
  border: 1px #aaa solid;
  border-radius: 30px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
}

.control-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.guest-count {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
}

.search-action-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10; /* Ensure it stays on top */
}

.search-button {
  background: #3b5a9b;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 8px;
  min-width: 120px;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 185, 154, 0.4);
  background: #229688;
}

.search-clear-button {
  background: transparent;
  font-size: 16px;
  color: #aaa;
  font-weight: bold;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-clear-button:hover {
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.where-container input {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 100%;
}

.where-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 150px; /* Limited height for where suggestions */
  overflow-y: auto;
}

.where-suggestions li {
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 13px;
}

.where-suggestions li:hover {
  background-color: #3b5a9b;
  color: white;
}

/* Scrollbar styling for better UX */
.search-container::-webkit-scrollbar,
.where-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-container::-webkit-scrollbar-track,
.where-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.search-container::-webkit-scrollbar-thumb,
.where-suggestions::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-container::-webkit-scrollbar-thumb:hover,
.where-suggestions::-webkit-scrollbar-thumb:hover {
  background: #3b5a9b;
}
