/*
Theme Name: RentelCar
Theme URI: https://rentelcar.com
Description: Professional car rental theme — minimalist, responsive, WhatsApp booking
Author: RentelCar
Version: 1.0.0
*/

/* =========================================================
   DESIGN TOKENS — Change colors here only
   ========================================================= */
:root {
  /* === PRIMARY & SECONDARY === */
  --primary:        #c92a1e;
  --primary-dark:   #9f1d14;
  --primary-light:  #fff3f1;
  --accent:         #b9874f;
  --secondary:      #171412;
  --secondary-soft: #625b52;
  --secondary-faint:#8b8176;

  /* === SURFACES === */
  --bg:         #fdfcfb;
  --surface:    #ffffff;
  --surface-2:  #f7f5f2;

  /* === BORDERS === */
  --border:       #e3ded8;
  --border-soft:  #ece7e1;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 3px rgba(23,20,18,.06), 0 1px 2px rgba(23,20,18,.03);
  --shadow-md: 0 8px 24px rgba(23,20,18,.08), 0 1px 4px rgba(23,20,18,.04);
  --shadow-lg: 0 18px 48px rgba(23,20,18,.12), 0 2px 8px rgba(23,20,18,.05);

  /* === GRADIENTS === */
  --grad-primary:      linear-gradient(135deg, #d6382a 0%, #a51f16 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(201,42,30,.12) 0%, rgba(185,135,79,.08) 100%);
  --grad-dark:         linear-gradient(150deg, #181513 0%, #080706 100%);
  --grad-surface:      #ffffff;
  --grad-whatsapp:     linear-gradient(135deg, #25D366 0%, #0ea355 100%);

  /* === TYPOGRAPHY === */
  --font-body:    'Cairo', system-ui, sans-serif;
  --font-display: 'Comfortaa', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* === RADIUS === */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-pill: 999px;

  /* === SPACING === */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* === TRANSITIONS === */
  --t-fast:   120ms ease-out;
  --t-normal: 200ms ease-out;
  --t-slow:   320ms cubic-bezier(.2,.7,.3,1);
}

/* =========================================================
   DARK MODE
   ========================================================= */
[data-theme="dark"] {
  --primary:        #ff5547;
  --primary-dark:   #e03c30;
  --primary-light:  rgba(255,85,71,.12);

  --bg:         #000000;
  --surface:    #0f0f0f;
  --surface-2:  #1a1a1a;

  --secondary:      #ffffff;
  --secondary-soft: #f0f0f0;
  --secondary-faint:#d6d6d6;

  --border:      #2a2a2a;
  --border-soft: #1f1f1f;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,.55);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.65);

  --grad-surface: #0f0f0f;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--t-slow), color var(--t-slow);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

.autobel-breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  color: var(--secondary-faint);
  font-size: .82rem;
}

.autobel-breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.autobel-breadcrumbs a {
  color: var(--secondary-soft);
  transition: color var(--t-fast);
}

.autobel-breadcrumbs a:hover { color: var(--primary); }
.autobel-breadcrumb-sep { color: var(--border); }

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.btn,
.nav-menu a,
.mobile-nav a,
.ap-nav-item,
.pill,
.ap-pill,
.ap-icon-btn,
.ap-page-btn,
.theme-toggle,
.mobile-menu-btn,
.filter-toggle-btn,
.detail-toggle-btn,
.trust-icon,
.car-badge,
.ap-car-badge,
.ap-badge,
.ap-badge-num,
.ap-avatar {
  -webkit-user-select: none;
  user-select: none;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 768px) { .container { padding: 0 var(--sp-4); } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   COMPONENTS — BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.875rem; border-radius: var(--r-md);
  padding: 11px 22px; transition: all var(--t-fast);
  white-space: nowrap; letter-spacing: 0;
}
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 2px 10px rgba(217,46,31,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #c41a0d 0%, #9a1009 100%);
  box-shadow: 0 5px 18px rgba(217,46,31,.48);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--secondary-soft);
  background: var(--grad-surface);
}
.btn-ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.btn-outline-red {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-red:hover {
  background: var(--grad-primary-soft);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-icon { padding: 10px; border-radius: var(--r-md); }
.btn-whatsapp {
  background: var(--grad-whatsapp); color: #fff;
  box-shadow: 0 2px 10px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ebe5d 0%, #0a8c47 100%);
  box-shadow: 0 5px 18px rgba(37,211,102,.45);
  transform: translateY(-1px);
}

/* =========================================================
   COMPONENTS — PILL / BADGE
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill); padding: 4px 12px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0;
}
.pill-red      { background: var(--grad-primary-soft); color: var(--primary); border: 1px solid rgba(217,46,31,.18); }
.pill-outline  { border: 1.5px solid var(--border); color: var(--secondary-soft); background: transparent; }
.pill-dark     { background: var(--grad-dark); color: #ffffff; }
.pill-green    { background: linear-gradient(135deg, #e6f9ee 0%, #d0f5e0 100%); color: #1a7a40; border: 1px solid rgba(26,122,64,.15); }
.pill-reserved { background: linear-gradient(135deg, #fff3cd 0%, #fde68a 100%); color: #92400e; border: 1px solid rgba(146,64,14,.2); }

/* =========================================================
   COMPONENTS — CARD
   ========================================================= */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: var(--sp-5); }
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  color: var(--primary);
  background: var(--grad-primary-soft);
  border: 1px solid rgba(201,42,30,.14);
}

/* =========================================================
   COMPONENTS — FORM INPUTS
   ========================================================= */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0; text-transform: uppercase;
  color: var(--secondary-faint);
}
.form-input, .form-select {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 11px 14px;
  font-family: inherit; font-size: 0.9rem; color: var(--secondary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,46,31,.1);
}
.form-select { -webkit-appearance: none; appearance: none; cursor: pointer; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-slow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: var(--sp-6);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; letter-spacing: 0;
  color: var(--secondary); flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 58px; height: 28px; background: transparent;
  border-radius: 0; display: grid; place-items: center;
  color: var(--secondary); font-weight: 800; font-size: 1rem;
  font-family: var(--font-display);
  box-shadow: none;
}
.logo-icon.logo-car svg {
  width: 58px;
  height: 28px;
  display: block;
}
.nav-menu {
  display: flex; align-items: center; gap: var(--sp-1);
  flex: 1; justify-content: center;
}
.nav-menu a {
  padding: 6px 14px; border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 500; color: var(--secondary-soft);
  transition: all var(--t-fast);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--secondary); background: var(--surface-2);
}
.nav-actions {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-shrink: 0;
}
.theme-toggle, .mobile-menu-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--secondary-soft);
  transition: all var(--t-fast);
}
.theme-toggle:hover, .mobile-menu-btn:hover {
  border-color: var(--secondary); color: var(--secondary);
  box-shadow: var(--shadow-sm);
}
.mobile-menu-btn { display: none; }

