@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.header {
    padding: 80px 50px;
    text-align: center;
    color: white;
    border-bottom: 4px solid #004d40;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/Frame1.png');
    background-size: 60%;
    background-position: center;
    position: relative;
}
h1 {
    font-size: 45px;
}

.navbar {
    display: flex;
    justify-content: center;
    background-color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.navbar a:hover, .navbar a.active {
    background-color: #00796b;
}

.row {  
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    overflow: auto;
}

.side {
    flex: 30%;
    padding-right: 20px;
}

.side h2, .side h3 { color: #00796b; }

.main { flex: 70%; }

.fakeimg {
    background-color: #e9ecef;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-radius: 8px;
}

.fakeimg img { border-radius: 8px; }

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: height 0.5s ease-out;
}

.card {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, max-height 0.5s ease-out;
    overflow: hidden;
    max-height: 450px; 
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 900px;
}

.card:hover .card-img {
    height: auto;
    max-height: 600px; 
}


.card-body {
    padding: 25px;
}

.card-content-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-in-out;
    padding-top: 0;
}

.card:hover .card-content-hidden {
    max-height: 300px;
    opacity: 1;
    padding-top: 15px;
}


.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}


.gallery-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.gallery-item:hover {
    opacity: 0.8; 
}

.card h2 { margin-top: 0; }
.card h5 { color: #6c757d; font-weight: 500; }


.btn {
    display: block;          
    width: 80%;               
    margin: 20px auto 0 auto;  
    padding: 10px 20px;
    background-color: transparent; 
    color: #00796b;           
    border: 2px solid #00796b; 
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease; 
}

.btn:hover {
    background-color: #00796b; 
    color: white;              
}


.main.full-width {
    flex: 100%;
}


.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}


.destinasi-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; 
}


.destinasi-grid .card:hover {
    max-height: none;
}


.destinasi-grid .card .card-img {
    height: 200px;
}

.destinasi-grid .card:hover .card-img {
    height: 200px;
}




.photo-grid {
    column-count: 3; 
    column-gap: 15px;
}


.grid-item {
    margin-bottom: 15px; 
    break-inside: avoid; 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px;
}


.photo-grid .gallery-item {
    width: 100%;
    height: auto; 
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}


.grid-item::after {
    content: '+';
    font-size: 50px;
    font-weight: 100;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    pointer-events: none; /* <-- TAMBAHKAN BARIS INI */
}

.grid-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.grid-item:hover .gallery-item {
    transform: scale(1.1); 
}

.footer {
    padding: 25px;
    text-align: center;
    background: #333;
    color: #f4f7f6;
    margin-top: 20px;
}


@media (max-width: 992px) {
    .photo-grid {
        column-count: 2; 
    }
}

@media (max-width: 768px) {
    .photo-grid {
        column-count: 1; 
    }
}

@media screen and (max-width: 768px) {
    .row {   
        flex-direction: column;
        padding: 10px;
    }
    .side {
        padding-right: 0;
        margin-bottom: 20px;
    }
    .card, .card:hover {
        max-height: none;
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .card-content-hidden, .card:hover .card-content-hidden {
        max-height: none;
        opacity: 1;
        padding-top: 15px;
    }
    .card-img, .card:hover .card-img {
        height: auto;
    }
}