/* ========================================
   VEHICLE DETAIL PAGE — STYLES
   ======================================== */

.vd-breadcrumb {
    background: #1A1814;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 10px 0;
    font-size: 13px;
    color: #D4B86A;
}
.vd-breadcrumb a { color: #C9A84C; text-decoration: none; }
.vd-breadcrumb a:hover { text-decoration: underline; }
.vd-breadcrumb span { margin: 0 6px; color: #94a3b8; }

.vd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: #D4B86A;
    gap: 16px;
}
.vd-loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #C9A84C;
    border-radius: 50%;
    animation: vdSpin 0.8s linear infinite;
}
@keyframes vdSpin { to { transform: rotate(360deg); } }

.vd-error { display: none; align-items: center; justify-content: center; padding: 100px 20px; }
.vd-error.visible { display: flex; }
.vd-error-inner { text-align: center; }
.vd-error-inner h2 { margin: 16px 0 8px; color: #EAEAEA; }
.vd-error-inner p { color: #D4B86A; margin-bottom: 24px; }
.vd-back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #C9A84C;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.vd-back-btn:hover { background: #B8963F; }

.vd-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 32px 16px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
    overflow-x: hidden;
    background: #141210;
}
.vd-left, .vd-right {
    min-width: 0;
    max-width: 100%;
}

/* ── Gallery ── */
.vd-gallery { margin-bottom: 28px; }
.vd-main-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1A1814;
    aspect-ratio: 16/9;
}
.vd-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}
.vd-fav-btn {
    position: absolute;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.6);
    color: #D4B86A;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.vd-fav-btn:hover { transform: scale(1.1); }