@media (max-width: 768px) {
  .nav-menu    { display: none; }
  .mobile-menu-btn { display: grid; }
}

/* Mobile menu */
.mobile-nav {
  display: none; flex-direction: column; gap: 2px;
  padding: var(--sp-4); border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px var(--sp-4); border-radius: var(--r-md);
  font-size: 1rem; font-weight: 500; color: var(--secondary);
  transition: background var(--t-fast);
}
.mobile-nav a:hover { background: var(--surface-2); }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-stage {
  background:
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-stage-bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-stage-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(26,23,21,.82) 0%, rgba(26,23,21,.48) 100%);
  z-index: 0;
}
.hero-stage > .hero,
.hero-stage > .hero-search-section {
  position: relative;
  z-index: 1;
}
.hero {
  padding: var(--sp-20) 0 var(--sp-12);
  background: transparent;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  text-align: left;
  max-width: 600px;
  margin: 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .7; }
}
.hero h1 {
  margin-bottom: var(--sp-5);
  color: #101828;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 1.05rem; color: var(--secondary-soft);
  margin-bottom: var(--sp-8); max-width: 520px;
}
.hero-actions {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap; justify-content: flex-start;
}

.hero-stage-bg-image .hero {
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-stage-bg-image .hero .container { position: relative; z-index: 1; }
.hero-stage-bg-image h1 { color: #fff; }
.hero-stage-bg-image h1 span { color: var(--primary); }
.hero-stage-bg-image .hero-sub { color: rgba(255,255,255,.75); }

@media (max-width: 900px) {
  .hero { padding: var(--sp-12) 0; }
  .hero-stage-bg-image .hero { min-height: 400px; }
  .hero-inner {
    text-align: center;
    margin: 0 auto;
  }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

/* =========================================================
   SEARCH / BOOKING BAR
   ========================================================= */
.hero-search-section {
  background: transparent;
  padding-bottom: var(--sp-16);
}
.search-bar {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(201,42,30,.08), 0 6px 18px rgba(23,20,18,.06);
  padding: var(--sp-4);
  margin-top: calc(-1 * var(--sp-7, 28px));
  position: relative; z-index: 10;
  border: 1px solid var(--border-soft);
  transition: box-shadow var(--t-normal), border-color var(--t-normal), transform var(--t-normal);
}
.search-bar:focus-within {
  border-color: rgba(201,42,30,.24);
  box-shadow: 0 20px 54px rgba(23,20,18,.14), 0 0 0 4px rgba(201,42,30,.06);
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: var(--sp-3);
  align-items: end;
}
.search-bar .divider {
  width: 1px; background: var(--border);
  align-self: stretch; margin: 4px 0;
  display: none; /* shown between cells on desktop */
}
.search-bar .form-input,
.search-bar .form-select {
  background: var(--bg);
}
.search-bar .btn-primary {
  padding: 11px var(--sp-6); font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-grid .btn-primary { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .hero-search-section { padding-bottom: var(--sp-10); }
  .search-bar {
    padding: var(--sp-4);
    margin-top: calc(-1 * var(--sp-6));
    border-radius: var(--r-md);
  }
  .search-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .search-bar .btn-primary { width: 100%; }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-10); flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 0.875rem; font-weight: 500; color: var(--secondary-soft);
  flex-shrink: 0;
}

/* Mobile only: continuous marquee */
@media (max-width: 768px) {
  .trust-strip { overflow: hidden; padding: var(--sp-5) 0; }
  @keyframes trust-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .trust-items {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    animation: trust-marquee 22s linear infinite;
  }
  .trust-items:hover { animation-play-state: paused; }
}
.trust-icon {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--grad-primary-soft);
  border: 1px solid rgba(217,46,31,.12);
  display: grid; place-items: center; color: var(--primary); flex-shrink: 0;
}

/* =========================================================
   NUMBERS / SOCIAL PROOF
   ========================================================= */
.numbers-section {
  padding: var(--sp-6) 0 var(--sp-10);
  background: var(--bg);
  color: var(--secondary);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  background: transparent;
  border: 0;
  border-radius: var(--r-lg);
}
.number-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-5);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.number-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,42,30,.18);
}
.number-value {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.number-label {
  margin-top: var(--sp-2);
  color: var(--secondary-soft);
  font-size: .9rem;
  font-weight: 600;
}
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .numbers-section { padding: var(--sp-5) 0 var(--sp-8); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .number-card { min-height: 104px; padding: var(--sp-4); }
  .number-value { font-size: 1.55rem; }
  .number-label { font-size: .78rem; }
}

/* =========================================================
   CATEGORY TILES
   ========================================================= */
.section { padding: var(--sp-16) 0; }
.section-alt {
  background:
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--sp-8);
  gap: var(--sp-5);
}
.section-header h2 { margin: 0; }
.category-section-head {
  align-items: center;
}

.category-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.category-grid::-webkit-scrollbar { height: 6px; }
.category-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-pill);
}

.category-tile {
  min-height: 74px;
  min-width: 160px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: none;
}
.category-tile:hover, .category-tile.active {
  border-color: rgba(26,23,21,.28);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(26,23,21,.06);
  transform: translateY(-1px);
}
.category-tile.active {
  border-color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}
.category-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.category-name {
  font-weight: 700;
  font-size: .86rem;
  display: block;
  text-transform: capitalize;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-count {
  color: var(--secondary-faint);
  font-size: .68rem;
  font-weight: 600;
}
.category-from {
  flex-shrink: 0;
  color: var(--secondary-faint);
  font-size: .68rem;
  font-weight: 600;
  text-align: right;
}
.category-from strong {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .section { padding: var(--sp-10) 0; }
  .section-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: var(--sp-5);
  }
  .category-section-head {
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .category-grid {
    display: flex;
    gap: 10px;
  }
  .category-tile {
    flex: 0 0 170px;
    min-height: 76px;
  }
}


/* =========================================================
   CAR CARDS
   ========================================================= */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 1024px) { .cars-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
  .cars-grid { grid-template-columns: repeat(2,1fr); gap: var(--sp-2); }
}

/* Homepage: cap preview at 4 cards on mobile, show "see all" */
@media (max-width: 768px) {
  .cars-grid-preview .car-card:nth-child(n+5) { display: none; }
  .mobile-see-all { display: block; }
}
.mobile-see-all { display: none; margin-top: var(--sp-4); }

/* Compact car card on small screens */
@media (max-width: 640px) {
  .car-body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
  .car-title { font-size: .82rem; line-height: 1.3; }
  .car-subtitle { font-size: .68rem; margin-bottom: var(--sp-2); }
  .car-specs { display: none; }
  .car-price .amount { font-size: 1rem; }
  .car-price .period, .car-price .original { font-size: .65rem; }
  .car-footer .btn-sm { font-size: .72rem; padding: 6px 10px; }
}

