:root {
    --primary: #6a0dad;
    --primary-light: #8a4fcc;
    --secondary: #4b0082;
    --putra: #3498db;
    --putri: #e91e63;
    --campur: #2ecc71;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary) !important;
    font-size: 1.8rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    width: 40%;
}

.search-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--text-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--primary-light);
}

/* Main Content Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-section {
    background-color: #f0f8ff;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Kos Grid */
.kos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.kos-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.kos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.kos-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.kos-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kos-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.kos-info p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.kos-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom */
}

.kategori {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.kategori.putra { background-color: var(--putra); }
.kategori.putri { background-color: var(--putri); }
.kategori.campur { background-color: var(--campur); }

.rating {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.harga {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
}

.btn-detail {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-detail:hover {
    background-color: #3b0060;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-medium);
    font-size: 1.2rem;
}

/* Detail Kos Page */
.kos-detail-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.kos-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.kos-header h1 {
    margin-top: 0;
    color: var(--primary);
    font-size: 2rem;
}

.kos-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--text-medium);
}

.kos-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.kos-meta .kategori {
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
}

.gallery-container {
    padding: 1.5rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.thumbnail-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
}

.kos-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

.kos-description h2 {
    margin-top: 0;
    color: var(--primary);
}

.kos-price-box {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kos-price-box h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.kos-price-box .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--primary-light);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.btn.contact-btn.whatsapp {
    background-color: var(--campur);
    color: white;
    border: none;
    display: block; /* Penambahan penting ini */
}

.btn.contact-btn.whatsapp:hover {
    background-color: #28a745;
}