/* ============================================================
   Car Details Page — Ellaithy Auto
   ============================================================ */

/* ── Gallery ─────────────────────────────────────────────── */
.cd-gallery-wrap { position: relative; background: #111; border-radius: 4px; overflow: hidden; }
.cd-main-slider .slick-slide { position: relative; }
.cd-main-slider img { width: 100%; height: 420px; object-fit: cover; display: block; }
.cd-main-slider .slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s; }
.cd-main-slider .slide-overlay:hover { background: rgba(0,0,0,.15); cursor: zoom-in; }
.gallery-counter { position: absolute; bottom: 14px; right: 16px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 20px; z-index: 10; letter-spacing: .5px; }
.gallery-placeholder { height: 420px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #bbb; border-radius: 4px; }
.cd-nav-slider { margin-top: 8px; }
.cd-nav-slider .slick-slide { padding: 0 4px; }
.cd-nav-slider img { height: 72px; object-fit: cover; border-radius: 3px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.cd-nav-slider .slick-current img { border-color: #e74c3c; }
.cd-nav-slider .slick-slide:hover img { border-color: #e74c3c; opacity: .85; }

/* ── Specs sidebar ───────────────────────────────────────── */
.cd-specs-block { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.cd-specs-block h5 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #e74c3c; border-bottom: 2px solid #e74c3c; padding-bottom: 10px; margin-bottom: 14px; }
.cd-specs-block ul { list-style: none; padding: 0; margin: 0; }
.cd-specs-block ul li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #f2f2f2; font-size: 13px; }
.cd-specs-block ul li:last-child { border-bottom: none; }
.cd-specs-block ul li span:first-child { color: #888; }
.cd-specs-block ul li strong { color: #333; font-weight: 600; text-align: right; max-width: 55%; }

/* ── Action nav ──────────────────────────────────────────── */
.cd-action-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cd-action-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; border: 1.5px solid transparent; }
.cd-action-nav a.btn-outline-red { border-color: #e74c3c; color: #e74c3c; }
.cd-action-nav a.btn-outline-red:hover { background: #e74c3c; color: #fff; }
.cd-action-nav a.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.cd-action-nav a.btn-whatsapp:hover { background: #128C7E; border-color: #128C7E; color: #fff; }
.cd-action-nav a.btn-light-action { background: #f5f5f5; color: #555; border-color: #e0e0e0; }
.cd-action-nav a.btn-light-action:hover { background: #e8e8e8; color: #333; }

/* ── Car title / price ───────────────────────────────────── */
.cd-title-section { margin-bottom: 20px; }
.cd-title-section h3 { font-size: 22px; font-weight: 700; color: #222; margin: 0 0 6px; }
.cd-price-main { font-size: 30px; font-weight: 800; color: #e74c3c; line-height: 1; }
.cd-price-old { font-size: 15px; color: #aaa; text-decoration: line-through; margin-right: 8px; }
.cd-price-badge { font-size: 11px; font-weight: 700; background: #e74c3c; color: #fff; padding: 2px 8px; border-radius: 3px; vertical-align: middle; }
.cd-price-note { font-size: 12px; color: #999; margin-top: 3px; }

/* ── Tabs ────────────────────────────────────────────────── */
.cd-tabs .nav-tabs { border-bottom: 2px solid #eee; gap: 4px; margin-bottom: 0; }
.cd-tabs .nav-tabs .nav-link { font-size: 13px; font-weight: 600; color: #666; border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 16px; margin-bottom: -2px; transition: all .2s; }
.cd-tabs .nav-tabs .nav-link:hover { color: #e74c3c; }
.cd-tabs .nav-tabs .nav-link.active { color: #e74c3c; border-bottom-color: #e74c3c; }
.cd-tabs .tab-content { padding: 20px 0; font-size: 13.5px; color: #555; line-height: 1.8; }
.cd-specs-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.cd-specs-table tr:nth-child(even) { background: #f9f9f9; }
.cd-specs-table th, .cd-specs-table td { padding: 9px 14px; border: 1px solid #eee; }
.cd-specs-table th { width: 35%; color: #555; font-weight: 600; background: #f5f5f5; }
.cd-specs-table td { color: #333; }

/* ── Enquiry form ────────────────────────────────────────── */
.cd-enquiry-card { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.cd-enquiry-card h5 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #e74c3c; border-bottom: 2px solid #e74c3c; padding-bottom: 10px; margin-bottom: 16px; }
.cd-enquiry-card .form-control { font-size: 13px; border-radius: 5px; border: 1.5px solid #e0e0e0; padding: 9px 12px; }
.cd-enquiry-card .form-control:focus { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.1); }
.cd-enquiry-card label { font-size: 11.5px; font-weight: 600; color: #666; margin-bottom: 4px; }
.cd-enquiry-card .btn-submit { background: #e74c3c; color: #fff; border: none; width: 100%; padding: 11px; border-radius: 5px; font-weight: 700; font-size: 13px; transition: background .2s; }
.cd-enquiry-card .btn-submit:hover { background: #c0392b; }

/* ── Installment Calculator ──────────────────────────────── */
.calc-section { margin-top: 50px; padding-top: 30px; border-top: 2px solid #f0f0f0; }
.calc-section > .calc-heading { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #e74c3c; margin-bottom: 6px; }
.calc-section > h3 { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 24px; }
.calc-input-card { background: #0f3460; border-radius: 12px; padding: 32px; color: #fff; margin-bottom: 32px; box-shadow: 0 8px 32px rgba(15,52,96,.3); }
.calc-input-card label { font-size: 12px; font-weight: 600; letter-spacing: .5px; opacity: .7; text-transform: uppercase; margin-bottom: 8px; display: block; }
.calc-input-card .calc-field { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; padding: 13px 16px; font-size: 18px; font-weight: 700; width: 100%; transition: border-color .2s, background .2s; }
.calc-input-card .calc-field:focus { outline: none; border-color: #e74c3c; background: rgba(255,255,255,.15); }
.calc-input-card .calc-field::placeholder { color: rgba(255,255,255,.4); font-size: 15px; font-weight: 400; }
.calc-currency { font-size: 13px; opacity: .6; margin-top: 4px; }
.calc-summary-pill { background: rgba(231,76,60,.2); border: 1px solid rgba(231,76,60,.4); border-radius: 8px; padding: 10px 16px; font-size: 13px; }
.calc-summary-pill .label { opacity: .7; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.calc-summary-pill .value { font-size: 17px; font-weight: 800; color: #e74c3c; }
.dp-slider-wrap { position: relative; }
.dp-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); outline: none; cursor: pointer; }
.dp-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #e74c3c; cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.dp-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #e74c3c; cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.dp-value { font-size: 28px; font-weight: 900; color: #e74c3c; }

/* Bank cards */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.bank-calc-card { background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; }
.bank-calc-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.bank-card-header { padding: 16px 20px; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 12px; }
.bank-card-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #f5f5f5; padding: 4px; border: 1px solid #eee; flex-shrink: 0; }
.bank-card-logo-placeholder { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#e74c3c,#c0392b); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bank-card-logo-placeholder i { color: #fff; font-size: 18px; }
.bank-card-name { font-size: 14px; font-weight: 700; color: #222; }
.bank-card-dp { font-size: 11px; color: #999; }
.bank-card-body { padding: 0; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f8f8f8; transition: background .15s; }
.plan-row:last-child { border-bottom: none; }
.plan-row:hover { background: #fef9f9; }
.plan-duration { font-size: 13px; font-weight: 700; color: #333; }
.plan-rate { font-size: 11px; color: #e74c3c; font-weight: 600; }
.plan-monthly { font-size: 14px; font-weight: 800; color: #222; text-align: right; }
.plan-monthly span { font-size: 10px; font-weight: 400; color: #aaa; display: block; }
.bank-card-empty { padding: 20px; text-align: center; color: #bbb; font-size: 13px; }

/* No banks state */
.calc-no-banks { text-align: center; padding: 40px; color: #aaa; }
.calc-no-banks i { font-size: 40px; margin-bottom: 12px; display: block; }

/* ── Related vehicles ────────────────────────────────────── */
.cd-related-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #e74c3c; margin-bottom: 6px; }
.cd-related-heading { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 20px; }
