/**
 * Wayzuno Explore Anywhere & Budget Flight Finder Styles
 */

.explore-page {
  background: #f8fafc;
  color: #0f172a;
}

.explore-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 0 24px;
  text-align: center;
}

.explore-hero .seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.explore-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 12px;
}

.explore-hero p {
  font-size: 16px;
  line-height: 1.5;
  color: #475569;
  max-width: 680px;
  margin: 0 auto;
}

/* Controls Card */
.explore-controls-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  margin-bottom: 32px;
}

.controls-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  justify-content: space-between;
}

.control-select {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.control-select:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.origin-hint-badge {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
}

.dest-badge-season {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* Budget Slider Styling */
.budget-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-val-badge {
  color: #2563eb;
  font-weight: 800;
  font-size: 15px;
}

.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s, background-color 0.15s;
}

.budget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #1d4ed8;
}

.budget-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Category Filter Pills */
.category-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.category-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Airline Alliance Filter Pills */
.alliance-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed #f1f5f9;
}

.alliance-pills-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.alliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alliance-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.alliance-pill.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.25);
}

.secondary-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* Stats / Meter Banner */
.explore-meter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #1e3a8a;
}

.meter-stat-strong {
  font-weight: 800;
  color: #1d4ed8;
}

/* Route Visualizer Canvas Banner */
.explore-map-visualizer {
  background: #090e1c;
  border-radius: 16px;
  margin-bottom: 32px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.16);
  border: 1px solid #1e293b;
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visualizer-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.visualizer-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.visualizer-svg {
  width: 100%;
  height: clamp(260px, 40vw, 420px);
  display: block;
}

.world-land {
  fill: #142036;
  stroke: #1e3a5f;
  stroke-width: 0.8;
}

.arc-path {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.8;
  stroke-dasharray: 5, 4;
  opacity: 0.85;
  transition: opacity 0.2s, stroke-width 0.2s, stroke 0.2s;
  cursor: pointer;
}

.arc-path:hover,
.arc-path.is-active-arc {
  opacity: 1;
  stroke-width: 3.5;
  stroke: #fbbf24;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.8));
}

.origin-point {
  fill: #f59e0b;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.dest-point {
  fill: #38bdf8;
  stroke: #090e1c;
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 0.2s, fill 0.2s, filter 0.2s;
}

.dest-point:hover,
.dest-point.is-active-point {
  r: 6.5;
  fill: #fbbf24;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9));
}

.dest-label-text {
  fill: #cbd5e1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.origin-label-text {
  fill: #f59e0b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* Destination Cards Grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.dest-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.dest-card-hero {
  height: 110px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #ffffff;
  position: relative;
}

.dest-badge-category {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dest-card-price-pill {
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.dest-card-price-pill small {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

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

.dest-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.dest-city-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.dest-code-tag {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.dest-country-name {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px;
  font-weight: 500;
}

.dest-airlines-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dest-airlines-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dest-airline-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.airline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  line-height: 1;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.airline-badge:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.airline-badge-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  vertical-align: middle;
  background: #ffffff;
}

.airline-badge-name {
  font-size: 11px;
}

.dest-meta-strip {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #475569;
  padding: 8px 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 14px;
}

.dest-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.dest-tip-box {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
  margin-bottom: 16px;
  flex-grow: 1;
}

.dest-tip-label {
  display: block;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.dest-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-search-explore {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-search-explore:hover {
  background: #1d4ed8;
}

.btn-trends-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px;
  background: #f8fafc;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-trends-explore:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.btn-share-explore {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-share-explore:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.dest-card.dest-card-highlighted {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4), 0 20px 32px -4px rgba(15, 23, 42, 0.2);
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 12-Month Fare Trends Modal & Drawer */
.trends-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.trends-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.trends-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.trends-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 28px;
  z-index: 1;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.trends-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.trends-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.trends-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.trends-modal-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.trends-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* 12-Month Bar Chart */
.trends-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 24px 8px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
}

.trends-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.trends-bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  transition: height 0.3s ease, filter 0.15s ease;
  cursor: pointer;
  min-height: 12px;
}

.trends-bar:hover {
  filter: brightness(1.15);
}

.trends-bar.is-peak {
  background: #2563eb;
}

.trends-bar.is-shoulder {
  background: #0ea5e9;
}

.trends-bar.is-low {
  background: #10b981;
}

.trends-bar-price {
  font-size: 10px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.trends-bar-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.trends-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

.trends-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.trends-details-section {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.5;
}

.trends-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Empty State */
.destinations-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.destinations-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.destinations-empty p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 640px) {
  .controls-main-grid {
    grid-template-columns: 1fr;
  }
  .visualizer-svg {
    height: 180px;
  }
  .destinations-grid {
    grid-template-columns: 1fr;
  }
}
