/* At the top of your file */
/*
 * Trip Cards Styling - 2025 Edition
 * 
 * USAGE:
 * - Add .trip-card class to main container
 * - Use .match-item for match components
 * - Use .hotel-info for hotel components
 * - For animations, add --fade-offset to customize entry
 */

:root {
  /* Core Colors */
  --primary-color: #043d7c;
  --primary-light: rgba(4, 61, 124, 0.08);
  --primary-dark: #032c59;
  --secondary-color: #3068cc;
  
  /* Vibrant accents */
  --accent-color: #e63946;
  --success-color: #00b074;
  --warning-color: #ff9500;
  
  /* Refreshed neutrals */
  --neutral-text: #334155;
  --neutral-light: #f1f5f9;
  --card-bg: #ffffff;
  
  /* Effects */
  --divider-color: rgba(4, 61, 124, 0.06);
  --border-color: rgba(4, 61, 124, 0.12);
  --card-shadow: 0.8rem 20px rgba(4, 61, 124, 0.06);
  --hover-shadow: 0 12px 25px rgba(4, 61, 124, 0.12);
  --card-radius: 12px;

  --container-width-default: 1100px;
  --container-width-large: 1300px;

  --transition-standard: all 0.25s ease;
  --button-radius: 8px;
  --section-spacing: 1.5rem;
  --item-spacing: 0.75rem;
  --icon-size: 1rem;
  --icon-size-small: 0.8rem;

  --theme-background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));


}

/* ===== Fades ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(var(--fade-offset, 10px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Then use it with custom properties */
.element-1 {
  --fade-offset: 8px;
  animation: fadeIn 0.4s both;
}

.element-2 {
  --fade-offset: 10px; /* default */
  animation: fadeIn 0.4s 0.2s both;
}

@keyframes smoothReveal {
  from {
    opacity: 0.7;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Card Structure ===== */
.trip-card {
  position: relative !important;
  margin-bottom: 3.5rem !important;
  border: none;
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: var(--container-width-default);
  margin-left: auto;
  margin-right: auto;
  overflow: visible !important;
  z-index: 1;
  transition: all 0.4s ease-out;
}


.trip-card.expanded {
  margin-bottom: 4rem !important;
}

#tripResults {
  overflow: visible !important;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

#results, #resultsContainer, .row, .col-lg-8 {
  overflow: visible !important;
}

/* Add decorative separator between cards */
.trip-card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -2.25rem;
  left: 50%;
  width: 110%;  /* Full width line as requested */
  height: 2px;
  background: linear-gradient(to right, 
    rgba(4, 61, 124, 0), 
    rgba(4, 61, 124, 0.15), 
    rgba(4, 61, 124, 0.3), 
    rgba(4, 61, 124, 0.15), 
    rgba(4, 61, 124, 0));
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.trip-card:not(:last-child)::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  bottom: calc(-3.25rem + 10px);
  left: 50%;
  font-size: 0.9rem;
  color: var(--secondary-color);
  background: white;
  padding: 0 10px;
  transform: translateX(-50%) rotate(90deg);
  z-index: 6;
  pointer-events: none;
}

/* Target both possible container IDs to ensure centering works */
#results .row,
#resultsContainer .row {
  display: flex;
  justify-content: center;
}

/* Ensure proper width for cards container */
body.has-filter-drawer #results .col-lg-8,
body.has-filter-drawer #resultsContainer .col-lg-8 {
  flex: 0 0 100%;
  max-width: var(--container-width-default);
  margin: 0 auto;
}

/* General centering for parent containers */
.container .row {
  justify-content: center;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

/* Compact Design Updates */

/* ===== Reduce header components size ===== */
.trip-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,250,252,0.95) 100%);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}


.trip-details {
  background: var(--card-bg);
  overflow: visible !important;
  position: relative;
  border-top: 1px dashed var(--divider-color);
  margin-top: 0.5rem;
  padding: 1rem 0.75rem 0.5rem !important;
  transition: all 0.4s ease-out;
  transform-origin: top center;
}

.trip-details.show {
  animation: smoothReveal 0.5s ease-out;
}

.trip-details:not(.collapse) {
  border-top: 0px solid var(--divider-color);
}

/* Trip card header components */
.trip-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--section-spacing);
}

.trip-header-main h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: -0.01em;
}

.match-count-badge {
  background: var(--theme-background);
  color: white;
  border-radius: 50px;
  padding: 0.35rem var(--icon-size);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(4, 61, 124, 0.2);
}

.trip-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--icon-size);
  padding-bottom: var(--item-spacing);
  border-bottom: 1px dashed var(--border-color);
}

.trip-meta-item {
  display: flex;
  align-items: center;
  margin-right: var(--section-spacing);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.date-range {
  font-weight: 400;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.trip-meta-item i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  color: var(--secondary-color);
  font-size: var(--icon-size);
}

/* ===== Compact Match Preview ===== */

/* Convert match preview to the same style as hotel/airport */
.match-preview {
  background: white;
  border-radius:var(--button-radius);
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  margin-top: 0;
  border: 1px solid var(--border-color);
  display: block;
  gap: 0;
}

/* Add section title for matches */
.match-preview-title {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--divider-color);
}

.match-preview-title i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

/* Update match preview items to match hotel/airport items */
.match-preview-item {
  background-color: transparent;
  border-radius: 0;
  padding: 0.5rem 0 0.65rem;
  border: none;
  border-bottom: 1px solid var(--divider-color);
  margin-bottom: 0;
  transition: none;
  border-left: none;
}

.match-preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.match-preview-item:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--divider-color);
}

.match-teams-preview i {
  color: var(--secondary-color);
  font-size: var(--icon-size-small);
  width: 12px;
}

/* Update match location display */
.match-location-preview {
  font-size: 0.85rem;
  gap: 0.4rem;
}

.match-location-preview i {
  color: var(--accent-color);
  font-size: var(--icon-size-small);
  width: 12px;
}

/* Update match date display */
.match-date {
  font-size: var(--icon-size-small);
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: none;
  color: var(--neutral-text);
  opacity: 0.8;
}

/* Update more matches indicator */
.more-matches-indicator {
  text-align: right;
  background: transparent;
  border: none;
  padding: 0.4rem 0 0;
  margin-top: 0.25rem;
  font-size: var(--icon-size-small);
  color: var(--secondary-color);
  border-top: 1px dashed var(--divider-color);
}

/* Toggle details button */
.toggle-details-button {
  background: var(--theme-background);
  border: none;
  border-radius:var(--button-radius);
  color: white;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - var(--section-spacing));
  margin: var(--item-spacing);
  box-shadow: 0 4px 12px rgba(4, 61, 124, 0.2),
  inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  width: calc(100% - 2rem) !important;
  padding: 0.75rem !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease;
  z-index: 2;
}

.toggle-details-button i {
  color: white !important;
}

.toggle-details-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: all 1s ease;
}

.toggle-details-button:hover::after {
  left: 100%;
}

.toggle-details-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(4, 61, 124, 0.25);
}

/* ===== Option Panels ===== */
/* Refined Travel Options Section */
.travel-options-section {
  margin: 0 0 1rem !important; /* Reduced bottom margin */
  padding: 0 !important;
  box-shadow: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--divider-color);
  background: transparent;
}

/* Professional Nav Tabs */
.nav-tabs {
  border-bottom: none;
  background: linear-gradient(to right, rgba(4, 61, 124, 0.02), rgba(48, 104, 204, 0.04));
  width: 100%;
  padding: 0 !important;
  background: transparent;
  display: flex;
  gap: 0;
  position: relative;
  top: 0;
  z-index: 10;
  background: var(--neutral-light);
  padding: 0.5rem 0 0;
  border-radius: 0 !important;
  margin: 0 0 0.5rem !important; /* Reduced margin */
}

.nav-tabs .nav-link {
  position: relative;
  text-align: center;
  padding: var(--item-spacing) 1.25rem;
  display: flex;
  align-items: center;
  gap:var(--button-radius);
  transition: var(--transition-standard);
  border-top-left-radius:var(--button-radius);
  border-top-right-radius:var(--button-radius);
  min-width: 0 !important; /* Override minimum width */
  justify-content: center;
  color: var(--primary-color); /* Add primary blue color for tab text */
  font-weight: 600 !important;
  border-radius: var(--button-radius) !important;
  white-space: nowrap;
  margin: 0 0.15rem; /* Small gap between tabs */
  border: 1px solid var(--border-color);
  flex: 1; /* Equal width tabs */
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.7);
}

