/* =========================================
   PAGE HEADER
========================================= */

.places-hero {
    padding: 75px 8%;

    background:
        linear-gradient(
            90deg,
            rgba(10, 38, 28, 0.50) 0%,
            rgba(10, 38, 28, 0.28) 50%,
            rgba(10, 38, 28, 0.12) 100%
        ),
        url("../assets/images/defaults/home.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}


.places-hero-content {
    max-width: 1200px;

    margin: auto;
}


.places-hero-label {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.35);
}


.places-hero h1 {
    margin-bottom: 15px;

    color: #ffffff;

    font-size: 45px;

    line-height: 1.2;

    text-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.40);
}


.places-hero-description {
    max-width: 700px;

    color:
        rgba(
            255,
            255,
            255,
            0.95
        );

    line-height: 1.7;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.30);
}



/* =========================================
   PAGE
========================================= */

.places-page {
    padding:
        45px 7%
        80px;

    background-color: #f7f9f8;
}



/* =========================================
   FILTER
========================================= */

.places-filter {
    max-width: 1450px;

    margin:
        0 auto
        35px;

    padding: 28px;

    background-color: white;

    border-radius: 15px;

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            0.06
        );
}


.places-filter-header {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-bottom: 24px;

    gap: 20px;
}


.places-filter-header h2 {
    font-size: 26px;

    color: #213128;
}


.places-count {
    min-width: 120px;

    padding: 12px;

    text-align: center;

    background-color: #edf7f1;

    border-radius: 9px;
}


.places-count strong {
    display: block;

    color: #177249;

    font-size: 25px;
}


.places-count span {
    color: #69756f;

    font-size: 11px;
}



/* =========================================
   SEARCH
========================================= */

.places-search input {
    width: 100%;

    min-height: 47px;

    padding: 12px 14px;

    border:
        1px solid #d9e3dd;

    border-radius: 8px;

    font-size: 15px;

    outline: none;
}


.places-search input:focus {
    border-color: #198754;
}



/* =========================================
   FILTER GRID
========================================= */

.places-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 16px;

    margin-top: 17px;
}


.places-filter-group {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.places-filter-group label {
    font-size: 12px;

    font-weight: 600;

    color: #536159;
}


.places-filter-group select {
    min-height: 44px;

    padding: 9px 11px;

    border:
        1px solid #d9e3dd;

    border-radius: 7px;

    background-color: white;

    color: #26352d;

    outline: none;
}


.places-filter-group select:focus {
    border-color: #198754;
}



/* =========================================
   RESET
========================================= */

.places-reset {
    margin-top: 18px;

    display: flex;

    justify-content:
        flex-end;
}


.places-reset button {
    padding:
        10px 18px;

    border: none;

    border-radius: 7px;

    background-color: #e8edea;

    color: #34443b;

    cursor: pointer;

    transition: 0.2s;
}


.places-reset button:hover {
    background-color: #dce4df;
}



/* =========================================
   GRID
========================================= */

.places-grid {
    max-width: 1450px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                300px,
                1fr
            )
        );

    gap: 24px;
}



/* =========================================
   CARD
========================================= */

.place-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background-color: white;

    border-radius: 15px;

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            0.07
        );

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.place-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 10px 28px
        rgba(
            0,
            0,
            0,
            0.12
        );
}



/* =========================================
   PLACE IMAGE
========================================= */

.place-card-image {
    width: 100%;

    height: 210px;

    flex-shrink: 0;

    overflow: hidden;

    background-color: #e8efeb;
}


.place-card-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.place-card:hover
.place-card-image img {
    transform:
        scale(1.05);
}



/* =========================================
   CARD CONTENT
========================================= */

.place-card-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 22px;
}


.place-category {
    margin-bottom: 7px;

    color: #198754;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.place-card h3 {
    margin-bottom: 12px;

    color: #203028;

    font-size: 20px;

    line-height: 1.4;
}


.place-rating {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;

    color: #46534c;

    font-size: 14px;

    font-weight: 600;
}


.place-address {
    margin-bottom: 15px;

    color: #68746e;

    font-size: 13px;

    line-height: 1.6;
}



/* =========================================
   NEAREST DESTINATION
========================================= */

.nearest-destination {
    margin-top: auto;

    padding: 12px;

    background-color: #f1f7f3;

    border-radius: 8px;

    font-size: 12px;

    color: #536159;
}


.nearest-destination span {
    display: block;
}


.nearest-destination strong {
    display: block;

    margin-top: 4px;

    color: #177249;

    font-size: 13px;
}


.nearest-destination small {
    display: block;

    margin-top: 3px;

    color: #6a776f;

    font-size: 11px;
}



/* =========================================
   EXTRA INFO
========================================= */

.place-extra {
    margin-top: 13px;

    padding-top: 13px;

    border-top:
        1px solid #edf0ee;

    color: #68736d;

    font-size: 12px;
}


.place-extra p {
    margin-bottom: 5px;
}



/* =========================================
   BUTTON
========================================= */

.place-button {
    width: 100%;

    margin-top: 15px;

    padding:
        11px 16px;

    border: none;

    border-radius: 7px;

    background-color: #198754;

    color: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.place-button:hover {
    background-color: #146c43;

    transform:
        translateY(-1px);
}



/* =========================================
   PAGINATION
========================================= */

.places-pagination {
    max-width: 1450px;

    margin:
        45px auto 0;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}


.places-page-button {
    min-width: 42px;

    min-height: 42px;

    padding: 8px;

    border:
        1px solid #d9e2dd;

    border-radius: 7px;

    background-color: white;

    color: #34443b;

    cursor: pointer;
}


.places-page-button:hover {
    border-color: #198754;

    color: #198754;
}


.places-page-button.active {
    border-color: #198754;

    background-color: #198754;

    color: white;
}


.places-page-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


.pagination-dots {
    padding: 0 4px;

    color: #77817c;
}



/* =========================================
   NAV ACTIVE
========================================= */

.nav-menu a.active {
    color: #198754;

    font-weight: 700;
}



/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 800px) {

    .places-filter-grid {
        grid-template-columns:
            1fr;
    }


    .places-filter-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}



/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 600px) {

    .places-hero {
        padding:
            55px 6%;
    }


    .places-hero h1 {
        font-size: 34px;
    }


    .places-page {
        padding:
            30px 5%
            60px;
    }


    .places-grid {
        grid-template-columns:
            1fr;
    }


    .place-card-image {
        height: 200px;
    }

}