/* ===== VARIABLES & RESET ===== */
:root {
    /* Color Palette - Unik, bukan warna brand populer */
    --primary: #4F46E5;
    /* Ungu elegan */
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --accent: #F97316;
    /* Oranye cerah */
    --accent-light: #FB923C;
    --accent-dark: #EA580C;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-light: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Typography */
    --font-base: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.75rem, 4vw, 2.5rem);
    --text-4xl: clamp(2rem, 5vw, 3rem);

    /* Effects */
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Layout */
    --header-height: 70px;
    --sidebar-width: 280px;
    --max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-md);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

.btn-full {
    width: 100%;
}

.btn-fav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    color: var(--text-light);
    border: 1px solid var(--border);
    font-size: 1.2rem;
}

.btn-fav:hover {
    color: var(--error);
    border-color: var(--error);
}

.btn-fav.active {
    color: var(--error);
    border-color: var(--error);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--surface);
    box-shadow: var(--shadow);
    height: var(--header-height);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo::before {
    content: "";
    width: 70px;
    height: 70px;
    background-image: url("../img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
    position: relative;
}

/* Tambahkan efek dekoratif di atas footer */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-logo::before {
    content: "🏠";
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.footer-heading {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: white;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link::before {
    content: "→";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-link:hover::before {
    opacity: 1;
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Newsletter */
.footer-newsletter {
    margin-top: var(--space-md);
}

.footer-newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter .btn {
    background-color: white;
    color: var(--primary);
    font-weight: 700;
}

.footer-newsletter .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments for footer */
@media (max-width: 767px) {
    .footer {
        padding: var(--space-lg) 0;
    }

    .footer-container {
        gap: var(--space-lg);
    }

    .footer-heading {
        margin-top: var(--space-md);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: var(--space-xl);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.search-form {
    background-color: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-lg);
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .search-form-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== SECTION COMMON ===== */
.section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* ===== CATEGORIES ===== */
.categories {
    background-color: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background-color: var(--background);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.category-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.category-count {
    color: var(--text-light);
    font-size: var(--text-sm);
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-img {
    height: 200px;
    background-color: var(--border);
    position: relative;
    overflow: hidden;
}

.property-img::after {
    content: "Gambar Kos";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-weight: 600;
}

.property-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background-color: var(--accent);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
}

.property-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.property-location {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.property-location::before {
    content: "📍";
}

.property-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.property-price span {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-light);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.property-feature::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.rating-stars {
    color: var(--warning);
    font-size: var(--text-lg);
}

.property-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius);
    text-align: center;
    margin: var(--space-xl) 0;
}

.cta-banner h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-banner p {
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    opacity: 0.9;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: var(--space-md) 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.breadcrumb-list {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    color: var(--text-light);
}

.breadcrumb-link {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* ===== SEARCH PAGE LAYOUT ===== */
.search-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
}

@media (min-width: 1024px) {
    .search-page {
        flex-direction: row;
    }
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    height: fit-content;
}

@media (min-width: 1024px) {
    .filter-sidebar {
        width: var(--sidebar-width);
        position: sticky;
        top: calc(var(--header-height) + var(--space-lg));
        max-height: calc(100vh - var(--header-height) - var(--space-lg));
        overflow-y: auto;
    }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.filter-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
}

.filter-reset {
    color: var(--primary);
    font-size: var(--text-sm);
    background: none;
    font-weight: 600;
}

.filter-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle {
    background: none;
    color: var(--text-light);
    font-size: var(--text-lg);
    display: none;
}

@media (max-width: 1023px) {
    .filter-toggle {
        display: block;
    }

    .filter-section-content {
        display: none;
    }

    .filter-section.active .filter-section-content {
        display: block;
    }
}

.range-slider {
    margin-top: var(--space-md);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    flex: 1;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.search-count {
    font-size: var(--text-lg);
    font-weight: 600;
}

.search-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 600;
}

.pagination-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:hover:not(.active) {
    background-color: var(--background);
}

/* ===== DETAIL PAGE ===== */
.detail-header {
    margin-bottom: var(--space-xl);
}

.detail-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xs);
}

.detail-location {
    color: var(--text-light);
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.detail-location::before {
    content: "📍";
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
}

.detail-meta-item.rating {
    color: var(--warning);
}

.detail-meta-item.price {
    color: var(--primary);
    font-size: var(--text-xl);
}

.detail-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
}

.detail-status.available {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.detail-status.unavailable {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ===== GALLERY ===== */
.gallery {
    margin-bottom: var(--space-xl);
}

.gallery-main {
    height: 400px;
    background-color: var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.gallery-main::after {
    content: "Gambar Utama Kos";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-weight: 600;
    font-size: var(--text-lg);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-thumb {
    height: 120px;
    background-color: var(--border);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.gallery-thumb::after {
    content: "Gambar";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-weight: 600;
}

/* ===== DETAIL CONTENT ===== */
.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .detail-content {
        grid-template-columns: 2fr 1fr;
    }
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.detail-section {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
}

.detail-section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}

/* ===== ROOM OPTIONS ===== */
.room-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.room-option {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

@media (min-width: 768px) {
    .room-option {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.room-option:hover {
    border-color: var(--primary);
}

.room-info h4 {
    margin-bottom: var(--space-xs);
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.room-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.room-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

.room-price span {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-light);
}

/* ===== REVIEWS ===== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.review {
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
}

.reviewer-info h4 {
    margin-bottom: var(--space-xs);
}

.review-date {
    color: var(--text-light);
    font-size: var(--text-sm);
}

.review-rating {
    color: var(--warning);
    font-size: var(--text-lg);
}

/* ===== BOOKING CARD ===== */
.booking-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.booking-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.booking-price {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.booking-price-amount {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
}

.booking-price-period {
    color: var(--text-light);
    font-size: var(--text-sm);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.booking-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    padding: var(--space-md);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 90;
}

@media (max-width: 1023px) {
    .booking-cta-mobile {
        display: block;
    }

    .booking-card {
        position: static;
        margin-bottom: var(--space-xl);
    }
}

/* ===== FACILITIES LIST ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.facility-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.facility-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

/* ===== RULES LIST ===== */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.rule-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-icon {
    color: var(--accent);
    font-weight: bold;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .header {
        height: 60px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: var(--space-xl) 0;
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .search-form {
        padding: var(--space-md);
    }

    .detail-title {
        font-size: var(--text-2xl);
    }

    .gallery-main {
        height: 250px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-sort {
        width: 100%;
    }

    .form-select {
        flex: 1;
    }
}

@media (max-width: 1023px) {
    .filter-sidebar {
        margin-bottom: var(--space-lg);
    }
}

/* ===== HELP PAGE ===== */
.help-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: var(--space-xl);
}

.help-hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.help-search {
    max-width: 600px;
    margin: 0 auto;
    margin-top: var(--space-lg);
}

.help-search .form-control {
    padding: var(--space-md);
    font-size: var(--text-lg);
}

.categories-help {
    margin: var(--space-xl) 0;
}

.categories-help-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .categories-help-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-help-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.category-help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-help-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
    color: var(--primary);
}

.faq-section {
    margin: var(--space-xl) 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background-color: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--background);
}

.faq-toggle {
    color: var(--text-light);
    font-size: var(--text-xl);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    max-height: 500px;
}

.contact-section {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-method {
    text-align: center;
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.contact-method:hover {
    border-color: var(--primary);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
    color: var(--primary);
}

.contact-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.contact-detail {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* ===== FAVORITES PAGE ===== */
.favorites-hero {
    background-color: var(--background);
    padding: var(--space-xl) 0;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.favorites-hero h1 {
    margin-bottom: var(--space-sm);
}

.favorites-subtitle {
    color: var(--text-light);
    font-size: var(--text-lg);
}

.favorites-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .favorites-content {
        grid-template-columns: 1fr 300px;
    }
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.favorites-empty {
    text-align: center;
    padding: var(--space-2xl);
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    display: block;
}

.favorites-sidebar {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    height: fit-content;
}

.favorites-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.stat-label {
    color: var(--text-light);
}

.stat-value {
    font-weight: 700;
    color: var(--primary);
}

.favorite-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.favorite-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.favorite-option:hover {
    background-color: var(--background);
}

.favorite-option-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Favorite Item Card */
.favorite-item {
    background-color: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .favorite-item {
        flex-direction: row;
    }
}

.favorite-item-img {
    height: 200px;
    width: 100%;
    background-color: var(--border);
    position: relative;
}

@media (min-width: 768px) {
    .favorite-item-img {
        width: 300px;
        height: auto;
    }
}

.favorite-item-img::after {
    content: "Gambar Kos";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-weight: 600;
}

.favorite-item-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background-color: var(--accent);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
}

.favorite-item-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.favorite-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.favorite-item-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.favorite-item-location {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.favorite-item-location::before {
    content: "📍";
}

.favorite-item-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.favorite-item-price span {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-light);
}

.favorite-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.favorite-item-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.favorite-item-feature::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.favorite-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.favorite-item-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--warning);
}

.favorite-item-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-remove-fav {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-remove-fav:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Comparison Section */
.comparison-section {
    margin-top: var(--space-xl);
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background-color: var(--background);
    font-weight: 700;
    color: var(--text);
}

.comparison-table tr:hover {
    background-color: var(--background);
}

.comparison-feature {
    font-weight: 600;
    color: var(--text);
}

.comparison-value {
    text-align: center;
}

.comparison-value.yes {
    color: var(--success);
    font-weight: 700;
}

.comparison-value.no {
    color: var(--error);
}

/* Toast Notification (Visual Only) */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background-color: var(--success);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1000;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hidden {
    display: none;
}

.toast-error {
    background-color: var(--error);
}

.toast-warning {
    background-color: var(--warning);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    background-color: var(--background);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.auth-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    content: "";
    width: 70px;
    height: 70px;
    background-image: url("../img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}



.auth-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.auth-subtitle {
    color: var(--text-light);
    font-size: var(--text-lg);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xs);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
}

.forgot-password {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
    color: var(--text-light);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.auth-divider span {
    padding: 0 var(--space-md);
    font-size: var(--text-sm);
}

.social-auth {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    font-weight: 600;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: var(--background);
    border-color: var(--text-light);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    margin-left: var(--space-xs);
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
}

/* Password strength indicator */
.password-strength {
    margin-top: var(--space-xs);
}

.strength-bar {
    height: 4px;
    background-color: var(--border);
    border-radius: 2px;
    margin-bottom: var(--space-xs);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background-color: var(--error);
}

.strength-fill.medium {
    width: 66%;
    background-color: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background-color: var(--success);
}

.strength-text {
    font-size: var(--text-xs);
    color: var(--text-light);
}

/* Terms and conditions */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
}

.terms-agreement a {
    color: var(--primary);
    text-decoration: underline;
}

/* Auth extras */
.auth-extras {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.auth-extra-link {
    color: var(--text-light);
    font-size: var(--text-sm);
    transition: color 0.2s ease;
}

.auth-extra-link:hover {
    color: var(--primary);
}

/* Success message */
.auth-success {
    text-align: center;
    padding: var(--space-xl);
}

.auth-success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: var(--space-lg);
    display: block;
}

/* Responsive adjustments for auth pages */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-lg);
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
}