/* ================= PREMIUM TOP FILTER ================= */
.top-filter-premium{
  position:sticky;
  top:88px; /* below navbar */
  z-index:1050;

  background:rgba(255,255,255,.7);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.5);
  box-shadow:0 14px 40px rgba(0,0,0,.08);
}

/* INNER */
.filter-premium-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 0;
}

/* ROUTE SUMMARY */
.route-premium{
  display:flex;
  align-items:center;
  gap:14px;
}

.route-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#30687c,#60a5fa);
  color:#fff;
  font-size:12px;
  font-weight:700;
  box-shadow:0 8px 22px rgba(37,99,235,.35);
}

.route-text strong{
  display:block;
  font-size:15px;
  font-weight:800;
  color:#0f172a;
}

.route-text span{
  font-size:13px;
  color:#475569;
}

.route-text i{
  margin:0 4px;
}

/* FILTER PILLS */
.filter-pills{
  display:flex;
  align-items:center;
  gap:12px;
}

/* SINGLE PILL */
.filter-pill{
  display:flex;
  align-items:center;
  gap:8px;

  padding:8px 12px;
  border-radius:999px;

  background:rgba(255,255,255,.85);
  backdrop-filter: blur(14px);

  box-shadow:0 8px 26px rgba(0,0,0,.08);
  font-size:13px;
  font-weight:600;
  color:#0f172a;
}

.filter-pill i{
  font-size:14px;
  color:#30687c;
}

/* SELECT */
.filter-pill select{
  border:none;
  background:none;
  outline:none;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

/* PRICE PILL */
.price-pill{
  min-width:190px;
}

.price-pill input[type=range]{
  width:90px;
  accent-color:#30687c;
}

.price-pill span{
  font-size:12px;
  font-weight:800;
}

/* MOBILE */
@media(max-width:768px){

  .filter-premium-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .filter-pills{
    width:100%;
    overflow-x:auto;
    padding-bottom:4px;
  }

  .filter-pills::-webkit-scrollbar{
    display:none;
  }

  .filter-pill{
    flex-shrink:0;
  }

}


/* ================= SEARCH LAYOUT ================= */
.search-layout{
  padding:40px 0;
}

/* LEFT SEARCH */
.search-glass{
  background:rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
  border-radius:22px;
  padding:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.12);
}

/* FORM */
.search-glass .form-group{
  margin-bottom:14px;
}

.search-glass label{
  font-size:13px;
  font-weight:600;
  margin-bottom:6px;
}

.search-submit{
  background:linear-gradient(135deg,#30687c,#60a5fa);
  color:#fff;
  border-radius:999px;
  font-weight:700;
  padding:12px;
}

/* MOBILE SEARCH BUTTON */
.mobile-search-btn{
  width:100%;
  margin-bottom:14px;
  background:rgba(255,255,255,.9);
  border-radius:16px;
  font-weight:700;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}

/* MOBILE OVERLAY */
@media(max-width:991px){

  .search-glass{
    position:fixed;
    inset:0;
    z-index:2000;
    border-radius:0;
    padding:20px;
    transform:translateY(100%);
    transition:.35s ease;
  }

  .search-glass.show{
    transform:translateY(0);
  }

  .search-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
  }

  .search-header h5{
    font-weight:800;
  }

  .search-header button{
    font-size:28px;
    background:none;
    border:none;
    line-height:1;
  }

}
/* ================= STICKY LEFT SEARCH ================= */
@media (min-width: 992px) {

  .search-left{
    position: relative;
  }

  .search-glass{
    position: sticky;
    top: 160px; /* navbar + top filter bar */
  }

}
/* ================= CAR LIST SPACING ================= */
.car-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

@media (max-width: 991px){

  .mobile-search-btn{
    position: sticky;
    top: 140px; /* below navbar + filter */
    z-index: 1000;
  }

}
/* ================= SKELETON ================= */
.skeleton{
  pointer-events:none;
}

