/* =========================================================
   CAR MATCH
   EXPLORE.CSS
   ========================================================= */


/* =========================================================
   EXPLORE PAGE
   ========================================================= */

.explore-page {
    background: #f7f7f7;
    color: #111111;
}


/* =========================================================
   INTRO
   ========================================================= */

.explore-intro {

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 100px 30px 70px;

    box-sizing: border-box;

}


.explore-intro .section-label {

    margin: 0 0 18px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;

    color: #777777;

}


.explore-intro h1 {

    margin: 0;

    max-width: 850px;

    font-size: clamp(48px, 7vw, 82px);

    line-height: 0.98;

    font-weight: 700;

    letter-spacing: -3px;

}


.explore-intro h1 span {

    display: block;

    color: #777777;

}


.explore-intro > p:last-child {

    max-width: 650px;

    margin: 30px 0 0;

    font-size: 17px;

    line-height: 1.7;

    color: #666666;

}


/* =========================================================
   MAIN SECTION
   ========================================================= */

.explore-section {

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 30px 100px;

    box-sizing: border-box;

}


/* =========================================================
   FILTER PANEL
   ========================================================= */

.explore-filters {

    background: #ffffff;

    border: 1px solid #e2e2e2;

    padding: 35px;

    box-sizing: border-box;

}


/* =========================================================
   FILTER HEADER
   ========================================================= */

.filter-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;

}


.filter-header .section-label {

    margin: 0 0 7px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #888888;

}


.filter-header h2 {

    margin: 0;

    font-size: 27px;

    line-height: 1.2;

    letter-spacing: -0.5px;

}


/* =========================================================
   CLEAR FILTERS
   ========================================================= */

.clear-filters {

    border: 0;

    padding: 0;

    background: transparent;

    color: #555555;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color 0.2s ease;

}


.clear-filters:hover {

    color: #000000;

}


/* =========================================================
   FILTER GROUP
   ========================================================= */

.filter-group {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.filter-group label {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #777777;

}


/* =========================================================
   SEARCH
   ========================================================= */

.search-group {

    margin-bottom: 25px;

}


.search-group input {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid #d8d8d8;

    border-radius: 0;

    background: #fafafa;

    color: #111111;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;

}


.search-group input:focus {

    border-color: #111111;

    background: #ffffff;

}


.search-group input::placeholder {

    color: #999999;

}


/* =========================================================
   FILTER ROW
   ========================================================= */

.filter-row {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 18px;

}


/* =========================================================
   SELECTS
   ========================================================= */

.filter-group select {

    width: 100%;

    height: 50px;

    padding: 0 40px 0 14px;

    box-sizing: border-box;

    border: 1px solid #d8d8d8;

    border-radius: 0;

    background: #fafafa;

    color: #111111;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;

}


.filter-group select:hover {

    border-color: #aaaaaa;

}


.filter-group select:focus {

    border-color: #111111;

    background: #ffffff;

}


/* =========================================================
   SORT
   ========================================================= */

.explore-filters > .filter-group:last-child {

    max-width: 100%;

    margin-top: 5px;

}


/* =========================================================
   RESULTS HEADER
   ========================================================= */

.explore-results-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 65px;

    margin-bottom: 25px;

}


#resultsCount {

    margin: 0;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #777777;

}


/* =========================================================
   EXPLORE GRID
   ========================================================= */

.explore-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

}


/* =========================================================
   CARD
   ========================================================= */

.explore-card {

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e3e3e3;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.explore-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.10);

}


/* =========================================================
   CARD IMAGE
   ========================================================= */

.explore-card-image {

    position: relative;

    width: 100%;

    height: 265px;

    overflow: hidden;

    background: #e9e9e9;

}


.explore-card-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;

}


.explore-card:hover
.explore-card-image img {

    transform: scale(1.04);

}


/* =========================================================
   BODY BADGE
   ========================================================= */

.explore-card-body {

    position: absolute;

    top: 15px;
    left: 15px;

    padding: 8px 11px;

    background:
        rgba(255,255,255,0.94);

    color: #111111;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;

}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.explore-card-content {

    padding: 25px;

}


/* =========================================================
   BRAND
   ========================================================= */

.explore-card-brand {

    margin: 0 0 5px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #888888;

}


/* =========================================================
   MODEL
   ========================================================= */

.explore-card h3 {

    margin: 0;

    font-size: 27px;

    line-height: 1.1;

    letter-spacing: -0.7px;

    font-weight: 700;

}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.explore-card-description {

    min-height: 67px;

    margin: 15px 0 20px;

    font-size: 13px;

    line-height: 1.65;

    color: #666666;

}


/* =========================================================
   CARD BOTTOM
   ========================================================= */

.explore-card-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-top: 18px;

    border-top: 1px solid #eeeeee;

}


.explore-card-bottom strong {

    font-size: 17px;

    font-weight: 700;

    white-space: nowrap;

}


