﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* BMW Corporate palette */
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --bmw-blue: #1c69d4;
    --bmw-blue-dark: #0653b6;
    --bmw-blue-light: #e8f0fa;
    --bmw-anthracite: #262626;
    --bmw-gray-900: #333333;
    --bmw-gray-700: #555555;
    --bmw-gray-500: #888888;
    --bmw-gray-300: #cccccc;
    --bmw-gray-200: #e6e6e6;
    --bmw-gray-100: #f6f6f6;

    /* Semantic tokens */
    --bmw-blue-link: var(--bmw-blue);
    --nav-bg: var(--bmw-anthracite);
    --nav-text: rgba(255, 255, 255, 0.88);
    --nav-text-hover: #ffffff;
    --sidebar-bg: var(--bmw-gray-100);
    --surface: #ffffff;
    --surface-muted: var(--bmw-gray-100);
    --border: var(--bmw-gray-200);
    --border-strong: var(--bmw-gray-300);
    --text: var(--bmw-anthracite);
    --text-muted: var(--bmw-gray-700);
    --success: #2e7d32;
    --error: #c62828;
    --warning: #f57c00;

    /* Shared radii & shadows */
    --radius-sm: 2px;
    --radius-md: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--surface);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.page-title,
.section-title,
.logo-text strong,
.site-footer-logo-text strong {
    font-weight: 600;
    letter-spacing: -0.02em;
}

a { color: var(--bmw-blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Search icon */
.icon-search {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== HEADER ===== */
.site-header {
    border-bottom: none;
    background: var(--surface);
    position: relative;
    z-index: 400;
    overflow: visible;
}

.utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
    gap: 1rem;
    flex-wrap: wrap;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.utility-links a {
    font-size: 11px;
    font-weight: 700;
    color: var(--bmw-gray-700);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.utility-links a:hover { color: var(--bmw-blue); text-decoration: none; }

.utility-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #f6f8fa 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    line-height: 1.2;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.utility-user-chip:hover {
    border-color: var(--bmw-blue);
    box-shadow: 0 2px 6px rgba(28, 105, 212, 0.12);
    text-decoration: none;
}
.utility-user-chip__label {
    font-size: 10px;
    font-weight: 600;
    color: #65676b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.utility-user-chip__label::after {
    content: ":";
    margin-left: 1px;
}
.utility-user-chip__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--bmw-blue-dark);
}

.btn-cta {
    background: var(--bmw-blue) !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-sm);
    font-size: 11px !important;
    transition: background 0.15s ease;
}

.btn-cta:hover {
    background: var(--bmw-blue-dark) !important;
    text-decoration: none !important;
}

.header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 20px 8px;
    min-height: 115px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    max-width: 52%;
}

.logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.logo-text strong {
    font-size: 22px;
    color: #222;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-car {
    max-height: 120px;
    width: auto;
    max-width: 55%;
    object-fit: contain;
    object-position: right center;
}

.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--nav-bg);
    border-bottom: 3px solid var(--bmw-blue);
    padding: 0 20px;
    min-height: 44px;
    position: relative;
    z-index: 400;
    overflow: visible;
}

.main-nav-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    min-width: 0;
    padding: 0;
    overflow: visible;
}

.main-nav-search-wrap {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    align-self: center;
}

.nav-search-live {
    position: relative;
    z-index: 420;
}