.car-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-soft);
  transition: all var(--t-normal);
  display: flex; flex-direction: column;
  color: var(--secondary); /* reset anchor color */
  text-decoration: none;
}
.car-card:hover {
  box-shadow: 0 8px 24px rgba(26,23,21,.13), 0 2px 6px rgba(26,23,21,.07);
  transform: translateY(-3px);
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--surface) 60%, var(--surface-2) 100%);
}
.car-image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: var(--surface-2);
}
.car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.car-card:hover .car-image img { transform: scale(1.04); }
.car-badge {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2;
}
.car-unavailable-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}
.car-card.car-unavailable {
  opacity: .78;
  pointer-events: auto;
}
.car-card.car-unavailable:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: var(--shadow-sm);
}
.car-card.car-unavailable .car-image img {
  filter: grayscale(.4);
}
.car-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; color: var(--secondary-faint);
}
.car-image-placeholder svg { width: 60px; height: 60px; opacity: .25; }

.car-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; }
.car-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; margin-bottom: var(--sp-1);
}
.car-subtitle { font-size: 0.8rem; color: var(--secondary-faint); margin-bottom: var(--sp-3); }

.car-specs {
  display: flex; align-items: center;
  padding: var(--sp-3) 0; border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap; gap: var(--sp-2);
}
.car-spec {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--secondary-soft);
}
.car-spec svg { width: 14px; height: 14px; flex-shrink: 0; }

.car-footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: auto; padding-top: var(--sp-2);
}
.car-price { display: flex; flex-direction: column; }
.car-price .amount {
  font-family: var(--font-mono); font-size: 1.25rem;
  font-weight: 700; color: var(--primary);
}
.car-price .period { font-size: 0.72rem; color: var(--secondary-faint); }
.car-price .original {
  font-size: 0.78rem; color: var(--secondary-faint);
  text-decoration: line-through; font-family: var(--font-mono);
}

/* =========================================================
   AVAILABILITY / BOOKING FLOW
   ========================================================= */
.availability-section { background: var(--surface); }
.availability-inner {
  display: grid; grid-template-columns: 1fr 400px;
  gap: var(--sp-12); align-items: start;
}
@media (max-width: 900px) {
  .availability-inner { grid-template-columns: 1fr; }
}

.booking-summary {
  background: var(--bg); border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  padding: var(--sp-6); position: sticky; top: 80px;
}
.booking-summary h3 { margin-bottom: var(--sp-5); }
.summary-line {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--border-soft);
  font-size: 0.875rem; gap: var(--sp-3); flex-wrap: wrap;
}
.summary-line > *:last-child { text-align: right; word-break: break-word; }
.summary-line:last-of-type { border-bottom: none; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-4); margin-top: var(--sp-3);
  border-top: 2px solid var(--secondary);
  font-weight: 700; font-size: 1.05rem;
}
.summary-total .total-amount { font-family: var(--font-mono); color: var(--primary); font-size: 1.2rem; }

/* =========================================================
   DATE PICKER CALENDAR (custom lightweight)
   ========================================================= */
.calendar-widget {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1.5px solid var(--border); overflow: hidden;
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-soft);
}
.calendar-header h4 { font-size: 0.95rem; }
.cal-nav {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--secondary-soft); transition: all var(--t-fast);
}
.cal-nav:hover { border-color: var(--secondary); color: var(--secondary); }
.calendar-grid { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.cal-days-header {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; margin-bottom: var(--sp-2);
}
.cal-day-name {
  text-align: center; font-size: 0.7rem; font-weight: 700;
  color: var(--secondary-faint); letter-spacing: 0;
  text-transform: uppercase; padding: 4px;
}
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); font-size: 0.83rem; cursor: pointer;
  transition: all var(--t-fast); color: var(--secondary);
}
.cal-day:hover:not(.disabled):not(.selected) { background: var(--bg); }
.cal-day.today { font-weight: 700; color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; }
.cal-day.in-range { background: var(--primary-light); color: var(--primary); border-radius: 0; }
.cal-day.disabled { opacity: .3; cursor: not-allowed; }
.cal-day.empty { cursor: default; }

/* =========================================================
   CAR DETAIL PAGE
   ========================================================= */
.detail-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: var(--sp-10); align-items: start; padding: var(--sp-10) 0;
}
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.gallery { margin-bottom: var(--sp-6); }
.gallery-main {
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--surface-2);
  margin-bottom: var(--sp-3);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-2); }
.gallery-thumb {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--surface-2);
  transition: border-color var(--t-fast);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.spec-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--sp-3); margin: var(--sp-5) 0;
}
@media (max-width: 560px) { .spec-grid { grid-template-columns: repeat(2,1fr); } }

.spec-tile {
  background: var(--bg); border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  padding: var(--sp-4); text-align: center;
}
.spec-tile .spec-val {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
  color: var(--secondary); display: block; margin: 4px 0;
}
.spec-tile .spec-label { font-size: 0.72rem; color: var(--secondary-faint); }

.includes-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.includes-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.875rem; color: var(--secondary-soft);
}
.includes-item svg { color: var(--primary); flex-shrink: 0; }

/* =========================================================
   MOBILE CAR DETAIL — price summary + collapsible details
   ========================================================= */
.mobile-car-summary { display: none; }
.detail-toggle-btn  { display: none; }

@media (max-width: 960px) {
  .mobile-car-summary {
    display: flex; flex-direction: column; gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface); border-radius: var(--r-md);
    border: 1.5px solid var(--border-soft);
    margin-bottom: var(--sp-4);
  }
  .mobile-car-price {
    display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap;
  }
  .mobile-car-price .amount {
    font-family: var(--font-mono); font-size: 1.7rem;
    font-weight: 700; color: var(--primary);
  }
  .mobile-car-price .period { font-size: .875rem; color: var(--secondary-faint); }
  .mobile-car-price .original {
    font-family: var(--font-mono); font-size: .85rem;
    color: var(--secondary-faint); text-decoration: line-through;
  }
  .mobile-caution {
    font-size: .82rem; color: var(--secondary-soft);
    padding-top: var(--sp-2); border-top: 1px solid var(--border-soft);
  }

  .detail-toggle-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: var(--sp-3) var(--sp-4);
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: var(--r-md); margin-bottom: var(--sp-3);
    font-weight: 600; font-size: .88rem; color: var(--secondary);
    cursor: pointer; gap: var(--sp-2); transition: all var(--t-fast);
  }
  .detail-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
  .detail-toggle-btn[aria-expanded="true"] .detail-toggle-arrow {
    transform: rotate(180deg);
  }
  .detail-toggle-arrow { transition: transform var(--t-fast); flex-shrink: 0; }

  .detail-more { display: none; }
  .detail-more.open { display: block; }
}