.vd-fav-btn.active { color: #ef4444; }
.vd-year-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.vd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.vd-thumb {
    width: 80px; height: 56px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
    opacity: 0.75;
}
.vd-thumb:hover { opacity: 1; transform: scale(1.04); }
.vd-thumb.active { border-color: #C9A84C; opacity: 1; }

/* ── Sections ── */
.vd-section { margin-bottom: 28px; }
.vd-section-title {
    font-size: 18px; font-weight: 700;
    color: #EAEAEA; margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.vd-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.vd-spec-item {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vd-spec-label { font-size: 11px; color: #D4B86A; text-transform: uppercase; font-weight: 600; }
.vd-spec-val { font-size: 15px; font-weight: 700; color: #EAEAEA; }
.vd-description { font-size: 15px; color: #cbd5e1; line-height: 1.7; margin: 0; }
.vd-features-grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.vd-feature-tag {
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: #D4B86A;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ── Booking Panel ── */
.vd-booking-panel {
    background: #1A1814;
    border-radius: 20px;
    border: 1px solid rgba(201,168,76,0.15);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: sticky;
    top: 90px;
}
.vd-vehicle-name {
    font-size: 22px; font-weight: 800;
    color: #EAEAEA; margin: 0 0 8px 0;
    line-height: 1.3;
}
.vd-vehicle-meta { font-size: 13px; color: #D4B86A; margin-bottom: 16px; }
.vd-price-display {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 12px;
}
.vd-price-amount { font-size: 32px; font-weight: 800; color: #EAEAEA; }
.vd-price-unit { font-size: 14px; color: #D4B86A; }
.vd-partner-info {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #D4B86A;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
}

/* Date Selection */
.vd-date-section { margin-bottom: 16px; }
.vd-date-row { display: flex; gap: 10px; margin-bottom: 10px; }
.vd-date-box {
    flex: 1;
    border: 1.5px solid rgba(201,168,76,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(201,168,76,0.06);
}
.vd-date-box:hover { border-color: #C9A84C; background: rgba(201,168,76,0.08); }
.vd-date-box.active { border-color: #C9A84C; background: rgba(201,168,76,0.08); }
.vd-date-label { font-size: 11px; color: #D4B86A; font-weight: 600; text-transform: uppercase; margin-bottom: 3px; }
.vd-date-val { font-size: 14px; font-weight: 600; color: #EAEAEA; }
.vd-time-row {
    display: flex; gap: 10px; margin-bottom: 10px;
}
.vd-time-group { flex: 1; }
.vd-time-label {
    display: block; font-size: 11px; color: #D4B86A; font-weight: 600;
    text-transform: uppercase; margin-bottom: 4px;
}
.vd-time-select {
    width: 100%; padding: 10px 12px; border: 1.5px solid rgba(201,168,76,0.2); box-sizing: border-box;
    border-radius: 10px; font-size: 14px; font-weight: 600; color: #EAEAEA;
    background: rgba(201,168,76,0.06); cursor: pointer; appearance: auto;
    transition: border-color 0.2s;
}
.vd-time-select:hover, .vd-time-select:focus { border-color: #C9A84C; }
.vd-time-select option { background: #000000; color: #EAEAEA; }
.vd-clear-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    box-sizing: border-box;
}
.vd-clear-btn:hover { background: rgba(255,255,255,0.1); color: #EAEAEA; }
.vd-total-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25);
    border-radius: 10px; padding: 12px 16px;
}
.vd-total-label { font-size: 14px; color: #4ade80; font-weight: 600; }
.vd-total-amount { font-size: 20px; font-weight: 800; color: #4ade80; }

.vd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.vd-badge {
    font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    background: rgba(201,168,76,0.1); color: #D4B86A; border: 1px solid rgba(201,168,76,0.25);
}
.vd-badge.green { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.3); }

.vd-book-btn {
    width: 100%; padding: 15px;
    background: #C9A84C; color: #fff;
    border: none; border-radius: 12px;
    font-size: 17px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.vd-book-btn:hover { background: #B8963F; }
.vd-back-link {
    width: 100%; padding: 10px;
    background: none; color: #D4B86A;
    border: none; cursor: pointer;
    font-size: 14px; text-align: center;
    transition: color 0.2s;
    box-sizing: border-box;
}
.vd-back-link:hover { color: #EAEAEA; }

/* ── Mini Calendar ── */
.vd-cal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.vd-cal-modal {
    background: #2A2318;
    border-radius: 28px;
    padding: 28px 24px 18px;
    width: 100%;
    max-width: 470px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.24);
}
.vd-cal-header {
    display: grid;
    grid-template-columns: 48px 1fr 48px 48px;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
}
.vd-cal-nav {
    width: 48px; height: 48px;
    border: 1px solid #d9e1ec; border-radius: 14px;
    background: #fff; cursor: pointer; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    color: #0f172a;
    transition: all 0.2s;
}
.vd-cal-nav:hover { background: #f8fafc; border-color: #C9A84C; }
.vd-cal-month-label { text-align: center; font-size: 20px; font-weight: 800; color: #EAEAEA; }
.vd-cal-close {
    width: 48px; height: 48px;
    border: 1px solid #d9e1ec; background: #fff; border-radius: 14px;
    cursor: pointer; font-size: 24px; color: #D4B86A;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.vd-cal-close:hover { background: #f8fafc; border-color: #C9A84C; }
.vd-cal-days-header {
    display: grid; grid-template-columns: repeat(7, 1fr);
    text-align: center; margin-bottom: 12px;
}
.vd-cal-days-header span { font-size: 12px; font-weight: 700; color: #94a3b8; padding: 8px 4px; }
.vd-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.vd-cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; border-radius: 14px;
    cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
    color: #EAEAEA;
}
.vd-cal-day:hover:not(.empty):not(.past):not(.blocked) { background: rgba(201,168,76,0.08); color: #C9A84C; }
.vd-cal-day.empty { cursor: default; }
.vd-cal-day.past { color: #cbd5e1; cursor: not-allowed; }
.vd-cal-day.blocked { color: #f59ca0; background: #fdf0f1; cursor: not-allowed; text-decoration: line-through; }
.vd-cal-day.selected { background: #C9A84C; color: #fff; font-weight: 700; }
.vd-cal-day.today { font-weight: 700; border: 1px solid rgba(201,168,76,0.4); }
.vd-cal-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 26px; padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.vd-cal-footer span { font-size: 15px; color: #D4B86A; }
.vd-cal-apply {
    padding: 14px 30px;
    background: #C9A84C; color: #fff;
    border: none; border-radius: 14px;
    font-size: 18px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.vd-cal-apply:hover { background: #B8963F; }

/* Booking modal reuse */
.bk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bk-modal { background: #2A2318; border-radius: 20px; padding: 32px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.25); }
.bk-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.1); border-radius: 50%; cursor: pointer; font-size: 14px; color: #D4B86A; display: flex; align-items: center; justify-content: center; }
.bk-close:hover { background: rgba(255,255,255,0.15); }
.bk-title { font-size: 22px; font-weight: 700; color: #EAEAEA; margin: 0 0 20px 0; }
.bk-vehicle-row { display: flex; gap: 14px; align-items: center; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); border-radius: 12px; padding: 14px; margin-bottom: 20px; }
.bk-vehicle-img { width: 90px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.bk-vehicle-name { font-size: 16px; font-weight: 700; color: #EAEAEA; margin-bottom: 4px; }
.bk-vehicle-meta { font-size: 13px; color: #D4B86A; }
.bk-dates-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.bk-date-box { flex: 1; min-width: 90px; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: 10px; padding: 10px 14px; }
.bk-days-box { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.3); }
.bk-date-label { font-size: 11px; color: #D4B86A; text-transform: uppercase; font-weight: 600; margin-bottom: 3px; }
.bk-date-val { font-size: 15px; font-weight: 700; color: #EAEAEA; }
.bk-price-row { display: flex; justify-content: space-between; align-items: center; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.bk-price-label { font-size: 15px; color: #4ade80; font-weight: 600; }
.bk-price-total { font-size: 24px; font-weight: 800; color: #4ade80; }
.bk-field-group { margin-bottom: 14px; }
.bk-label { display: block; font-size: 13px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }
.bk-input { width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; font-size: 14px; color: #EAEAEA; background: rgba(255,255,255,0.05); box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.bk-input:focus { border-color: #C9A84C; }
.bk-textarea { min-height: 72px; resize: vertical; }
.bk-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.bk-submit-btn { width: 100%; padding: 14px; background: #C9A84C; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-bottom: 10px; box-sizing: border-box; }
.bk-submit-btn:hover { background: #B8963F; }
.bk-submit-btn:disabled { background: rgba(201,168,76,0.5); cursor: not-allowed; }
.bk-cancel-btn { display: block; padding: 12px; background: rgba(255,255,255,0.1); color: #cbd5e1; border: none; border-radius: 10px; font-size: 15px; cursor: pointer; text-align: center; width: 100%; box-sizing: border-box; }
.bk-cancel-btn:hover { background: rgba(255,255,255,0.15); }
.bk-note { font-size: 12px; color: #94a3b8; text-align: center; margin: 0; }
.bk-success-modal { text-align: center; }
.bk-success-icon { width: 72px; height: 72px; background: #dcfce7; color: #16a34a; border-radius: 50%; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.bk-success-msg { color: #cbd5e1; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .vd-container {
        grid-template-columns: 1fr;
    }
    .vd-right { order: -1; }
    .vd-booking-panel { position: static; }
    .vd-specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .vd-container { padding: 12px 8px; gap: 16px; }
    .vd-booking-panel { padding: 18px 14px; border-radius: 14px; }
    .vd-vehicle-name { font-size: 18px; }
    .vd-price-amount { font-size: 26px; }
    .vd-price-unit { font-size: 13px; }
    .vd-vehicle-meta { font-size: 12px; margin-bottom: 12px; }
    .vd-partner-info { font-size: 12px; padding: 6px 10px; }
    .vd-specs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .vd-spec-item { padding: 10px; }
    .vd-spec-label { font-size: 10px; }
    .vd-spec-val { font-size: 13px; }
    .vd-date-row { flex-direction: column; }
    .vd-date-box { padding: 8px 12px; }
    .vd-date-label { font-size: 10px; }
    .vd-date-val { font-size: 13px; }
    .vd-time-select { padding: 8px 10px; font-size: 13px; }
    .vd-book-btn { padding: 13px; font-size: 15px; border-radius: 10px; }
    .vd-back-link { font-size: 13px; padding: 8px; }
    .vd-clear-btn { font-size: 13px; padding: 8px; }
    .vd-section-title { font-size: 16px; }
    .vd-description { font-size: 13px; }
    .vd-feature-tag { font-size: 12px; padding: 5px 10px; }
    .vd-badge { font-size: 11px; padding: 3px 10px; }
    .vd-badges { gap: 6px; margin-bottom: 14px; }
    .vd-main-img-wrap { border-radius: 12px; }
    .vd-thumb { width: 64px; height: 44px; border-radius: 6px; }
    .vd-thumbs { gap: 6px; margin-top: 8px; }
    .vd-total-row { padding: 10px 12px; }
    .vd-total-label { font-size: 13px; }
    .vd-total-amount { font-size: 17px; }

    /* Calendar mobile fix — prevent last column overflow */
    .vd-cal-overlay { padding: 8px; }
    .vd-cal-modal { padding: 18px 14px 14px; border-radius: 20px; max-width: 100%; box-sizing: border-box; }
    .vd-cal-header { grid-template-columns: 36px 1fr 36px 36px; gap: 6px; margin-bottom: 16px; }
    .vd-cal-nav, .vd-cal-close { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
    .vd-cal-month-label { font-size: 16px; }
    .vd-cal-days-header span { font-size: 11px; padding: 4px 2px; }
    .vd-cal-grid { gap: 3px; }
    .vd-cal-day { min-height: 40px; font-size: 14px; border-radius: 10px; }
    .vd-cal-footer { margin-top: 16px; padding-top: 12px; }
    .vd-cal-footer span { font-size: 13px; }
    .vd-cal-apply { padding: 10px 22px; font-size: 15px; border-radius: 10px; }

    /* Booking modal mobile */
    .bk-modal { padding: 20px 16px; border-radius: 16px; }
    .bk-title { font-size: 18px; margin-bottom: 14px; }
    .bk-vehicle-img { width: 70px; height: 50px; }
    .bk-vehicle-name { font-size: 14px; }
    .bk-vehicle-meta { font-size: 12px; }
    .bk-vehicle-row { padding: 10px; gap: 10px; }
    .bk-price-total { font-size: 20px; }
    .bk-submit-btn { padding: 12px; font-size: 14px; }
}

@media (max-width: 360px) {
    .vd-container { padding: 10px 6px; }
    .vd-booking-panel { padding: 14px 10px; }
    .vd-vehicle-name { font-size: 16px; }
    .vd-price-amount { font-size: 24px; }
    .vd-specs-grid { gap: 6px; }
    .vd-spec-item { padding: 8px; }
    .vd-spec-val { font-size: 12px; }
    .vd-thumb { width: 54px; height: 38px; }
    .vd-book-btn { padding: 12px; font-size: 14px; }
    .vd-cal-day { min-height: 36px; font-size: 13px; border-radius: 8px; }
    .vd-cal-grid { gap: 2px; }
}
