/* =====================================================================
   11-leasing-details.css
===================================================================== */

/* ── PAGE ───────────────────────────────────────── */

.ld-page {
  background: var(--bg-light);
  min-height: 100vh;
  padding: 40px 0 80px;
}

.ld-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BREADCRUMB ────────────────────────────────── */

.ld-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.ld-breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
}

.ld-breadcrumb a:hover {
  text-decoration: underline;
}

/* ── STATES ────────────────────────────────────── */

.ld-loading,
.ld-error {
  text-align: center;
  padding: 80px 20px;
  font-size: 15px;
  color: var(--text-light);
}

.ld-error {
  color: #dc2626;
}
.ld-error a {
  color: var(--secondary-color);
}

/* ── MAIN CARD ─────────────────────────────────── */

.ld-card {
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.09),
    0 2px 8px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 560px;
  overflow: hidden;
}

/* ── LEFT PANEL ────────────────────────────────── */

.ld-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 60px 36px 44px;
  overflow: hidden;
  height: 100%;
}

/* floor reflection */
.ld-left::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: transparent;
  pointer-events: none;
}

/* Badges — stacked top-left */
.ld-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 2;
}

.ld-badge {
  display: inline-block;
  background: #eef7fe;
  border: 1px solid #cfe6f8;
  color: #055f88;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* NLT tag — top center */
.ld-nlt-tag {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  z-index: 2;
}

/* Car image */
.ld-car-img {
  width: 100%;
  max-width: 440px;
  height: 270px;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  filter: none;
  transition: transform 0.5s ease;
}

.ld-card:hover .ld-car-img {
  transform: scale(1.03) translateY(-5px);
}

/* ── RIGHT PANEL ───────────────────────────────── */

.ld-right {
  padding: 36px 44px 36px 40px;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  overflow-y: auto;
  height: 100%;
}

/* TITLE */

.ld-name-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.ld-car-name {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.3px;
}

.ld-car-variant {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ld-car-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 16px;
}

/* PRICE */

.ld-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ld-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
  letter-spacing: -1px;
}

.ld-price-unit {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.ld-price-meta {
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 14px;
}

/* ── SLIDERS ───────────────────────────────────── */

.ld-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

.ld-slider-group,
.ld-vat-group {
  padding: 18px 20px 14px 0;
  border-bottom: 1px solid var(--border-color);
}

/* right column cells */
.ld-slider-group:nth-child(even),
.ld-vat-group {
  padding-left: 24px;
  padding-right: 0;
  border-left: 1px solid var(--border-color);
}

/* label — plain, same weight as reference ("Km/year", "Duration" etc) */
.ld-slider-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 10px;
  letter-spacing: 0;
}

.ld-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ld-plan-option {
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--primary-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.ld-plan-option:hover {
  border-color: var(--secondary-color);
}

.ld-plan-option.is-active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

/* ── TRACK ── */

/* wrapper gives the click area height while keeping the visual track slim */
.ld-track-wrap {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

/* full grey rail */
.ld-track-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  margin: auto 0;
  height: 4px;
  border-radius: 4px;
  background: #d9dfe6;
  pointer-events: none;
}

/* teal fill — width driven by JS */
.ld-track-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 4px;
  background: var(--secondary-color);
  pointer-events: none;
  z-index: 1;
}

/* invisible native input sits on top for interaction */
.ld-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.ld-slider::-webkit-slider-runnable-track {
  background: transparent;
}
.ld-slider::-moz-range-track {
  background: transparent;
  height: 4px;
}

/* thumb — small teal circle with white border */
.ld-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  cursor: grab;
  position: relative;
  z-index: 3;
}

.ld-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

/* min / max labels below track */
.ld-range-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--primary-color);
  margin-top: 6px;
  font-weight: 400;
}

/* ── VAT OPTIONS IMPROVED SPACING ── */

.ld-vat-options {
  display: flex;
  flex-direction: column;
  gap: 14px; /* more breathing room */
  margin-top: 10px;
}

/* make each option feel like a selectable row */
.ld-vat-opt {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 10px 12px;
  border-radius: 10px;

  font-size: 13px;
  color: var(--primary-color);

  cursor: pointer;
  user-select: none;

  transition: background 0.2s ease;
}

