:root {
    --primary-color: #e63946;
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #f8f9fa;
    --white-color: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== PENAMBAHAN BARU: Gaya Animasi Scroll ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== AKHIR PENAMBAHAN ===== */

/* --- Header & Navigasi --- */
.detail-header {
    margin-bottom: 32px;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.back-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.back-button i {
    font-size: 24px;
    line-height: 1;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--primary-color);
}
.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(230, 57, 70, 0.3);
}
.cta-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}
.cta-button:hover i {
    transform: translate(3px, -3px);
}


/* --- Hamburger Menu on Detail Page --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--text-color);
    z-index: 1001;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--white-color);
    position: absolute;
    top: 70px; /* Adjust based on header height */
    right: 20px;
    width: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 1000;
}

.mobile-nav.active {
    display: flex;
    max-height: 500px;
}

.mobile-nav-link {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}


/* --- Wrapper Konten Utama --- */
.main-content-wrapper {
    background-color: var(--white-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 48px; 
}

/* --- Layout Konten Utama --- */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
}

/* --- Style untuk Slider --- */
.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.slide-item {
    display: none;
    width: 100%;
    height: 100%;
}
.slide-item.active {
    display: block;
    animation: fadeIn 0.5s;
}
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 10;
}
.slider-arrow i {
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}
.slider-arrow:hover {
    background-color: var(--white-color);
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* --- Info Spesifikasi (Kanan) --- */
.spec-column-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 32px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.spec-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}
.spec-icon i {
    font-size: 24px;
    line-height: 1;
}
.spec-label {
    font-size: 14px;
    color: var(--light-text-color);
    margin: 0 0 2px 0;
}
.spec-value {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    white-space: pre-wrap; /* Agar newline berfungsi */
}
.spec-sub-value {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 2px;
    margin-bottom: 2px;
    white-space: pre-wrap;
}

/* --- Footer Lokasi --- */
.location-footer {
    margin-top: 32px;
}
.location-inner-container {
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.location-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}
.location-info p {
    margin: 0 0 10px 0;
    color: var(--light-text-color);
    line-height: 1.5;
}

.location-city-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.location-footer a.location-city-link span,
.location-footer a.location-city-link i {
    color: #ffffff;
}

.location-city-link:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.location-city-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
.location-city-link:hover .location-city span {
    text-decoration: underline;
    color: var(--primary-color);
}
.location-city {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    /* PERUBAHAN ADA DI SINI */
    color: var(--primary-color);
    transition: color 0.3s;
}
.location-city i {
    font-size: 20px;
    color: var(--primary-color);
}

/* --- Sticky Clock --- */
#sticky-clock-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #030303;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1001;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}
#sticky-clock-container:hover { transform: scale(1.05); }
#sticky-clock-container .info-item { text-align: right; }
#sticky-clock-container .info-label { display: block; font-size: 9px; font-weight: 600; color: #000000; text-transform: uppercase; letter-spacing: 0.5px; }
#sticky-clock-container .info-value { font-size: 10px; font-weight: 500; letter-spacing: 0.5px; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .main-content-wrapper {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: relative;
    }
    .nav-links {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .back-button span {
        display: none;
    }
    .back-button {
        padding: 8px;
    }

    /* ===== PENYESUAIAN Tampilan Gambar Utama di Mobile ===== */
    .gallery-section {
        margin: -24px -24px 24px -24px; 
        border-radius: 16px 16px 0 0;
        overflow: hidden;
    }

    .gallery-slider {
        aspect-ratio: 1 / 1; 
        border-radius: 0; 
        border: none;
    }

    .location-inner-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .location-info {
        width: 100%;

    }
    .location-info h2 {
        font-size: 22px;
    }
    .location-info p {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .location-city {
        font-size: 15px;
    }

    .cta-button {
        width: auto; 
        align-self: center; 
        margin-top: 16px;
        padding: 12px 32px; 
    }

    .spec-column-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    .spec-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px;
        background-color: #f8f9fa;
        border-radius: 8px;
    }
    .spec-icon {
        margin-top: 0;
        width: auto;
    }
    .spec-icon i {
        font-size: 28px;
    }
    .spec-label {
        font-size: 12px;
    }
    .spec-value {
        font-size: 14px;
        font-weight: 600;
    }
    .spec-sub-value {
        font-size: 11px;
    }
    
    #sticky-clock-container {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    #sticky-clock-container .info-label { font-size: 8px; }
    #sticky-clock-container .info-value { font-size: 9px; }
}

@media (max-width: 480px) {
    .main-content-wrapper {
        padding: 16px;
    }
    /* Menyesuaikan margin negatif untuk padding yang lebih kecil */
    .gallery-section {
        margin: -16px -16px 16px -16px;
    }
    .location-inner-container {
        padding: 20px;
    }
}

/* ===== PENAMBAHAN BARU: Gaya untuk Modal Gambar ===== */
.image-modal-overlay {
    display: none; /* Sembunyi secara default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s;
}

.image-modal-overlay.show {
    display: flex; /* Tampilkan saat kelas 'show' ditambahkan */
}

.image-modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    animation: zoomIn 0.3s;
}

@keyframes fadeInModal {
    from { background-color: rgba(0,0,0,0); }
    to { background-color: rgba(0,0,0,0.9); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ccc;
    text-decoration: none;
}

/* Menambahkan cursor pointer pada gambar di slider hanya di mobile */
@media (max-width: 768px) {
    .gallery-slider .slide-item img {
        cursor: pointer;
    }
}