/* =========================================================
   BOOKING RAIL (sticky)
   ========================================================= */
.booking-rail {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
  position: sticky; top: 80px;
  overflow: hidden;
}
.booking-rail::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--grad-primary);
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
}
.booking-rail h3 { margin-bottom: var(--sp-5); }
.rail-price {
  display: flex; align-items: baseline; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.rail-price .amount {
  font-family: var(--font-mono); font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rail-price .period { font-size: 0.9rem; color: var(--secondary-faint); }
.rail-price .original {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--secondary-faint); text-decoration: line-through;
}

/* =========================================================
   HOMEPAGE REVIEWS + FAQ
   ========================================================= */
.reviews-section {
  background: var(--surface-2);
}
.reviews-head {
  align-items: center;
}
.reviews-head h2 {
  margin-top: var(--sp-2);
  max-width: 620px;
}
.reviews-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: stretch;
}
.rating-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}
.google-rating-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.google-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-primary);
  font-family: var(--font-display);
  font-weight: 800;
}
.google-rating-head strong,
.google-rating-head small {
  display: block;
}
.google-rating-head strong {
  color: var(--secondary);
  font-weight: 800;
}
.google-rating-head small {
  color: var(--secondary-faint);
  font-size: .78rem;
  font-weight: 700;
}
.rating-main {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-soft);
}
.rating-value {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}
.rating-stars,
.review-stars {
  color: #f5a524;
  font-size: .95rem;
  letter-spacing: 0;
}
.rating-caption {
  color: var(--secondary-faint);
  font-size: .9rem;
  font-weight: 600;
}
.rating-bars {
  display: grid;
  gap: 10px;
  margin: var(--sp-5) 0;
}
.rating-bars div {
  display: grid;
  grid-template-columns: 18px 1fr 42px;
  gap: var(--sp-2);
  align-items: center;
  color: var(--secondary-soft);
  font-size: .84rem;
  font-weight: 700;
}
.rating-bars i {
  height: 7px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(90deg, var(--primary) var(--w), var(--border-soft) var(--w));
}
.review-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.review-info-grid div {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
.review-info-grid strong {
  display: block;
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: .98rem;
}
.review-info-grid span {
  display: block;
  color: var(--secondary-faint);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.35;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  min-height: 242px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 3px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: var(--grad-primary);
  opacity: .85;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,42,30,.22);
}
.review-card p {
  color: var(--secondary-soft);
  line-height: 1.75;
  margin-bottom: 0;
}
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.review-card-top strong,
.review-card-top small {
  display: block;
}
.review-card-top strong {
  color: var(--secondary);
}
.review-card-top small {
  color: var(--secondary-faint);
  font-size: .78rem;
  font-weight: 700;
}
.review-card-top em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(201,42,30,.14);
  border-radius: var(--r-pill);
  padding: 4px 9px;
  flex-shrink: 0;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  border: 1px solid rgba(201,42,30,.14);
}
.faq-preview-section {
  background: var(--bg);
}
.faq-preview-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) 1.15fr;
  gap: var(--sp-12);
  align-items: start;
}
.faq-preview-copy {
  position: sticky;
  top: 96px;
}
.faq-preview-copy h2 {
  margin: var(--sp-2) 0 var(--sp-4);
}
.faq-preview-copy p {
  color: var(--secondary-soft);
  margin-bottom: var(--sp-6);
  max-width: 440px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-card summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.faq-card summary::-webkit-details-marker {
  display: none;
}
.faq-card summary::after {
  content: '+';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: transform var(--t-fast), background var(--t-fast);
}
.faq-card[open] summary::after {
  content: '-';
  background: var(--primary);
  color: #fff;
}
.faq-card p {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--secondary-soft);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .reviews-layout,
  .faq-preview-layout {
    grid-template-columns: 1fr;
  }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-preview-copy { position: static; }
}
@media (max-width: 640px) {
  .reviews-head {
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .rating-panel { padding: var(--sp-5); }
  .rating-value { font-size: 2.45rem; }
  .review-info-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid {
    display: flex;
    gap: var(--sp-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--sp-1) var(--sp-3);
  }
  .review-card {
    min-height: auto;
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }
  .faq-card summary {
    padding: var(--sp-4);
    font-size: .92rem;
  }
  .faq-card p {
    padding: 0 var(--sp-4) var(--sp-4);
  }
}

/* =========================================================
   CONDITIONS PAGE
   ========================================================= */
.conditions-hero {
  background:
    linear-gradient(135deg, rgba(201,42,30,.16), rgba(185,135,79,.08)),
    var(--grad-dark);
  color: #fff;
  padding: var(--sp-12) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}
.conditions-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
}
.conditions-hero .container {
  position: relative;
  z-index: 1;
}
.conditions-hero .mono {
  color: rgba(255,255,255,.62);
}
.conditions-hero h1 {
  color: #fff;
  margin-top: var(--sp-2);
  max-width: 760px;
}
.conditions-hero p {
  color: rgba(255,255,255,.68);
  margin-top: var(--sp-3);
  font-size: .9rem;
}
.conditions-wrap {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-16);
}
.conditions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: var(--sp-10);
  align-items: start;
}
.conditions-content {
  max-width: 820px;
}
.condition-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-4);
}
.condition-block h2 {
  font-size: 1.08rem;
  margin-bottom: var(--sp-4);
  color: var(--secondary);
}
.condition-text {
  color: var(--secondary-soft);
  font-size: .94rem;
  line-height: 1.85;
}
.condition-text strong {
  color: var(--secondary);
  font-weight: 700;
}
.condition-text ul,
.condition-text ol {
  list-style: revert;
  margin: var(--sp-3) 0 var(--sp-3) var(--sp-6);
  padding-left: var(--sp-3);
}
.condition-text li {
  padding-left: var(--sp-1);
  margin-bottom: var(--sp-2);
}
.condition-text li::marker {
  color: var(--primary);
  font-weight: 700;
}
.conditions-note {
  color: var(--secondary-faint);
  font-size: .84rem;
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
}
.conditions-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.conditions-summary,
.conditions-help {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.conditions-summary {
  padding: var(--sp-5);
}
.conditions-summary-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--secondary-faint);
  margin-bottom: var(--sp-3);
}
.conditions-summary-links {
  display: flex;
  flex-direction: column;
}
.conditions-summary-links a {
  color: var(--secondary-soft);
  font-size: .84rem;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--t-fast), transform var(--t-fast);
}
.conditions-summary-links a:last-child {
  border-bottom: 0;
}
.conditions-summary-links a:hover {
  color: var(--primary);
  transform: translateX(2px);
}
.conditions-help {
  padding: var(--sp-5);
  text-align: center;
  background: linear-gradient(180deg, var(--primary-light), var(--surface));
  border-color: rgba(201,42,30,.24);
}
.conditions-help-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-3);
  color: var(--primary);
  background: var(--surface);
  border: 1px solid rgba(201,42,30,.18);
}
.conditions-help h4 {
  font-size: .98rem;
  margin-bottom: var(--sp-2);
}
.conditions-help p {
  color: var(--secondary-soft);
  font-size: .84rem;
  line-height: 1.55;
  margin-bottom: var(--sp-4);
}
@media (max-width: 960px) {
  .conditions-layout {
    grid-template-columns: 1fr;
  }
  .conditions-sidebar {
    position: static;
    order: -1;
  }
  .conditions-summary-links {
    max-height: 260px;
    overflow: auto;
  }
}
@media (max-width: 640px) {
  .conditions-hero {
    padding: var(--sp-10) 0 var(--sp-8);
  }
  .conditions-wrap {
    padding-top: var(--sp-8);
  }
  .condition-block {
    padding: var(--sp-5);
  }
  .condition-text {
    font-size: .9rem;
  }
}

