/* ================= Root Variables ================= */
:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --text-color: #222222;
    --text-light-gray: #666666;
    --transition: all 0.3s ease-in-out;
}

/* ================= Reset & Base Styles ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling bawaan */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================= Buttons ================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-black {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
}

.btn-black:hover {
    background-color: transparent;
    color: var(--primary-black);
    transform: translateY(-2px);
}

/* ================= Navbar Styles ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); /* Sedikit transparan untuk efek modern */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Shadow halus */
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo (Kiri) */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
}

/* Menu (Tengah) */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--primary-black);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

/* Indikator Aktif (Garis Bawah) */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-black);
    border-radius: 2px;
}

.nav-link:hover {
    color: #555;
}

/* Tombol & Mobile Toggle (Kanan) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-black);
    transition: var(--transition);
    border-radius: 3px;
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    /* GANTI 'kamar-jevan-kost.jpg' DENGAN NAMA FILE GAMBAR ANDA SENDIRI */
    background-image: url('../Gambar/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Jarak untuk navbar */
}

/* Overlay Transparan (jika gambar Anda terlalu terang) */
/* .hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.1); 
    z-index: 1;
} */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Blok Teks di Sebelah Kiri */
.hero-text-block {
    max-width: 45%; /* Lebar konten teks */
    color: var(--primary-black); /* Teks di gambar referensi berwarna hitam */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light-gray);
    margin-bottom: 30px;
    max-width: 90%;
}

/* ================= Responsive Design ================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-text-block {
        max-width: 60%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-middle {
        position: absolute;
        top: 80px; /* Setelah navbar */
        right: -100%; /* Sembunyikan ke kanan */
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav-middle.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-book {
        font-size: 0.8rem;
        padding: 8px 18px;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Mobile */
    .hero {
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-text-block {
        max-width: 90%;
        margin-left: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        display: flex;
    }
}

/* ================= Rooms Section ================= */
.rooms-section {
    padding: 100px 5%;
    background-color: #F4F6F8; /* Warna background abu-abu sangat muda seperti di gambar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.rooms-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Grid Layout */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card Styling */
.room-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Menghilangkan garis bawah pada link */
    color: inherit;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Banner Hitam untuk Most Popular */
.badge-banner {
    background-color: #0A0F1C;
    color: #FFFFFF;
    text-align: center;
    font-size: 0.75rem;
    padding: 6px 0;
    font-weight: 500;
}

/* Wrapper Gambar */
.room-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img {
    transform: scale(1.05); /* Efek zoom halus saat di-hover */
}

/* Badge Floating (Available) */
.badge-floating {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #FFFFFF;
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Konten Text Card */
.room-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

.room-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* Mendorong footer ke paling bawah */
}

/* Footer Card (Harga & Tombol Detail) */
.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EEEEEE;
}

.room-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.view-detail {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A2B4C;
}

/* ================= Responsive Grid ================= */
@media (max-width: 991px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
    }
}

@media (max-width: 768px) {
    .rooms-section {
        padding: 60px 5%;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr; /* 1 kolom di mobile */
    }
}

/* ================= Location Section ================= */
.location-section {
    padding: 100px 5%;
    background-color: #FFFFFF;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Proporsi kolom kiri teks, kanan peta sedikit lebih lebar */
    gap: 60px;
    align-items: center;
}

/* Bagian Kiri (Teks & Info) */
.location-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Kotak Alamat (Clickable) */
.address-box {
    display: flex;
    align-items: center;
    background-color: #F8F9FA;
    padding: 20px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 30px;
}

.address-box:hover {
    background-color: #F0F2F5;
    transform: translateY(-2px);
}

.address-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    color: #111; /* Warna icon marker */
}

.address-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.address-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Fasilitas Terdekat */
.facilities-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

.facilities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #E9F0F7; /* Warna biru pucat seperti gambar */
    color: #4A5B70;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Bagian Kanan (Map Embed) */
.location-map {
    width: 100%;
    height: 400px; /* Tinggi standar peta */
    border-radius: 16px;
    overflow: hidden;
    background-color: #F0F2F5; /* Warna skeleton/placeholder sebelum map load */
}

/* ================= Responsive Location ================= */
@media (max-width: 991px) {
    .location-container {
        grid-template-columns: 1fr; /* Berubah jadi 1 kolom di tablet/mobile */
        gap: 40px;
    }

    .location-map {
        height: 350px;
        order: 2; /* Memastikan map selalu berada di bawah teks saat di mobile */
    }
}

/* ================= Footer Section ================= */
.footer {
    background-color: #060A11; /* Warna biru sangat gelap/hitam elegan seperti di referensi */
    color: #9CA3AF; /* Warna teks abu-abu redup */
    padding: 60px 5% 25px; /* Padding atas lebih luas */
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout untuk bagian atas footer */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Kolom pertama lebih lebar */
    gap: 40px;
    margin-bottom: 50px;
}

/* Teks Brand Kiri */
.footer-brand {
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Judul Kolom (Connect & Information) */
.footer-title {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* List Link (Instagram, TikTok, dll) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px; /* Efek hover bergeser sedikit ke kanan */
}

/* Bagian Bawah (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Garis pemisah halus */
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
}

/* Link Credit Verbeter */
.verbeter-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.verbeter-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ================= Responsive Footer ================= */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr; /* Berubah menjadi 1 kolom menyusun ke bawah di Mobile */
        gap: 30px;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-left: 0; /* Matikan efek geser di mobile */
    }
}

/* ================= ROOM DETAIL PAGE ================= */
.room-detail-container {
    max-width: 1200px;
    margin: 120px auto 60px; /* Margin atas tinggi agar tidak tertutup navbar */
    padding: 0 5%;
}

/* Header Info */
.room-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.detail-location {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-available {
    background-color: #E2F2EB;
    color: #1A7B54;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: #E5E7EB;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.img-sub-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.img-sub-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.img-sub-3 {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

/* Content Layout (Left & Right) */
.room-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Left Content */
.meta-info {
    display: flex;
    gap: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 30px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

.about-room h3, .room-facilities h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

.about-room p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.room-facilities {
    margin-top: 40px;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.facility-item {
    background-color: #F8F9FA;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Right Content: Booking Card */
.room-booking-right {
    position: relative;
}

.booking-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px; /* Agar form booking menempel saat di-scroll */
}

.price-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
}

.price-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
}

.price-header span {
    font-size: 0.9rem;
    color: #666;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background-color: #F9FAFB;
    outline: none;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #111;
}

/* WhatsApp Button Spesifik */
.btn-whatsapp {
    width: 100%;
    background-color: #25D366; /* Warna Hijau WhatsApp */
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1EBE5C;
}

.no-charge-text {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 12px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-rows: 180px 180px;
    }
    
    .room-content-wrapper {
        grid-template-columns: 1fr; /* Jadi 1 kolom bersusun di tablet */
    }
    
    .booking-card {
        position: static; /* Hilangkan sticky di layar kecil */
    }
}

@media (max-width: 768px) {
    .room-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .img-main, .img-sub-1, .img-sub-2, .img-sub-3 {
        grid-column: 1 / 2; /* Semua gambar jadi memanjang ke bawah di mobile */
        grid-row: auto;
        height: 200px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr; /* 1 kolom untuk fasilitas di mobile */
    }
}