@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand i {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 1.5rem 5rem; /* Padding bawah ditambah untuk ruang search box */
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.05rem;
    color: #93c5fd;
    margin-bottom: 2rem;
}

/* Search Bar Box */
.search-container {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.search-box {
    display: flex;
    background: white;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 0.5rem; /* Beri jarak antar elemen */
}

.search-box i {
    color: #94a3b8;
    margin-left: 1rem;
    font-size: 1.1rem;
    flex-shrink: 0; /* Icon tidak boleh mengecil */
}

.search-box input {
    flex: 1;
    min-width: 0; /* Penting agar input bisa mengecil di layar sempit */
    border: none;
    outline: none;
    padding: 0.7rem 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
}

.search-box button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap; /* Teks tombol tidak boleh turun baris */
    flex-shrink: 0; /* Tombol tidak boleh mengecil */
    transition: background 0.2s;
}

.search-box button:hover {
    background: #1d4ed8;
}

/* Main Content Container */
.main-container {
    max-width: 1100px;
    margin: -1.5rem auto 4rem; /* Margin negatif dikurangi agar tidak menimpa banner terlalu jauh */
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* Hotel Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ukuran minimum disesuaikan */
    gap: 1.5rem;
}

/* Hotel Card */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge span {
    color: white;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.card-location {
    color: #64748b;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.price-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2563eb;
}

.btn-wa {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-wa:hover {
    background: #20ba5a;
    transform: scale(1.02);
}

.btn-back {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    text-decoration: underline;
}

.no-results {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    grid-column: 1 / -1;
    color: #64748b;
}

.no-results i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Responsif Khusus Mobile (HP) */
@media (max-width: 640px) {
    .hero {
        padding: 3rem 1rem 4rem; /* Padding disesuaikan */
    }

    .hero h1 {
        font-size: 1.75rem; /* Ukuran font judul dikurangi */
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .search-box {
        padding: 4px; /* Padding search box dikurangi */
        gap: 0.25rem;
    }

    .search-box i {
        margin-left: 0.75rem;
        font-size: 1rem;
    }

    .search-box input {
        padding: 0.6rem 0.3rem;
        font-size: 0.85rem;
    }

    .search-box button {
        padding: 0.6rem 1rem; /* Padding tombol dikurangi */
        font-size: 0.85rem;
    }

    .main-container {
        margin: 1rem auto 3rem; /* Margin negatif DIHAPUS agar tidak menimpa banner */
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.2rem;
        text-align: center; /* Judul ditengah pada mobile */
    }
}