.nav-search {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-header .main-nav form.nav-search {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 28px !important;
    max-height: 28px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.site-header .nav-search input[type="search"] {
    display: block !important;
    height: 28px !important;
    min-height: 0 !important;
    max-height: 28px !important;
}

.nav-search input[type="search"] {
    flex: 1 1 auto;
    width: 1px;
    min-width: 0;
    height: 28px;
    max-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: none;
    font-size: 11px;
    line-height: 28px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.nav-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nav-search button {
    flex: 0 0 32px;
    width: 32px;
    height: 28px;
    max-height: 28px;
    padding: 0;
    border: 1px solid var(--bmw-blue);
    background: var(--bmw-blue);
    cursor: pointer;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-search button:hover {
    background: var(--bmw-blue-dark);
    border-color: var(--bmw-blue-dark);
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(360px, 92vw);
    max-height: min(70vh, 480px);
    overflow: auto;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.nav-search-dropdown-status {
    padding: 12px 14px;
    font-size: 12px;
    color: #65676b;
}

.nav-search-dropdown-results {
    padding: 6px 0 8px;
}

.nav-search-group + .nav-search-group {
    border-top: 1px solid #eef0f3;
    margin-top: 4px;
    padding-top: 4px;
}

.nav-search-group__label {
    margin: 0;
    padding: 8px 14px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #65676b;
}

.nav-search-group__items {
    display: flex;
    flex-direction: column;
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #1c1e21;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-search-item:hover {
    background: var(--bmw-blue-light);
}

.nav-search-item__thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-search-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--bmw-blue);
}

.nav-search-item__placeholder--forum {
    background: #5c6bc0;
}

.nav-search-item__placeholder--user {
    background: #00897b;
}

.nav-search-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-search-item__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-item__subtitle {
    font-size: 11px;
    color: #65676b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-group__more {
    display: block;
    padding: 6px 14px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bmw-blue);
    text-decoration: none;
}

.nav-search-group__more:hover {
    text-decoration: underline;
}

.main-nav a {
    padding: 8px 10px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    margin: 0;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
    color: var(--nav-text-hover);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.main-nav a.active {
    border-color: transparent;
    background: var(--bmw-blue);
    color: #fff;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    z-index: 410;
}
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 248px;
    height: 10px;
    display: none;
}
.nav-dropdown:hover::after,
.nav-dropdown.is-open::after {
    display: block;
}
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav-dropdown.is-active .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
    background: var(--bmw-blue);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(15, 76, 140, 0.35);
}
.nav-dropdown.is-active .nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger:hover {
    background: var(--bmw-blue-dark);
    border-color: rgba(255, 255, 255, 0.3);
}
.nav-dropdown-main {
    padding: 8px 8px 8px 10px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.03em;
    border: none;
    display: flex;
    align-items: center;
    border-radius: 0;
    background: transparent;
    transition: color 0.18s ease;
    white-space: nowrap;
}
.nav-dropdown-main:hover {
    color: var(--nav-text-hover);
    background: transparent;
    text-decoration: none;
}
.nav-dropdown.is-active .nav-dropdown-main,
.nav-dropdown.is-open .nav-dropdown-main {
    color: #fff;
}
.nav-dropdown-caret {
    padding: 0 9px 0 7px;
    min-height: 32px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}
.nav-dropdown-trigger:hover .nav-dropdown-caret {
    background: rgba(255, 255, 255, 0.06);
}
.nav-dropdown.is-active .nav-dropdown-caret,
.nav-dropdown.is-open .nav-dropdown-caret {
    color: #fff;
    border-left-color: rgba(255, 255, 255, 0.28);
}
.nav-dropdown-caret-icon {
    display: block;
    width: 7px;
    height: 7px;
    margin-top: -2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s ease, margin 0.22s ease;
}
.nav-dropdown.is-open .nav-dropdown-caret-icon {
    transform: rotate(-135deg);
    margin-top: 2px;
}
@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .nav-dropdown-caret-icon {
        transform: rotate(-135deg);
        margin-top: 2px;
    }
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 248px;
    padding: 4px 0 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}
.nav-dropdown-menu-panel {
    padding: 6px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}
.nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    color: #1c1e21;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    margin: 0;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
    background: var(--bmw-blue-light);
    color: var(--bmw-blue-dark);
}

/* ===== LAYOUT ===== */
.site-wrapper {
    display: flex;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px 24px;
    gap: 20px;
    align-items: flex-start;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-panel {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    padding: 0;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bmw-anthracite);
    margin: 0;
    padding: 0 12px;
    height: 38px;
    line-height: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--bmw-gray-200);
    letter-spacing: 0.04em;
}

.category-list {
    list-style: none;
    padding: 4px 0;
}

.category-list li {
    border-bottom: 1px solid #e8e8e8;
}

.category-list li:last-child { border-bottom: none; }

