/* =========================================================
   KRUIZLY FLEET CATALOG (css/fleet.css)
   Ultra-Luxury Dark Theme | High-End Automotive Cards | Fluid & Screen Flexible
   ========================================================= */

@import url('base.css');
@import url('components.css');

.fleet-hero {
  padding: 44px 0 24px;
}

.fleet-hero__content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.fleet-hero__content h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.fleet-hero__content p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--kr-text-secondary);
}

.fleet-listing-section {
  padding-bottom: 90px;
}

/* =========================================================
   UNIFIED LUXURY FILTER BAR (DESKTOP + NATIVE MOBILE SCROLL)
   ========================================================= */
/* =========================================================
   FLEET LAYOUT & LEFT SIDEBAR SYSTEM
   ========================================================= */
.fleet-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.fleet-main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Sticky Left Sidebar */
.fleet-sidebar {
  position: sticky;
  top: 86px;
  background-color: rgba(11, 18, 28, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.fleet-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.fleet-sidebar__title svg {
  color: var(--kr-cyan);
}

.fleet-sidebar__reset {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--kr-cyan);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 160ms ease;
}

.fleet-sidebar__reset:hover {
  color: #ffffff;
  background-color: rgba(0, 212, 255, 0.12);
}

/* Filter Groups */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group__title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
  margin: 0;
}

.filter-group__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  user-select: none;
  transition: color 150ms ease;
}

.filter-check-row:hover {
  color: #ffffff;
}

.filter-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 160ms ease;
}

.filter-check-input:checked {
  background-color: var(--kr-cyan);
  border-color: var(--kr-cyan);
}

.filter-check-input:checked::before {
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  color: #03080f;
}

.filter-check-input:focus-visible {
  outline: 2px solid var(--kr-cyan);
  outline-offset: 2px;
}

.filter-check-text {
  line-height: 1.2;
}

.fleet-sidebar__mobile-close {
  display: none;
}

/* =========================================================
   TOP SEARCH & CONTROLS BAR
   ========================================================= */
.fleet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  background-color: rgba(11, 18, 28, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
}

.fleet-search-box {
  position: relative;
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
}

.fleet-search-icon {
  position: absolute;
  left: 14px;
  color: var(--kr-text-muted);
  pointer-events: none;
}

.fleet-search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 180ms ease;
}

.fleet-search-box input:focus {
  border-color: var(--kr-cyan);
  background-color: rgba(0, 0, 0, 0.6);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.fleet-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Filter Trigger Button */
.fleet-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}

.fleet-mobile-filter-btn:hover {
  border-color: var(--kr-cyan-border);
  background-color: rgba(255, 255, 255, 0.08);
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kr-cyan);
  color: #03080f;
  font-size: 11px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: 2px;
}

/* Custom Sort Dropdown */
.fleet-custom-select {
  position: relative;
}

.fleet-custom-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease;
  white-space: nowrap;
}

.fleet-custom-select__button:hover,
.fleet-custom-select__button[aria-expanded="true"] {
  border-color: var(--kr-cyan-border);
  background-color: rgba(255, 255, 255, 0.07);
}

.fleet-custom-select__arrow {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.fleet-custom-select__button[aria-expanded="true"] .fleet-custom-select__arrow {
  transform: rotate(180deg);
}

.fleet-custom-select__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 185px;
  background-color: #0c121a;
  border: 1px solid var(--kr-cyan-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 6px;
  z-index: 100;
  flex-direction: column;
  gap: 2px;
}

.fleet-custom-select.is-open .fleet-custom-select__menu,
.fleet-custom-select__menu.is-open {
  display: flex;
  animation: ddFadeIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kr-text-secondary);
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 140ms ease;
}

.fleet-custom-select__option:hover,
.fleet-custom-select__option.is-selected {
  background-color: rgba(0, 212, 255, 0.15);
  color: var(--kr-cyan);
  font-weight: 700;
}

.fleet-sidebar-backdrop {
  display: none;
}

/* =========================================================
   FLEET CARDS GRID & ORIGINAL VEHICLE CARD STYLES
   ========================================================= */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  align-items: start;
}

.fleet-grid .fleet-card {
  height: fit-content;
}

.fleet-card.hidden,
.fleet-card.filtered-out,
.fleet-card[hidden] {
  display: none !important;
}

.fleet-grid__placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--kr-surface);
  border: 1px solid var(--kr-border);
  border-radius: var(--kr-radius-lg);
  color: var(--kr-text-muted);
  font-size: 1.1rem;
}

/* Vehicle Card Specific Elements (Original Design) */
.fleet-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.fleet-card__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.fleet-card__availability {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fleet-card__availability.booked {
  color: var(--kr-danger);
}

.fleet-card__heading h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fleet-card__subline {
  font-size: 13px;
  color: var(--kr-text-muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fleet-card__main-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.fleet-card__main-price strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
}

.fleet-card__main-price span {
  font-size: 12px;
  color: var(--kr-text-muted);
  text-transform: uppercase;
}

.fleet-card__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.chip-sm {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--kr-radius-sm);
  background-color: var(--kr-surface-control);
  border: 1px solid var(--kr-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--kr-text-secondary);
}

/* Card Action Buttons (Book Now & Show More) */
.fleet-card__main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--kr-border);
}

.fleet-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  background-color: var(--kr-cyan);
  color: #041017;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--kr-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--kr-shadow-btn);
  transition: all 180ms ease;
  white-space: nowrap;
}