/* subtle hover like modern configurators */
.ld-vat-opt:hover {
  background: var(--bg-light);
}

/* RADIO BUTTON */

.ld-vat-opt input[type="radio"] {
  appearance: none;

  width: 20px;
  height: 20px;
  min-width: 20px;

  border-radius: 50%;
  border: 2px solid #c5ced8;
  background: #fff;

  position: relative;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    transform 0.15s ease;
}

/* hover feedback */
.ld-vat-opt:hover input[type="radio"] {
  transform: scale(1.05);
}

/* checked state */
.ld-vat-opt input[type="radio"]:checked {
  border-color: var(--secondary-color);
  background: radial-gradient(circle, var(--secondary-color) 42%, #fff 44%);
}

/* hide native radio */
.ld-vat-opt input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid #c5ced8;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}

/* filled dot when checked */
.ld-vat-opt input[type="radio"]:checked {
  border-color: var(--secondary-color);
  background: radial-gradient(circle, var(--secondary-color) 42%, #fff 44%);
}

/* ── SERVICES ─────────────────────────────────── */

.ld-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.ld-services-right {
  padding-left: 28px;
  border-left: 1px solid var(--border-color);
}

.ld-services-col-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.ld-service-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: 600;
}

.ld-optional-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── EXPANDABLES ───────────────────────────────── */

.ld-expandables {
  display: block;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.ld-exp-tabs {
  display: grid;
  grid-template-columns: repeat(var(--ld-exp-cols, 3), minmax(0, 1fr));
}

.ld-exp-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #eef7fe;
  border: none;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-color);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  letter-spacing: 0;
}

.ld-exp-btn:last-of-type {
  border-right: none;
}

.ld-exp-btn:hover {
  background: #e2f1fc;
}

.ld-exp-btn.is-open {
  background: #d5ebfb;
  color: #055f88;
}

.ld-exp-plus {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  width: 24px;
  text-align: center;
  flex: 0 0 24px;
}

.ld-exp-body {
  display: none;
  width: 100%;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  line-height: 1.7;
}

.ld-exp-body.open {
  display: block;
}

body.ld-popup-open {
  overflow: hidden;
}

.ld-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 18, 31, 0.58);
}

.ld-pop-backdrop.open {
  display: flex;
}

.ld-pop-card {
  width: min(720px, 100%);
  border-radius: 36px;
  background: #113f58;
  color: #ffffff;
  padding: 24px 38px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  position: relative;
}

.ld-pop-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #113f58;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}

.ld-pop-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.ld-pop-body .ld-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.ld-pop-body .ld-spec-label,
.ld-pop-body .ld-spec-value {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  padding: 9px 0;
  font-size: 20px;
  line-height: 1.1;
}

.ld-pop-body .ld-spec-label {
  color: #ffffff;
  font-weight: 600;
}

.ld-pop-body .ld-spec-value {
  color: #17e5c5;
  font-weight: 600;
}

.ld-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ld-spec-label {
  padding: 8px 10px;
  border: 1px solid #d9dde4;
  font-weight: 700;
  background: #eef3f8;
  color: #17325c;
}

.ld-spec-value {
  padding: 8px 10px;
  border: 1px solid #d9dde4;
  color: var(--primary-color);
}

.ld-exp-static-title {
  width: 100%;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  background: #f8fbff;
  letter-spacing: 0.2px;
}

/* ── CTA ───────────────────────────────────────── */

.ld-cta {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  margin: 20px 0 14px;
  border: none;
  cursor: pointer;
}

.ld-cta:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 155, 219, 0.3);
}

/* ── PENALTIES ─────────────────────────────────── */

.ld-penalties {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  line-height: 1.8;
}

.ld-penalties strong {
  color: var(--primary-color);
}

/* ── DARK MODE ────────────────────────────────── */

body.dark-mode .ld-page {
  background: #0f1723;
}

body.dark-mode .ld-breadcrumb,
body.dark-mode .ld-breadcrumb span {
  color: #93a4b8;
}

body.dark-mode .ld-breadcrumb a {
  color: #38bdf8;
}

body.dark-mode .ld-card {
  background: #161f2b;
  border: 1px solid #2a3a4d;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .ld-right {
  background: #161f2b;
}