/* Nav tab buttons - make inactive tabs blue text */
.nav-tabs .nav-link:not(.active) {
  color: var(--primary-color) !important;
}

.nav-tabs .nav-link:not(.active) i {
  color: var(--primary-color) !important;
}

/* Tab content */
.tab-content {
  padding: 0.75rem 0 !important;
  margin-bottom: 0.5rem !important;
  background: transparent;
  border-radius: 0;
  border: none;
}

/* Add to trip-cards.css - Section dividers */
.section-header {
  margin: 1.5rem 0 0.75rem !important;
  padding-bottom: 0 !important;
  border-bottom: none;
  position: relative;
}

.section-header::before {
  display: none;
}

.section-title {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary-color);
  background: linear-gradient(90deg, var(--primary-light), transparent);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}


/* Make tab navigation sticky for easier access */
.nav-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  padding: 0.5rem 0.5rem 0;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

/* ===== Stat Items ===== */
/* Update variant summary to improve the hotel stays display */
.variant-summary {
  padding: 0.8rem !important;
  margin: 0.25rem 0 !important;
  border-radius: var(--card-radius);
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(4, 61, 124, 0.04) !important;
  position: relative;
}


.trip-summary-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--divider-color);
}

.trip-summary-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.4rem;
}

.trip-summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Increased gap for better separation */
  width: 100%;
}

.trip-time-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: -0.5rem !important;
  background: transparent !important; /* Ensure no background */
}

.trip-time-info i {
  color: var(--secondary-color);
  font-size: 1.1rem; /* Slightly larger icon */
}

.trip-meta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--neutral-text);
  font-size: 0.95rem !important; /* Increased from 0.85rem */
}

.trip-meta-info i,
.trip-time-info i {
  color: var(--secondary-color);
  opacity: 0.8;
  font-size: var(--icon-size-small);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 1px; /* Slight adjustment to align with text */
}

.trip-meta-info span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}

/* Unified Content Sections */
.summary-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trip-meta-info i {
  color: var(--secondary-color);
  opacity: 0.8;
  font-size: var(--icon-size-small);
}

/* Accommodations Section */
.hotels-section {
  padding: 0.75rem;
  background: var(--neutral-light);
  border-radius: 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.section-heading i {
  color: var(--secondary-color);
}

/* Specific styling for hotel icon */
.hotels-section .section-heading i.fa-hotel {
  color: var(--secondary-color);
}

/* Specific styling for airport icon */
.airports-section .section-heading i.fa-plane-departure {
  color: var(--secondary-color);
}

.match-location-side i,
.match-location-inline i,
i.fa-map-marker-alt {
  color: var(--accent-color);
}

.variant-summary:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(248, 250, 252, 0.9) 60%, 
    rgba(241, 245, 249, 0.95) 100%);
}

.variant-summary::after {
  content: '';
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, 
    rgba(4, 61, 124, 0), 
    rgba(48, 104, 204, 0.2), 
    rgba(4, 61, 124, 0));
}

.section-header:first-of-type {
  margin-top: 0.5rem;
}

/* Make the stats container more compact */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--icon-size);
}

.option-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem !important;
  flex: 1;
}

/* Make each stat item more compact */
.stat-item {
  display: flex;
  align-items: center;
  min-width: auto;
  padding: 0.15rem !important;
  border-radius:var(--button-radius);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: none;
  box-shadow: none;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, 
    rgba(4, 61, 124, 0.05) 0%, 
    rgba(48, 104, 204, 0.1) 100%);
  margin-right: 0.6rem;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  background: linear-gradient(135deg, 
    rgba(4, 61, 124, 0.08) 0%, 
    rgba(48, 104, 204, 0.15) 100%);
  transform: scale(1.05);
}

.stat-icon i.fa-map-marker-alt {
  color: var(--accent-color);
}

.stat-icon i.fa-clock {
  color: var(--success-color);
}

.stat-icon i.fa-hotel {
  color: var(--secondary-color);
}

.stat-content {
  display: flex;
  flex-direction: column;
  line-height: 1.1 !important;
}

.stat-label {
  color: var(--primary-color);
  opacity: 0.8;
  font-size: var(--item-spacing);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 0.95rem;
  color: var(--neutral-text);
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-value {
  color: var(--primary-dark);
}

.stat-item:nth-child(1) { animation: fadeIn 0.4s 0.1s both; }
.stat-item:nth-child(2) { animation: fadeIn 0.4s 0.2s both; }
.stat-item:nth-child(3) { animation: fadeIn 0.4s 0.3s both; }
.stat-item:nth-child(4) { animation: fadeIn 0.4s 0.4s both; }

/* Route preview */
.route-preview {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 0.5rem var(--item-spacing);
  border-radius:var(--button-radius);
  background: linear-gradient(to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 3px var(--button-radius) rgba(4, 61, 124, 0.03);
  transition: all 0.3s ease;
}

.route-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(4, 61, 124, 0.08);
}

.route-label {
  color: var(--primary-color);
  opacity: 0.8;
  font-size: var(--icon-size-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.route-cities {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--neutral-text);
  font-size: var(--icon-size);
}

.route-cities i {
  margin: 0 var(--item-spacing);
  color: var(--secondary-color);
}

/* ===== Compact Timeline & Match Items ===== */
.timeline {
  position: relative;
  padding: var(--section-spacing) 0 0.5rem;
  padding-top: 0.75rem !important;
  margin-top: 0.5rem !important;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2.5px;
  background: repeating-linear-gradient(
    to bottom,
    var(--primary-color) 0px,
    var(--secondary-color) 70px,
    var(--primary-color) 140px
  );
  opacity: 0.4;
  border-radius: 3px;
}

/* Ensure the timeline ends nicely without looking cut off */
.timeline-end {
  position: relative;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px; /* Space after last day */
}


.timeline-end-marker {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--success-color), #4ade80);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  transform: translateX(-18px);
  box-shadow: 0 4px 12px rgba(0, 176, 116, 0.3);
  z-index: 2;
  border: 2px solid white;
}

.timeline-end-text {
  background: white;
  border-radius: var(--card-radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(4, 61, 124, 0.05);
  max-width: 90%;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Timeline end marker - make icon white */
.timeline-end-marker i {
  color: white !important;
}

/* Updated day header styling */
.day-header {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 30px;
  margin-bottom: 1.5rem;
  min-height: 32px;
}

.day-header-content {
  display: flex;
  flex-direction: column;
  margin-left: 1.25rem;
}

.day-header h5 {
  font-size: var(--icon-size);
  font-weight: 600;
  margin: 0;
  padding-top: 4px;
  margin-left: 0 !important;
  padding-left: 0 !important;
  color: var(--bs-dark);
  position: relative;
  display: inline-block;
  padding-bottom:var(--button-radius) !important;
}

.day-header h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  border-radius: 3px;
}

.final-day .day-badge {
  background: linear-gradient(135deg, var(--success-color), #4ade80);
  box-shadow: 0 3px 10px rgba(0, 176, 116, 0.3);
}

.day-date {
  font-size: 0.9rem;
  color: var(--neutral-text);
  opacity: 0.8;
  margin-top: 0.15rem;
}

/* Airport information styling */
.airport-distances {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: var(--section-spacing);
  box-shadow: 0 2px var(--button-radius) rgba(0,0,0,0.03);
  border: 1px solid #edf2f7;
}

/* Airport sections */
.airport-section {
  background-color: white;
  border-radius:var(--button-radius);
  padding: 12px 16px;
  margin-bottom: 12px; 
  border: 1px solid #edf2f7;
}

.airport-section h6 {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--bs-dark);
  font-size: 0.95rem;
}
/* More airport styling elements */
.airport-item {
  background: white;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.85rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none !important;
  margin-bottom: 0 !important;
  border-left: 3px solid var(--primary-color) !important;
}

.airport-item:last-child {
  margin-bottom: 0;
}

/* Airport badges */
.airport-badge {
  font-size: var(--icon-size-small);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.airport-badge.starting, 
.airport-badge.ending, 
.airport-badge.major {
  background-color: var(--primary-color);
  color: white;
}

.airport-code {
  font-weight: 500;
  margin-right: 4px;
  font-size: 0.9rem;
}

/* Airport header styling */
.airport-distances h5 {
  font-weight: 600;
  color: var(--neutral-text);
  font-size: var(--icon-size);
  margin-bottom: var(--icon-size);
}

/* Airport info panel */
.airport-info {
  background-color: rgba(4, 61, 124, 0.05);
  border-left: 4px solid var(--secondary-color);
  border-radius: 6px;
  padding: var(--icon-size) 1.25rem;
  margin-bottom: 1.25rem;
}

.airport-info ul li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.airport-name {
  font-weight: 500;
  color: var(--neutral-text);
  font-size: 0.85rem !important;
}

.airport-divider {
font-size: var(--icon-size-small);
color: var(--secondary-color);
padding: 0.4rem 0 0.2rem;
margin-top: 0.2rem;
border-top: 1px dashed var(--divider-color);
font-weight: 500;
}
/* Airports Section */
.airports-section {
  padding: 0.75rem;
  background: var(--neutral-light);
  border-radius: 8px;
  border-top: none;
  margin-top: 0 !important;
}

.airport-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.compact-list .airport-item {
  padding: 4px 8px !important;
  margin-bottom: 4px !important;
}

/* Revised match preview layout */
.match-teams-container {
  width: 100%;
  position: relative;
}

.match-teams-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center;
  width: 100%;
  gap: 8px;
  position: relative;
}


/* Match items */
.match-item {
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(4, 61, 124, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--neutral-light);
}

.match-location-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--neutral-text);
}