.category-list a {
    display: block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.category-list a:hover {
    color: var(--bmw-blue);
    background: #fff;
    text-decoration: none;
}

.category-list__child a {
    padding-left: 22px;
    font-size: 10px;
    font-weight: 500;
    color: #666;
}

.category-list__child a::before {
    content: "â€º ";
    color: var(--bmw-blue);
}

.category-list--tree > li:last-child,
.category-list--tree > .cat-filter-group:last-child {
    border-bottom: none;
}

.category-list--tree .cat-filter-group {
    border-bottom: 1px solid #e8e8e8;
}

.category-list--tree .cat-filter-row {
    display: flex;
    align-items: stretch;
}

.category-list--tree .cat-filter-link--sidebar {
    flex: 1;
    display: block;
    padding: 5px 12px;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.category-list--tree .cat-filter-link--sidebar:hover {
    color: var(--bmw-blue);
    background: #fff;
    text-decoration: none;
}

.category-list--tree .cat-filter-toggle--sidebar {
    width: 28px;
    padding: 0;
    border: none;
    border-left: 1px solid #e8e8e8;
    background: #efefef;
    color: #444;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.category-list--tree .cat-filter-toggle--sidebar:hover {
    background: #fff;
    color: var(--bmw-blue);
}

.category-list--tree .cat-filter-children--sidebar {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: none;
}

.category-list--tree .cat-filter-children--sidebar[hidden] {
    display: none !important;
}

.category-list--tree .cat-filter-group--nested .cat-filter-link--sidebar {
    font-size: 10px;
    font-weight: 500;
    text-transform: none;
}

.category-list a.active-filter,
.category-list--tree .cat-filter-link--sidebar.active-filter {
    color: #fff !important;
    background: var(--bmw-blue) !important;
}

.category-list a.active-filter:hover,
.category-list--tree .cat-filter-link--sidebar.active-filter:hover {
    color: #fff !important;
    background: var(--bmw-blue-dark, #1c4da3) !important;
}

.marketplace-subcats {
    margin-bottom: 14px;
}

.btn-sidebar {
    display: block;
    margin: 12px;
    padding: 8px 10px;
    background: var(--bmw-blue);
    color: #fff !important;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 2px;
    text-decoration: none !important;
}

.btn-sidebar:hover {
    background: var(--bmw-blue-dark);
}

.btn-sidebar-secondary {
    background: #555;
    margin-top: 0;
}

.btn-sidebar-secondary:hover {
    background: #333;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ===== MARKETPLACE SEARCH ===== */
.marketplace-search {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.marketplace-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 100%;
}

.marketplace-search-form select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    min-width: 120px;
    border-right: none;
}

.marketplace-search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 13px;
    min-width: 0;
}

.btn-search {
    padding: 8px 16px;
    background: var(--bmw-blue);
    border: 1px solid var(--bmw-blue-dark);
    color: #fff;
    cursor: pointer;
}

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

.advanced-search {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--bmw-blue);
}

.results-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.feed-category-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}

.home-blog-teaser {
    font-size: 13px;
    color: #444;
    margin: 0 0 16px;
}

.home-blog-teaser a {
    font-weight: 600;
}

/* Blog */
.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.blog-category-filter a,
.blog-category-filter .cat-filter-link {
    padding: 4px 10px;
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
    background: #fafafa;
}

.blog-category-filter a:hover,
.blog-category-filter .cat-filter-link:hover {
    color: var(--bmw-blue);
    text-decoration: none;
}

.blog-category-filter--tree .cat-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.blog-category-filter--tree .cat-filter-row {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
}

.blog-category-filter--tree .cat-filter-row > .cat-filter-link {
    border-right: none;
}

.blog-category-filter--tree .cat-filter-toggle {
    padding: 0 9px;
    border: 1px solid var(--border);
    border-left: none;
    background: #efefef;
    color: #444;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.blog-category-filter--tree .cat-filter-toggle:hover {
    background: #fff;
    color: var(--bmw-blue);
}

.blog-category-filter--tree .cat-filter-toggle-icon {
    display: inline-block;
    min-width: 10px;
    text-align: center;
    font-weight: 700;
}

.blog-category-filter--tree .cat-filter-children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 10px;
    border-left: 2px solid #e0e0e0;
}

.blog-category-filter--tree .cat-filter-children[hidden] {
    display: none !important;
}

.blog-category-filter--tree .cat-filter-link--sub {
    text-transform: none;
    font-weight: 500;
    font-size: 10px;
}

.blog-category-filter--tree .cat-filter-group--nested {
    width: 100%;
}

