/* ==========================================================================
   FLEET LISTING MAIN LAYOUT
   ========================================================================== */

/* Color Variables */
:root {
  --fleet-gold: #C9A34A;
  --fleet-gold-hover: #b28f3c;
  --fleet-bg-dark: #0f0f0f;
  --fleet-card-bg: #141414;
  --fleet-input-bg: #1e1e1e;
  --fleet-text-main: #ffffff;
  --fleet-text-muted: #8e8e93;
  --fleet-border: #262626;
  --fleet-radius: 12px;
}

/* Wrapper Layout */
.fleet-wrapper {
  display: flex;
  gap: 20px;
  
  margin: 0 auto;
  padding: 20px;
      flex-direction: column;
  color: var(--fleet-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   SIDEBAR & FILTERS
   ========================================================================== */
.fleet-filters form{
    background: #0c0c0c;
    border: 1px solid #292929;
    border-radius: 16px;
    padding: 38px 30px 30px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;

    margin-bottom: 30px;
}


/* Filter item */

.fleet-filter-item {
    min-width: 0;
}

.fleet-filter-item label {
    display: block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 600;

    color: #C9A34A;
}


/* Dropdown */

.fleet-filter-item select {
    width: 100%;
    height: 48px;

    padding: 0 16px;

    border: 1px solid #303030;
    border-radius: 6px;

    background-color: #0c0c0c;
    color: #e5e5e5;

    font-size: 14px;

    outline: none;
    cursor: pointer;
}

.fleet-filter-item select:hover,
.fleet-filter-item select:focus {
    border-color: #C9A34A;
}


/* Price values */

.price-values {
    display: flex;
    justify-content: space-between;

    margin-bottom: 10px;

    font-size: 13px;
    color: #777;
}


/* Slider */

.price-slider {
    position: relative;
    height: 0px;

    display: flex;
    align-items: center;
}


/* Both range inputs */

.price-slider input[type="range"] {
    position: absolute;

    width: 100%;
    height: 5px;

    margin: 0;

    background: transparent;

    pointer-events: none;
    appearance: none;

    outline: none;
}


/* Track */

.price-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;

    background: #bdbdbd;

    border-radius: 10px;
}

.price-slider input[type="range"]::-moz-range-track {
    height: 3px;

    background: #bdbdbd;

    border-radius: 10px;
}


/* Thumb */

.price-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;

    width: 20px;
    height: 20px;

    margin-top: -7px;

    border-radius: 50%;

    background: #C9A34A;

    border: 0;

    cursor: pointer;

    pointer-events: auto;
}

.btn-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    gap: 15px;
}
.btn-card a.whatsapp-btn i {
    font-size: 25px;
    background: #25d366;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 5px;
    /* height: var(--s); */
    width: var(--s);
}
.price-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: #C9A34A;

    border: 0;

    cursor: pointer;

    pointer-events: auto;
}


/* Actions */

.fleet-filter-actions {
    grid-column: 1 / -1;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 25px;

    padding-top: 5px;
}


/* Reset */

.reset-filters {
    color: #555;

    font-size: 12px;
    font-weight: 500;

    text-decoration: underline;

    transition: color 0.2s ease;
}

.reset-filters:hover {
    color: #C9A34A;
}


/* Apply button */

.apply-filters {
    min-width: 145px;
    height: 44px;

    padding: 0 24px;

    border: 1px solid #C9A34A;
    border-radius: 5px;

    background: #C9A34A;
    color: #000;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.apply-filters:hover {
    background: transparent;
    color: #C9A34A;
}

.fleet-pagination {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.fleet-pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.fleet-pagination li {
    margin: 0;
    padding: 0;
}

.fleet-pagination a,
.fleet-pagination span {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd;
    border-radius: 5px;

    color: #222;
    background: #fff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.2s ease;
}

.fleet-pagination a:hover {
    background: #C9A34A;
    border-color: #C9A34A;
    color: #000;
}

.fleet-pagination .current {
    background: #C9A34A;
    border-color: #C9A34A;
    color: #000;
}

.fleet-pagination .prev,
.fleet-pagination .next {
    font-size: 18px;
}
/* Tablet */

@media (max-width: 991px) {

    .fleet-filters {
        grid-template-columns: 1fr 1fr;
    }

    .fleet-price-filter {
        grid-column: 1 / -1;
    }

}


/* Mobile */

@media (max-width: 575px) {

    .fleet-filters {
        grid-template-columns: 1fr;

        padding: 25px 20px;

        gap: 20px;
    }

    .fleet-price-filter {
        grid-column: auto;
    }

    .fleet-filter-actions {
        grid-column: auto;

        justify-content: space-between;
    }

}

/* Fleet Meta Layout */
.fleet-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--fleet-text-muted);
  font-size: 13px;
}

.fleet-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bootstrap Icon Gold Color */
.fleet-meta .meta-item i.bi {
  color: var(--fleet-gold, #C9A34A);
  font-size: 14px;
}

/* Updated Price Styling */
.fleet-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.fleet-price .price-amount {
  color: var(--fleet-gold, #C9A34A);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fleet-price .price-amount i.bi {
  font-size: 15px;
  opacity: 0.9;
}

.fleet-price small {
  color: var(--fleet-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
}
/* ==========================================================================
   CONTENT & TOPBAR
   ========================================================================== */

.fleet-content {
  flex: 1;
}

.fleet-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--fleet-border);
}

.fleet-result-count {
  color: var(--fleet-text-muted);
  font-size: 15px;
}

.fleet-result-count strong {
  color: var(--fleet-gold);
}

/* Sort Dropdown */
#fleet-sort {
  background-color: var(--fleet-card-bg);
  color: var(--fleet-text-main);
  border: 1px solid var(--fleet-border);
  padding: 8px 16px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

#fleet-sort:focus {
  border-color: var(--fleet-gold);
}

/* ==========================================================================
   CARD GRID LAYOUT
   ========================================================================== */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Individual Card */
.fleet-card {
  background-color: var(--fleet-card-bg);
  border-radius: var(--fleet-radius);
  border: 1px solid var(--fleet-border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.fleet-card:hover {
  transform: translateY(-4px);
  border-color: var(--fleet-gold);
}

/* Image Aspect Ratio */
.fleet-card a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Card Body */
.fleet-card-content {
  padding: 18px;
}

.fleet-brand {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fleet-text-muted);
  margin-bottom: 0px;
}

.fleet-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.fleet-card h3 a {
  color: var(--fleet-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fleet-card h3 a:hover {
  color: var(--fleet-gold);
}

/* Sub-meta details (2024 · SUV · Black / Transmission • Fuel • Seats) */
.fleet-meta {
  color: var(--fleet-text-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Price Section */
.fleet-price {
  color: var(--fleet-gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.fleet-price small {
  color: var(--fleet-text-muted);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

/* Details Button */
.fleet-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  background-color: var(--fleet-gold);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.fleet-btn:hover {
  background-color: var(--fleet-gold-hover);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile / Tablet)
   ========================================================================== */

@media (max-width: 991px) {
  .fleet-wrapper {
    flex-direction: column;
  }

  .fleet-sidebar {
    flex: 1 1 100%;
  }
}