:root {
    --primary: #1a56db;
    --primary-dark: #1340a8;
    --accent: #f59e0b;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: #fff;
    margin: 0;
    padding: 0;
}

/* Farsi / RTL */
.fa-font, .fa-font * {
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif !important;
}

[dir="rtl"] .ms-auto { margin-left: unset !important; margin-right: auto !important; }
[dir="rtl"] .me-auto { margin-right: unset !important; margin-left: auto !important; }
[dir="rtl"] .ms-2   { margin-left: unset !important; margin-right: 0.5rem !important; }
[dir="rtl"] .me-2   { margin-right: unset !important; margin-left: 0.5rem !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end   { text-align: left !important; }
[dir="rtl"] .dropdown-menu { text-align: right; }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { float: right; margin: 0 0 0 0.5rem; }
[dir="rtl"] .social-links { flex-direction: row-reverse; }
[dir="rtl"] .btn-book-now { margin-left: unset !important; margin-right: 0.5rem; }

/* Language switcher */
.lang-btn {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── TOP NAV ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-header .navbar {
    padding: 0.6rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.92rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
}

.dropdown-item {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: var(--primary);
}

.btn-book-now {
    background: var(--primary);
    color: #fff !important;
    border-radius: 6px;
    padding: 0.45rem 1.2rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.btn-book-now:hover {
    background: var(--primary-dark);
}

/* ── HERO ── */
.hero-section {
    background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
    padding: 4rem 0 3rem;
    color: #fff;
}

.hero-section h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-bottom: 0;
}

.reservation-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.reservation-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.reservation-card .form-control, .reservation-card .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--border);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}

.reservation-card .form-control:focus, .reservation-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: background 0.2s;
}

.btn-search:hover {
    background: var(--primary-dark);
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── SECTIONS ── */
.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ── CATEGORY TABS ── */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.category-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.category-tab:hover, .category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── VEHICLE CARD ── */
.vehicle-card {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.vehicle-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: var(--bg-light);
}

.vehicle-card-body {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.vehicle-year {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.vehicle-specs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.spec-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.vehicle-price {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.deposit-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.btn-details {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    width: 100%;
    margin-top: 0.75rem;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-details:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ── CATEGORY BADGE ── */
.cat-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-Economy { background: #dbeafe; color: #1d4ed8; }
.cat-Mid-Range { background: #fef3c7; color: #92400e; }
.cat-SUV { background: #dcfce7; color: #166534; }
.cat-Luxury { background: #fce7f3; color: #9d174d; }

/* ── REVIEWS ── */
.reviews-section { background: var(--bg-light); }

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    height: 100%;
}

.review-stars { color: #f59e0b; font-size: 0.9rem; }
.review-text { font-size: 0.9rem; color: var(--text-dark); margin: 0.6rem 0; }
.review-author { font-size: 0.82rem; font-weight: 600; }
.review-date { font-size: 0.78rem; color: var(--text-muted); }

/* ── SERVICES STRIP ── */
.services-strip { padding: 3rem 0; }
.service-item { text-align: center; padding: 1rem; }
.service-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.service-label { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.service-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── FOOTER ── */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
}

.site-footer h6 {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 2;
    display: block;
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.social-links { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-link {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #1f2937;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af !important;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.social-link:hover { background: var(--primary); color: #fff !important; }

/* ── DETAIL PAGE ── */
.vehicle-detail-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.spec-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table td:first-child { color: var(--text-muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }

/* ── FILTER BAR ── */
.filter-bar {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

/* ── MISC ── */
.page-header {
    background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
    color: #fff;
    padding: 2.5rem 0;
}

.page-header h1 { font-size: 2rem; font-weight: 700; margin: 0; }
.page-header p { opacity: 0.85; margin: 0.4rem 0 0; }

.rating-badge {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.82rem;
    color: #92400e;
    font-weight: 600;
}

a, .btn-link { color: var(--primary); }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

#blazor-error-ui {
    display: none;
    background: #fffbdd;
    border-top: 1px solid #e6db55;
    bottom: 0;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