.blog-category-filter--tree .cat-filter-group--nested .cat-filter-row > .cat-filter-link--sub {
    text-transform: none;
}

.blog-post-hero {
    margin: 16px 0;
}

.blog-post-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.blog-post-excerpt {
    font-size: 16px;
    color: #555;
    font-style: italic;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.blog-post-content {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.rich-content th,
.rich-content td {
    border: 1px solid var(--border, #ddd);
    padding: 8px 10px;
    text-align: left;
}

.rich-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--bmw-blue, #1c69d4);
    background: #f7f9fc;
}

.rich-content pre {
    overflow-x: auto;
    padding: 12px;
    background: #f4f4f4;
    border-radius: 4px;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 1.25rem 0 0.75rem;
}

.content-embed {
    margin: 1.25rem 0;
    border: 1px solid rgba(38, 38, 38, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fb;
    box-shadow: 0 2px 10px rgba(38, 38, 38, 0.05);
}

.content-embed--gallery {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.content-embed__header,
.content-embed__footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
}

.content-embed--gallery .content-embed__header {
    padding: 0 0 10px;
    gap: 0;
}

.content-embed__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1c69d4;
}

.content-embed__title,
.content-embed__title-link {
    font-size: 1rem;
    color: #222;
}

.content-embed--gallery .content-embed__title-link {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.content-embed__title-link {
    text-decoration: none;
}

.content-embed__title-link:hover {
    color: #1c69d4;
    text-decoration: underline;
}

.content-embed__meta {
    font-size: 0.82rem;
    color: #666;
}

.content-embed__meta a {
    color: #1c69d4;
    text-decoration: none;
}

.content-embed__meta a:hover {
    text-decoration: underline;
}

.content-embed-gallery__single {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(38, 38, 38, 0.08);
    background: rgba(38, 38, 38, 0.03);
}

.content-embed-gallery__single img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 0;
}

.content-embed-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 6px;
    padding: 0;
    background: transparent;
}

.content-embed-gallery__cell {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(38, 38, 38, 0.08);
    cursor: pointer;
    overflow: hidden;
    background: rgba(38, 38, 38, 0.04);
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.content-embed-gallery__cell:hover {
    border-color: rgba(28, 105, 212, 0.35);
    box-shadow: 0 2px 8px rgba(38, 38, 38, 0.1);
}

.content-embed-gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.content-embed--video .content-embed__player-wrap {
    background: #000;
}

.content-embed__player {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #000;
}

.content-embed__poster-link {
    position: relative;
    display: block;
    background: #111;
}

.content-embed__poster {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 0;
}

.content-embed__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 2rem;
}

@media (max-width: 640px) {
    .content-embed-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    }
}

.blog-back {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.engagement-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 12px 0 18px;
    padding: 10px 14px;
    background: #f6f8fb;
    border: 1px solid var(--border, #e4e8ee);
    border-radius: 8px;
}

.engagement-bar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    color: #555;
    min-width: 0;
}

.engagement-bar__author {
    font-weight: 600;
    color: #333;
}

.engagement-bar__date {
    color: #666;
}

.engagement-bar__sep {
    color: #aaa;
}

.engagement-bar__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-left: auto;
}

.engagement-bar__stat,
.engagement-bar__like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
}

.engagement-bar__like {
    border: 1px solid #d5dbe3;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.engagement-bar__like:hover {
    border-color: #1c69d4;
    color: #1c69d4;
}

.engagement-bar__like.is-liked {
    background: #fde8ea;
    border-color: #e57373;
    color: #c62828;
}

.engagement-bar__icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.engagement-bar__icon--views {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 5C7 5 2.7 8.1 1 12c1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E");
}

.engagement-bar__icon--heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c62828'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.engagement-bar__like:not(.is-liked) .engagement-bar__icon--heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.engagement-bar__label {
    color: #777;
    font-size: 12px;
}

@media (max-width: 560px) {
    .engagement-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .engagement-bar__stats {
        margin-left: 0;
        justify-content: flex-end;
    }
}

.listing-likes {
    color: #c62828;
}

.site-wrapper--none {
    display: block;
    padding: 16px 20px 24px;
}

.site-wrapper--none .main-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 4px;
}

.main-content--wall {
    max-width: none;
    padding: 0;
}
.site-wrapper--wall {
    display: block;
    max-width: none;
}