body.dark-mode .ld-car-name,
body.dark-mode .ld-slider-label,
body.dark-mode .ld-range-minmax,
body.dark-mode .ld-penalties strong {
  color: #ffffff;
}

body.dark-mode .ld-car-variant,
body.dark-mode .ld-car-subtitle,
body.dark-mode .ld-price-unit,
body.dark-mode .ld-price-meta,
body.dark-mode .ld-services-col-label,
body.dark-mode .ld-optional-text,
body.dark-mode .ld-penalties,
body.dark-mode .ld-exp-body {
  color: #ffffff;
}

body.dark-mode .ld-sliders,
body.dark-mode .ld-slider-group,
body.dark-mode .ld-vat-group,
body.dark-mode .ld-services,
body.dark-mode .ld-services-right,
body.dark-mode .ld-expandables,
body.dark-mode .ld-exp-static-title,
body.dark-mode .ld-penalties {
  border-color: #2a3a4d;
}

body.dark-mode .ld-slider-group:nth-child(even),
body.dark-mode .ld-vat-group {
  border-left-color: #2a3a4d;
}

body.dark-mode .ld-plan-option {
  background: #1c2735;
  border-color: #31465d;
  color: #ffffff;
}

body.dark-mode .ld-plan-option:hover {
  border-color: #38bdf8;
}

body.dark-mode .ld-plan-option.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

body.dark-mode .ld-vat-opt {
  color: #ffffff;
}

body.dark-mode .ld-vat-opt:hover {
  background: #1c2735;
}

body.dark-mode .ld-vat-opt input[type="radio"] {
  border-color: #4a5c71;
  background: #111926;
}

body.dark-mode .ld-vat-opt input[type="radio"]:checked {
  border-color: #38bdf8;
  background: radial-gradient(circle, #38bdf8 42%, #111926 44%);
}

body.dark-mode .ld-service-item {
  color: #ffffff;
  border-bottom-color: #253547;
}

body.dark-mode .ld-exp-btn {
  background: #1c2b3b;
  color: #ffffff;
  border-right-color: #2a3a4d;
  border-bottom-color: #2a3a4d;
}

body.dark-mode .ld-exp-btn:hover {
  background: #223447;
}

body.dark-mode .ld-exp-btn.is-open {
  background: #1f3b56;
  color: #ffffff;
}

body.dark-mode .ld-exp-static-title {
  color: #ffffff;
  background: #1a2736;
}

body.dark-mode .ld-exp-body {
  background: #131d2a;
}

body.dark-mode .ld-spec-label {
  border-color: #2a3a4d;
  background: #1a2736;
  color: #ffffff;
}

body.dark-mode .ld-spec-value {
  border-color: #2a3a4d;
  color: #ffffff;
}

body.dark-mode .ld-cta {
  background: #243246;
  color: #ffffff;
}

body.dark-mode .ld-cta:hover {
  background: #0284c7;
}

/* ── RESPONSIVE ────────────────────────────────── */

@media (max-width: 1000px) {
  .ld-card {
    grid-template-columns: 1fr;
  }

  .ld-left {
    min-height: 300px;
    padding: 52px 24px 36px;
  }

  .ld-car-img {
    height: 210px;
    max-width: 340px;
  }
}

@media (max-width: 860px) {
  .ld-right {
    padding: 24px 20px;
  }

  .ld-sliders {
    grid-template-columns: 1fr;
  }

  .ld-slider-group:nth-child(even),
  .ld-vat-group,
  .ld-services-right {
    padding-left: 0;
    border-left: none;
  }

  .ld-services {
    grid-template-columns: 1fr;
  }

  .ld-car-name {
    font-size: 1.5rem;
  }

  .ld-price {
    font-size: 2.2rem;
  }

  .ld-exp-tabs {
    grid-template-columns: 1fr;
  }

  .ld-pop-backdrop {
    padding: 14px;
  }

  .ld-pop-card {
    border-radius: 22px;
    padding: 18px 16px 18px;
  }

  .ld-pop-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .ld-pop-body .ld-spec-label,
  .ld-pop-body .ld-spec-value {
    font-size: 16px;
  }
}
