/*
|--------------------------------------------------------------------------
| SweetMeet Local Places
|--------------------------------------------------------------------------
*/


.sm-local-places {
    display: grid;

    width: 100%;

    gap: 24px;
}


/*
|--------------------------------------------------------------------------
| Columns
|--------------------------------------------------------------------------
*/


.sm-local-places--cols-1 {
    grid-template-columns: 1fr;
}


.sm-local-places--cols-2 {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}


.sm-local-places--cols-3 {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


.sm-local-places--cols-4 {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/


.sm-local-place {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #fff;

    border:
        1px solid
        #e1d3b5;

    border-radius: 7px;

    box-shadow:
        0
        4px
        16px
        rgba(0, 0, 0, 0.05);
}


/*
|--------------------------------------------------------------------------
| Image
|--------------------------------------------------------------------------
*/


.sm-local-place__image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eee;
}


.sm-local-place__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        0.25s ease;
}


.sm-local-place:hover
.sm-local-place__image img {
    transform:
        scale(1.015);
}


/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/


.sm-local-place__body {
    display: flex;

    flex: 1;

    flex-direction: column;

    padding:
        20px
        22px
        18px;
}


/*
|--------------------------------------------------------------------------
| Location / Type
|--------------------------------------------------------------------------
*/


.sm-local-place__meta {
    margin-bottom: 5px;

    color: #777;

    font-size: 13px;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/


.sm-local-place__title {
    margin:
        0
        0
        10px;

    padding: 0;

    color: #000;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}


/*
|--------------------------------------------------------------------------
| Tags
|--------------------------------------------------------------------------
*/


.sm-local-place__tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 14px;
}


.sm-local-place__tag {
    display: inline-flex;

    align-items: center;

    padding:
        4px
        9px;

    color: #6f5a2d;

    background:
        rgba(
            200,
            169,
            106,
            0.13
        );

    border:
        1px solid
        rgba(
            200,
            169,
            106,
            0.42
        );

    border-radius: 20px;

    font-size: 12px;
    line-height: 1.3;
}


/*
|--------------------------------------------------------------------------
| Editorial Text
|--------------------------------------------------------------------------
*/


.sm-local-place__summary {
    flex: 1;

    color: #444;

    font-size: 15px;
    line-height: 1.65;
}


.sm-local-place__summary p {
    margin:
        0
        0
        12px;
}


.sm-local-place__summary p:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Details
|--------------------------------------------------------------------------
*/


.sm-local-place__details {
    margin-top: 16px;

    padding:
        12px
        0
        0;

    border-top:
        1px solid
        #eee;
}


.sm-local-place__detail {
    display: flex;

    gap: 5px;

    margin-bottom: 5px;

    color: #555;

    font-size: 13px;
    line-height: 1.5;
}


.sm-local-place__detail:last-child {
    margin-bottom: 0;
}


.sm-local-place__detail strong {
    color: #222;

    font-weight: 600;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/


.sm-local-place__footer {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 16px;

    margin-top: 16px;

    padding-top: 14px;

    border-top:
        1px solid
        #eee;
}


/*
|--------------------------------------------------------------------------
| Official Website Link
|--------------------------------------------------------------------------
*/


.sm-local-place__link {
    color: #C8A96A !important;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;
}


.sm-local-place__link:hover,
.sm-local-place__link:focus {
    color: #000 !important;

    text-decoration:
        underline !important;
}


/*
|--------------------------------------------------------------------------
| Last Checked
|--------------------------------------------------------------------------
*/


.sm-local-place__checked {
    flex-shrink: 0;

    color: #888;

    font-size: 11px;
    line-height: 1.4;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/


@media (max-width: 950px) {

    .sm-local-places--cols-3,
    .sm-local-places--cols-4 {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/


@media (max-width: 620px) {

    .sm-local-places--cols-2,
    .sm-local-places--cols-3,
    .sm-local-places--cols-4 {
        grid-template-columns:
            1fr;
    }


    .sm-local-place__body {
        padding:
            18px;
    }


    .sm-local-place__footer {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 8px;
    }


    .sm-local-place__detail {
        display: block;
    }

}