/* =========================================================
   CONTACT / WHATSAPP
   ========================================================= */
.contact-section {
  background:
    linear-gradient(135deg, rgba(201,42,30,.08), rgba(185,135,79,.06)),
    var(--surface-2);
  color: var(--secondary);
  padding: var(--sp-16) 0;
}
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: var(--sp-12); align-items: center;
}
@media (max-width: 768px) {
  .contact-section { padding: var(--sp-10) 0; }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .contact-text h2 { font-size: 1.45rem; }
  .contact-text .btn { width: 100%; }
  .whatsapp-card { padding: var(--sp-5); }
}

.contact-text h2 { color: var(--secondary); margin-bottom: var(--sp-4); }
.contact-text p { color: var(--secondary-soft); margin-bottom: var(--sp-6); }

.whatsapp-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
}
.whatsapp-number {
  font-family: var(--font-mono); font-size: 1.5rem;
  font-weight: 700; margin-bottom: var(--sp-4);
  display: block;
  background: linear-gradient(135deg, #25D366 0%, #0ea355 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-methods { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-method {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 0.875rem; color: var(--secondary-soft);
}
.contact-method svg { color: var(--primary); flex-shrink: 0; }

[data-theme="dark"] .contact-section {
  background: var(--grad-dark);
  color: #fff;
}
[data-theme="dark"] .contact-text h2 { color: #fff; }
[data-theme="dark"] .contact-text p,
[data-theme="dark"] .contact-method { color: rgba(255,255,255,.85); }
[data-theme="dark"] .whatsapp-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--grad-dark);
  color: var(--border);
  padding: var(--sp-12) 0 var(--sp-8);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 3px 0 0 rgba(201,42,30,.45);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8); margin-bottom: var(--sp-10);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: #ffffff; margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
}
.footer-brand .logo .logo-icon {
  width: 54px; height: 26px; background: transparent;
  border-radius: 0; display: grid; place-items: center;
  color: #fff; font-size: 0.9rem;
  box-shadow: none;
}
.footer-brand .logo .logo-car svg {
  width: 54px;
  height: 26px;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-display); font-size: 0.875rem;
  color: #ffffff; margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col ul a {
  font-size: 0.875rem; transition: color var(--t-fast);
}
.footer-col ul a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sp-5);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: var(--sp-3);
}
.footer-bottom a:hover { color: #ffffff; }

/* =========================================================
   FLEET / SEARCH PAGE
   ========================================================= */
.page-fleet { padding: var(--sp-10) 0; }
.fleet-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-8); }
@media (max-width: 900px) { .fleet-layout { grid-template-columns: 1fr; } }

/* Mobile filter toggle button */
.filter-toggle-btn {
  display: none;
}
@media (max-width: 900px) {
  .filter-toggle-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: var(--sp-3) var(--sp-4);
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--r-md); margin-bottom: var(--sp-4);
    font-weight: 600; font-size: .9rem; color: var(--secondary);
    cursor: pointer; transition: all var(--t-fast);
  }
  .filter-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
  .filter-toggle-btn[aria-expanded="true"] .filter-toggle-arrow {
    transform: rotate(180deg);
  }
  .filter-toggle-arrow { transition: transform var(--t-fast); flex-shrink: 0; }
}

.filter-sidebar {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1.5px solid var(--border-soft);
  padding: var(--sp-5); height: fit-content;
  position: sticky; top: 80px;
}
@media (max-width: 900px) {
  .filter-sidebar {
    display: none;
    position: static;
    margin-bottom: var(--sp-4);
    border-radius: var(--r-md);
  }
  .filter-sidebar.filter-open { display: block; }
}
.filter-group { margin-bottom: var(--sp-6); }
.filter-group:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0; color: var(--secondary-faint);
  margin-bottom: var(--sp-3);
}
.filter-options { display: flex; flex-direction: column; gap: var(--sp-2); }
.filter-option {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 0.875rem; cursor: pointer; padding: 4px 0;
  color: var(--secondary-soft); transition: color var(--t-fast);
}
.filter-option:hover { color: var(--secondary); }
.filter-option input[type="checkbox"] { accent-color: var(--primary); }

.range-slider { width: 100%; accent-color: var(--primary); margin: var(--sp-2) 0; }
.range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--secondary-faint); font-family: var(--font-mono); }

.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-5); flex-wrap: wrap; gap: var(--sp-3);
}
.results-count { font-weight: 600; font-size: 0.9rem; }
.results-count span { color: var(--primary); }
.sort-select { border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 8px 12px; font-size: 0.875rem; background: var(--surface); color: var(--secondary); }

/* =========================================================
   ACCOUNT / TRIPS PAGE
   ========================================================= */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-8); padding: var(--sp-10) 0; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-sidebar {
  height: fit-content; position: sticky; top: 80px;
}
.account-avatar {
  text-align: center; padding: var(--sp-6);
  background: var(--surface); border-radius: var(--r-lg);
  border: 1.5px solid var(--border-soft); margin-bottom: var(--sp-4);
}
.avatar-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-3);
}
.account-name { font-weight: 700; font-size: 1.05rem; }
.account-email { font-size: 0.8rem; color: var(--secondary-faint); margin-top: 2px; }

.account-nav { background: var(--surface); border-radius: var(--r-lg); border: 1.5px solid var(--border-soft); overflow: hidden; }
.account-nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 13px var(--sp-5); font-size: 0.875rem; font-weight: 500;
  color: var(--secondary-soft); border-bottom: 1px solid var(--border-soft);
  transition: all var(--t-fast);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover, .account-nav a.active {
  color: var(--secondary); background: var(--bg);
}
.account-nav a.active { color: var(--primary); }
.account-nav svg { width: 16px; height: 16px; flex-shrink: 0; }

