﻿/* =========================================================
   1. PAGE LAYOUT & CONTAINER
   ========================================================= */
.car-form-page {
    background: #0a0a0a;
    min-height: 100vh;
    color: white;
    padding: 35px 0 80px;
}

.form-container {
    width: min(1000px, 94%);
    margin: auto;
}

.form-title {
    margin-bottom: 30px;
}

    .form-title h1 {
        font-weight: 900;
        margin-bottom: 8px;
    }

    .form-title p {
        color: #999;
        margin: 0;
    }

.required-info {
    margin-top: 12px;
    color: #888;
    font-size: 13px;
}

.required-star {
    color: #ef4444;
    font-weight: 900;
    margin-left: 3px;
}

/* =========================================================
   2. FORM SECTIONS & GRID STRUCTURE
   ========================================================= */
.form-section {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ff7a00;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field-full {
    grid-column: 1 / -1;
}

/* =========================================================
   3. STANDARD INPUT FIELDS
   ========================================================= */
.form-label {
    display: block;
    color: #ccc;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-control-dark {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: #202020;
    color: white;
    border: 1px solid #333;
    border-radius: 10px;
    transition: .2s;
}

    .form-control-dark:focus {
        outline: none;
        border-color: #ff7a00;
        box-shadow: 0 0 0 3px rgba(255, 122, 0, .08);
    }

select.form-control-dark {
    cursor: pointer;
}

textarea.form-control-dark {
    min-height: 150px;
    resize: vertical;
}

/* =========================================================
   4. CITY LIVE DROPDOWN STYLES
   ========================================================= */
.city-live {
    width: 100% !important;
}

#citySearch.form-control-dark {
    width: 100% !important;
    height: 48px !important;
    background: #202020 !important;
    border: 1px solid #333 !important;
    border-radius: 10px !important;
    color: white !important;
    text-align: left !important;
    padding: 12px 14px !important;
}

    #citySearch.form-control-dark:focus {
        border-color: #ff7a00 !important;
        box-shadow: 0 0 0 3px rgba(255, 122, 0, .08) !important;
    }

#cityResults {
    top: calc(100% + 4px) !important;
    width: 100% !important;
    background: #202020 !important;
    border: 1px solid #333 !important;
    border-radius: 10px !important;
}

/* =========================================================
   5. COLOR PALETTE PICKER
   ========================================================= */
.color-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

    .color-options-grid::-webkit-scrollbar {
        width: 6px;
    }

    .color-options-grid::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 4px;
    }

.color-option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

    .color-option-card:hover {
        border-color: #666;
        background-color: #333;
    }

.color-box {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.color-name {
    color: #eaeaea;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-option-card:has(input[type="radio"]:checked) {
    border-color: #ff6b00;
    background-color: #383838;
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.35);
}

/* =========================================================
   6. EQUIPMENT CHECKBOXES
   ========================================================= */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.equipment-item {
    background: #202020;
    border: 1px solid #303030;
    padding: 11px;
    border-radius: 9px;
    cursor: pointer;
    transition: .2s;
}

    .equipment-item:hover {
        border-color: #ff7a00;
    }

    .equipment-item input {
        accent-color: #ff7a00;
        margin-right: 7px;
    }

/* =========================================================
   7. IMAGE UPLOAD & PREVIEW (BOTTOM SECTION)
   ========================================================= */
.upload-box {
    display: block;
    border: 2px dashed #444;
    padding: 30px;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    transition: .2s;
}

    .upload-box:hover {
        border-color: #ff7a00;
        background: rgba(255, 122, 0, .03);
    }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 15px;
}

    .preview-grid img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid #333;
    }

/* =========================================================
   8. VALIDATION STYLES
   ========================================================= */
