/* ==========================================================
   EXPERIENCE - BAGIAN 2/9: DETAIL PANEL, HARGA, KONTAK
   Dipecah dari css/experience.css. Urutan load = urutan angka (kaskade)
   ========================================================== */

/* =========================
   3. DETAIL PANEL + BACKDROP
   ========================= */
.experience-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 20, 15, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.experience-detail-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.experience-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    width: min(1040px, calc(100% - 48px));
    max-height: min(760px, calc(100dvh - 48px));
    overflow: auto;
    border-radius: 14px;
    background: #f5efdf;
    box-shadow: 0 30px 100px #0003;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -47%);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
}

.experience-detail.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

body.experience-detail-active {
    overflow: hidden;
}

body.experience-detail-active .experience {
    position: relative;
    z-index: 10000;
}

.experience-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #7a785c55;
    border-radius: 50%;
    background: #f5efdf;
    color: #303426;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.experience-detail-visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #d8d1bd;
}

.experience-detail-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.experience-detail-visual > span {
    display: none !important;
}

/* Full-panel batik texture behind all detail information */
.experience-detail-content {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: clamp(30px, 4vw, 54px);
    overflow: hidden;
    background-color: #f5efdf;
}

.experience-detail-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../../../assets/ornaments/batikL3.png");
    background-position: center;
    background-repeat: repeat;
    background-size: 260px auto;
    opacity: 0.16;
    pointer-events: none;
}

.experience-detail-content > * {
    position: relative;
}

.experience-detail-eyebrow {
    display: block;
    margin: 0 0 14px;
    color: #77764f;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-align: center;
}

.experience-detail-content h3 {
    max-width: 480px;
    margin: 0 auto 14px;
    color: #303426;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 3.1vw, 43px);
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
}

.experience-detail-description {
    max-width: 560px;
    margin: 0 auto 26px;
    color: #747366;
    font-size: 13px;
    line-height: 1.85;
    text-align: center;
}

/* =========================
   4. PRICE LIST
   ========================= */
.experience-price-area,
.experience-destination-area {
    margin-top: 22px;
}

.experience-price-area[hidden],
.experience-destination-area[hidden] {
    display: none !important;
}

.experience-price-area h4,
.experience-destination-area h4 {
    margin: 0 0 12px;
    color: #303426;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.experience-price-note {
    margin: 0 0 14px;
    color: #827e6b;
    font-size: 11px;
    line-height: 1.7;
}

.experience-price-list {
    border-top: 1px solid #9e977a55;
}

.experience-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #9e977a55;
    color: #303426;
    font-size: 12px;
    line-height: 1.5;
}

.experience-price-row span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.experience-price-row span:last-child {
    color: #6f714f;
    text-align: right;
    white-space: nowrap;
}

/* =========================
   5. ADVENTURE DESTINATION CARDS
   ========================= */
.experience-destinations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.experience-destination {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #a69d7c55;
    border-radius: 8px;
    background: #f8f3e8;
}

.experience-destination img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e5dfcf;
}

.experience-destination-info {
    padding: 12px;
}

.experience-destination-info h5 {
    margin: 0 0 6px;
    color: #303426;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.experience-destination-info p {
    margin: 0;
    color: #777568;
    font-size: 11px;
    line-height: 1.6;
}

/* =========================
   6. CONTACT BUTTON
   ========================= */
.experience-detail-contact {
    display: flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 26px 0 0 auto;
    padding: 0 20px;
    border: 1px solid #77764f;
    border-radius: 2px;
    color: #3c4231;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 200ms ease, color 200ms ease;
}

.experience-detail-contact:hover {
    background: #62694e;
    color: #fff;
}

/* =========================
   7. PANEL-SPECIFIC SIZING
   ========================= */
@media (min-width: 641px) {
    /* Travel panel: fixed panel height, scrolling only in information column */
    #experienceDetail[data-experience-type="travel"] {
        height: min(632px, calc(100dvh - 48px));
        max-height: calc(100dvh - 48px);
        min-height: 0;
        overflow: hidden;
        grid-template-rows: minmax(0, 1fr);
    }

    #experienceDetail[data-experience-type="travel"] .experience-detail-visual {
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    #experienceDetail[data-experience-type="travel"] .experience-detail-visual > img {
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    #experienceDetail[data-experience-type="travel"] .experience-detail-content {
        min-height: 0;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #experienceDetail[data-experience-type="adventure"] {
        width: min(1040px, calc(100% - 48px));
        max-height: min(760px, calc(100dvh - 48px));
    }

    #experienceDetail[data-experience-type="adventure"] .experience-detail-visual > img {
        height: 100%;
        min-height: 520px;
        object-fit: cover;
    }
}