.match-location-container i {
  margin-right: 0.25rem;
}

.match-location-container .fa-map-marker-alt {
  color: var(--accent-color);
}

.match-location-container .fa-clock {
  color: var(--secondary-color);
}

.match-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 5px 15px rgba(4, 61, 124, 0.15);
  border-color: rgba(48, 104, 204, 0.3);
}

/* Match details components */
.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--icon-size);
  flex-wrap: wrap;
  gap: var(--item-spacing);
}

/* Properly fixed match teams layout with guaranteed spacing */
.match-teams {
  display: flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  font-size: var(--icon-size);
  color: var(--neutral-text);
  font-weight: 600;
  height: 28px;
  gap: 12px !important; /* Force 8px spacing between ALL elements */
}

/* Remove any existing margins that might cause double spacing */
.match-teams > * {
  margin: 0 !important;
}

/* Set consistent size for team logos */
.match-teams .team-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* VS text styling - no margins needed with flex gap */
.match-teams .vs-text {
  color: #777;
  font-size: 0.85rem;
  flex-shrink: 0;
  display: inline-block;
}

/* Team logos - consistent size */
.match-teams .team-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--icon-size);
  margin-top: none;
  padding-top: none;
  border-top: 1px solid var(--divider-color);
}

.match-location, .match-travel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-text);
  font-size: 0.85rem;
  font-weight: normal;
}

.match-location i {
  color: var(--accent-color);
}

.match-travel i {
  color: var(--secondary-color);
}

/* Add new match time display styles */
.match-info-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.match-time-inline {
  display: flex;
  align-items: center;
  color: var(--neutral-text);
  font-size: 0.9rem;
  font-weight: normal;
  gap: 0.5rem;
  margin-left: var(--icon-size);
  border-left: 1px solid var(--divider-color);
  padding-left: var(--icon-size);
}

.match-time-inline i {
  color: var(--secondary-color);
  margin-right: 0.25rem;
}

.match-location span, .match-location-preview span, 
.match-time-inline {
  color: var(--neutral-text);
}

/* Remove the old time-display style */
.time-display {
  display: none !important;
}

/* Update the day-date-inline style */
.day-date-inline {
  color: var(--neutral-text);
  opacity: 0.8;
  font-size: 0.9rem;
  font-weight: normal;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--divider-color);
}

/* Match compact info style */
.match-info-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--neutral-text);
  width: 100%;
}

.match-info-left {
  display: flex;
  align-items: center;
}

/* Right side container for time and date */
.match-info-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}


.match-location-inline i,
.match-time-data i,
.match-date-inline i {
  margin-right: 0.25rem;
  font-size: var(--icon-size-small);
}

.match-date-inline, 
.match-time-data {
  display: flex;
  align-items: center;
}

.match-content-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.match-date-inline i,
.match-time-data i {
  margin-right: 0.25rem;
  font-size: var(--icon-size-small);
}

.match-location-side {
  justify-self: start;
  font-size: 0.85rem;
  color: var(--neutral-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-location-side i {
  color: var(--accent-color);
  font-size: var(--icon-size-small);
  margin-right: 0.25rem;
}

.match-location-inline i {
  color: var(--accent-color);
  font-size: var(--icon-size-small);
}

.match-time-data i {
  color: var(--secondary-color);
  font-size: var(--icon-size-small);
}

.match-date-inline {
  color: var(--neutral-text);
  opacity: 0.85;
}

/* ===== Travel Segments ===== */
/* Refined Travel Segments */
.travel-segments {
  margin: 1.25rem 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.travel-segment {
  padding: var(--icon-size) 1.25rem;
  border-radius:var(--button-radius);
  background: white;
  margin-bottom: var(--icon-size);
  box-shadow: 0 1px 3px rgba(4, 61, 124, 0.05);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--secondary-color);
  transition: all 0.2s ease;
}

.travel-segment:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px var(--button-radius) rgba(4, 61, 124, 0.08);
}

.segment-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(48, 104, 204, 0.08);
  border-radius: 4px;
  font-size: var(--icon-size-small);
  font-weight: 600;
  color: var(--secondary-color);
  margin-right: var(--item-spacing);
  vertical-align: middle;
}

.segment-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--item-spacing);
  padding-bottom: var(--item-spacing);
  border-bottom: 1px solid rgba(4, 61, 124, 0.06);
  font-weight: 500;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* Refined Travel Items */
.travel-container {
  margin-left: 1.25rem;
  margin-bottom: var(--item-spacing);
  position: relative;
}

.travel-item {
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.85rem;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(4, 61, 124, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
}

.travel-item::before {
  content: '';
  position: absolute;
  left: -var(--item-spacing);
  top: 50%;
  width: 0.6rem;
  height: 1px;
  background-color: rgba(4, 61, 124, 0.08);
}

.travel-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(4, 61, 124, 0.06);
}

.travel-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.travel-item-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.travel-item-route i {
  color: var(--secondary-color);
  font-size: 0.9rem;
  opacity: 0.9;
}

.travel-context {
  color: var(--neutral-text);
  opacity: 0.7;
  margin-left: 0.3rem;
  font-size: var(--icon-size-small);
  font-style: italic;
}

.travel-time {
  font-size: 0.75rem;
  font-weight: 500;
  background: none;
  color: var(--primary-color) !important;
  font-weight: 600;
  border: none;
  padding: 0;
}

/* Option statistics refinements */
.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.4rem !important;
  border-bottom: 1px solid var(--border-color);
}

.option-title {
  font-weight: 600;
  color: var(--primary-color);
  font-size: var(--icon-size);
}

.option-metrics {
  display: flex;
  align-items: center;
  gap: var(--section-spacing);
}

.option-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-text);
  font-size: 0.85rem;
}

.option-metric i {
  color: var(--secondary-color);
  font-size: 0.85rem;
  opacity: 0.9;
}

.option-metric span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Hotel Info ===== */
.hotel-info {
  background-color: white;
  padding: var(--icon-size) 1.25rem;
  border-radius: var(--card-radius);
  margin-bottom: 1.25rem;
  margin-left: 2.5rem;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--secondary-color);
  transition: var(--transition-standard);
  position: relative;
}

.hotel-info::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: linear-gradient(to left, var(--border-color), var(--secondary-color));
}

.hotel-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 61, 124, 0.06);
}

/* Hotel information */
.hotel-change, .hotel-stay {
  display: flex;
  align-items: center;
  gap: var(--item-spacing);
}

.hotel-change i, .hotel-stay i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* ===== Compact Rest Days ===== */
.rest-day {
  background-color: white;
  padding: 0.85rem var(--icon-size);
  border-radius: var(--card-radius);
  margin-bottom: var(--icon-size);
  margin-left: 2rem;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--success-color);
  transition: var(--transition-standard);
  position: relative;
}

