/* CampusPool Web Application - Hitch Minimalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Hitch Minimalist Typography */
  --font-hitch-display: "Haas-Grot-Disp-App", "Neue Haas Grotesk Display Pro", "Neue Haas Grotesk", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hitch-text: "Haas-Grot-Text-App", "Neue Haas Grotesk Text Pro", "Neue Haas Grotesk", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Color Palette inspired by Hitch */
  --hitch-blue: #0088FF;
  --hitch-blue-hover: #0077EE;
  --hitch-blue-active: #0066DD;
  --hitch-blue-light: #EDF5FF;
  --hitch-black: #000000;
  --hitch-dark: #0F172A;
  --hitch-slate: #334155;
  --hitch-muted: #64748B;
  --hitch-light-muted: #94A3B8;
  --hitch-bg: #FFFFFF;
  --hitch-surface: #F8FAFC;
  --hitch-surface-border: #E2E8F0;
  --hitch-border: #E5E7EB;
  --hitch-card: #FFFFFF;

  /* Backward-compatible variables */
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-subtle: #F1F5F9;
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;
  --bg-dark-border: #334155;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  --border-light: #E2E8F0;
  --border-card: #E2E8F0;
  --border-subtle: #F1F5F9;
  
  --accent-coral: #0088FF;
  --accent-coral-hover: #0077EE;
  --accent-peach: #EDF5FF;
  --accent-peach-border: #D0E4FF;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--hitch-bg);
  color: var(--hitch-dark);
  font-family: var(--font-hitch-text);
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hitch Display Headings & Number Styles */
.font-display,
.hitch-display {
  font-family: var(--font-hitch-display);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.font-serif {
  font-family: var(--font-hitch-display);
  letter-spacing: -0.03em;
}

.font-sans {
  font-family: var(--font-hitch-text);
}

/* Tabular numbers for prices and metrics */
.tabular-nums,
.hitch-number,
.hitch-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv05" 1, "cv08" 1, "cv11" 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Hitch Minimal Pill Badge */
.campus-pill,
.hitch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 1px solid var(--hitch-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hitch-dark);
  letter-spacing: -0.01em;
}

/* Hitch Hero Card Container */
.hitch-hero-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 1.75rem;
  padding: 2.25rem;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .hitch-hero-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
}

/* Hitch Connected Route Input Widget */
.hitch-route-input-group {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  position: relative;
  overflow: visible;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hitch-route-input-group:focus-within {
  border-color: var(--hitch-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.12);
}

.hitch-route-row {
  display: flex;
  align-items: center;
  padding: 1.05rem 1.25rem;
  position: relative;
}

.hitch-route-row:first-child {
  border-bottom: 1px solid #F1F5F9;
}

.hitch-route-row input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hitch-dark);
  font-family: var(--font-hitch-text);
  letter-spacing: -0.01em;
}

.hitch-route-row input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

/* Hitch Circular Swap Button */
.hitch-swap-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hitch-dark);
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hitch-swap-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-50%) scale(1.05);
}

/* Primary Hitch Blue Action Button */
.btn-hitch-blue,
.btn-coral {
  background-color: var(--hitch-blue);
  color: #FFFFFF;
  font-family: var(--font-hitch-text);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  padding: 0.95rem 1.75rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 136, 255, 0.25);
}

.btn-hitch-blue:hover,
.btn-coral:hover {
  background-color: var(--hitch-blue-hover);
  box-shadow: 0 6px 20px rgba(0, 136, 255, 0.35);
}

.btn-hitch-blue:active,
.btn-coral:active {
  background-color: var(--hitch-blue-active);
  transform: scale(0.99);
}

.btn-dark {
  background-color: var(--hitch-dark);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background-color: #000000;
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--hitch-dark);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hitch-border);
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--hitch-surface);
  border-color: #CBD5E1;
}

/* Hitch Card */
.editorial-card,
.hitch-card {
  background: var(--hitch-card);
  border: 1px solid var(--hitch-border);
  border-radius: 1.25rem;
  transition: all 0.15s ease;
}

.editorial-card:hover,
.hitch-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.06);
}

/* Hitch Split Results Screen */
.hitch-split-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 80px);
}

@media (min-width: 1024px) {
  .hitch-split-container {
    flex-direction: row;
    height: calc(100vh - 80px);
    overflow: hidden;
  }
}

.hitch-sidebar-panel {
  width: 100%;
  background: #FFFFFF;
  border-right: 1px solid var(--hitch-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hitch-sidebar-panel {
    width: 440px;
    min-width: 420px;
    max-width: 480px;
    height: 100%;
  }
}

.hitch-map-panel {
  flex: 1;
  position: relative;
  background: #F1F5F9;
  min-height: 420px;
  width: 100%;
  height: 100%;
}

#google-map-container,
#hitch-map-container {
  width: 100%;
  height: 100%;
  min-height: 450px;
}

/* Custom Hitch Google Maps Speech Bubble Overlays */
.hitch-map-bubble {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  font-family: var(--font-hitch-text);
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -12px;
}

.hitch-map-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: #FFFFFF;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hitch-map-bubble-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.hitch-map-bubble-address {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  display: block;
}

/* Hitch Ride Card Item */
.hitch-ride-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  padding: 1.15rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hitch-ride-card:hover {
  border-color: var(--hitch-blue);
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.08);
  transform: translateY(-1px);
}

.hitch-ride-card.is-selected {
  border-color: var(--hitch-blue);
  background-color: #F8FBFF;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  background: #FFFFFF;
  border: 1px solid var(--hitch-border);
  border-radius: 1rem;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
}

.autocomplete-item {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--hitch-dark);
  transition: background-color 0.1s ease;
  font-family: var(--font-hitch-text);
}

.autocomplete-item:hover {
  background-color: var(--hitch-surface);
  color: var(--hitch-blue);
  font-weight: 600;
}

/* Modal styling */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  z-index: 99999 !important;
  position: fixed;
}


/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Defensive rule: Ensure legacy mega-menus never render */
.mega-menu-panel,
.mega-menu-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}


/* Hitch Highlight Banner */
.orange-gradient-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 1.75rem;
  color: #FFFFFF;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.25);
}

/* Custom Hitch Minimalist Calendar (Image UI) */
.hitch-calendar-card {
  width: 320px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  user-select: none;
  font-family: var(--font-hitch-text);
}

.hitch-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.hitch-cal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  font-family: var(--font-hitch-display);
}

.hitch-cal-nav-btn {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.15s ease;
}

.hitch-cal-nav-btn:hover {
  color: #0F172A;
  background-color: #F1F5F9;
}

.hitch-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 0.85rem;
}

.hitch-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem 0.2rem;
  text-align: center;
}

.hitch-cal-day {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0F172A;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.12s ease;
  font-variant-numeric: tabular-nums;
  border: none;
  background: transparent;
}

.hitch-cal-day:hover:not(.is-disabled):not(.is-selected) {
  background-color: #F1F5F9;
}

.hitch-cal-day.is-selected {
  background-color: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
}

.hitch-cal-day.is-disabled {
  color: #E2E8F0;
  cursor: not-allowed;
  font-weight: 400;
  pointer-events: none;
}

