/*
=============================================================
  SINGH SAAB TAXI SERVICE
  FILE: css/search.css
  FIXED BUGS:
    #3  — Added @keyframes fadeUp (was missing, referenced in JS)
    #6  — Added @keyframes rippleAnim + .ripple-effect (missing, ref in JS)
    #7  — search-refine-wrap top: 0 overlapped sticky header;
           fixed to top: 103px (35px topbar + 68px navbar)
    #8  — .fromCityList/.toCityList conflicted with Bootstrap .list-group;
           added higher-specificity overrides + top:100% explicitly set
    #9  — vehicle-card-strip height:4px was always rendered (invisible gap);
           changed to height:0 → height:4px on hover via transform:scaleY
=============================================================
*/

/* =============================================================
   KEYFRAMES — FIX #3 & #6 (were missing, referenced in JS)
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rippleAnim {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(18); opacity: 0; }
}

/* Ripple element injected by JS */
.ripple-effect {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.55s ease forwards;
  pointer-events: none;
}

/* =============================================================
   SEARCH PAGE BODY
   ============================================================= */
.search-page {
  background: #f0f3fb;
  min-height: 100vh;
}

/* =============================================================
   SEARCH REFINE BAR (sticky)
   FIX #7: top was 0 — overlapped the sticky site header.
            Header = top-bar (~35px) + navbar (~68px) = 103px.
            Use CSS custom property so it's easy to adjust.
   ============================================================= */
:root {
  --header-height: 103px; /* topbar 35px + navbar 68px */
}

.search-refine-wrap {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 20px 0;
  border-bottom: 3px solid var(--yellow);
  
  top: var(--header-height); /* FIX #7 */
  z-index: 100;
  box-shadow: 0 4px 24px rgba(13, 26, 62, 0.35);
}

.search-refine-inner {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 183, 0, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(10px);
}

.search-refine-inner .form-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 5px;
  display: block;
}

.search-refine-inner .form-control,
.search-refine-inner .form-select {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(255, 183, 0, 0.2) !important;
  border-radius: 10px !important;
  height: 44px;
  font-size: 13.5px;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-refine-inner .form-control:focus,
.search-refine-inner .form-select:focus {
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.2) !important;
  outline: none;
}

.btn-refine-search {
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  border-radius: 10px;
  height: 44px;
  padding: 0 24px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-refine-search:hover {
  background: #fff;
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 183, 0, 0.4);
}

.swap-icon {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}

/* =============================================================
   RESULTS HEADER
   ============================================================= */
.results-header { padding: 28px 0 12px; }

.results-route-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  padding: 6px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.results-route-pill i { color: var(--yellow); }

.results-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.3;
}
.results-title span { color: var(--yellow); }

.results-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.results-meta strong { color: var(--blue); }

.results-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50px;
  padding: 5px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

/* =============================================================
   FILTER BAR
   FIX #2 (CSS side): .filter-chip is now a <button>, so remove
   any label-specific rules. Chip uses data-filter attribute only.
   ============================================================= */
.filter-section {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(26, 46, 110, 0.07);
  border: 1px solid rgba(26, 46, 110, 0.07);
  margin-bottom: 24px;
}
.filter-section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-section-title i { color: var(--yellow); }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 7px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  /* FIX #2: chip is now a <button>, reset browser button defaults */
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--blue-light);
}
.filter-chip:hover { border-color: var(--yellow); background: #fff5d9; }
.filter-chip.active {
  background: var(--yellow);
  color: var(--blue-dark);
  border-color: var(--yellow);
  box-shadow: 0 3px 10px rgba(255, 183, 0, 0.3);
}

/* =============================================================
   TOUR DAYS SELECTOR
   ============================================================= */
.tour-days-wrap {
  background: linear-gradient(135deg, var(--blue-light), #f0f8ff);
  border: 1.5px solid rgba(26, 46, 110, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tour-days-label {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.tour-days-label i { color: var(--yellow); margin-right: 5px; }
.tour-day-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-day-btn {
  background: #fff;
  border: 2px solid rgba(26, 46, 110, 0.15);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}
.tour-day-btn:hover { border-color: var(--yellow); }
.tour-day-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 3px 10px rgba(255, 183, 0, 0.3);
}

/* =============================================================
   VEHICLE CARDS
   ============================================================= */
.vehicle-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid rgba(26, 46, 110, 0.07);
  box-shadow: 0 2px 16px rgba(26, 46, 110, 0.07);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative; /* for ripple positioning */
}
.vehicle-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 16px 48px rgba(255, 183, 0, 0.18), 0 2px 8px rgba(26, 46, 110, 0.08);
  transform: translateY(-4px);
}

/*
  FIX #9: strip was height:4px + opacity:0 — invisible but still
           occupying 4px space at top of every card, causing layout gap.
           Now uses transform:scaleY(0) → scaleY(1) so collapsed height = 0.
*/
.vehicle-card-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.vehicle-card:hover .vehicle-card-strip {
  transform: scaleY(1); /* FIX #9 */
}

.vehicle-card-inner {
  display: flex;
  gap: 0;
  padding: 22px 24px;
  flex: 1;
}

/* Car image */
.vehicle-img-wrap {
  width: 160px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9ff, var(--blue-light));
  border-radius: 14px;
  padding: 12px;
  margin-right: 22px;
  flex-shrink: 0;
  transition: background 0.3s;
}
.vehicle-card:hover .vehicle-img-wrap {
  background: linear-gradient(135deg, #fff5d9, #fffbe6);
}
.vehicle-img-wrap img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(26, 46, 110, 0.15));
  transition: transform 0.3s;
}
.vehicle-card:hover .vehicle-img-wrap img {
  transform: scale(1.05) translateY(-3px);
}