/* =========================================================
   VIEW BUTTON
   ========================================================= */

.explore-card-bottom button {

    border: 0;

    padding: 0;

    background: transparent;

    color: #111111;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

    cursor: pointer;

    white-space: nowrap;

    transition:
        opacity 0.2s ease;

}


.explore-card-bottom button:hover {

    opacity: 0.55;

}


/* =========================================================
   SCORES
   ========================================================= */

.explore-card-scores {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

    margin-top: 20px;

}


.explore-card-scores span {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding-top: 12px;

    border-top: 1px solid #eeeeee;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #888888;

}


.explore-card-scores strong {

    font-size: 13px;

    font-weight: 700;

    color: #111111;

}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.explore-empty {

    padding: 80px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e3e3e3;

}


.explore-empty h2 {

    margin: 0 0 10px;

    font-size: 30px;

    letter-spacing: -0.5px;

}


.explore-empty p {

    margin: 0;

    color: #777777;

    font-size: 14px;

}


/* =========================================================
   MODAL
   ========================================================= */

.explore-car-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    box-sizing: border-box;

}


.explore-modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,0.78);

    backdrop-filter:
        blur(8px);

}


.explore-modal-box {

    position: relative;

    z-index: 2;

    width:
        min(1000px, 100%);

    max-height: 92vh;

    overflow-y: auto;

    background: #ffffff;

    color: #111111;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.35);

}


.explore-modal-close {

    position: absolute;

    top: 15px;
    right: 18px;

    z-index: 5;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(0,0,0,0.65);

    color: #ffffff;

    font-size: 28px;

    line-height: 42px;

    cursor: pointer;

}


.explore-modal-image {

    width: 100%;

    height: 390px;

    overflow: hidden;

    background: #eeeeee;

}


.explore-modal-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

}


.explore-modal-content {

    padding: 35px;

}


.explore-modal-content h2 {

    margin: 0 0 20px;

    font-size: 42px;

    line-height: 1.05;

    letter-spacing: -1.5px;

}


.explore-modal-content > p:not(.explore-card-brand) {

    max-width: 760px;

    margin: 0;

    color: #666666;

    font-size: 15px;

    line-height: 1.7;

}


.explore-modal-price {

    margin: 25px 0 30px;

    font-size: 25px;

    font-weight: 700;

}


/* =========================================================
   MODAL SPECS
   ========================================================= */

.explore-modal-specs {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    margin-bottom: 30px;

    background: #dddddd;

    border: 1px solid #dddddd;

}


.explore-modal-specs > div {

    display: flex;

    flex-direction: column;

    gap: 7px;

    padding: 18px;

    background: #ffffff;

}


.explore-modal-specs span {

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #888888;

}


.explore-modal-specs strong {

    font-size: 15px;

}


/* =========================================================
   MODAL ACTIONS
   ========================================================= */

.explore-modal-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    padding-top: 25px;

    border-top: 1px solid #dddddd;

}


.explore-modal-actions .primary-button,
.explore-modal-actions .secondary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 0 22px;

    box-sizing: border-box;

    border: 1px solid #111111;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-decoration: none;

    cursor: pointer;

}


.explore-modal-actions .primary-button {

    background: #111111;

    color: #ffffff;

}


.explore-modal-actions .secondary-button {

    background: #ffffff;

    color: #111111;

}


.explore-modal-actions .primary-button:hover {

    opacity: 0.8;

}


.explore-modal-actions .secondary-button:hover {

    background: #f2f2f2;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .explore-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .filter-row {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .explore-intro {

        padding:
            70px 20px 50px;

    }


    .explore-intro h1 {

        font-size: 48px;

        letter-spacing: -2px;

    }


    .explore-section {

        padding:
            0 20px 70px;

    }


    .explore-filters {

        padding: 22px;

    }


    .filter-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

    }


    .filter-row {

        grid-template-columns: 1fr;

    }


    .explore-results-header {

        margin-top: 45px;

    }


    .explore-grid {

        grid-template-columns: 1fr;

        gap: 22px;

    }


    .explore-card-image {

        height: 250px;

    }


    .explore-card-content {

        padding: 22px;

    }


    .explore-card h3 {

        font-size: 25px;

    }


    .explore-modal-box {

        max-height: 95vh;

    }


    .explore-modal-image {

        height: 240px;

    }


    .explore-modal-content {

        padding: 23px;

    }


    .explore-modal-content h2 {

        font-size: 32px;

    }


    .explore-modal-specs {

        grid-template-columns: 1fr;

    }


    .explore-modal-actions {

        flex-direction: column;

    }


    .explore-modal-actions
    .primary-button,
    .explore-modal-actions
    .secondary-button {

        width: 100%;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {

    .explore-intro h1 {

        font-size: 41px;

    }


    .explore-card-bottom {

        align-items: flex-start;

        flex-direction: column;

    }


    .explore-card-bottom button {

        margin-top: 3px;

    }

}