.trip-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1.5px solid var(--border-soft);
  padding: var(--sp-5); margin-bottom: var(--sp-4);
  transition: all var(--t-normal);
}
.trip-card:hover { box-shadow: var(--shadow-md); }
.trip-card.active { border-color: var(--primary); }
.trip-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-4); }
.trip-status { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-active  .status-dot { background: var(--primary); }
.status-upcoming .status-dot { background: #2563eb; }
.status-done     .status-dot { background: var(--secondary-faint); }
.status-active  { color: var(--primary); }
.status-upcoming { color: #2563eb; }
.status-done     { color: var(--secondary-faint); }

/* =========================================================
   ALERTS / TOASTS
   ========================================================= */
.alert {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  font-size: 0.875rem; margin-bottom: var(--sp-4);
  display: flex; gap: var(--sp-3);
}
.alert-success { background: #e6f9ee; color: #1a7a40; border-left: 3px solid #25D366; }
.alert-error   { background: var(--primary-light); color: var(--primary); border-left: 3px solid var(--primary); }
.alert-info    { background: #eff6ff; color: #2563eb; border-left: 3px solid #3b82f6; }

/* =========================================================
   SECTION PATTERNS
   ========================================================= */
.section-dark { background: var(--grad-dark); color: #ffffff; }
.section-dark h2,
.section-dark h3 { color: #ffffff; }
.section-dark p { color: rgba(255,255,255,.85); }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-primary { color: var(--primary); }
.text-muted   { color: var(--secondary-soft); }
.text-faint   { color: var(--secondary-faint); }
.text-center  { text-align: center; }
.fw-700 { font-weight: 700; }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.w-100 { width: 100%; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }

/* =========================================================
   SKELETON LOADER
   ========================================================= */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border-soft) 50%, var(--surface-2) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}

/* =========================================================
   WP ADMIN BAR FIX
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #0ea355 100%);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.55), 0 2px 8px rgba(37,211,102,.3);
  z-index: 500;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,.65), 0 4px 12px rgba(37,211,102,.4);
  color: #fff;
}
/* Hide inline WhatsApp buttons on mobile — floating button replaces them */
@media (max-width: 768px) {
  .whatsapp-fab { display: flex; }
  .btn-whatsapp { display: none !important; }
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37,211,102,.25);
  animation: wa-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1);    opacity: .8; }
  50%       { transform: scale(1.2); opacity: 0;  }
}

/* =========================================================
   DARK MODE COMPONENT OVERRIDES
   ========================================================= */
[data-theme="dark"] .alert-success {
  background: rgba(37,211,102,.1);
  color: #4ade80;
  border-left-color: #25D366;
}
[data-theme="dark"] .alert-info {
  background: rgba(59,130,246,.1);
  color: #93c5fd;
  border-left-color: #3b82f6;
}
[data-theme="dark"] .alert-error {
  background: rgba(255,85,71,.1);
}
[data-theme="dark"] .pill-green {
  background: rgba(26,122,64,.2);
  color: #4ade80;
  border-color: rgba(74,222,128,.2);
}
[data-theme="dark"] .car-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .car-title,
[data-theme="dark"] .review-card-top strong,
[data-theme="dark"] .google-rating-head strong,
[data-theme="dark"] .review-info-grid strong,
[data-theme="dark"] .faq-card summary,
[data-theme="dark"] .condition-block h2 {
  color: #fff;
}
[data-theme="dark"] p,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .trust-item,
[data-theme="dark"] .category-count,
[data-theme="dark"] .category-from,
[data-theme="dark"] .car-subtitle,
[data-theme="dark"] .review-card p,
[data-theme="dark"] .rating-caption,
[data-theme="dark"] .rating-bars div,
[data-theme="dark"] .review-card-top small,
[data-theme="dark"] .google-rating-head small,
[data-theme="dark"] .review-info-grid span,
[data-theme="dark"] .faq-preview-copy p,
[data-theme="dark"] .faq-card p,
[data-theme="dark"] .number-label {
  color: rgba(255,255,255,.74);
}
[data-theme="dark"] .section-alt,
[data-theme="dark"] .reviews-section,
[data-theme="dark"] .numbers-section,
[data-theme="dark"] .faq-preview-section,
[data-theme="dark"] .hero-stage {
  background: #000;
}
[data-theme="dark"] .search-bar,
[data-theme="dark"] .number-card,
[data-theme="dark"] .rating-panel,
[data-theme="dark"] .review-card,
[data-theme="dark"] .review-info-grid div,
[data-theme="dark"] .faq-card,
[data-theme="dark"] .condition-block {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  background: #121212;
  color: #fff;
}
[data-theme="dark"] .form-input::placeholder {
  color: rgba(255,255,255,.55);
}
[data-theme="dark"] .rating-bars i {
  background:
    linear-gradient(90deg, var(--primary) var(--w), #2a2a2a var(--w));
}
[data-theme="dark"] .btn-ghost {
  color: #fff;
  border-color: #333;
  background: #111;
}
[data-theme="dark"] .btn-ghost:hover {
  border-color: var(--primary);
  color: #fff;
  background: #171717;
}
[data-theme="dark"] .site-footer {
  color: rgba(255,255,255,.78);
}
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-col ul a,
[data-theme="dark"] .footer-col ul span,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-bottom a {
  color: rgba(255,255,255,.78) !important;
}
[data-theme="dark"] .footer-col h5,
[data-theme="dark"] .footer-brand .logo {
  color: #fff;
}
[data-theme="dark"] .footer-col ul a:hover,
[data-theme="dark"] .footer-bottom a:hover {
  color: #fff !important;
}

/* =========================================================
   FRONTEND ADMIN PANEL
   ========================================================= */

/* --- Layout -------------------------------------------- */
.ap-body {
  margin: 0;
  background: #f0f2f5;
  font-family: var(--font-body);
  color: var(--secondary);
}
.ap-wrap {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar ------------------------------------------- */
.ap-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--secondary);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 200;
  transition: transform var(--t-slow);
}

.ap-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ap-logo-icon {
  width: 56px;
  height: 26px;
  color: #fff;
  flex-shrink: 0;
}
.ap-logo-name {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-nav {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ap-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 500;
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}
.ap-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.ap-nav-item.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.ap-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}
.ap-nav-item.ap-nav-danger { color: rgba(239,68,68,.7); }
.ap-nav-item.ap-nav-danger:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.ap-nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.ap-nav-item.active .ap-nav-icon { opacity: 1; }

.ap-sidebar-bottom {
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ap-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-badge-warn { background: var(--primary); color: #fff; }

/* --- Main ------------------------------------------------ */
.ap-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* --- Topbar ---------------------------------------------- */
.ap-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 60px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ap-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.ap-menu-btn:hover { background: var(--surface-2); }
.ap-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  white-space: nowrap;
}
.ap-topbar-actions { display: flex; gap: 8px; }
.ap-topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ap-topbar-username { font-size: .82rem; font-weight: 600; color: var(--secondary-soft); }
.ap-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Content area --------------------------------------- */
.ap-content {
  flex: 1;
  padding: 28px 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.ap-section { animation: apFadeIn .22s ease; }
.ap-section.hidden { display: none; }
@keyframes apFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* --- KPIs ----------------------------------------------- */
.ap-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ap-kpi {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.ap-kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ap-kpi-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ap-kpi-icon svg { width: 22px; height: 22px; }
.ap-kpi-blue   .ap-kpi-icon { background: #eff6ff; color: #3b82f6; }
.ap-kpi-amber  .ap-kpi-icon { background: #fffbeb; color: #f59e0b; }
.ap-kpi-green  .ap-kpi-icon { background: #f0fdf4; color: #22c55e; }
.ap-kpi-purple .ap-kpi-icon { background: #faf5ff; color: #a855f7; }
.ap-kpi-urgent { border-color: #fbbf24; }
.ap-kpi-value  { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--secondary); }
.ap-kpi-label  { font-size: .78rem; font-weight: 500; color: var(--secondary-faint); margin-top: 2px; }
.ap-kpi-skeleton {
  background: #f0f0f0;
  border-radius: var(--r-lg);
  height: 80px;
  animation: apSkel 1.2s ease-in-out infinite alternate;
}
@keyframes apSkel { from { opacity:.6; } to { opacity:1; } }

.ap-analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.ap-chart-card { min-width: 0; }
.ap-chart-wrap {
  height: 280px;
  padding: 18px 20px 20px;
  box-sizing: border-box;
}
.ap-chart-wrap-sm { height: 240px; }
.ap-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* --- Dashboard grid ------------------------------------- */
.ap-dash-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}
.ap-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ap-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.ap-card-head h2 {
  font-size: .9rem;
  font-weight: 700;
  margin: 0;
  color: var(--secondary);
}
.ap-card-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.ap-card-link:hover { text-decoration: underline; }

.ap-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background var(--t-fast);
}
.ap-recent-row:last-child { border-bottom: none; }
.ap-recent-row:hover { background: var(--surface-2); }
.ap-recent-info { display: flex; flex-direction: column; gap: 2px; }
.ap-recent-info strong { font-size: .85rem; }
.ap-recent-car { font-size: .75rem; color: var(--secondary-faint); }
.ap-recent-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ap-recent-date { font-size: .75rem; color: var(--secondary-faint); }

.ap-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
}

/* --- Toolbar -------------------------------------------- */
.ap-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ap-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 12px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ap-search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217,46,31,.1); }
.ap-search-box svg { width: 16px; height: 16px; color: var(--secondary-faint); flex-shrink: 0; }
.ap-search-box input {
  border: none;
  outline: none;
  background: none;
  padding: 9px 0;
  font-size: .85rem;
  color: var(--secondary);
  font-family: var(--font-body);
  width: 100%;
}
.ap-select-sm {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font-size: .84rem;
  color: var(--secondary);
  font-family: var(--font-body);
  cursor: pointer;
}

.ap-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ap-pill {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: .8rem;
  font-weight: 600;
  color: var(--secondary-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.ap-pill:hover { border-color: var(--secondary-soft); color: var(--secondary); }
.ap-pill.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* --- Cars Grid ------------------------------------------ */
.ap-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.ap-car-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.ap-car-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ap-car-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.ap-car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-car-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--secondary-faint);
}
.ap-car-no-img svg { width: 60px; height: 44px; }
.ap-car-status-dot {
  position: absolute;
  top: 8px; left: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.ap-dot-available  { background: #22c55e; }
.ap-dot-booked     { background: #ef4444; }
.ap-dot-maintenance{ background: #f59e0b; }
.ap-car-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: .68rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.ap-car-badge-feat { background: #f59e0b; }
.ap-car-info { padding: 12px 14px 4px; }
.ap-car-title { font-weight: 700; font-size: .88rem; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-car-meta  { font-size: .73rem; color: var(--secondary-faint); margin-top: 2px; }
.ap-car-price { font-size: .84rem; font-weight: 700; color: var(--primary); margin-top: 4px; }
.ap-car-location { font-size: .72rem; color: var(--secondary-faint); margin-top: 2px; }
.ap-car-actions {
  display: flex;
  gap: 4px;
  padding: 8px 10px 10px;
  justify-content: flex-end;
}

.ap-location-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.ap-location-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
}
.ap-location-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ap-locations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 20px;
}
.ap-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.ap-location-row > div:first-child { min-width: 0; }
.ap-location-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ap-location-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ap-location-board-card { margin-top: 16px; }
.ap-location-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}
.ap-location-drop {
  min-height: 180px;
  min-width: 0;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.ap-location-drop.drag-over {
  border-color: var(--primary);
  background: rgba(217, 46, 31, .06);
}
.ap-location-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ap-location-drop-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ap-location-drop-head span {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg);
  color: var(--secondary-faint);
  font-size: .75rem;
  font-weight: 700;
}
.ap-location-cars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.ap-location-car {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: grab;
  font-size: .82rem;
  font-weight: 700;
}
.ap-location-car span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ap-location-car.dragging { opacity: .55; }
.ap-location-car img,
.ap-location-car-thumb {
  width: 36px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--border);
}
.ap-location-empty {
  padding: 18px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--secondary-faint);
  text-align: center;
  font-size: .82rem;
}
.ap-settings-card { max-width: 760px; }
.ap-settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
}
.ap-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.ap-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ap-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 20px;
}
.ap-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  align-items: center;
}
.ap-pricing-row label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 600;
  color: var(--secondary-soft);
}
.ap-pricing-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ap-hero-bg-picker {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: end;
}
.ap-hero-bg-preview {
  aspect-ratio: 16/9;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--secondary-faint);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: .8rem;
}
.ap-hero-bg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-hero-bg-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ap-location-layout { grid-template-columns: 1fr; }
  .ap-hero-bg-picker { grid-template-columns: 1fr; }
}

