/* =========================================================
   WISATA
========================================================= */

.wisata {
    padding: 100px 0;

    background: var(--sage);
}


/* =========================================================
   FEATURE
========================================================= */

.wisata-feature {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, .85fr);

    min-height: 430px;

    margin-top: 12px;

    background: var(--putih);

    border:
        1px solid var(--garis);

    box-shadow:
        0 14px 34px rgba(23, 59, 47, 0.05);
}


.wisata-feature-image {
    position: relative;

    min-height: 430px;

    overflow: hidden;

    background: #e8e7dc;
}


.wisata-feature-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}


.wisata-feature:hover
.wisata-feature-image img {
    transform: scale(1.025);
}


.wisata-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dad9ce 0%,
            #efefe3 50%,
            #d4d2c5 100%
        );

    color:
        rgba(20, 35, 28, 0.28);

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 10px;

    letter-spacing: .12em;
}


/* =========================================================
   FEATURE CONTENT
========================================================= */

.wisata-feature-content {
    display: flex;

    flex-direction: column;
    justify-content: center;

    padding:
        45px 45px 42px;
}


.wisata-kicker {
    display: inline-block;

    margin-bottom: 12px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .09em;

    color: var(--emas);
}


.wisata-feature-content h3 {
    margin: 0 0 9px;

    font-family:
        "Fraunces",
        serif;

    font-size:
        clamp(30px, 4vw, 46px);

    font-weight: 600;

    line-height: 1.08;

    color:
        var(--hijau-tua);
}


.wisata-location {
    margin-bottom: 19px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .06em;

    color:
        rgba(35, 41, 31, 0.48);
}


.wisata-feature-content p {
    margin: 0;

    max-width: 470px;

    font-size: 13px;

    line-height: 1.8;

    color:
        rgba(35, 41, 31, 0.60);
}


/* =========================================================
   FEATURE BUTTON
========================================================= */

.wisata-detail-btn {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 230px;

    margin-top: 27px;

    padding:
        12px 14px;

    border:
        1px solid var(--hijau-tua);

    border-radius: 0;

    background:
        var(--hijau-tua);

    color:
        var(--krem);

    font-family:
        "Inter",
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.wisata-detail-btn span {
    font-size: 16px;

    transition:
        transform .2s ease;
}


.wisata-detail-btn:hover {
    border-color: var(--emas);

    background: var(--emas);

    color: var(--hijau-tua);
}


.wisata-detail-btn:hover span {
    transform: translate(2px, -2px);
}


/* =========================================================
   SECONDARY HEADER
========================================================= */

.wisata-secondary-head {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 65px;

    margin-bottom: 23px;
}


.wisata-label {
    display: block;

    margin-bottom: 6px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .09em;

    color: var(--emas);
}


.wisata-secondary-head h3 {
    margin: 0;

    font-family:
        "Fraunces",
        serif;

    font-size: 25px;

    font-weight: 600;

    color:
        var(--hijau-tua);
}


.wisata-line {
    height: 1px;

    flex: 1;

    background:
        var(--garis);
}


/* =========================================================
   GRID
========================================================= */

.wisata-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   CARD
========================================================= */

.wisata-card {
    overflow: hidden;

    background: var(--putih);

    border:
        1px solid var(--garis);

    border-radius: 0;

    box-shadow:
        0 9px 25px rgba(23, 59, 47, 0.035);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.wisata-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(200, 155, 60, 0.42);

    box-shadow:
        0 15px 30px rgba(23, 59, 47, 0.075);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.wisata-card-image {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #e8e7dc;
}


.wisata-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.wisata-card:hover
.wisata-card-image img {
    transform:
        scale(1.025);
}


/* =========================================================
   CARD BODY
========================================================= */

.wisata-card-body {
    padding:
        19px 20px 20px;
}


.wisata-card-location {
    display: block;

    margin-bottom: 7px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .06em;

    color:
        rgba(35, 41, 31, 0.45);
}


.wisata-card h3 {
    margin: 0 0 8px;

    font-family:
        "Fraunces",
        serif;

    font-size: 22px;

    font-weight: 600;

    line-height: 1.15;

    color:
        var(--tinta);
}


.wisata-card p {
    margin: 0;

    min-height: 58px;

    font-size: 12px;

    line-height: 1.7;

    color:
        rgba(35, 41, 31, 0.57);
}


/* =========================================================
   CARD LINK
========================================================= */

.wisata-card-link {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 15px;

    padding:
        10px 0;

    border: 0;

    border-top:
        1px solid var(--garis);

    background: transparent;

    color:
        var(--hijau-tua);

    font-size: 11px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        color .2s ease;
}


.wisata-card-link span {
    font-size: 15px;

    transition:
        transform .2s ease;
}


.wisata-card-link:hover {
    color: var(--emas);
}


.wisata-card-link:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   EMPTY
========================================================= */

.wisata-empty {
    display: flex;

    flex-direction: column;

    gap: 7px;

    padding:
        30px 24px;

    border:
        1px dashed var(--garis);

    background:
        rgba(255, 255, 255, 0.45);
}


.wisata-empty strong {
    font-size: 14px;

    font-weight: 600;

    color:
        var(--tinta);
}


.wisata-empty span {
    font-size: 12px;

    line-height: 1.6;

    color:
        rgba(35, 41, 31, 0.55);
}


/* =========================================================
   MODAL
========================================================= */

.wisata-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;
}


.wisata-modal[hidden] {
    display: none !important;
}


.wisata-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(12, 28, 22, 0.68);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);

    opacity: 0;

    transition:
        opacity .22s ease;
}


