/* ===== BASE STYLES ===== */
.featured-cars-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.car-card{
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.car-card:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.car-image{
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.car-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.availability{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .8rem;
  color: #fff;
}

.availability.available{
  background: #2bb673;
}

.availability.booked{
  background: #e74c3c;
}

.car-details{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.car-details h3{
  font-size: 1.05rem;
  margin: 0;
  color: #111;
}

.car-specs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #555;
  font-size: 0.9rem;
}

.car-price{
  font-weight: 700;
  margin-top: 2px;
  color: #111;
}

.car-actions{
  margin-top: auto;
  text-align: center; /* Default center for all screens */
}

.car-card .btn{
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #3a86ff;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.car-card .btn:hover{
  background: #2a75f0;
  transform: translateY(-1px);
}

.car-card .btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.quick-details{
  padding: 8px 12px;
  font-size: .9rem;
  color: #666;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

/* ===== CATEGORY PILLS ===== */
.fcat-pills{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.fcat-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.fcat-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(58,134,255,.12);
}

.fcat-pill[aria-selected="true"]{
  background: #3a86ff;
  color: #fff;
  border-color: #3a86ff;
}

.fcat-pill[aria-selected="true"] .fcat-count{
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: transparent;
}

.fcat-ava{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eef1f7;
  background: #f5f7fb;
}

.fcat-name{
  line-height: 1;
}

.fcat-count{
  margin-left: 6px;
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #f6f8ff;
  color: #2b6ef6;
}

/* ===== CATEGORY HEADER ===== */
.cat-header-wrap{
  margin: 8px 0 6px;
  text-align: center;
}

.cat-header{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-weight: 800;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-header img{
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #eee;
}

.cat-sub{
  margin: 0 0 10px;
  color: #667085;
  font-size: .95rem;
}

/* ===== SLIDER STYLES ===== */
.fcars-slider{
  position: relative;
  margin: 16px 0 24px;
  overflow: hidden;
  padding: 0 40px;
  min-height: 350px;
}

.fcars-track{
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.fcars-slide{
  min-width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.fcars-nav{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.fcars-btn{
  pointer-events: auto;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #3a86ff;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.fcars-btn:hover{
  background: #3a86ff;
  color: #fff;
  transform: scale(1.1);
}

.fcars-btn[disabled]{
  opacity: .3;
  cursor: not-allowed;
  transform: none;
}

.fcars-btn[disabled]:hover{
  background: #fff;
  color: #3a86ff;
}

/* ===== RATE CARDS ===== */
.fcars-rates {
  background: linear-gradient(180deg,#fafbff, #f6f9ff);
  border-radius: 20px;
  padding: 20px 0;
  margin-top: 20px;
}

.fcars-rates::before {
  content: "Our Rate Card";
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
}

.fcars-rates::before::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 120px; height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a9cff, #06b6d4, #ec4899);
  filter: saturate(120%);
}

/* ===== MODAL STYLES ===== */
.cd-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 998;
}

.cd-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-46%) scale(.98);
  opacity: 0;
  pointer-events: none;
  width: min(940px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  z-index: 999;
  padding: 16px;
  transition: all .25s;
}

.cd-open .cd-overlay{
  opacity: 1;
  pointer-events: auto;
}

.cd-open .cd-modal{
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  pointer-events: auto;
}

.cd-close{
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.cd-head{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cd-thumb{
  width: 120px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  flex: 0 0 auto;
}

.cd-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-title{
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.cd-meta{
  color: #555;
  font-size: .95rem;
  margin-top: 6px;
}

.cd-fare{
  margin-left: auto;
  font-weight: 700;
  color: #111;
}

.cd-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px){
  .cd-row{
    grid-template-columns: 1fr 1fr;
  }
}

.cd-subtitle{
  margin: .2rem 0 .4rem;
}

.cd-list{
  padding-left: 18px;
  margin: 0;
}

.cd-details{
  font-size: .95rem;
  color: #333;
  line-height: 1.5;
}

.cd-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.cd-gallery img{
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cd-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.cd-btn{
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}

.cd-btn-light{
  background: #f3f4f6;
}

.cd-btn-primary{
  background: #3a86ff;
  color: #fff;
}

/* ===== SKELETON LOADING ===== */
:root {
  --skel-base: #eef1f6;
  --skel-shine: #f6f8fc;
}

.skel {
  position: relative;
  overflow: hidden;
  background: var(--skel-base);
}

.skel::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skel-shine), transparent);
  animation: skel-shine 1.2s infinite;
}

@keyframes skel-shine {
  100% {
    transform: translateX(100%);
  }
}

.car-card.skel-card{
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

.skel-img{
  height: 180px;
  border-bottom: 1px solid #f0f0f0;
}

.skel-body{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skel-pill-line{
  height: 10px;
  border-radius: 8px;
}

.skel-pill-line.w60{
  width: 60%;
}

.skel-pill-line.w40{
  width: 40%;
}

.skel-pill-line.w80{
  width: 80%;
}

.skel-btn{
  height: 38px;
  border-radius: 8px;
}

.fcat-pill.skel-pill{
  min-width: 110px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
}

.fcat-pill.skel-pill .skel{
  height: 100%;
  border-radius: 999px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  .fcars-slide {
    min-width: calc(50% - 8px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .fcars-slider {
    padding: 0 35px;
  }
  
  .fcars-slide {
    min-width: calc(100% - 8px);
  }
  
  .fcars-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  /* Mobile par Book Now button center align */
  .car-actions {
    text-align: center !important;
    display: flex;
    justify-content: center;
  }
  
  .car-card .btn {
    text-align: center;
    margin: 0 auto;
    display: block;
    max-width: 200px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .fcars-slider {
    padding: 0 30px;
  }
  
  .fcat-pills {
    gap: 6px;
  }
  
  .fcat-pill {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .fcat-ava {
    width: 20px;
    height: 20px;
  }
  
  .car-image img {
    height: 160px;
  }
  
  .car-details {
    padding: 10px;
  }
  
  .car-specs {
    gap: 6px;
    font-size: 0.85rem;
  }
  
  /* Small mobile par perfect center */
  .car-actions {
    text-align: center !important;
    padding: 0 5px;
  }
  
  .car-card .btn {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    display: block;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .car-actions {
    text-align: center !important;
  }
  
  .car-card .btn {
    width: 95%;
    margin: 0 auto;
  }
}

/* Laptop hover fixes */
@media (hover: hover) {
  .car-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    transform: translateY(-2px);
  }
  
  .btn:hover {
    background: #2a75f0;
  }
}

/* Remove focus outlines causing red circles */
*:focus {
  outline: none !important;
}

button:focus,
.btn:focus,
.fcars-btn:focus,
.fcat-pill:focus {
  outline: 2px solid #3a86ff !important;
  outline-offset: 2px;
}

/* Disable tap highlights */
* {
  -webkit-tap-highlight-color: transparent;
    /* -tap-highlight-color: transparent; */
}