/* --- Icon buttons --------------------------------------- */
.ap-icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--secondary-soft);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.ap-icon-btn svg { width: 14px; height: 14px; }
.ap-icon-btn:hover { border-color: var(--secondary-soft); color: var(--secondary); background: var(--surface-2); }
.ap-icon-btn-danger { color: #ef4444; }
.ap-icon-btn-danger:hover { border-color: #ef4444; background: #fef2f2; }
.ap-danger { color: #ef4444; }

/* --- Table ---------------------------------------------- */
.ap-table-wrap {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: auto;
  margin-bottom: 20px;
}
.ap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.ap-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--secondary-faint);
  border-bottom: 2px solid var(--border-soft);
  white-space: nowrap;
  background: var(--surface-2);
}
.ap-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--secondary);
}
.ap-table tr:last-child td { border-bottom: none; }
.ap-table tr:hover td { background: #fafafa; }
.ap-td-sub { font-size: .75rem; color: var(--secondary-faint); margin-top: 2px; }
.ap-td-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.ap-dates { white-space: nowrap; }
.ap-wa-link { color: #25D366; font-weight: 600; text-decoration: none; }
.ap-wa-link:hover { text-decoration: underline; }

/* Status pill */
.ap-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.ap-status-pending   { background: #fffbeb; color: #b45309; }
.ap-status-confirmed { background: #f0fdf4; color: #15803d; }
.ap-status-cancelled { background: #fef2f2; color: #b91c1c; }

/* Status select in table */
.ap-status-sel {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .8rem;
  font-family: var(--font-body);
  color: var(--secondary);
  background: #fff;
  cursor: pointer;
  min-width: 130px;
}

/* Badge numbers */
.ap-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 700;
}
.ap-badge-green { background: #f0fdf4; color: #15803d; }

/* --- Pagination ----------------------------------------- */
.ap-pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 4px 0 8px;
}
.ap-page-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--secondary-soft);
  transition: all var(--t-fast);
}
.ap-page-btn:hover { border-color: var(--secondary-soft); color: var(--secondary); }
.ap-page-btn.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* --- Spinner + empty ------------------------------------ */
.ap-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: apSpin .75s linear infinite;
  margin: 40px auto;
}
@keyframes apSpin { to { transform: rotate(360deg); } }
.ap-empty {
  text-align: center;
  color: var(--secondary-faint);
  padding: 40px 20px;
  font-size: .88rem;
}
.ap-muted { color: var(--secondary-faint); font-size: .82rem; }

/* --- Modals --------------------------------------------- */
.ap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .26s ease;
}
.ap-overlay.visible { opacity: 1; }
.ap-overlay.hidden { display: none; }
.ap-modal-open { overflow: hidden; }