/* Car info */
.vehicle-info { flex: 1; min-width: 0; }

.vehicle-name {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.vehicle-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.vehicle-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
}
.vehicle-badge i { color: var(--yellow); font-size: 12px; }

.vehicle-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price + CTA */
.vehicle-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 160px;
  flex-shrink: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(26, 46, 110, 0.07);
}

.vehicle-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.vehicle-original-price {
  text-decoration: line-through;
  color: #bbb;
  font-size: 13px;
  margin-bottom: 2px;
}
.vehicle-final-price {
  font-family: 'Raleway', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1;
  letter-spacing: -1px;
}
.vehicle-price-note {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  text-align: right;
}

.btn-book-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 12px;
  /* needed for ripple positioning */
  position: relative;
  overflow: hidden;
}
.btn-book-now i { font-size: 14px; transition: transform 0.2s; }
.vehicle-card:hover .btn-book-now {
  background: var(--yellow);
  color: var(--blue-dark);
}
.vehicle-card:hover .btn-book-now i { transform: translateX(4px); }

/* Card features row */
.vehicle-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(26, 46, 110, 0.05);
}
.vehicle-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  background: #f8f9ff;
  border-radius: 50px;
  padding: 3px 10px;
}
.vehicle-feature-tag i { color: var(--yellow); font-size: 11px; }

/* =============================================================
   NO FARE FOUND CARD
   ============================================================= */
.no-fare-card {
  background: #fff;
  border-radius: 20px;
  border: 2px dashed rgba(26, 46, 110, 0.15);
  padding: 40px 32px;
  text-align: center;
}
.no-fare-card img { width: 120px; opacity: 0.6; margin-bottom: 20px; }
.no-fare-card h5 {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
}
.no-fare-card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.btn-get-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.22s;
}
.btn-get-rate:hover { background: var(--blue); color: #fff; }

/* =============================================================
   RELATED ROUTES
   ============================================================= */
.related-routes-section { margin-top: 40px; margin-bottom: 20px; }
.related-routes-title {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-routes-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(26, 46, 110, 0.15), transparent);
}

.related-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(26, 46, 110, 0.07);
  box-shadow: 0 2px 12px rgba(26, 46, 110, 0.06);
  padding: 18px 20px;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 28px rgba(255, 183, 0, 0.15);
  transform: translateY(-4px);
}
.related-card-route {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.related-card-route span { color: var(--yellow); margin: 0 4px; }
.related-card-type { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.related-card-price {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 14px;
  flex: 1;
}
.btn-related-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: 10px;
  padding: 9px 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.22s;
}
.btn-related-book:hover { background: var(--yellow); color: var(--blue-dark); }

/* =============================================================
   SEO CONTENT BLOCK
   ============================================================= */
.seo-content-section {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(26, 46, 110, 0.07);
  padding: 32px 36px;
  margin: 32px 0;
  box-shadow: 0 2px 12px rgba(26, 46, 110, 0.05);
}
.seo-content-section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 14px;
}
.seo-content-section h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
  margin-top: 22px;
}
.seo-content-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 12px;
}
.seo-content-section ul {
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}

.trust-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.trust-strip-item i { color: var(--yellow); }

/* =============================================================
   AUTOCOMPLETE DROPDOWN
   FIX #8: Bootstrap .list-group overrides our border/radius.
            Use higher specificity selectors to win the cascade.
            Also set top:100% and left:0 explicitly here.
   ============================================================= */
.fromCityList,
.toCityList {
  position: absolute !important; /* FIX #8: ensure positioning */
  top: 100% !important;          /* FIX #8: just below input */
  left: 0 !important;
  right: 0;
  z-index: 9999;
  border-radius: 10px !important;       /* FIX #8: override Bootstrap */
  box-shadow: 0 8px 24px rgba(26, 46, 110, 0.15) !important;
  border: 1px solid rgba(26, 46, 110, 0.1) !important;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
}

/* FIX #8: override Bootstrap list-group-item styles */
.fromCityList .location-item,
.toCityList .location-item {
  padding: 10px 14px !important;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid rgba(26, 46, 110, 0.05) !important;
  border-radius: 0 !important;
  transition: background 0.15s;
  color: var(--text);
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #fff !important;
}
.fromCityList .location-item:hover,
.toCityList .location-item:hover {
  background: var(--blue-light) !important;
  color: var(--blue);
}

/* =============================================================
   MOBILE / RESPONSIVE
   ============================================================= */
@media (max-width: 991px) {
  .search-refine-wrap {
    position: relative; /* release sticky on mobile — takes too much space */
    top: auto;
  }
  .seo-content-section { padding: 24px 20px; }
}

@media (max-width: 767px) {
  .vehicle-card-inner { flex-direction: column; padding: 18px; }
  .vehicle-img-wrap {
    width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-bottom: 16px;
    padding: 16px;
  }
  .vehicle-img-wrap img { max-height: 120px; }
  .vehicle-price-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: none;
    border-top: 1px solid rgba(26, 46, 110, 0.07);
    padding-left: 0;
    padding-top: 14px;
    margin-top: 14px;
    min-width: 0;
  }
  .btn-book-now { margin-top: 0; }
}

@media (max-width: 576px) {
  .vehicle-features { padding: 10px 16px 14px; }
  .related-routes-title { font-size: 16px; }
  .seo-content-section { padding: 20px 16px; }
  .tour-days-wrap { flex-direction: column; align-items: flex-start; }
}