.rest-day::before {
  content: '';
  position: absolute;
  left: -var(--icon-size);
  top: 50%;
  width: var(--icon-size);
  height: 2px;
  background: linear-gradient(to left, var(--border-color), var(--success-color));
}

.rest-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 61, 124, 0.06);
}

/* Rest day components */
.rest-day-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--item-spacing);
  gap: var(--item-spacing);
}

.rest-day-header span {
  font-weight: 500;
  color: var(--neutral-text);
}

.rest-day-icon {
  color: var(--success-color);
  font-size: 1.1rem;
}

.final-day-icon {
  color: var(--success-color);
  font-size: 1.1rem;
}

.rest-day-message {
  color: var(--neutral-text);
  opacity: 0.85;
  font-size: 0.85rem;
  padding-left: 1.6rem;
}

.match-item, .travel-item, .hotel-info, .rest-day {
  animation: fadeIn 0.3s ease-out forwards;
}

.match-item,
.travel-segment,
.hotel-info,
.rest-day {
  padding: 0.75rem !important;
  margin-bottom: 0.6rem !important;
}

.variant-summary,
.match-item,
.hotel-info,
.travel-segment,
.rest-day {
  box-shadow: 0 2px 8px rgba(4, 61, 124, 0.06) !important;
}

/* ===== Filter Drawer & Button Styling ===== */
/* Filter drawer and button for both mobile and desktop */

.filter-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  border: none;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.filter-btn:active {
  transform: scale(0.95);
}

/* Filter count badge */
.filter-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  opacity: 0;
  transition: opacity 0.3s;
}

.filter-count.has-filters {
  opacity: 1;
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Filter drawer */
.filter-drawer {
  position: fixed;
  top: 0;
  right: -100%; /* Always fully off-screen when closed */
  width: 90%;
  height: 100%;
  background-color: white;
  z-index: 1002;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.filter-drawer.open {
  right: 0;
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.drawer-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  color: var(--primary-color);
}

.drawer-close {
  background: none;
  border: none;
  font-size: var(--section-spacing);
  line-height: 1;
  color: #666;
  padding: 0;
}

/* Drawer content */
.drawer-content {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
}

/* Filter group */
.drawer-filter-group {
  margin-top: 20px;
  margin-bottom: 20px;
}

.drawer-filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom:var(--button-radius);
  color: #333;
}

/* Active filters */
.drawer-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap:var(--button-radius);
  margin: 10px 0 20px;
}

.drawer-filter-badge {
  background-color: #f0f4f8;
  color: var(--primary-color);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: var(--icon-size-small);
  display: flex;
  align-items: center;
  gap:var(--button-radius);
  border: 1px solid #d0e0f0;
}

.badge-remove {
  background: none;
  border: none;
  color: #999;
  padding: 0;
  font-size: 0.9rem;
}

/* Action buttons */
.drawer-actions {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.drawer-actions button {
  flex: 1;
  padding: 10px;
}

/* Filter group sliders */
.filter-slider-group {
  margin-bottom: var(--section-spacing);
}

.filter-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.filter-slider-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--neutral-text);
}

.filter-slider-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Center trip cards now that the filter card is gone */
#resultsContainer .row {
  justify-content: center;
}

/* Hotel Summary Preview & Airport Preview */

.preview-section-title {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--divider-color);
}

.preview-section-title i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.hotel-summary-preview, .airport-preview {
  background: white;
  border-radius:var(--button-radius);
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-color);
}

.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hotel-name {
  font-weight: 500;
  margin-right: 0.5rem;
}

.hotel-dates {
  color: var(--neutral-text);
  opacity: 0.8;
  font-size: var(--icon-size-small);
  margin-left: auto;
}

/* Dynamic itinerary container */
.dynamic-itinerary-container {
  padding: 0 var(--section-spacing) var(--section-spacing);
  max-height: none !important; /* Remove height restriction */
  overflow-y: visible !important; /* Remove separate scrolling */
  padding: 0 1rem 1rem;
  margin-right: 0;
}

/* Add styles for the hotel stays section in the travel options */

.hotel-stays-section {
  border-top: 1px solid var(--divider-color);
  padding-top: var(--icon-size);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--item-spacing);
}

.section-title i {
  font-size: var(--icon-size);
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.hotel-stays-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hotel-stay-left {
  font-weight: 500;
}

.hotel-stay-dates {
  font-size: 0.80em;
  color: var(--neutral-text);
  opacity: 0.85;
}

.hotel-stay-item {
  background: white;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid var(--secondary-color);
}

.variant-summary .hotel-stay-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(4, 61, 124, 0.08);
}

.variant-summary .hotel-stay-item i {
  color: var(--accent-color);
  font-size: var(--icon-size-small);
  width: 12px;
}

.variant-summary .hotel-name {
  font-weight: 500;
  margin-right: 0.5rem;
}

.variant-summary .hotel-dates {
  color: var(--neutral-text);
  opacity: 0.8;
  font-size: var(--icon-size-small);
  margin-left: auto;
}

/* Move from components.css to trip-cards.css */

/* Journey path styling */
.journey-path {
    background: linear-gradient(to right, rgba(240,240,240,0.5), rgba(240,240,240,0), rgba(240,240,240,0.5));
    padding:var(--button-radius) 12px;
    border-radius:var(--button-radius);
    border: 1px solid rgba(0,0,0,0.05);
}

.journey-cities i {
    opacity: 0.7;
}