.validation-box {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.validation-box-title {
    color: #ff6262;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 5px;
}

.validation-box-text {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

.validation-box ul {
    color: #ff8a8a;
    margin: 8px 0 0;
    padding-left: 20px;
}

.field-validation-error {
    display: block;
    color: #ff6262 !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.input-validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
}

/* =========================================================
   9. SUBMIT BUTTON
   ========================================================= */
.submit-btn {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff3c00, #ff7a00);
    transition: .2s;
    cursor: pointer;
}

    .submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(255, 122, 0, .20);
    }
/* Мрежа за постоечките слики во Edit */
.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

/* Картичка за секоја постоечка слика */
.existing-image-card {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

    /* Сликата ги исполнува димензиите без да се деформира */
    .existing-image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Оверлејот за бришење */
.delete-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px;
    text-align: center;
    font-size: 12px;
}

    .delete-overlay label {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin: 0;
    }
/* =========================================================
   10. MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================= */
@media (max-width: 700px) {
    .car-form-page {
        padding-top: 25px;
    }

    .form-section {
        padding: 19px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .equipment-grid {
        grid-template-columns: 1fr 1fr;
    }

    .preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 450px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   CSS ЗА КОРЕКЦИЈА НА ФИЛТЕРИТЕ ЗА АВТОМОБИЛИ
   ========================================== */

/* Контејнер на целата форма за пребарување */
.filter-card,
.search-filter-box,
form[action*="Search"],
.filter-form {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

    /* Грид распоред за полињата */
    .filter-grid,
    .search-filter-grid,
    .filter-card form {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 еднакви колони */
        gap: 12px;
        width: 100%;
    }

        /* Полиња што треба да заземаат цела ширина (100%) */
        .filter-full-width,
        .filter-grid .full-width,
        .filter-grid input[name*="search"],
        .filter-grid input[name*="query"],
        .filter-grid input[name*="keyword"],
        .filter-grid .btn-submit,
        .filter-grid button[type="submit"] {
            grid-column: 1 / -1;
        }

        /* Стилизирање и спречување прекршување на влезните полиња */
        .filter-grid input,
        .filter-grid select,
        .filter-card input,
        .filter-card select {
            width: 100% !important;
            min-width: 0 !important; /* Клучно: спречува исекување на содржината */
            box-sizing: border-box !important;
            background-color: #202020 !important;
            border: 1px solid #333 !important;
            color: #fff !important;
            border-radius: 10px !important;
            padding: 10px 14px !important;
            font-size: 14px !important;
            outline: none !important;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }

            .filter-grid input:focus,
            .filter-grid select:focus,
            .filter-card input:focus,
            .filter-card select:focus {
                border-color: #ff7a00 !important;
            }

        /* Копче за пребарување */
        .filter-grid button[type="submit"],
        .filter-card button[type="submit"],
        .filter-btn-search {
            width: 100%;
            grid-column: 1 / -1;
            background: linear-gradient(135deg, #ff3c00, #ff7a00);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 12px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            margin-top: 5px;
        }

            .filter-grid button[type="submit"]:hover,
            .filter-card button[type="submit"]:hover {
                opacity: 0.95;
                transform: translateY(-1px);
            }

/* Мобилен приказ - 1 колона за да не се стеснуваат полињата */
@media (max-width: 576px) {
    .filter-grid,
    .search-filter-grid,
    .filter-card form {
        grid-template-columns: 1fr !important;
    }
}
.cars-page {
    min-height: 100vh;
    background: #0a0a0a;
    color: #fff;
    padding: 35px 0 70px;
}

.cars-container {
    width: min(1200px, 92%);
    margin: auto;
}

.cars-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

    .cars-header h1 {
        margin: 0;
        font-size: clamp(26px, 4vw, 40px);
        font-weight: 800;
    }

    .cars-header p {
        margin: 7px 0 0;
        color: #999;
    }

.btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg,#ff3c00,#ff7a00);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

    .btn-orange:hover {
        transform: translateY(-2px);
        color: #fff;
    }

.dealer-box {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 30px;
}

.dealer-box-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.dealer-right-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dealer-qr-code {
    width: 80px;
    height: 80px;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dealer-name {
    font-size: 21px;
    font-weight: 800;
}

.dealer-status {
    display: inline-block;
    margin-top: 7px;
    border-radius: 50px;
    padding: 5px 11px;
    font-size: 13px;
    font-weight: 700;
}

.status-active {
    background: rgba(34,197,94,.15);
    color: #4ade80;
}

.status-pending {
    background: rgba(255,122,0,.15);
    color: #ff9d42;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.car-card {
    overflow: hidden;
    background: #151515;
    border: 1px solid #292929;
    border-radius: 18px;
    transition: .2s;
}

    .car-card:hover {
        transform: translateY(-4px);
        border-color: #ff7a00;
    }

.car-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #202020;
}

.no-image {
    aspect-ratio: 16/10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #202020;
    color: #777;
    font-size: 45px;
}

.car-body {
    padding: 18px;
}

.car-price {
    color: #ff7a00;
    font-size: 23px;
    font-weight: 800;
}

.car-description {
    color: #ccc;
    margin-top: 8px;
    min-height: 45px;
}

.car-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #888;
    font-size: 14px;
    margin: 15px 0;
}

.car-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

    .car-actions a {
        text-align: center;
        padding: 9px 5px;
        border-radius: 9px;
        text-decoration: none;
        color: #ddd;
        background: #222;
        font-size: 14px;
    }

        .car-actions a:hover {
            background: #303030;
            color: #fff;
        }

.empty-box {
    text-align: center;
    background: #151515;
    border: 1px dashed #333;
    padding: 60px 20px;
    border-radius: 18px;
}

.empty-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

@media(max-width: 900px) {
    .cars-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width: 600px) {
    .cars-page {
        padding-top: 20px;
    }

    .cars-header,
    .dealer-box-top {
        align-items: stretch;
        flex-direction: column;
    }

    .dealer-right-actions {
        flex-direction: column;
        align-items: center;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .btn-orange {
        width: 100%;
    }
}
.market-page {
    background: #0a0a0a;
    min-height: 100vh;
    color: white;
    padding: 35px 0 70px;
}

.market-container {
    width: min(1250px, 94%);
    margin: auto;
}

.market-hero {
    text-align: center;
    padding: 30px 10px 40px;
}

    .market-hero h1 {
        font-size: clamp(30px,5vw,50px);
        font-weight: 900;
    }

    .market-hero span {
        color: #ff7a00;
    }

    .market-hero p {
        color: #999;
        font-size: 17px;
    }

.filter-box {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 30px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 12px;
}

.filter-row-full {
    grid-column: 1 / -1;
}

.filter-control {
    background: #202020;
    color: white;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 11px;
    width: 100%;
}

    .filter-control:focus {
        outline: none;
        border-color: #ff7a00;
    }

.search-btn {
    border: 0;
    border-radius: 10px;
    padding: 11px 24px;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg,#ff3c00,#ff7a00);
    cursor: pointer;
    transition: 0.2s;
}

    .search-btn:hover {
        opacity: 0.9;
    }

.market-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.market-card {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: .25s;
}

    .market-card:hover {
        color: white;
        border-color: #ff7a00;
        transform: translateY(-5px);
    }

.market-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #202020;
}

.market-no-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.market-body {
    padding: 18px;
}

.market-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.market-price {
    color: #ff7a00;
    font-weight: 900;
    font-size: 22px;
}

.market-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #aaa;
    margin-top: 12px;
    font-size: 14px;
}

.market-desc {
    color: #ccc;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.4;
}

@media(max-width:1100px) {
    .filters {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:850px) {
    .market-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:600px) {
    .filters {
        grid-template-columns: 1fr 1fr;
    }

        .filters .search-main {
            grid-column: 1/-1;
        }

    .search-btn {
        grid-column: 1/-1;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }
}
.details-page {
    background-color: #0b0c10;
    background-image: radial-gradient(circle at 50% 0%, #1a1d29 0%, #0b0c10 70%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 40px 0 80px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.details-container {
    width: min(1200px, 92%);
    margin: auto;
}

.details-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Cards & Boxes */
.box {
    background: #14161f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.car-header-box {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .car-header-box h1 {
        font-size: 1.65rem;
        font-weight: 800;
        color: #ffffff;
        margin: 0;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

.header-price-badge {
    background: linear-gradient(135deg, #ff7a00, #ff3c00);
    color: #fff;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

/* Gallery - Прилагодена за целосен приказ без кратење */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 480px; /* Фиксна елегантна висина за десктоп */
    border-radius: 16px;
    overflow: hidden;
    background: #000000; /* Црна позадина за просторот околу сликата */
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Го гарантира целосниот приказ на сликата без исечоци */
    transition: opacity 0.25s ease-in-out;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    outline: none;
}

.thumbs img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

    .thumbs img:hover,
    .thumbs img.active-thumb {
        border-color: #ff7a00;
        opacity: 1;
        transform: scale(0.96);
    }

/* Titles */
.box-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specs Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item {
    background: #1b1e2b;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}

    .spec-item:hover {
        border-color: rgba(255, 122, 0, 0.3);
    }

    .spec-item small {
        color: #8b9bb4;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 4px;
    }

    .spec-item span {
        font-weight: 600;
        font-size: 14px;
        color: #f1f5f9;
        word-break: break-word;
    }

    .spec-item .price-highlight {
        color: #ff7a00;
        font-size: 16px;
        font-weight: 800;
    }

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.equipment-item {
    background: #1b1e2b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #10b981;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .equipment-item span {
        color: #e2e8f0;
    }

/* Dealer Card */
.dealer-card {
    margin-top: 24px;
    background: linear-gradient(145deg, #161924, #12141d);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dealer-badge {
    color: #ff7a00;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.dealer-name {
    margin: 6px 0 14px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.dealer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 8px;
}

.dealer-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #ff3c00, #ff7a00);
    box-shadow: 0 6px 20px rgba(255, 60, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

    .dealer-link:hover {
        opacity: 0.95;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 60, 0, 0.35);
        color: #ffffff;
    }

.mt-4 {
    margin-top: 24px;
}

.description-content p {
    margin-bottom: 1rem;
}

    .description-content p:last-child {
        margin-bottom: 0;
    }

/* Mobile Responsive Optimizations */
@media (max-width: 850px) {
    .details-layout {
        grid-template-columns: 1fr;
    }

    .car-header-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-price-badge {
        align-self: flex-start;
    }

    .main-image-wrapper {
        height: 320px; /* Помала висина за мобилен за подобра прегледност */
    }

    .thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .main-image-wrapper {
        height: 250px; /* Прилагодено за помали мобилни екрани */
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Пребришување на CSS-от за филтер за совршен layout */
.rent-filter-box {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 35px;
}

.rent-grid-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

    .rent-grid-filter .filter-control {
        width: 100%;
        box-sizing: border-box;
        height: 46px;
        background: #222;
        border: 1px solid #333;
        color: #fff;
        border-radius: 10px;
        padding: 0 12px;
        font-size: 14px;
        outline: none;
    }

        .rent-grid-filter .filter-control:focus {
            border-color: #ff5500;
        }

    .rent-grid-filter .full-width {
        grid-column: span 2;
    }

.rent-btn-submit {
    grid-column: span 4;
    height: 48px;
    background: linear-gradient(135deg, #ff5500, #e04400);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    margin-top: 4px;
}

    .rent-btn-submit:hover {
        opacity: 0.92;
        transform: translateY(-1px);
    }

@media (max-width: 992px) {
    .rent-grid-filter {
        grid-template-columns: repeat(2, 1fr);
    }

        .rent-grid-filter .full-width,
        .rent-btn-submit {
            grid-column: span 2;
        }
}

@media (max-width: 576px) {
    .rent-grid-filter {
        grid-template-columns: 1fr;
    }

        .rent-grid-filter .full-width,
        .rent-btn-submit {
            grid-column: span 1;
        }
}