.sidebar--home {
    width: 240px;
}

.sidebar--content {
    width: 240px;
}

.content-sidebar-panel {
    padding-bottom: 8px;
}

.content-sidebar-info {
    padding: 14px 12px;
    border-bottom: 1px solid #e8e8e8;
    background: linear-gradient(180deg, #fff 0%, #f3f8fd 100%);
}

.content-sidebar-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #222;
}

.content-sidebar-desc {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.45;
    color: #666;
}

.content-sidebar-stat {
    margin: 0;
    font-size: 11px;
    color: #555;
}

.content-sidebar-stat strong {
    font-size: 18px;
    color: var(--bmw-blue-dark);
    margin-right: 4px;
}

.content-sidebar-clear {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
}

.content-sidebar-widget {
    padding: 10px 0 4px;
    border-bottom: 1px solid #e8e8e8;
}

.content-sidebar-widget:last-child {
    border-bottom: none;
}

.content-sidebar-widget__title {
    margin: 0;
    padding: 0 12px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #444;
}

.content-sidebar-categories {
    margin: 0;
}

.content-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 10px 10px;
}

.content-sidebar-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 10px;
    font-weight: 600;
    color: #444;
    text-decoration: none !important;
    line-height: 1.3;
}

.content-sidebar-tag:hover {
    border-color: var(--bmw-blue);
    color: var(--bmw-blue);
}

.content-sidebar-tag.is-active {
    background: var(--bmw-blue);
    border-color: var(--bmw-blue);
    color: #fff !important;
}

.content-sidebar-tag__count {
    font-size: 9px;
    opacity: 0.75;
}

.content-sidebar-media-cats {
    display: flex;
    flex-direction: column;
}

.content-sidebar-media-cats__all,
.content-sidebar-media-cats__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-decoration: none !important;
    border-top: 1px solid #ececec;
}

.content-sidebar-media-cats__all:hover,
.content-sidebar-media-cats__link:hover {
    background: #fff;
    color: var(--bmw-blue);
}

.content-sidebar-media-cats__link.is-child {
    padding-left: 22px;
    font-size: 10px;
    font-weight: 500;
    color: #666;
}

.content-sidebar-media-cats__link.is-child::before {
    content: "â€º ";
    color: var(--bmw-blue);
}

.content-sidebar-media-cats__all.is-active,
.content-sidebar-media-cats__link.is-active {
    background: var(--bmw-blue);
    color: #fff !important;
}

.content-sidebar-media-cats__count {
    font-size: 9px;
    opacity: 0.8;
}

.gallery-list-filter-note {
    margin-bottom: 14px;
}

.home-sidebar-panel {
    padding-bottom: 8px;
}

.home-stat {
    text-align: center;
    padding: 16px 12px 14px;
    border-bottom: 1px solid #e8e8e8;
    background: linear-gradient(180deg, #fff 0%, #f3f8fd 100%);
}

.home-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--bmw-blue-dark);
    line-height: 1.1;
}

.home-stat__label {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.home-sidebar-block {
    padding: 10px 0 4px;
    border-bottom: 1px solid #e8e8e8;
}

.home-sidebar-title {
    margin: 0;
    padding: 0 12px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-sidebar-title a {
    color: #333;
    text-decoration: none;
}

.home-sidebar-title a:hover {
    color: var(--bmw-blue);
    text-decoration: none;
}

.home-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-sidebar-list li {
    border-top: 1px solid #ececec;
}

.home-sidebar-list a {
    display: block;
    padding: 7px 12px;
    text-decoration: none;
    color: inherit;
}

.home-sidebar-list a:hover {
    background: #fff;
    text-decoration: none;
}

.home-sidebar-list__title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
}

.home-sidebar-list__meta {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #888;
}

.home-sidebar-empty {
    padding: 8px 12px 10px;
    font-size: 11px;
    color: #888;
}

/* Home page */
.home-page {
    padding: 0;
}

.home-gallery-slider {
    position: relative;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    background: #111;
    overflow: hidden;
}

.home-gallery-slider--empty {
    background: #f7f7f7;
    color: #666;
    padding: 48px 20px;
    text-align: center;
}

.home-gallery-slider__viewport {
    position: relative;
    aspect-ratio: 16 / 7;
    min-height: 220px;
    max-height: 420px;
    background: #111;
}

.home-gallery-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
    display: block;
    text-decoration: none;
}