/* Leagues container styling */
.leagues-container {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.leagues-container .badge {
    font-weight: normal;
    padding: 5px 10px;
    transition: all 0.2s;
}

.leagues-container .badge:hover {
    transform: translateY(-2px);
}

/* Dynamic itinerary container scrollbar styling - add to trip-cards.css */
.dynamic-itinerary-container {
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}

/* Custom scrollbar styling for itinerary container */
.dynamic-itinerary-container::-webkit-scrollbar {
    width:var(--button-radius);
}

.dynamic-itinerary-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dynamic-itinerary-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dynamic-itinerary-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Calendar date with matches styling */
.flatpickr-day.has-matches {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    position: relative;
}

.flatpickr-day .date-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size:var(--button-radius);
    line-height: 1;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flatpickr-day.selected.has-matches {
    background-color: var(--primary-color);
}

/* Toast styling for trip-related notifications */
#toastContainer .toast {
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

/* Return trip information */
.return-info {
    background-color: rgba(255, 193, 7, 0.05);
    border-left: 4px solid var(--warning-color);
    border-radius: 6px;
    padding: var(--icon-size) 1.25rem;
    margin-bottom: 1.25rem;
}

/* Option time styling */
.option-time {
    opacity: 0.8;
    font-size: 0.85rem;
}

.nav-link.active .option-time {
    color: white;
    opacity: 0.9;
}

/* Make all text in active tabs white, including the travel time */
.travel-options-section .nav-link.active .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Day station badges */
.day-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--icon-size);
  font-weight: bold;
  z-index: 2;
  background: conic-gradient(from 135deg, var(--primary-color), #0055cc, var(--primary-color));
  border: 2px solid white;
  box-shadow: 0 3px 10px rgba(4, 61, 124, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Add subtle highlight to match team names */
.match-teams > *:not(.team-logo):not(.vs-text) {
  position: relative;
  z-index: 1;
}

.match-teams > *:not(.team-logo):not(.vs-text)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  opacity: 0.15;
  z-index: -1;
}

/* Day header hover effect */
.day-header:hover .day-badge {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Customized day line - train track connectors */
.day-line {
  display: none !important; /* Hide the old line */
}


/* Add to trip-cards.css */

.load-more-btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius:var(--button-radius);
    transition: all 0.3s ease;
    min-width: 200px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Load more button - make text and icon primary blue */
.btn-outline-primary.load-more-btn {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary.load-more-btn i {
  color: var(--primary-color) !important;
}

/* Hover states */
.btn-outline-primary.load-more-btn:hover {
  background-color: white !important;
  color: var(--primary-color) !important;
}

/* Clear All button hover effect */
.btn-outline-primary#clearDrawerFilters:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-outline-primary#clearDrawerFilters:hover i {
    color: white !important;
}
.btn-outline-primary.load-more-btn:hover i.fas.fa-chevron-down,
.more-matches-button:hover i.fas.fa-chevron-down {
  color: var(--primary-color) !important;
}


/* Add this to trip-cards.css */
.load-more-btn .badge {
  background-color: var(--primary--color) !important; /* Use main blue background */
  color: white !important; /* White text for contrast */
  font-weight: 500;
  border-radius: 50px;
  padding: 0.35rem var(--item-spacing);
  transition: all 0.3s ease;
}


/* Styling for filter sliders */
.form-range {
    height: 6px;
    border-radius: 5px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(4, 61, 124, 0.3);
    width: 18px;
    height: 18px;
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(4, 61, 124, 0.3);
    width: 18px;
    height: 18px;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(4, 61, 124, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(4, 61, 124, 0.25);
}

/* Badge styling in filter UI */
#gamesSliderValue,
#hotelChangesValue {
    min-width: 45px;
    text-align: center;
}

/* Fix for exchange icon position that's too close to the border */
.fas.fa-exchange-alt.text-primary.me-2 {
  margin-left: 0.5rem !important; /* Add left margin to move it away from the border */
  position: relative;
  left: 2px; /* Nudge it slightly to the right */
}


/* Style for active tab's hotel changes indicator */
.nav-tabs .nav-link.active::before {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}


/* Fix exchange icon position in tabs */
.nav-tabs .nav-link .fas.fa-exchange-alt {
  margin-right: 5px !important;
  font-size: 0.85rem;
}

/* Override active tab styling */
.nav-tabs .nav-link.active {
  background: var(--theme-background);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 12px rgba(4, 61, 124, 0.2);
  border-bottom: none !important;
  margin-bottom: 0;
}
.nav-tabs .nav-link.active i {
  color: white !important;
}

/* Hover effect for tabs */
.nav-tabs .nav-link:hover:not(.active) {
  background: var(--primary-light);
  border-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Enhanced match teams display with logos */
.match-teams-preview {
  grid-column: 2;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px 40px 24px minmax(0, 1fr);
  gap: 8px !important; /* Increased from 4px to match the 8px spacing */
  align-items: center;
  height: 28px;
  width: auto;
  max-width: 100%;
  margin: 0;
}

.match-teams-preview strong {
  margin: 0 !important;
  padding: 0 !important;
}


.match-teams-preview .team-logo-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  margin: 0 auto !important;
}

.match-info-inline {
  grid-column: 1 / span 3;
  grid-row: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
  pointer-events: none; /* Allow clicking through to teams */
  padding: 0 8px;
}

.match-info-inline > * {
  pointer-events: auto;
}

.match-location-inline {
  grid-column: 1;
  justify-self: start;
  font-size: 0.85rem;
}

.match-time-data, 
.match-date-inline {
  justify-self: end;
  font-size: 0.85rem;
}

/* Create space for teams in the middle */
.match-teams-row::before {
  content: '';
  grid-column: 2;
  grid-row: 1;
  background: white;
  width: 100%;
  height: 100%;
  z-index: 2;
  position: relative;
}

.match-teams-preview strong:first-of-type {
  grid-column: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row-container {
  width: 100%;
}

.match-content-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.match-teams-preview strong:last-of-type {
  grid-column: 5;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-teams-preview .vs-text {
  grid-column: 3;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  width: 100%;
  justify-self: center;
  margin: 0 !important;
}

.match-datetime-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.match-teams-preview .team-logo-small:first-of-type {
  grid-column: 2;
  justify-self: center;
}

.match-teams-preview .team-logo-small:last-of-type {
  grid-column: 4;
  justify-self: center;
}

/* Team filter badges with logos */
.team-filter-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
}

/* Update team filter badge styling for better alignment */
#teamFilters .badge, #cityFilters .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem var(--item-spacing);
    font-weight: 400;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 30px;
}

/* Travel time badges - make text white */
.badge.bg-light.text-dark {
  color: white !important;
  background-color: var(--primary-color) !important;
}


/* Make badges look better when active */
#teamFilters .badge.bg-primary, 
#cityFilters .badge.bg-primary {
    box-shadow: 0 3px var(--button-radius) rgba(4, 61, 124, 0.2);
    transform: translateY(-1px);
}

.badge.bg-primary {
  background: linear-gradient(135deg, #043d7c 0%, #3068cc 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 1px 2px rgba(4, 61, 124, 0.10) !important;
  padding: 0.2rem 0.5rem 0.2rem 0.5rem !important;
  margin: 2px 10px 2px 0 !important;
  font-size: 0.85rem !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 24px !important;
  max-width: calc(50% - 20px) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* Force proper z-index for team dropdown */
body.mustteams-dropdown-open .select2-container--open {
    z-index: 10000 !important;
}

body.mustteams-dropdown-open .select2-dropdown {
    z-index: 10000 !important;
    position: absolute;
    top: auto !important;
    left: auto !important;
}

/* Ensure team logo styles are applied to dropdown options */
.select2-results__option .team-logo {
    width: 24px;
    height: 24px;
    margin-right:var(--button-radius);
    vertical-align: middle;
}

/* Ensure dropdown search box is fully hidden */
.select2-search.select2-search--dropdown {
    display: none !important;
}

/* Fix the positioning when dropdown opens */
.select2-container--open .select2-dropdown--above {
    margin-top: 0;
    margin-bottom: 2px;
}

.select2-container--open .select2-dropdown {
  box-shadow: 0 var(--button-radius) 16px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure dropdowns appear above other elements */
.select2-dropdown {
    z-index: 10000 !important;
}

/* No Filter Matches Message Styling */
#noFilterMatchesMessage {
    background: white !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 12px !important;
    padding: 3rem 2rem !important;
    margin: 2rem auto !important;
    max-width: 600px !important;
    text-align: center !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
    position: relative !important;
}

#noFilterMatchesMessage i {
    color: var(--primary-color) !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

#noFilterMatchesMessage strong {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

#noFilterMatchesMessage p {
    color: #6b7280 !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

#noFilterMatchesMessage #resetFiltersBtn {
    background: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

#noFilterMatchesMessage #resetFiltersBtn:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(4, 61, 124, 0.2) !important;
}

#noFilterMatchesMessage #resetFiltersBtn i {
    color: inherit !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    display: inline !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #noFilterMatchesMessage {
        margin: 1rem !important;
        padding: 2rem 1.5rem !important;
    }
    
    #noFilterMatchesMessage strong {
        font-size: 1.25rem !important;
    }
    
    #noFilterMatchesMessage i {
        font-size: 2rem !important;
    }
}

/* Results Header Styling - Improved Design */
.results-header {
    background: var(--theme-background);
    color: white;
    border-radius: var(--card-radius);
    padding: 1.25rem var(--section-spacing);
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 15px rgba(4, 61, 124, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    max-width: var(--container-width-default); /* Add this line */
    margin-left: auto;
    margin-right: auto;
}

.results-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.results-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.results-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.results-icon i {
  color: white !important;
}

.results-header:hover .results-icon {
    transform: scale(1.05) rotate(5deg);
}

.results-info {
    flex-grow: 1;
}

.results-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.results-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.results-count {
    font-size: var(--icon-size);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.count-badge {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    box-shadow: 0 2px var(--button-radius) rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.count-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

/* Enhanced Load More button */

#loadMoreTrips button {
  position: relative;
  overflow: hidden;
  padding: var(--icon-size) 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(4, 61, 124, 0.15);
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

#loadMoreTrips button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  transition: all 0.7s ease;
}

#loadMoreTrips button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(4, 61, 124, 0.25);
}

#loadMoreTrips button:hover::before {
  left: 100%;
}

#loadMoreTrips .badge {
  top: 75% !important;
  font-size: 1em;
  border-radius: 30px;
  margin-left: var(--icon-size);
  transition: all 0.3s ease;
  font-weight: 600;
  background-color: var(--primary-color) !important;
}


