/* Montserrat Font definitions */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* General Layout Utils */
.hidden {
  display: none;
}

/* Hero Section Basics */
.hero-slider {
  position: relative;
  z-index: 1;
}

/* Custom Flatpickr Styling from form.php */
.flatpickr-calendar {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: 'Montserrat', sans-serif;
}

.flatpickr-months {
  background: white;
  border-radius: 8px 8px 0 0;
}

.flatpickr-current-month {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.flatpickr-weekdays {
  background: white;
  font-weight: 600;
}

.flatpickr-weekday {
  color: #6b7280;
  font-size: 11px;
}

.flatpickr-day {
  color: #374151;
  border-radius: 6px;
  font-weight: 500;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

.flatpickr-day.today {
  border-color: #D4AF37;
  color: #D4AF37;
}

.flatpickr-day.selected {
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: white !important;
  font-weight: 600;
}

.flatpickr-day.selected:hover {
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #D4AF37;
}

.flatpickr-day.disabled {
  color: #d1d5db;
}

/* Multiple months styling */
.flatpickr-calendar.multiMonth .flatpickr-days {
  border-right: 1px solid #e5e7eb;
}

.flatpickr-calendar.multiMonth .flatpickr-days:last-child {
  border-right: none;
}

/* Suggest menu dropdown styling */
.suggest-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 50;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
}

.suggest-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover {
  background-color: #f9fafb;
  color: #d4af37;
}

/* Visibility Responsive Utils */
.desktop-view {
  display: none !important;
}

@media screen and (min-width: 1024px) {
  .desktop-view {
    display: flex !important;
  }

  .mobile-view {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  .mobile-view {
    display: flex !important;
  }

  .desktop-view {
    display: none !important;
  }
}

/* --- Popular Routes Section (Rota) --- */
:root {
  --vip-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-card {
  transition: var(--vip-transition);
  position: relative;
  z-index: 1;
}

.vip-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(197, 160, 40, 0.15);
}

.vip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 0 rgba(197, 160, 40, 0);
  transition: var(--vip-transition);
  pointer-events: none;
  z-index: -1;
}

.vip-card:hover::after {
  box-shadow: 0 0 30px rgba(197, 160, 40, 0.2);
}

/* Liquid Pagination */
.swiper-pagination-popular .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #1A1A1A;
  opacity: 1;
  border-radius: 20px;
  transition: var(--vip-transition);
}

.swiper-pagination-popular .swiper-pagination-bullet-active {
  width: 32px;
  background: #EECB77;
}

/* Force Equal Heights */
.popular-routes-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.popular-routes-swiper .vip-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Fixed Image Height */
.card-image-container {
  height: 240px;
  flex-shrink: 0;
}

/* Info Modal Styles */
#info-modal .modal-content {
  transition: var(--vip-transition);
  transform: scale(0.95);
  opacity: 0;
}

#info-modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

#info-modal.active #info-backdrop {
  opacity: 1;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #C5A028;
  border-radius: 10px;
}

/* Fleet Pagination - Dark Theme */
.swiper-pagination-fleet .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #1A1A1A;
  opacity: 1;
  border-radius: 20px;
  transition: var(--vip-transition);
}

.swiper-pagination-fleet .swiper-pagination-bullet-active {
  width: 32px;
  background: #EECB77;
}