.home-gallery-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-gallery-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery-slider__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 18px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.home-gallery-slider__caption em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

.home-gallery-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 48px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.home-gallery-slider__nav:hover {
    background: rgba(26, 122, 217, 0.85);
}

.home-gallery-slider__nav--prev { left: 0; border-radius: 0 4px 4px 0; }
.home-gallery-slider__nav--next { right: 0; border-radius: 4px 0 0 4px; }

.home-gallery-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.home-gallery-slider__dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}

.home-gallery-slider__dot.is-active {
    background: #fff;
}

.home-gallery-slider__all {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
}

.home-gallery-slider__all:hover {
    background: var(--bmw-blue);
}

.home-popular {
    display: grid;
    gap: 28px;
}

.home-popular-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.home-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-popular-card {
    display: flex;
    gap: 12px;
    border: 1px solid var(--border);
    background: #fafafa;
    min-height: 110px;
}

.home-popular-card__image {
    flex: 0 0 120px;
    display: block;
    overflow: hidden;
    background: #ddd;
}

.home-popular-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-popular-card__body {
    padding: 10px 12px 10px 0;
    min-width: 0;
}

.home-popular-card__title {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.35;
}

.home-popular-card__title a {
    color: #222;
    text-decoration: none;
}

.home-popular-card__title a:hover {
    color: var(--bmw-blue);
}

.home-popular-card__meta {
    margin: 0 0 6px;
    font-size: 10px;
    color: #888;
}

.home-popular-card__excerpt {
    margin: 0;
    font-size: 11px;
    color: #666;
    line-height: 1.45;
}

.home-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding-top: 0;
    border-top: none;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

.tag-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #eef4fc;
    border: 1px solid #c5daf5;
    color: var(--bmw-blue-dark);
    border-radius: 2px;
    text-decoration: none !important;
}

.tag-pill:hover {
    background: var(--bmw-blue);
    color: #fff !important;
    border-color: var(--bmw-blue);
}

.listing-tags-block {
    margin: 16px 0;
}

.listing-tags-block h2 {
    font-size: 14px;
    margin-bottom: 8px;
}

.tag-picker-fieldset {
    border: 1px solid var(--border, #ddd);
    border-radius: 4px;
    padding: 12px 14px;
    margin: 12px 0;
}

.tag-picker-fieldset legend {
    font-weight: 600;
    padding: 0 6px;
}

.tag-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.tag-picker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f9f9f9;
}

.tag-picker-item:has(input:checked) {
    border-color: var(--bmw-blue);
    background: #eef4fc;
}

.tag-picker-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.tag-picker-empty {
    color: #666;
    font-size: 13px;
}

.blog-category-filter .active-filter,
.blog-category-filter .cat-filter-link.active-filter {
    background: var(--bmw-blue);
    color: #fff !important;
    border-color: var(--bmw-blue-dark);
}

/* ===== LISTING CARDS (blog style) ===== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.listing-card {
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.listing-card-image {
    display: block;
    height: 140px;
    overflow: hidden;
    background: #e8e8e8;
    border-bottom: 1px solid #eee;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-body {
    padding: 10px 12px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.listing-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.listing-title a {
    color: var(--bmw-blue-link);
    text-decoration: none;
}

.listing-title a:hover { text-decoration: underline; }

.listing-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--bmw-blue);
    margin-bottom: 6px;
    display: inline-block;
}

.listing-excerpt {
    font-size: 12px;
    color: #555;
    line-height: 1.45;
    margin-bottom: 6px;
    flex: 1;
}

.listing-price-tag {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.read-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--bmw-blue);
    margin-bottom: 8px;
}

.listing-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #888;
}

.listing-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #555;
}

.author-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ccc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.listing-footer-date::before { content: "Â· "; }
.listing-views::before { content: "Â· "; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--bmw-gray-200);
    color: var(--text);
    transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--bmw-gray-300); text-decoration: none; color: var(--text); }
.btn-primary { background: var(--bmw-blue); color: #fff; }
.btn-primary:hover { background: var(--bmw-blue-dark); color: #fff; }
.btn-block { display: block; text-align: center; width: 100%; }
.btn-small { padding: 4px 8px; font-size: 11px; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }

/* ===== ALERTS ===== */
.alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 13px;
}

