* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================================
   SEO CONTENT SECTION
   =================================================== */
.seo-content {
    padding: 50px 0 40px;
    border-top: 2px solid #e5e7eb;
    background: #fafafa;
}
/* Górna część – lead tekst + tagi */
.seo-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
    align-items: start;
}
.seo-lead h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}
.seo-lead p {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}
/* Tagi / frazy kluczowe */
.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: start;
}
.seo-tags span {
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
/* Lokalizacje – 4 kolumny */
.seo-locations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}
.seo-location-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.seo-location-item strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}
.seo-location-item span,
.seo-location-item a {
    font-size: 0.82rem;
    color: #6b7280;
    text-decoration: none;
    line-height: 1.5;
}
.seo-location-item a:hover {
    color: #374151;
    text-decoration: underline;
}
/* FAQ */
.seo-faq {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.seo-faq-item {
    padding: 18px 24px 18px 0;
    border-bottom: 1px solid #e5e7eb;
}
.seo-faq-item:nth-child(even) {
    padding-left: 24px;
    padding-right: 0;
    border-left: 1px solid #e5e7eb;
}
.seo-faq-item:nth-last-child(-n+2) {
    border-bottom: none;
}
.seo-faq-item h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    line-height: 1.4;
}
.seo-faq-item p {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}
.seo-faq-item a {
    color: #374151;
    text-decoration: underline;
}
/* Responsywność */
@media (max-width: 900px) {
    .seo-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .seo-locations {
        grid-template-columns: repeat(2, 1fr);
    }
    .seo-faq {
        grid-template-columns: 1fr;
    }
    .seo-faq-item:nth-child(even) {
        padding-left: 0;
        border-left: none;
    }
    .seo-faq-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e5e7eb;
    }
    .seo-faq-item:last-child {
        border-bottom: none;
    }
}
@media (max-width: 600px) {
    .seo-locations {
        grid-template-columns: 1fr 1fr;
    }
}
/* ===================================================
   / SEO CONTENT SECTION
   =================================================== */


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #1f2937;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
}

.search-container::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" stroke="%239ca3af" fill="none" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

#global-search {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f9fafb;
}

#global-search:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#global-search::placeholder {
    color: #9ca3af;
}

.btn-primary {
    background: #374151;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1f2937;
}

.contact-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 250;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
}

.contact-bubble .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin: auto;
}

.contact-bubble .icon svg {
    width: 100%;
    height: 100%;
    display: block;      
    margin: 0 auto;
}

.contact-bubble:hover {
    transform: translateY(-2px);
}

.used-offer-cta {
    display: none;
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    text-align: center;
}

.used-offer-cta.is-visible {
    display: block;
}

.used-offer-cta p {
    margin-bottom: 12px;
    color: #374151;
    font-size: 1.05rem;
    font-weight: 600;
}

.used-offer-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #374151;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.used-offer-cta a:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

/* Filter Type Group — Typ + Od ręki checkbox */
.filter-type-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-type-group>label:first-of-type {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.od-reki-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.85rem !important;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
    background: white;
    user-select: none;
}

.od-reki-checkbox:hover {
    border-color: #f59e0b;
    color: #d97706;
    background: #fffbeb;
}

.od-reki-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #f59e0b;
}

.od-reki-checkbox input[type="checkbox"]:checked~svg {
    color: #f59e0b;
}