.ap-modal {
  background: #fff;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06);
  transform: translateY(20px);
  transition: transform .26s cubic-bezier(.2,.7,.3,1);
}
.ap-overlay.visible .ap-modal { transform: translateY(0); }
.ap-modal-wide { max-width: 760px; }

.ap-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.ap-modal-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.ap-modal-close {
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: none;
  color: var(--secondary-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.ap-modal-close:hover { background: var(--surface-2); color: var(--secondary); }
.ap-modal-body { padding: 20px 22px; }
.ap-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
}

/* --- Car Form ------------------------------------------- */
.ap-form-hero {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.ap-thumb-zone {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-thumb-preview {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  color: var(--secondary-faint);
  font-size: .72rem;
  text-align: center;
}
.ap-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.ap-thumb-preview svg { width: 48px; height: 36px; }
.ap-thumb-btns { display: flex; gap: 6px; }
.ap-form-title-area { flex: 1; min-width: 0; }
.ap-form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.ap-fieldset {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px 16px 16px;
  margin-bottom: 14px;
}
.ap-fieldset legend {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--secondary-faint);
  padding: 0 6px;
}
.ap-form-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ap-field { display: flex; flex-direction: column; gap: 4px; }
.ap-field label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--secondary-soft);
}
.ap-input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .84rem;
  font-family: var(--font-body);
  color: var(--secondary);
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  box-sizing: border-box;
}
.ap-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,46,31,.1);
}
.ap-textarea { resize: vertical; min-height: 72px; }

.ap-checks { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ap-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
}
.ap-check input { accent-color: var(--primary); width: 15px; height: 15px; }

.ap-btn-sm { padding: 7px 14px; font-size: .8rem; }

/* --- Booking Detail Modal ------------------------------- */
.ap-booking-detail { display: flex; flex-direction: column; gap: 0; }
.ap-bd-section { padding: 6px 0; }
.ap-bd-divider { height: 1px; background: var(--border-soft); margin: 10px 0; }
.ap-bd-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.ap-bd-row:last-child { border-bottom: none; }
.ap-bd-label {
  width: 100px;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--secondary-faint);
  padding-top: 2px;
}
.ap-bd-val { flex: 1; font-size: .88rem; color: var(--secondary); }
.ap-bd-val a { color: var(--primary); text-decoration: none; }
.ap-bd-val a:hover { text-decoration: underline; }
.ap-bd-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.ap-status-sel-modal {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .84rem;
  font-family: var(--font-body);
  color: var(--secondary);
  background: #fff;
  cursor: pointer;
  min-width: 150px;
}
.ap-bd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
}

/* --- Toast ---------------------------------------------- */
.ap-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1a1715;
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: .84rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  white-space: nowrap;
}
.ap-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ap-toast-error { background: #dc2626; }

/* --- Responsive ----------------------------------------- */
@media (max-width: 1100px) {
  .ap-kpis { grid-template-columns: repeat(2, 1fr); }
  .ap-analytics-grid { grid-template-columns: 1fr 1fr; }
  .ap-chart-card-wide { grid-column: 1/-1; }
  .ap-pricing-grid { grid-template-columns: 1fr; }
  .ap-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ap-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .ap-sidebar.open { transform: translateX(0); }
  .ap-menu-btn { display: flex; }
  .ap-content { padding: 18px 14px; }
  .ap-topbar { padding: 0 14px; }
  .ap-form-hero { flex-direction: column; }
  .ap-thumb-zone { width: 100%; flex-direction: row; align-items: center; }
  .ap-thumb-preview { width: 120px; aspect-ratio: auto; height: 90px; }
}
@media (max-width: 640px) {
  .ap-kpis { grid-template-columns: 1fr 1fr; }
  .ap-analytics-grid { grid-template-columns: 1fr; }
  .ap-chart-wrap { height: 240px; padding: 14px 14px 16px; }
  .ap-chart-wrap-sm { height: 220px; }
  .ap-form-grid3 { grid-template-columns: 1fr 1fr; }
  .ap-form-row2 { grid-template-columns: 1fr; }
  .ap-toolbar { flex-direction: column; align-items: stretch; }
  .ap-search-box { max-width: 100%; }
  .ap-topbar-username { display: none; }
  .ap-modal { max-height: 100vh; border-radius: 0; max-width: 100%; }
  .ap-overlay { padding: 0; align-items: flex-end; }
}
@media (max-width: 480px) {
  .ap-kpis { grid-template-columns: 1fr; }
  .ap-cars-grid { grid-template-columns: 1fr; }
}