.fleet-book-btn:hover {
  background-color: var(--kr-cyan-hover);
  transform: translateY(-1px);
}

.fleet-book-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--kr-surface-control);
  color: var(--kr-text-muted);
  box-shadow: none;
}

.fleet-card__more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  background-color: var(--kr-surface-control);
  border: 1px solid var(--kr-border-strong);
  border-radius: var(--kr-radius-pill);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}

.fleet-card__more-toggle:hover {
  background-color: var(--kr-surface-control-hover);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.fleet-card__chevron svg {
  transition: transform 180ms ease;
}

.fleet-card__more-toggle[aria-expanded="true"] .fleet-card__chevron svg {
  transform: rotate(180deg);
}

/* Expandable Specifications Area */
.fleet-card__details {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--kr-border);
  flex-direction: column;
}

.fleet-card.is-expanded .fleet-card__details,
.fleet-card__details.is-open,
.fleet-card__details:not([hidden]) {
  display: flex;
}

.fleet-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
}

.fleet-specs > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background-color: rgba(3, 8, 13, 0.65);
  border: 1px solid var(--kr-border);
  border-radius: 8px;
  box-sizing: border-box;
}

.fleet-specs strong {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
}

.fleet-specs span {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.fleet-specs > div:first-child span,
.fleet-specs > div:nth-child(2) span {
  color: var(--kr-cyan);
}

/* Placeholder and Empty State */
.fleet-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--kr-surface);
  border: 1px solid var(--kr-border);
  border-radius: var(--kr-radius-lg);
  color: var(--kr-text-muted);
  font-size: 1.1rem;
}

.fleet-empty-state h2 {
  color: #ffffff;
  margin: 12px 0 6px;
}

.fleet-empty-state p {
  margin-bottom: 18px;
}

/* =========================================================
   RESPONSIVE SCREEN BREAKPOINTS & MOBILE DRAWER
   ========================================================= */
@media (max-width: 1023px) {
  .fleet-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fleet-mobile-filter-btn {
    display: inline-flex;
  }

  .fleet-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    background-color: #0c121a;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.95);
    padding: 24px;
  }

  .fleet-sidebar.is-open {
    transform: translateX(0);
  }

  .fleet-sidebar__mobile-close {
    display: block;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .fleet-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .fleet-sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 680px) {
  .fleet-hero {
    padding: 24px 0 16px;
  }

  .fleet-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .fleet-search-box {
    max-width: 100%;
  }

  .fleet-topbar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .fleet-mobile-filter-btn,
  .fleet-custom-select__button {
    width: 100%;
    justify-content: center;
  }

  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   FLEET PAGINATION BAR (Desktop, Tablet, Mobile)
   ========================================================= */
.data-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 24px;
  border-radius: var(--kr-radius-lg, 12px);
  background-color: rgba(6, 10, 16, 0.65);
  border: 1px solid var(--kr-border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--kr-shadow, 0 4px 20px rgba(0, 0, 0, 0.35));
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.data-pagination__summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--kr-text-secondary, rgba(255, 255, 255, 0.7));
  white-space: nowrap;
}

.data-pagination__summary strong {
  color: #ffffff;
}

.data-pagination__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.data-pagination__actions button,
.data-pagination button,
.btn-pagination {
  min-width: 36px;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.data-pagination__nav-btn {
  padding: 0 12px !important;
}

.data-pagination__actions button:hover:not(:disabled),
.data-pagination button:hover:not(:disabled),
.btn-pagination:hover:not(:disabled) {
  background-color: rgba(79, 215, 255, 0.18);
  border-color: rgba(79, 215, 255, 0.45);
  color: #4fd7ff;
}

.data-pagination__actions button.active,
.data-pagination button.active,
.btn-pagination.active {
  background-color: #4fd7ff !important;
  border-color: #4fd7ff !important;
  color: #03080f !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(79, 215, 255, 0.4);
}

.data-pagination__actions button:disabled,
.data-pagination button:disabled,
.btn-pagination:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
  background-color: transparent;
  color: rgba(255, 255, 255, 0.4);
}

.data-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 38px;
  color: var(--kr-text-muted, rgba(255, 255, 255, 0.5));
  font-weight: 800;
  user-select: none;
}

.data-pagination__btn-text {
  display: inline;
}

@media (max-width: 680px) {
  .data-pagination {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 10px;
    width: 100%;
    max-width: 100%;
  }

  .data-pagination__summary {
    text-align: center;
    font-size: 12.5px;
    white-space: normal;
    word-break: break-word;
  }

  .data-pagination__actions {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    flex-wrap: wrap;
  }

  .data-pagination__actions button,
  .data-pagination button,
  .btn-pagination {
    min-width: 32px;
    height: 34px;
    padding: 0 6px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .data-pagination {
    padding: 12px 6px;
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
  }

  .data-pagination__btn-text {
    display: none;
  }

  .data-pagination__actions {
    gap: 3px;
    width: 100%;
    max-width: 100%;
  }

  .data-pagination__actions button,
  .data-pagination button,
  .btn-pagination {
    min-width: 30px;
    height: 32px;
    padding: 0 4px;
    font-size: 11.5px;
    border-radius: 6px;
  }

  .data-pagination__ellipsis {
    width: 12px;
    height: 32px;
    font-size: 11px;
  }
}