.skeleton-box,
.skeleton-line,
.skeleton-btn{
  background:linear-gradient(
    90deg,
    #e5e7eb 25%,
    #f1f5f9 37%,
    #e5e7eb 63%
  );
  background-size:400% 100%;
  animation:skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading{
  0%{background-position:100% 0}
  100%{background-position:0 0}
}

.skeleton-box{
  width:140px;
  height:90px;
  border-radius:14px;
}

.skeleton-line{
  height:12px;
  border-radius:6px;
  margin-bottom:10px;
}

.skeleton-btn{
  width:100px;
  height:36px;
  border-radius:999px;
}

.w-70{width:70%}
.w-50{width:50%}
.w-40{width:40%}

/* ================= REAL CAR CARD (PREMIUM) ================= */
.car-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:20px;
  padding:22px;

  border-radius:22px;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 20px 55px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.6);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    opacity .35s ease;
}

/* ENTRY ANIMATION */
.car-card.fade-in{
  opacity:0;
  transform:translateY(20px);
}

.car-card.show{
  opacity:1;
  transform:translateY(0);
}

/* HOVER FEEL */
.car-card:hover{
  transform:translateY(-2px);
  box-shadow:0 28px 70px rgba(0,0,0,.16);
}

/* ================= CAR IMAGE ================= */
.car-image{
  width:150px;
  height:96px;
  border-radius:16px;
  overflow:hidden;
  flex-shrink:0;
  background:#f1f5f9;
}

.car-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ================= LEFT CONTENT ================= */
.car-left{
  flex:1;
  display:flex;
  flex-direction:column;
}

.car-left h5{
  font-size:16px;
  font-weight:700;
  color:#0f172a;
  margin:0 0 4px;
}

.vcode{
  font-size:12px;
  font-weight:500;
  color:#64748b;
}

/* META */
.car-meta{
  display:flex;
  gap:16px;
  margin-top:6px;
  font-size:13px;
  color:#475569;
}

.car-meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* RATING */
.car-rating{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  font-size:13px;
}

.car-rating .badge{
  font-size:12px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
}

.car-rating a{
  color:#30687c;
  font-weight:600;
  text-decoration:none;
}

.car-rating a:hover{
  text-decoration:underline;
}

/* ================= RIGHT PRICE ================= */
.car-right{
  text-align:right;
  min-width:170px;
}

.price{
  font-size:22px;
  font-weight:800;
  color:#0f172a;
}

/* BOOK BUTTON */
.book-btn{
  margin-top:10px;
  background:linear-gradient(135deg,#30687c,#60a5fa);
  color:#fff;
  padding:10px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  border:none;

  box-shadow:0 10px 26px rgba(37,99,235,.35);
  transition:.25s ease;
}

.book-btn:hover{
  opacity:.95;
  transform:translateY(-1px);
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .car-card{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .car-image{
    width:100%;
    height:180px;
  }

  .car-right{
    width:100%;
    text-align:left;
  }

  .book-btn{
    width:100%;
    text-align:center;
  }

}
/* ================= BEST VALUE BADGE ================= */
.best-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff;
  font-size:11px;
  font-weight:800;
  padding:6px 12px;
  border-radius:999px;
  box-shadow:0 6px 20px rgba(34,197,94,.45);
  text-transform:uppercase;
  z-index:2;
}
/* ================= FARE MODAL ================= */
.fare-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}

.fare-modal.show{
  display:block;
}

/* Overlay */
.fare-overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.6);
  backdrop-filter: blur(6px);
}

/* Box */
.fare-box{
  position:relative;
  max-width:420px;
  margin:10vh auto;
  background:#fff;
  border-radius:22px;
  padding:26px;
  box-shadow:0 40px 120px rgba(0,0,0,.35);
  animation:pop .35s ease;
}

@keyframes pop{
  from{ transform:scale(.9); opacity:0 }
  to{ transform:scale(1); opacity:1 }
}

.fare-close{
  position:absolute;
  top:14px;
  right:18px;
  font-size:26px;
  border:none;
  background:none;
  cursor:pointer;
}

/* Rows */
.fare-row{
  display:flex;
  justify-content:space-between;
  font-size:15px;
  margin-bottom:12px;
}

.fare-row.total{
  font-size:18px;
  font-weight:800;
}

/* Confirm */
.confirm-btn{
  margin-top:18px;
  background:linear-gradient(135deg,#2563eb,#60a5fa);
  color:#fff;
  padding:12px;
  border-radius:999px;
  font-weight:700;
}
