.car-rentals-page {
    background: #f8fafc;
    color: #1e293b;
    min-height: 70vh;
    padding: 2rem 0 4rem;
}
.car-rentals-page .container { max-width: 1140px; }
.car-rentals-page h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
/* Vehicle tabs: first control row (same for every listing tab) */
.rental-page-head { margin-bottom: 0.25rem; }
.rental-vtabs { display: flex; flex-wrap: nowrap; gap: 0.5rem; margin-bottom: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rental-vtab { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #64748b; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.rental-vtab:hover { color: #0f172a; border-color: #cbd5e1; }
.rental-vtab.active { background: linear-gradient(135deg, #0071eb, #0096ff); color: #fff; border-color: transparent; }
.rental-vtab i { font-size: 0.85rem; opacity: 0.9; }
/* Search stack + filter card (public car-rentals) */
.cr-search-form { margin-bottom: 0.25rem; }
.cr-search-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem 1.1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.cr-search-card__row { align-items: flex-end; }
.cr-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}
.cr-input-wrap { position: relative; }
.cr-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 0.95rem;
    z-index: 1;
    pointer-events: none;
}
.cr-input {
    padding-left: 2.35rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-height: 44px;
}
.cr-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-height: 48px;
    font-weight: 600;
    color: #0f172a;
    padding-left: 0.65rem;
}
.cr-filter-card { padding-bottom: 1.15rem; }
.cr-filter-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.cr-filter-card__title { font-weight: 700; color: #0f172a; font-size: 1rem; }
.cr-filter-card__clear { font-size: 0.85rem; font-weight: 600; text-decoration: none; color: #2563eb; }
.cr-filter-card__clear:hover { text-decoration: underline; }
.cr-gradient-btn {
    border: none;
    border-radius: 12px;
    color: #fff !important;
    font-weight: 800;
    padding: 0.9rem 1rem;
    background: linear-gradient(90deg, #0071eb 0%, #5b4dff 55%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(0, 113, 235, 0.32);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cr-gradient-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(91, 77, 255, 0.38); }

.rental-provider-bar { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 1.5rem; border: 1px solid #e2e8f0; }
.rental-provider-bar a { flex: 1; text-align: center; padding: 0.65rem 0.5rem; font-size: 0.85rem; font-weight: 700; color: #64748b; text-decoration: none; border-radius: 9px; transition: color 0.2s, background 0.2s; }
.rental-provider-bar a:hover { color: #334155; }
.rental-provider-bar a.active { color: #fff; background: linear-gradient(90deg, #5b4dff, #0071eb 55%, #0096ff); box-shadow: 0 0 20px rgba(0, 113, 235, 0.25); }
.rental-types-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: #64748b; margin-bottom: 0.5rem; margin-top: 0.15rem; }
.rental-types-hint { max-width: 48rem; }
.rental-brand-row { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.rental-brand-row a { font-size: 0.82rem; color: #64748b; text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.rental-brand-row a:hover { color: #334155; }
.rental-brand-row a.active { color: #2563eb; border-bottom-color: #2563eb; }
.rental-brand-row a.active i { color: #2563eb; }
.rental-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .rental-grid { grid-template-columns: repeat(2, 1fr); } .rental-card--featured { grid-column: span 2; } }
@media (min-width: 992px) { .rental-grid { grid-template-columns: repeat(3, 1fr); } .rental-card--featured { grid-column: span 2; grid-row: span 1; } }
.rental-card { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.rental-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
.rental-card__hero { height: 140px; background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%); border-bottom: 1px solid #e2e8f0; }
.rental-card--featured .rental-card__hero { height: 200px; }
.rental-card__body { padding: 1rem 1.1rem 1.15rem; }
.rental-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.65rem; }
.rental-card__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #e2e8f0; display: flex; align-items: center; justify-content: center; border: 2px solid #cbd5e1; }
.rental-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rental-card__avatar-fallback { font-size: 1rem; font-weight: 800; color: #3b82f6; }
.rental-card__brand-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.55rem; border-radius: 6px; background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.rental-card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.15rem; color: #0f172a; }
.rental-card__vehicle-name { font-size: 0.8rem; color: #64748b; margin: 0 0 0.5rem; }
.rental-card__specs { font-size: 0.78rem; color: #64748b; margin: 0 0 0.85rem; }
.rental-card__price { font-size: 1.05rem; font-weight: 800; color: #059669; margin: 0; text-shadow: none; }
.rental-empty { text-align: center; padding: 3rem 1rem; color: #64748b; font-size: 0.95rem; border: 1px dashed #cbd5e1; border-radius: 12px; }
.rental-page-head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.rental-breadcrumb a { color: #2563eb; text-decoration: none; }
.rental-breadcrumb a:hover { text-decoration: underline; }
.rental-filters {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem 1rem;
    margin-bottom: 1rem;
}
.rental-company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 576px) {
    .rental-company-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .rental-company-grid { grid-template-columns: repeat(3, 1fr); }
}
.rental-company-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 9rem;
}
.rental-company-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    color: inherit;
}
.rental-company-card__name { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.35rem; color: #0f172a; }
.rental-company-card__meta { font-size: 0.78rem; color: #64748b; line-height: 1.4; }
.rental-company-card__count {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    padding-top: 0.75rem;
}
.rental-company-card__cta {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
}
.rental-alert { border-radius: 10px; }

[data-theme="dark"] .car-rentals-page { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] .rental-vtab,
[data-theme="dark"] .rental-provider-bar,
[data-theme="dark"] .rental-card { background: #111827; border-color: #334155; }
[data-theme="dark"] .rental-vtab,
[data-theme="dark"] .rental-provider-bar a,
[data-theme="dark"] .rental-brand-row a,
[data-theme="dark"] .rental-types-label,
[data-theme="dark"] .rental-card__vehicle-name,
[data-theme="dark"] .rental-card__specs,
[data-theme="dark"] .rental-empty { color: #cbd5e1; }
[data-theme="dark"] .rental-card__title { color: #f8fafc; }
[data-theme="dark"] .rental-brand-row { border-bottom-color: #334155; }
[data-theme="dark"] .rental-card__hero { background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%); border-bottom-color: #334155; }
[data-theme="dark"] .cr-search-card,
[data-theme="dark"] .cr-filter-card { background: #111827; border-color: #334155; }
[data-theme="dark"] .cr-field-label { color: #94a3b8; }
[data-theme="dark"] .cr-input,
[data-theme="dark"] .cr-select { background: #0b1220; color: #f8fafc; border-color: #334155; }
[data-theme="dark"] .cr-filter-card__title { color: #f1f5f9; }
[data-theme="dark"] .cr-filter-card__head { border-bottom-color: #334155; }
[data-theme="dark"] .cr-filter-card__clear { color: #93c5fd; }
[data-theme="dark"] .cr-input-icon { color: #60a5fa; }
[data-theme="dark"] .rental-filters { background: #111827; border-color: #334155; }
[data-theme="dark"] .rental-filters .form-control,
[data-theme="dark"] .rental-filters .form-select { background: #0b1220; color: #f8fafc; border-color: #334155; }
[data-theme="dark"] .rental-filters .form-label { color: #94a3b8 !important; }
[data-theme="dark"] .rental-breadcrumb a { color: #93c5fd; }
[data-theme="dark"] .rental-breadcrumb + span,
[data-theme="dark"] .rental-page-head .text-body-secondary { color: #e2e8f0; }
[data-theme="dark"] .rental-company-card { background: #111827; border-color: #334155; }
[data-theme="dark"] .rental-company-card:hover { border-color: #3b82f6; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .rental-company-card__name { color: #f8fafc; }
[data-theme="dark"] .rental-company-card__meta { color: #94a3b8; }
[data-theme="dark"] .rental-company-card__count,
[data-theme="dark"] .rental-company-card__cta { color: #93c5fd; }
[data-theme="dark"] .alert-warning.rental-alert { background: #422006; border-color: #9a3412; color: #ffedd5; }
[data-theme="dark"] .alert-warning.rental-alert .alert-link { color: #38bdf8; }