.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: var(--error); border: 1px solid #ef9a9a; }

/* ===== LISTING DETAIL ===== */
.listing-detail h1 { color: #222; margin: 8px 0; font-size: 22px; }
.breadcrumb { font-size: 12px; color: #888; margin-bottom: 8px; }
.listing-detail-meta { display: flex; gap: 12px; font-size: 12px; color: #888; margin-bottom: 16px; }
.listing-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.listing-gallery img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #f5f5f5;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}
.listing-price-large { font-size: 24px; font-weight: 700; color: var(--bmw-blue-dark); margin-bottom: 12px; }
.listing-description { border-top: 1px solid var(--border); padding-top: 16px; }
.listing-description h2 { font-size: 16px; margin-bottom: 8px; }

/* ===== FORMS ===== */
.page-section { max-width: 100%; }
.section-header h1 { font-size: 18px; color: #222; margin-bottom: 8px; }

.auth-form, .listing-form {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form label, .listing-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 13px;
}

.auth-form input, .listing-form input,
.auth-form textarea, .listing-form textarea,
.auth-form select, .listing-form select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    font: inherit;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { color: #666; margin-bottom: 12px; font-size: 13px; }
.auth-alt { margin-top: 12px; font-size: 13px; }
.auth-hint { margin: 0 0 1rem; color: #666; font-size: 0.92rem; }

.inline-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.empty-state {
    padding: 24px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid var(--border);
    color: #666;
}

/* ===== TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.data-table th, .data-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}

.data-table th { background: #efefef; }
.actions-cell { white-space: nowrap; }
.inline-form { display: inline; }

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending { background: #fff3e0; color: var(--warning); }
.status-active { background: #e8f5e9; color: var(--success); }
.status-sold { background: #e3f2fd; color: #1565c0; }
.status-rejected { background: #ffebee; color: var(--error); }

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 24px;
    background: linear-gradient(180deg, var(--bmw-anthracite) 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.75);
    border-top: 3px solid var(--bmw-blue);
    font-size: 13px;
    line-height: 1.55;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 28px;
}

.site-footer-brand {
    min-width: 0;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 14px;
}

.site-footer-logo:hover {
    text-decoration: none;
    color: #fff;
    opacity: 0.92;
}

.site-footer-logo-img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-footer-logo-text strong {
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.site-footer-logo-text span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.site-footer-mission {
    margin: 0;
    max-width: 36em;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

.site-footer-mission em {
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    font-weight: 600;
}

.site-footer-heading {
    margin: 0 0 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7aa3cc;
}

.site-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-list li + li {
    margin-top: 7px;
}

.site-footer-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
}

.site-footer-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 14px 20px;
    font-size: 0.78rem;
    color: #7a95b5;
}

.site-footer-bottom p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .listing-grid { grid-template-columns: repeat(2, 1fr); }
    .home-popular-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-wrapper { flex-direction: column; padding: 12px; }
    .sidebar, .sidebar--home, .sidebar--content { width: 100%; }
    .home-gallery-slider__viewport {
        aspect-ratio: 16 / 10;
        min-height: 180px;
        max-height: none;
    }
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 16px 22px;
    }
    .listing-grid { grid-template-columns: 1fr; }
    .listing-detail-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .header-banner { min-height: auto; padding: 8px 12px; }
    .logo-img { width: 64px; height: 64px; }
    .logo-text strong { font-size: 18px; }
    .header-car { max-height: 80px; }
    .utility-bar { padding: 6px 12px; }
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px;
    }
    .main-nav-links {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .nav-search {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }
    .main-nav-search-wrap {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }
    .main-nav a { padding: 7px 8px; font-size: 10px; }
    .marketplace-search-form { flex-wrap: wrap; }
    .marketplace-search-form select,
    .marketplace-search-form input { width: 100%; border-right: 1px solid #ccc; }
}

/* Forum: see assets/forum-phpbb.css (loaded on forum pages) */
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; margin-bottom: 12px; color: #666; }
.breadcrumb a { color: var(--bmw-blue); }

/* Wall: see assets/wall.css (loaded on wall/profile pages) */