.od-reki-checkbox:has(input:checked) {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.od-reki-checkbox svg {
    color: #9ca3af;
    flex-shrink: 0;
}

/* Listings Header */
.listings-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.listings-count {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Filters */
.filters {
    background: linear-gradient(to bottom, #fff, #f9fafb);
    padding: 25px;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.filters-header h2 {
    font-size: 1.3rem;
}

.filters-header button {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.filters-header button:hover {
    background: #374151;
    color: white;
    border-color: #374151;
}

/* Active Filters Display */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    min-height: 20px;
}

.active-filters:empty {
    display: none;
}

.filter-tag {
    background: #374151;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.2s;
}

.filter-tag .remove:hover {
    color: #ff4444;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filters-grid>div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-grid label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-grid select,
.filters-grid input,
.filters-grid button {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.filters-grid select:hover,
.filters-grid input:hover,
.filters-grid button:hover {
    border-color: #9ca3af;
}

.filters-grid select:focus,
.filters-grid input:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

/* Aktywny filtr — wizualne oznaczenie wybranej wartości */
.filters-grid select.filter-active,
.filters-grid input.filter-active,
.filters-grid button.filter-active {
    background: #f0f4ff;
    border-color: #374151;
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.08);
}

.adv-btn {
    background: white;
    border: 2px solid #374151;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.adv-btn:hover {
    background: #374151;
    color: white;
}

.advanced {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
}

.advanced.active {
    max-height: 500px;
    margin-top: 20px;
}

/* Used-only filters (rok, przebieg — disabled na non-uzywane) */
.used-only-section {
    margin-top: 0;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.used-only-filter.filter-disabled {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.used-only-filter.filter-disabled label {
    color: #9ca3af;
}

.used-only-filter.filter-disabled select,
.used-only-filter.filter-disabled input {
    background: #f3f4f6;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.common-filters {
    padding-bottom: 0;
}

/* Listings */
.listings {
    padding: 40px 0;
}

.listings h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    margin-top: 30px;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.car-img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.car-content {
    padding: 20px;
}

.car-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.car-year {
    color: #6b7280;
    margin-bottom: 10px;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.car-specs>div {
    display: flex;
    align-items: center;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.car-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #374151;
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(243, 244, 246, 0.8);
    transition: all 0.3s ease;
    z-index: 1000;
    line-height: 1;
}

.close:hover {
    color: #374151;
    background: #e5e7eb;
}

.modal-content h2 {
    margin-bottom: 10px;
    padding-right: 30px;
    font-size: 1.6rem;
    color: #1f2937;
}

.modal-content h3 {
    margin: 5px 0 15px 0;
    padding: 0;
    font-size: 1.1rem;
    color: #374151;
    font-weight: 600;
}

.modal-subtitle {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.95rem;
    cursor: pointer;
}

.modal-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.modal-content button[type="submit"] {
    background: #374151;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 1rem;
    transition: 0.3s;
}

.modal-content button[type="submit"]:hover {
    background: #1f2937;
}

.modal-content button:not([type="submit"]) {
    background: #374151;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

#price-ranges>div {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: 0.3s;
}

#price-ranges>div:hover {
    background: #f3f4f6;
    border-color: #374151;
}

/* Footer */
.footer {
    background: #2d2d2d;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid>div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
    align-self: flex-start;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0 !important;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    padding-left: 0 !important;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer a:hover {
    color: white;
    padding-left: 3px;
}

/* Owalny przycisk telefonu */
.btn-phone {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 22px !important;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding-left: 22px !important;
}

.footer-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 3px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 960px) {
    .header-content {
        flex-wrap: nowrap;
        padding: 12px 0;
    }

    .logo {
        height: 40px;
    }

    .search-container,
    .desktop-cta {
        display: none;
    }

    #global-search {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .btn-primary {
        white-space: nowrap;
    }

    .contact-bubble {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    /* Mobile nav search */
    .mobile-nav #global-search-mobile {
        display: block;
    }

    .category-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cat-chip {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .cat-chip-toggle {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .listings-header {
        flex-direction: column;
        gap: 5px;
    }

    .listings h2 {
        font-size: 1.5rem;
    }

    .filters {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .filters-header {
        margin-bottom: 20px;
    }

    .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .filter-type-group {
        grid-column: span 2;
    }

    .cars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Modals ogólne */
    .modal {
        align-items: flex-end;
    }

    .modal-content {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }

    /* Modal pojazdu — pełny ekran */
    #modal-vehicle-details {
        align-items: flex-start;
    }

    .modal-large {
        width: 100% !important;
        max-height: 100vh !important;
        height: 100%;
        border-radius: 0 !important;
        overflow-y: auto;
        padding: 16px;
    }

    .vehicle-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-image-container {
        height: 240px;
        border-radius: 8px;
    }

    .vehicle-info h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .vehicle-price {
        font-size: 1.8rem;
    }

    .vehicle-header-sticky {
        padding-bottom: 12px;
    }

    .section-title {
        font-size: 1rem;
        margin-top: 10px;
    }

    .advisor-card {
        padding: 12px;
    }

    .advisor-photo {
        width: 50px;
        height: 66px;
    }

    .social-share {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .social-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
        gap: 5px;
    }

    .vehicle-equipment {
        grid-template-columns: 1fr;
    }

    .vehicle-actions {
        gap: 8px;
    }

    .btn-full {
        padding: 12px;
        font-size: 0.95rem;
    }

    .gallery-info-panel {
        padding-top: 12px;
    }

    .thumbnail {
        width: 70px;
        height: 55px;
    }

    /* Lightbox na mobile */
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* SVG Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Icon sizes */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* Hero category buttons icons */
.hero-buttons .cat-btn .icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

/* Social share button icons */
.social-btn .icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Car specs icons */
.car-specs .icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Equipment list icons */
.vehicle-equipment li .icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.vehicle-equipment li {
    display: flex;
    align-items: flex-start;
}

/* Action button icons */
.vehicle-actions .btn-primary .icon,
.vehicle-actions .btn-secondary .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger:hover {
    background: #f3f4f6;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 16px;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav .search-container {
    max-width: 100%;
    margin: 0;
}

.mobile-nav .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Gallery Info Panel */
.gallery-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 5px;
    border-top: 2px solid #e5e7eb;
    padding-top: 15px;
}

.gallery-share {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.gallery-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Vehicle Details Modal */
.modal-large {
    max-width: 1200px;
    width: 95% !important;
}

.vehicle-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Gallery */
.vehicle-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.main-image-container {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.main-vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #9ca3af;
}

.thumbnail.active {
    border-color: #374151;
}

/* Vehicle Info */
.vehicle-info {
    display: flex;
    flex-direction: column;
}

/* Sticky Header: Tytuł + Cena */
.vehicle-header-sticky {
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 10px;
}

/* Scrollable Content Area */
.vehicle-content-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vehicle-info h2 {
    font-size: 2rem;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.vehicle-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #374151;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #374151;
    margin-top: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.vehicle-specs-detailed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.spec-row span {
    color: #6b7280;
}

.spec-row strong {
    color: #1f2937;
}

.vehicle-description {
    line-height: 1.8;
    color: #4b5563;
    margin-top: 10px;
    margin-bottom: 20px;
}

.desc-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.desc-badge {
    background: #f3f4f6;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.desc-badge:hover {
    background: #e5e7eb;
    color: #111827;
}

.desc-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}

.desc-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 6px;
    border-left: 3px solid #6b7280;
}

.desc-spec-key {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.desc-spec-value {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
}

.desc-list {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 20px;
    list-style-type: disc;
}

.desc-list li {
    margin-bottom: 6px;
    color: #4b5563;
    line-height: 1.6;
}

.desc-paragraph {
    font-size: 0.975rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 14px;
    text-align: justify;
}

.vin-box {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
}

.vehicle-equipment {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
}

.vehicle-equipment li {
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Social Share */
.social-share {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-btn {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.95rem;
}

.social-btn span {
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.social-btn.email:hover {
    background: #374151;
    color: white;
    border-color: #374151;
}

.social-btn.copy:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Advisor Card */
.advisor-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    align-items: center;
}

.advisor-photo {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.advisor-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.advisor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.advisor-phone,
.advisor-email {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.advisor-phone:hover,
.advisor-email:hover {
    color: #667eea;
}

/* Vehicle Actions */
.vehicle-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-full {
    width: 100%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.test-drive-btn {
    display: none;
}

.test-drive-btn.visible {
    display: block;
}

.modal-subtitle {
    color: #6b7280;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Responsive for Vehicle Modal — tablet */
@media (max-width: 968px) {
    .vehicle-modal-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-image-container {
        height: 300px;
    }

    .social-share {
        grid-template-columns: 1fr 1fr;
    }

    .vehicle-equipment {
        grid-template-columns: 1fr;
    }

    .modal-large {
        width: 98% !important;
    }
}

/* Małe telefony */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-type-group {
        grid-column: span 1;
    }

    .filters-header h2 {
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 16px;
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        padding-right: 40px;
    }

    .vehicle-info h2 {
        font-size: 1.2rem;
    }

    .vehicle-price {
        font-size: 1.5rem;
    }

    .main-image-container {
        height: 200px;
    }

    .social-share {
        grid-template-columns: 1fr;
    }

    .car-title {
        font-size: 1.1rem;
    }

    .car-price {
        font-size: 1.2rem;
    }

    .car-specs {
        font-size: 0.82rem;
    }

    .advisor-photo {
        width: 45px;
        height: 60px;
    }

    .advisor-name {
        font-size: 0.95rem;
    }

    .gallery-share-label {
        font-size: 0.78rem;
    }
}

@media (min-width: 961px) {
    .hamburger {
        display: none;
    }
}

/* Zoom hint na zdjęciu */
.main-image-container {
    position: relative;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.main-image-container:hover .zoom-hint {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 3rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    user-select: none;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-arrow.hidden {
    visibility: hidden;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* dla małych telefonów proporcja zdjęcia*/
@media (max-width: 480px) {
  .car-img {
    height: 270px; 
    object-fit: cover; 
  }
}