/* More matches button styling */
.more-matches-button {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  border-top: 1px dashed var(--divider-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.more-matches-button:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Improved expanded state styling */
.more-matches-button.expanded {
  background: linear-gradient(to right, rgba(48, 104, 204, 0.08), rgba(48, 104, 204, 0.12), rgba(48, 104, 204, 0.08));
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px dashed var(--divider-color);
  box-shadow: inset 0 1px 3px rgba(4, 61, 124, 0.03);
}

.more-matches-button.expanded:hover {
  background: linear-gradient(to right, rgba(48, 104, 204, 0.12), rgba(48, 104, 204, 0.16), rgba(48, 104, 204, 0.12));
}

.more-matches-button i {
  transition: transform 0.2s ease;
  margin-right: 0.25rem;
}

.more-matches-button.expanded i {
  transform: rotate(180deg);
}

.match-preview-item.d-none {
  display: none;
}

@media (max-width: 768px) {
  .trip-card:not(:last-child)::after {
    width: 95%;
  }
  
  .trip-card:not(:last-child)::before {
    font-size: 0.8rem;
    padding: 0 8px;
  }
  
  .match-preview-item {
    padding: var(--item-spacing);
  }
  
  .match-teams-preview {
    font-size: 0.9rem;
  }
  
  .match-location-preview, .match-time-inline {
    font-size: var(--icon-size-small);
  }
  
  .stat-item {
    padding: 0.25rem;
    min-width: 110px;
  }

  .trip-card {
    margin-bottom: 3rem;
  }
  
  .trip-card:not(:last-child)::after {
    width: 85%;
    height: 2px;
    bottom: -1.75rem;
  }
  
  .trip-card:not(:last-child)::before {
    bottom: calc(-1.75rem + 10px);
    font-size: 1.1rem;
    padding: 0 12px;
  }
  .results-header {
    padding: var(--icon-size);
  }

  .results-header-content {
      flex-direction: row; /* Keep horizontal layout */
      align-items: center;
      gap: var(--icon-size);
  }

  .results-icon {
      width: 50px;
      height: 50px;
      min-width: 50px;
      font-size: var(--section-spacing);
  }

  .results-info h2 {
      font-size: 1.3rem;
      margin-bottom: 0.4rem;
  }

  .count-badge {
      font-size: 1.1rem;
      padding: 0.25rem var(--icon-size-small);
  }

  .trip-card, .match-item {
    box-shadow: 0 1px 3px rgba(4, 61, 124, 0.05);
  }
  
  /* Disable animations on mobile for better performance */
  .stat-item {
    animation: none !important;
  }
}

/* Add to trip-cards.css file - Hide mobile elements on desktop */
@media (min-width: 768px) {
  /* Completely hide mobile-specific match details section on desktop */
  .match-details-section {
    display: none !important;
  }
  
  /* Ensure chevron indicator only appears on mobile */
  .match-content-grid::after {
    display: none !important;
  }
  
  /* Prevent match preview items from being clickable on desktop */
  .match-preview-item {
    cursor: default !important;
  }
}

/* This ensures trip results are centered when filter card is hidden */
@media (min-width: 991px) {
  body.has-filter-drawer #resultsContainer .row {
    display: flex;
    justify-content: center;
  }
  
  body.has-filter-drawer #resultsContainer .col-lg-4 {
    display: none !important;
  }
  
  body.has-filter-drawer #resultsContainer .col-lg-8 {
    flex: 0 0 100%;
    max-width: var(--container-width-default);
    margin: 0 auto;
  }
  /* Adjust container padding for better spacing */
  #results .container {
    max-width: var(--container-width-large); /* Add this to create a slightly wider container */
  }
  
}

@media (max-width: 991px) {
  /* Reduce padding on container for more space on medium screens */
  #results .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Allow trip cards to use more width on tablet */
  .trip-card {
    max-width: 100%;
  }
}

/* Update media query for large screens */
@media (min-width: 1400px) {
  #results .container {
    max-width: 1700px;
  }
  
  /* Increase specificity for results header to ensure override */
  .results-header.results-header {
    max-width: var(--container-width-large) !important;
  }
  
  .trip-card,
  body.has-filter-drawer #results .col-lg-8,
  body.has-filter-drawer #resultsContainer .col-lg-8 {
    max-width: var(--container-width-large);
  }
}


/* Trip Actions Styling */
.trip-actions {
    background: rgba(4, 61, 124, 0.02);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.trip-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.trip-actions .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(4, 61, 124, 0.15);
}

.trip-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Save dialog styling */
.trip-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.trip-preview ul li {
    padding: 3px 0;
    font-size: 0.9rem;
}

