/* Isolated page asset: does not modify the global site or Mercedes pages. */
.df-page-wrap { min-height:100vh; }
.df-page-wrap img { max-width:100%; }
.df-page-wrap a { text-decoration:none; }
.df-page-wrap #modelsCardsList:empty::before { content:'لا توجد طرازات مرتبطة بهذا البراند من لوحة الإدارة'; display:block; padding:3rem; text-align:center; color:#cbd5e1; border:1px dashed rgba(255,255,255,.2); border-radius:1.5rem; }
@media (max-width:640px) { .df-page-wrap #navbar .max-w-7xl { min-height:72px; } }

/* Dongfeng & Forthing header controls */
.df-page-wrap .df-header-tools {
    flex-shrink: 0;
}
.df-page-wrap .df-header-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.df-page-wrap .df-header-control:hover {
    background: rgba(255,255,255,.20);
    border-color: var(--brand-red);
}
@media (max-width: 640px) {
    .df-page-wrap .df-header-tools { gap: 6px; }
    .df-page-wrap .df-header-control {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* Light theme - Dongfeng & Forthing only */
html[data-theme="light"] .df-page-wrap {
    background: #f4f6fa !important;
    color: #172033 !important;
}
html[data-theme="light"] .df-page-wrap #navbar {
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid #e2e8f0;
}
html[data-theme="light"] .df-page-wrap #navbar nav,
html[data-theme="light"] .df-page-wrap #navbar a,
html[data-theme="light"] .df-page-wrap #navbar button {
    color: #172033;
}
html[data-theme="light"] .df-page-wrap #mobileMenu {
    background: #fff !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] .df-page-wrap .glass-card {
    background: rgba(255,255,255,.96) !important;
    border-color: #dce3ed !important;
    color: #172033 !important;
}
html[data-theme="light"] .df-page-wrap .glass-card .text-white,
html[data-theme="light"] .df-page-wrap .glass-card h3 {
    color: #172033 !important;
}
html[data-theme="light"] .df-page-wrap .glass-card .text-gray-300,
html[data-theme="light"] .df-page-wrap .glass-card .text-gray-400 {
    color: #586579 !important;
}
html[data-theme="light"] .df-page-wrap .glass-card .bg-white\/5 {
    background: #edf1f7 !important;
}
html[data-theme="light"] .df-page-wrap .glass-card .border-white\/10 {
    border-color: #d8e0eb !important;
}
html[data-theme="light"] .df-page-wrap .df-header-control {
    background: #edf1f7;
    color: #172033;
    border-color: #cbd5e1;
}
html[data-theme="light"] .df-page-wrap #mobileMenu a {
    color: #172033 !important;
}
html[data-theme="light"] .df-page-wrap .modal-backdrop {
    background: rgba(20,30,45,.55);
}

/* Complete light theme sections */
html[data-theme="light"] .df-page-wrap #models,
html[data-theme="light"] .df-page-wrap #services {
    background: #edf1f7 !important;
    border-color: #dce3ed !important;
}
html[data-theme="light"] .df-page-wrap #maintenance {
    background: #f8fafc !important;
}
html[data-theme="light"] .df-page-wrap #models h2,
html[data-theme="light"] .df-page-wrap #maintenance h2,
html[data-theme="light"] .df-page-wrap #services h2,
html[data-theme="light"] .df-page-wrap #services h3 {
    color: #172033 !important;
}
html[data-theme="light"] .df-page-wrap #models p,
html[data-theme="light"] .df-page-wrap #maintenance p,
html[data-theme="light"] .df-page-wrap #services p {
    color: #586579;
}
html[data-theme="light"] .df-page-wrap #models .filter-btn:not(.bg-rose-600) {
    background: #fff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
html[data-theme="light"] .df-page-wrap footer {
    background: #e5eaf2 !important;
    border-color: #d1d9e5 !important;
    color: #475569 !important;
}
html[data-theme="light"] .df-page-wrap footer .text-gray-400 {
    color: #64748b !important;
}
html[data-theme="light"] .df-page-wrap #serviceModal > div {
    background: #fff !important;
    color: #172033 !important;
}
html[data-theme="light"] .df-page-wrap #serviceModal h3,
html[data-theme="light"] .df-page-wrap #serviceModal button {
    color: #172033;
}
html[data-theme="light"] .df-page-wrap #serviceModal input {
    background: #f1f5f9 !important;
    color: #172033 !important;
    border-color: #cbd5e1 !important;
}
html[data-theme="light"] .df-page-wrap #serviceModal input::placeholder {
    color: #64748b;
}

/* Mobile navbar layout fix */
@media (max-width: 640px) {
    .df-page-wrap #navbar > div:first-child > div:first-child > a[href^="tel:"] {
        display: none !important;
    }
    .df-page-wrap .df-header-tools > a:first-child img {
        max-width: 48px;
    }
    .df-page-wrap #mobileMenuBtn {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 60;
    }
    .df-page-wrap .df-header-tools {
        gap: 5px;
    }
}
