/* =============================================================
   SILVER ARROW RENTALS — CAR DETAIL PAGE
   car-detail.css
   Scoped to .cd-* prefix to avoid conflicts with existing styles
============================================================= */

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.cd-breadcrumb { display: none; }
.cd-breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  flex-wrap: wrap;
}
.cd-breadcrumb-inner a {
  color: #a0a0b0;
  text-decoration: none;
  transition: color .2s;
}
.cd-breadcrumb-inner a:hover { color: #e85d04; }
.cd-breadcrumb-inner svg { opacity: .4; flex-shrink: 0; }
.cd-breadcrumb-inner span { color: #fff; font-weight: 600; }

/* ── BODY LAYOUT ────────────────────────────────────────────── */
.cd-body {
  max-width: 1320px;
  margin: 80px auto 0; /* 80px = fixed navbar height (--nav-h) */
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  font-family: 'Outfit', sans-serif;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.cd-card {
  background: #16161f;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.cd-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── GALLERY ────────────────────────────────────────────────── */
.cd-gallery {
  position: relative;
  background: #16161f;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.cd-gallery:hover .cd-main-img { transform: scale(1.02); }
.cd-gallery-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(232,93,4,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
}

/* ── GALLERY TABS & THUMBNAILS ─────────────────────────────── */
.cd-gallery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cd-gallery-tab {
  background: #16161f;
  border: 1px solid rgba(255,255,255,.07);
  color: #a0a0b0;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.cd-gallery-tab:hover { color: #fff; border-color: rgba(255,255,255,.18); }
.cd-gallery-tab.active { background: #e85d04; border-color: #e85d04; color: #fff; }

.cd-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.cd-thumb {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #16161f;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-thumb:hover { opacity: .85; }
.cd-thumb.active { opacity: 1; border-color: #e85d04; }

/* ── CAR TITLE ──────────────────────────────────────────────── */
.cd-make-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e85d04;
  margin-bottom: 8px;
}
.cd-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}

/* ── SPEC GRID ──────────────────────────────────────────────── */
.cd-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.cd-spec-item {
  background: #1e1e2a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.cd-spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #e85d04;
}
.cd-spec-icon svg { flex-shrink: 0; }
.cd-spec-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.cd-spec-key {
  font-size: 11px;
  color: #6a6a7a;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── COLOR SWATCHES ─────────────────────────────────────────── */
.cd-colors {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cd-colors-label {
  font-size: 13px;
  color: #6a6a7a;
  font-weight: 600;
}
.cd-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cd-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transition: transform .15s;
  cursor: default;
}
.cd-swatch:hover { transform: scale(1.2); }
.cd-color-name {
  font-size: 13px;
  color: #c0c0d0;
  font-weight: 500;
}

/* ── MILEAGE ────────────────────────────────────────────────── */
.cd-mileage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cd-mileage-item {
  background: #1e1e2a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
}
.cd-mileage-extra {
  border-color: rgba(232,93,4,.25);
  background: rgba(232,93,4,.06);
}
.cd-mileage-val {
  font-size: 16px;
  font-weight: 800;
  color: #e85d04;
  margin-bottom: 4px;
}
.cd-mileage-lbl {
  font-size: 11px;
  color: #6a6a7a;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── PRICING TABS (LEFT) ────────────────────────────────────── */
.cd-pricing-tabs {
  display: flex;
  gap: 4px;
  background: #1e1e2a;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.cd-ptab {
  flex: 1;
  padding: 9px 8px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #6a6a7a;
  cursor: pointer;
  transition: all .2s;
}
.cd-ptab.active {
  background: #e85d04;
  color: #fff;
}
.cd-ptab:not(.active):hover { color: #c0c0d0; }

/* ── PRICE TABLE ────────────────────────────────────────────── */
.cd-price-table {
  width: 100%;
  border-collapse: collapse;
}
.cd-price-table thead th {
  background: #1e1e2a;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6a6a7a;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cd-price-table thead th:last-child { text-align: right; }
.cd-price-table tbody td {
  padding: 13px 14px;
  font-size: 14px;
  color: #c0c0d0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cd-price-table tbody td:last-child { text-align: right; }
.cd-rate {
  font-size: 16px;
  font-weight: 700;
  color: #e85d04;
}
.cd-best-row td {
  background: rgba(232,93,4,.06);
  font-weight: 600;
  color: #fff;
}
.cd-best-badge {
  display: inline-block;
  background: #e85d04;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── SINGLE PRICE (weekly/monthly) ─────────────────────────── */
.cd-single-price {
  text-align: center;
  padding: 24px 0 8px;
}
.cd-sp-label { font-size: 13px; color: #6a6a7a; margin-bottom: 8px; }
.cd-sp-val {
  font-size: 36px;
  font-weight: 800;
  color: #e85d04;
  margin-bottom: 6px;
}
.cd-sp-note { font-size: 13px; color: #6a6a7a; }

/* ── INSURANCE GRID ─────────────────────────────────────────── */
.cd-ins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cd-ins-card {
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 14px;
  position: relative;
  background: #1e1e2a;
}
.cd-ins-recommended {
  border-color: #e85d04;
  background: rgba(232,93,4,.05);
}
.cd-ins-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #e85d04;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.cd-ins-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  margin-top: 6px;
}
.cd-ins-price {
  font-size: 20px;
  font-weight: 800;
  color: #e85d04;
  margin-bottom: 10px;
}
.cd-ins-unit { font-size: 12px; color: #6a6a7a; font-weight: 400; }
.cd-ins-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #8a8a9a;
  line-height: 1.5;
}
.cd-ins-features span:first-child { margin-top: 2px; }

/* ── ADD-ONS (left panel list) ──────────────────────────────── */
.cd-addons-list { display: flex; flex-direction: column; gap: 12px; }
.cd-addon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e1e2a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 14px 16px;
}
.cd-addon-item svg { color: #e85d04; flex-shrink: 0; }
.cd-addon-name { font-size: 14px; font-weight: 600; color: #fff; }
.cd-addon-price { font-size: 13px; color: #e85d04; margin-top: 2px; }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.cd-sidebar {
  position: sticky;
  top: 90px;
  grid-column: 2;
}
.cd-booking-card {
  background: #16161f;
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* ── PRICE DISPLAY ──────────────────────────────────────────── */
.cd-booking-from {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cd-booking-from-label { font-size: 13px; color: #6a6a7a; }
.cd-booking-price {
  font-size: 34px;
  font-weight: 900;
  color: #e85d04;
  line-height: 1;
  transition: all .2s;
}
.cd-booking-unit { font-size: 14px; color: #6a6a7a; }

/* ── RENTAL TYPE TABS (sidebar) ─────────────────────────────── */
.cd-rental-tabs {
  display: flex;
  gap: 4px;
  background: #1e1e2a;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.cd-rtab {
  flex: 1;
  padding: 9px 6px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #6a6a7a;
  cursor: pointer;
  transition: all .2s;
}
.cd-rtab.active {
  background: #e85d04;
  color: #fff;
  box-shadow: 0 4px 12px rgba(232,93,4,.3);
}
.cd-rtab:not(.active):hover { color: #c0c0d0; }

/* ── FIELDS ─────────────────────────────────────────────────── */
.cd-field { margin-bottom: 12px; }
.cd-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6a6a7a;
  margin-bottom: 6px;
}
.cd-field input[type="date"],
.cd-field select {
  width: 100%;
  height: 44px;
  background: #1e1e2a;
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}
.cd-field input[type="date"]:focus,
.cd-field select:focus {
  border-color: #e85d04;
}
.cd-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── ADD-ON CHECKBOXES ──────────────────────────────────────── */
.cd-addon-checks { display: flex; flex-direction: column; gap: 8px; }
.cd-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c0c0d0;
  cursor: pointer;
  font-weight: 500;
}
.cd-check-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #e85d04;
  cursor: pointer;
  flex-shrink: 0;
}
.cd-check-label span {
  margin-left: auto;
  font-size: 12px;
  color: #e85d04;
  font-weight: 600;
}

/* ── INVOICE ─────────────────────────────────────────────────── */
.cd-invoice {
  background: #1e1e2a;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.cd-inv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}
.cd-inv-lbl { color: #8a8a9a; }
.cd-inv-val { font-weight: 600; color: #e0e0f0; }
.cd-inv-total {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 6px;
  padding-top: 10px;
}
.cd-inv-total .cd-inv-lbl { color: #fff; font-weight: 700; font-size: 14px; }
.cd-inv-total .cd-inv-val { color: #e85d04; font-size: 16px; font-weight: 800; }

/* ── DEPOSIT BADGE ──────────────────────────────────────────── */
.cd-deposit-badge {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  color: #4ade80;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 14px;
}
.cd-deposit-badge strong { font-weight: 800; }

/* ── CTA BUTTONS ─────────────────────────────────────────────── */
.cd-btn-reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: #e85d04;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(232,93,4,.3);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cd-btn-reserve:hover {
  background: #d44e00;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(232,93,4,.4);
}
.cd-btn-reserve:active { transform: translateY(0); }

.cd-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  margin-bottom: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 6px 18px rgba(37,211,102,.25);
}
.cd-btn-wa:hover { background: #1ebe5b; transform: translateY(-1px); }

.cd-btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: transparent;
  color: #c0c0d0;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.cd-btn-call:hover {
  border-color: #e85d04;
  color: #e85d04;
}

.cd-booking-note {
  font-size: 12px;
  color: #6a6a7a;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cd-body {
    grid-template-columns: 1fr;
  }
  .cd-sidebar {
    position: static;
    grid-column: 1;
  }
}
@media (max-width: 768px) {
  .cd-body { padding: 24px 16px 60px; }
  /* On mobile, hide breadcrumb text — only keep the margin so content clears the fixed navbar */
  .cd-breadcrumb { padding: 0; border-bottom: none; }
  .cd-breadcrumb-inner { display: none; }
  .cd-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-mileage-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-ins-grid { grid-template-columns: 1fr; }
  .cd-date-row { grid-template-columns: 1fr; }
  .cd-title { font-size: 22px; }
  .cd-booking-price { font-size: 28px; }
  .cd-card { padding: 20px; }
  .cd-booking-card { padding: 20px; }
}
@media (max-width: 480px) {
  .cd-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-mileage-grid { grid-template-columns: 1fr 1fr; }
}