/* Toast container */
.toast-container {
    z-index: 9999;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trip-actions {
        padding: 10px;
    }
    
    .trip-actions .d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .trip-actions .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* Warning button for favorite toggle */
.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e; /* Dark brown text for better contrast on gold */
    border: 2px solid transparent;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.modern-alert {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* ===== MODERN SAVE MODAL STYLING ===== */
.modern-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(4, 61, 124, 0.15);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modern-header {
    background: var(--theme-background);
    color: white;
    border-bottom: none;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-text h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.btn-close-modern {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.btn-close-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modern-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.save-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-modern {
    position: relative;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-label-modern i {
    color: var(--secondary-color);
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(4, 61, 124, 0.05);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(4, 61, 124, 0.1);
}

.input-helper {
    font-size: 0.85rem;
    color: var(--neutral-text);
    opacity: 0.8;
    margin-top: 0.5rem;
}

.trip-preview-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(4, 61, 124, 0.08);
}

.preview-header {
    background: var(--neutral-light);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.preview-header i {
    color: var(--secondary-color);
}

.preview-content {
    padding: 1.25rem;
}

.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-row:last-child {
    margin-bottom: 0;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color); /* Change from neutral-text to primary-color (blue) */
}

.preview-item strong {
    color: var(--primary-dark); /* Make the labels (Name:, Duration:, etc.) darker blue */
}

/* Keep icons as accent color */
.preview-item i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.modern-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 2px solid rgba(108, 117, 125, 0.2);
}

.btn-cancel:hover {
    background: rgba(108, 117, 125, 0.15);
    border-color: #6c757d;
    transform: translateY(-2px);
}

.btn-save-primary {
    background: var(--theme-background);
    color: white;
    border: 2px solid transparent;
}

.btn-save-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(4, 61, 124, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modern-header {
        padding: 1.5rem;
    }
    
    .modern-body {
        padding: 1.5rem;
    }
    
    .modern-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .preview-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .header-text h4 {
        font-size: 1.25rem;
    }
}

/* ===== MODERN 2025 BUTTON SYSTEM ===== */
.trip-actions-header {
    margin-top: 1rem; /* Reduced from 1.5rem */
    padding-top: 0.75rem; /* Reduced from 1rem */
    border-top: 1px solid var(--divider-color);
    margin-bottom: 3px; /* Add bottom margin to prevent overlap */
}

.action-buttons-container {
    display: flex;
    gap: 0.5rem; /* Reduced from 0.75rem */
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start (left alignment) */
}

/* Modern Button Base */
.btn-modern {
    position: relative;
    border: none;
    border-radius: 8px; /* Reduced from 12px */
    padding: 0.6rem 1rem; /* Reduced from 0.85rem 1.5rem */
    font-weight: 600;
    font-size: 0.8rem; /* Reduced from 0.9rem */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px; /* Reduced from 120px */
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(4, 61, 124, 0.12), /* Reduced shadow */
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-modern .btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.btn-modern:hover .btn-content {
    transform: translateY(-1px);
}

/* Animated Glow Effect */
.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-modern:hover .btn-glow {
    left: 100%;
}

/* Save Button - Primary Action */
.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(4, 61, 124, 0.12); /* Remove inset shadow */
        margin-bottom: 12px !important;

}

.btn-save i {
    color: white !important;
}

.btn-save:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 6px 15px rgba(4, 61, 124, 0.25), /* Reduced shadow */
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-save:active {
    transform: translateY(-1px);
}

/* Share Button - Secondary Action */
.btn-share {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-share:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    background: linear-gradient(135deg, white 0%, rgba(248, 250, 252, 1) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(4, 61, 124, 0.12), /* Reduced shadow */
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-share:active {
    transform: translateY(-1px);
}

/* Disabled State (Already Saved) */
.btn-save.disabled,
.btn-save:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    transform: none;
}

.btn-save.disabled:hover,
.btn-save:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.btn-save.disabled .btn-glow,
.btn-save:disabled .btn-glow {
    display: none;
}

/* Loading State */
.btn-modern.loading {
    pointer-events: none;
}

.btn-modern.loading .btn-content {
    opacity: 0.7;
}

.btn-modern.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-save.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #4ade80 100%);
    animation: successPulse 0.6s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .action-buttons-container {
        flex-direction: row; /* Keep horizontal on mobile too */
        gap: 0.4rem;
        justify-content: flex-start; /* Keep left aligned on mobile */
    }
    
    .btn-modern {
        min-width: 90px; /* Even smaller on mobile */
        padding: 0.55rem 0.85rem;
        font-size: 0.75rem;
    }
}

/* Danger button for unsave */
.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
    transform: translateY(-1px);
}

/* Warning alert styling */
.modern-alert.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Unsave warning section */
.unsave-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(254, 242, 242, 0.8);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
}

.unsave-warning h6 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.unsave-warning ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.badge.bg-light.text-dark.border {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #043d7c !important;
    border: none !important;
    border-radius: 0.25rem !important;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem !important;
    margin: 2px 8px 2px 0 !important;
    font-size: 0.85rem !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    max-width: calc(50% - 6px) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(4, 61, 124, 0.1) !important;
}

/* Active state styling */
.badge.bg-primary.text-white {
    background: linear-gradient(135deg, #043d7c 0%, #032c59 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.25rem !important;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem !important;
    margin: 2px 3px 2px 0 !important;
    font-size: 0.85rem !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    max-width: calc(50% - 6px) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(4, 61, 124, 0.1) !important;
}

@media (max-width: 768px) {
  .load-more-btn,
  .btn-outline-primary.load-more-btn {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 1rem !important;
  }
  .load-more-btn .badge {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
  }
}

h5.mb-3.d-flex.align-items-center {
  padding: 0.7rem 0.5rem 0.7rem 0 !important;
  padding-left: 12.2px !important; /* 15px (timeline left) + 2.5px (timeline width) + 20px (icon size + gap) */
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: -2rem !important;
  letter-spacing: 0.01em !important;
  justify-content: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

h5.mb-3.d-flex.align-items-center i {
  font-size: 1.2em !important;
  left: 15px !important; /* Align with .timeline::before */
  color: var(--primary-color) !important;
  margin-right: 0.7rem !important;
  background: #ffffff;
  border-radius: 50%;
  padding: 0.35em;
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  min-width: 2em;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced TBD Games styling */

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
    background-size: var(--icon-size);
}

/* Enhanced TBD Games styling */

.accordion-button {
  display: flex;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
  border: none;
  border-radius: 16px 16px 0 0;
  padding: 0.95rem 1.5rem 0.95rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(4,61,124,0.09), 0 1.5px 0 rgba(255,255,255,0.7) inset;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  margin-bottom: 0;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.01em;
  overflow: visible;
  z-index: 2;
    z-index: 1;
}

.accordion-button .d-flex {
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.accordion-button .fas.fa-calendar-day {
  color: var(--secondary-color);
  font-size: 1.08em;
  margin-right: 0.7rem;
  background: #fff;
  border-radius: 50%;
  padding: 0.38em;
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  min-width: 2em;
  min-height: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 1px !important; /* Adjust icon position */
  position: relative;
}

.accordion-button .badge.bg-primary {
  background: linear-gradient(135deg, #043d7c 0%, #3068cc 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.97em;
  border-radius: 18px;
  padding: 0.32em 1.1em;
  margin-left: 1.1rem;
  box-shadow: 0 2px 8px rgba(4,61,124,0.10);
  letter-spacing: 0.01em;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  min-width: 70px;
  justify-content: center;
}

.accordion-button span {
  font-weight: 500;
  color: var(--primary-color);
  font-size: 1em;
  letter-spacing: 0.01em;
}

.accordion-button.collapsed {
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: 0 1px 3px rgba(4,61,124,0.04);
  color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #e9ecef 0%, #f8fafc 100%);
  box-shadow: 0 6px 20px rgba(4,61,124,0.13);
  color: var(--primary-dark);
}

.accordion-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--secondary-color, #3068cc);
}

.accordion-button:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f8fafc 100%);
  color: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(4,61,124,0.15);
}

.accordion-button::before {
  content: '';
  position: absolute;
  left: 0.45rem; /* Move line further left */
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 80%;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.13;
  z-index: 0; /* Behind icon */
  pointer-events: none;
}

.accordion-button .badge.bg-primary::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 0.5em;
  box-shadow: 0 0 0 2px #043d7c33;
}

@media (max-width: 768px) {
  .accordion-button {
    font-size: 0.93rem;
    padding: 0.7rem 0.7rem 0.7rem 0.9rem;
    border-radius: 12px;
  }
  .accordion-button .badge.bg-primary {
    font-size: 0.89em;
    padding: 0.22em 0.7em;
    margin-left: 0.7rem;
    min-width: 48px;
  }
  .accordion-button .fas.fa-calendar-day {
    font-size: 1em;
    min-width: 1.7em;
    min-height: 1.7em;
    padding: 0.25em;
  }

    .accordion-button::before {
    display: none; /* Hide the left line on mobile */
  }
  .accordion-button .fas.fa-calendar-day {
    margin-left: 0rem;
  }
}
/* ===== TBD Games Section Styling ===== */

/* Fix TBD Games section to not show separators */
#tbdGamesSection.trip-card::after,
body #results #tbdGamesSection.trip-card::before {
  display: none;
}

#tbdGamesSection .match-info-compact {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: -2px;
  font-size: 0.75rem;
  color: #666;
  width: 100%;
}

body #results #tbdGamesSection.trip-card {
  margin-bottom: 2rem;
}

/* List group enhancements for TBD games */
.list-group-item-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning-color, #ffc107);
}

/* Enhanced TBD Games styling - make styling consistent */
.tbd-game-card {
    padding: 0.85rem var(--icon-size);
    border-radius: var(--card-radius);
    background: white;
    margin-bottom: var(--item-spacing);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tbd-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px var(--button-radius) rgba(4, 61, 124, 0.08);
}

.tbd-game-team {
    font-weight: 500;
    color: var(--neutral-text);
}

/* Ensure consistent animation for TBD games */
.list-group-item.list-group-item-warning {
    animation: fadeIn 0.3s ease-out forwards;
}

/* TBD Games - Match schedules styling exactly */
#tbdGamesSection .game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(4, 61, 124, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem !important;
}

#tbdGamesSection .game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 61, 124, 0.1);
    border-color: var(--secondary-color);
}

/* Desktop layout - NO TIME column for TBD games */
#tbdGamesSection .card-body {
    display: grid;
    grid-template-columns: 1fr 140px; /* Teams take most space, location gets fixed width */
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem 0.75rem 1rem !important;
}

#tbdGamesSection .match-main-content {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 500px; /* Prevent over-stretching */
}

#tbdGamesSection .home-team .team-badge {
    grid-column: 2;
    order: 2; /* Logo comes after name */
}

#tbdGamesSection .away-team .team-badge {
    grid-column: 4;
    order: 1; /* Logo comes before name */
}

#tbdGamesSection .match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

#tbdGamesSection .home-team {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

#tbdGamesSection .vs-container {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

#tbdGamesSection .away-team {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
}

#tbdGamesSection .team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* Prevent long names from breaking layout */
}

#tbdGamesSection .team-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

#tbdGamesSection .vs {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Location display - fixed width prevents shifting */
#tbdGamesSection .desktop-location-display {
    grid-column: 2;
    justify-self: end;
    width: 140px; /* Fixed width prevents layout shift */
    text-align: right;
}

#tbdGamesSection .match-location {
    font-size: 0.85rem;
    color: var(--neutral-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tbdGamesSection .match-location i {
    color: var(--accent-color);
    font-size: 0.8rem;
    flex-shrink: 0; /* Icon doesn't shrink */
}
/* Remove any unwanted lines or pseudo-elements */
#tbdGamesSection .match-teams > *::after,
#tbdGamesSection .team-name::after,
#tbdGamesSection .vs::after {
    display: none !important;
}

/* Miscellaneous TBD helpers */
.tbd-location i {
  color: var(--accent-color);
  font-size: var(--icon-size-small);
}

/* Home team name */
.tbd-home-team {
  grid-column: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  white-space: nowrap;
  height: 20px;
  line-height: 20px;
}

/* Away team name */
.tbd-away-team {
  grid-column: 5;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  white-space: nowrap;
  height: 20px;
  line-height: 20px;
}