.wisata-modal.show
.wisata-modal-overlay {
    opacity: 1;
}


.wisata-modal-box {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(280px, 43%)
        minmax(0, 1fr);

    width:
        min(920px, 100%);

    max-height:
        min(720px, 90vh);

    overflow: hidden;

    background:
        var(--putih);

    box-shadow:
        0 30px 80px rgba(10, 28, 21, 0.24);

    opacity: 0;

    transform:
        translateY(18px)
        scale(.985);

    transition:
        opacity .22s ease,
        transform .22s ease;
}


.wisata-modal.show
.wisata-modal-box {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   MODAL IMAGE
========================================================= */

.wisata-modal-image {
    position: relative;

    min-height: 100%;

    overflow: hidden;

    background:
        #e8e7dc;
}


.wisata-modal-image img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 430px;

    object-fit: cover;
}


.wisata-modal-placeholder {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dad9ce 0%,
            #efefe3 50%,
            #d4d2c5 100%
        );

    color:
        rgba(20, 35, 28, 0.28);

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 10px;

    letter-spacing: .12em;
}


/* =========================================================
   MODAL BODY
========================================================= */

.wisata-modal-body {
    position: relative;

    overflow-y: auto;

    padding:
        45px 37px 36px;
}


.wisata-modal-kicker {
    display: inline-block;

    margin-bottom: 10px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: var(--emas);
}


.wisata-modal-body h3 {
    margin: 0;

    font-family:
        "Fraunces",
        serif;

    font-size:
        clamp(29px, 4vw, 43px);

    font-weight: 600;

    line-height: 1.1;

    color:
        var(--hijau-tua);
}


.wisata-modal-location {
    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-top: 23px;

    padding:
        13px;

    border:
        1px solid var(--garis);

    background:
        rgba(247, 244, 236, 0.6);
}


.wisata-modal-location span {
    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .07em;

    color:
        rgba(35, 41, 31, 0.42);
}


.wisata-modal-location strong {
    font-size: 11px;

    font-weight: 600;

    color:
        var(--hijau-tua);
}


.wisata-modal-section {
    margin-top: 24px;
}


.wisata-modal-section > span {
    display: block;

    margin-bottom: 7px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;

    color:
        var(--emas);
}


.wisata-modal-section p {
    margin: 0;

    font-size: 13px;

    line-height: 1.8;

    color:
        rgba(35, 41, 31, 0.64);

    white-space: pre-line;
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.wisata-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border:
        1px solid var(--garis);

    border-radius: 0;

    background:
        rgba(255, 255, 255, 0.94);

    color:
        var(--hijau-tua);

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.wisata-modal-close:hover {
    border-color:
        var(--hijau-tua);

    background:
        var(--hijau-tua);

    color:
        var(--krem);
}


body.wisata-modal-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .wisata-feature {
        grid-template-columns:
            1fr 1fr;
    }

    .wisata-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .wisata-modal-box {
        grid-template-columns:
            minmax(250px, 40%)
            minmax(0, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .wisata {
        padding: 75px 0;
    }

    .wisata-feature {
        display: block;
    }

    .wisata-feature-image {
        min-height: 250px;
        height: 250px;
    }

    .wisata-feature-content {
        padding:
            27px 20px 24px;
    }

    .wisata-feature-content h3 {
        font-size: 32px;
    }

    .wisata-detail-btn {
        max-width: none;
    }

    .wisata-secondary-head {
        align-items: flex-start;
        flex-direction: column;

        gap: 13px;

        margin-top: 50px;
    }

    .wisata-line {
        width: 100%;
        flex: none;
    }

    .wisata-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .wisata-card-body {
        padding:
            18px;
    }

    .wisata-card p {
        min-height: auto;
    }

    .wisata-modal {
        align-items: flex-end;

        padding: 0;
    }

    .wisata-modal-box {
        display: block;

        width: 100%;

        max-height: 92vh;

        overflow-y: auto;

        transform:
            translateY(25px)
            scale(1);
    }

    .wisata-modal.show
    .wisata-modal-box {
        transform:
            translateY(0)
            scale(1);
    }

    .wisata-modal-image {
        height: 230px;

        min-height: 0;
    }

    .wisata-modal-image img {
        min-height: 0;
    }

    .wisata-modal-body {
        overflow: visible;

        padding:
            28px 20px 25px;
    }

    .wisata-modal-body h3 {
        font-size: 30px;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 400px) {

    .wisata-feature-content h3 {
        font-size: 28px;
    }

    .wisata-secondary-head h3 {
        font-size: 22px;
    }

    .wisata-modal-body h3 {
        font-size: 27px;
    }

    .wisata-modal-close {
        top: 10px;
        right: 10px;
    }

}