/* VS container styles */
.tbd-vs-container {
  grid-column: 3;
  text-align: center;
  font-size: var(--item-spacing);
  color: #777;
  width: 40px;
  min-width: 40px;
  height: 20px;
  line-height: 20px;
}

/* Logo styles - simplified for proper alignment */
.tbd-home-logo {
  grid-column: 2;
  width: 20px;
  height: 20px;
  object-fit: contain;
  justify-self: center;
  display: block;
}

.tbd-away-logo {
  grid-column: 4;
  width: 20px;
  height: 20px;
  object-fit: contain;
  justify-self: center;
  display: block;
}


@media (max-width: 768px) {
  #tbdGamesSection .game-card {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(4, 61, 124, 0.08);
    border: 1px solid var(--border-color);
    background: #fff;
  }

  #tbdGamesSection .card-body {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  /* Teams row */
  #tbdGamesSection .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0 0.2rem 0;
    position: relative;
  }

  #tbdGamesSection .team-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
  }

  #tbdGamesSection .team-badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin: 0 0.2rem;
  }

  #tbdGamesSection .vs-container {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0.2rem;
  }

  /* Chevron (expand/collapse) */
  #tbdGamesSection .chevron-toggle {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
  }
  #tbdGamesSection .chevron-toggle.expanded {
    transform: rotate(180deg);
  }

  /* Time & location row */
  #tbdGamesSection .match-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0 0.2rem 0;
    font-size: 0.95rem;
    color: var(--primary-color);
    border-top: 1px solid var(--divider-color);
    margin-top: 0.2rem;
  }
  #tbdGamesSection .match-meta-row .match-time,
  #tbdGamesSection .match-meta-row .match-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  #tbdGamesSection .match-meta-row .match-time i,
  #tbdGamesSection .match-meta-row .match-location i {
    color: var(--primary-color);
    font-size: 1em;
  }

  /* Hide desktop location */
  #tbdGamesSection .desktop-location-display {
    display: none !important;
  }

  /* Details section (expand/collapse) */
  #tbdGamesSection .match-details-section {
    display: none;
    padding: 0.5rem 0 0.2rem 0;
    font-size: 0.95rem;
    color: #555;
  }
  #tbdGamesSection .game-card.expanded .match-details-section {
    display: block;
  }
}

/* Tablet responsive (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    #tbdGamesSection .card-body {
        grid-template-columns: 1fr 120px;
        gap: 0.75rem;
        padding: 1rem 1.25rem !important;
    }
    
    #tbdGamesSection .team-name {
        font-size: 0.85rem;
        max-width: 100px;
    }
    
    #tbdGamesSection .match-location {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
/* Mobile Filter Drawer */
  .filter-drawer {
    width: 90%;
    right: -100%; /* Always fully off-screen */
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }
  
  .drawer-header {
    padding: var(--space-lg);
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-xl) 0 0 0;
  }
  
  .drawer-title {
    font-size: var(--text-lg);
    font-weight: 600;
  }
  
  .drawer-close {
    color: var(--white);
    font-size: var(--text-xl);
  }
  
  .drawer-content {
    padding: var(--space-lg);
  }
  
  .drawer-filter-group {
    margin-bottom: var(--space-xl);
  }
  
  .drawer-filter-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .drawer-filter-label i {
    color: var(--primary-color);
    width: 16px;
  }
  
  .form-select {
    padding: var(--space-md);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    min-height: 44px;
  }
  
  .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
  }
  
  /* Mobile Active Filters */
  .mobile-active-filters {
    margin: var(--space-md) 0 var(--space-xl);
  }
  
  .mobile-filter-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--primary-color);
  }
  
  .badge-remove {
    color: var(--primary-color);
    margin-left: var(--space-sm);
  }
    
    /* Drawer Actions - Inverted button styling */
    .drawer-actions {
      padding: var(--space-md) var(--space-lg);
      border-top: 1px solid var(--gray-200);
      display: flex;
      gap: var(--space-sm);
    }
    
    .drawer-actions .btn {
      padding: var(--space-sm) var(--space-md);
      font-size: var(--text-sm);
      font-weight: 600;
      border-radius: var(--radius-md);
      min-height: 40px;
      border: 2px solid var(--primary-color); /* Same border for both */
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      transition: all var(--duration-fast) ease;
    }
    
    /* Clear All button - outlined style */
    .btn-outline-secondary {
      background: var(--white) !important;
      border-color: var(--primary-color) !important;
      color: var(--primary-color) !important;
    }
    
    .btn-outline-secondary:hover {
      background: var(--primary-color) !important;
      border-color: var(--primary-color) !important;
      color: var(--white) !important;
      transform: translateY(-1px);
    }
    
    /* Apply Filters button - filled style */
    .btn-primary {
      background: var(--primary-color) !important;
      border-color: var(--primary-color) !important;
      color: var(--white) !important;
    }
    
    .btn-primary:hover {
      background: var(--white) !important;
      border-color: var(--primary-color) !important;
      color: var(--primary-color) !important;
      transform: translateY(-1px);
    }
        /* Hide all "Clear" badges with this style */
    .badge.bg-secondary.text-white.ms-2[style*="cursor: pointer"] {
      display: none !important;
    }

        /* Unify city/team badge sizing to prevent shifting */
    .badge.bg-light.text-dark.border,
    .badge.bg-primary.text-white,
    .badge.bg-primary,
    .badge.bg-light.text-dark {
      min-width: 60px;
      height: 24px !important;
      padding: 0.2rem 0.5rem 0.2rem 0.5rem !important;
      margin: 2px 8px 2px 0 !important;
      font-size: 0.85rem !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      border-radius: 0.25rem !important;
      white-space: nowrap !important;
      transition: none !important;
      border-width: 1.5px !important;
      border-style: solid !important;
    }
    
    /* Ensure border color is always set for both active/inactive */
    .badge.bg-light.text-dark.border {
      border-color: #e0e7ef !important;
    }
    .badge.bg-primary,
    .badge.bg-primary.text-white {
      border-color: #043d7c !important;
    }
    
}

.modal-footer.modern-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.must-see-tag {
  display: none !important;
}

.match-item.must-team {
  border-left: 4px solid #ffc107 !important; /* Yellow accent */
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08), 0 4px 16px rgba(255, 193, 7, 0.10);
  position: relative;
}

.match-item.must-team .match-header,
.match-item.must-team .match-meta {
  position: relative;
  z-index: 2;
}

.match-location-container > .fa-map-marker-alt {
  margin-right: -10px !important; /* Adjusted for better alignment */
}

/* Make badges inside timeline-end-text smaller on mobile only */
@media (max-width: 768px) {
  .timeline-end-text .badge.bg-light.text-dark {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.6rem !important;
    min-width: 40px !important;
    height: 22px !important;
  }
}

/* Make hotel-stay-dates and booking logo smaller on mobile */
@media (max-width: 768px) {
  .booking-logo {
    height: 12px !important;
    min-height: 12px !important;
    max-height: 14px !important;
  }
}

@media (max-width: 768px) {
  .hotel-stay-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .hotel-stay-dates {
    display: block;
    margin-top: 2px;
    word-break: break-word;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .travel-note {
    font-size: 0.6rem !important;
  }
}

.ticket-link-btn {
  text-decoration: none !important;
  color: inherit !important;
}
.ticket-link-btn:visited {
  color: inherit !important;
}
.ticket-link-btn:hover {
  text-decoration: underline;
  color: #0056b3;
}

  .ticket-link-btn i.fa-ticket-alt {
  position: relative;
  top: 1px !important;
}

.ticket-link-btn i.fa-arrow-up-right-from-square {
  margin-left: -1px !important;
  position: relative;
  top: -0.5px !important;
    font-size: 0.8rem !important;
}

.ticket-link-btn i.fa-ticket-alt {
  margin-right: -1.5px !important; /* Remove any extra space */
  position: relative;
  top: 1px !important;
}

/* Move .toggle-details-button about 15px to the right */
.toggle-details-button {
    margin-left: 18px !important;
}

@media (max-width: 768px) {
  .toggle-details-button {
    margin-left: 15.3px !important;
  }
}

@media (min-width: 612px) and (max-width: 768px) {
  .match-preview {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 500px !important; /* or your preferred width */
  }
  .match-list {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 100% !important;
  }
  .match-count-badge {
  margin-left: 10px !important;
}
}