:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-soft: #f8f9fa;
    --text: #000000;
    --text-muted: rgba(0, 0, 0, 0.6);
    --primary: #004aad;
    --primary-600: #004aad;
    --accent: #004aad;
    --border: #f8f9fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --navbar-height: 76px;
}

* {
    font-family: 'Manrope', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-600);
}

.text-primary {
    color: var(--primary) !important;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--text);
}

/* Navbar */
.navbar-custom {
    background: #004aad !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.85rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: #f8f9fa !important;
}

.navbar-brand img {
    max-height: 4rem !important;
}

.nav-link {
    color: #f8f9fa !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.15);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.2);
}

/* Page Header */
.page-header {
    background: var(--primary);
    color: #fff;
    padding: calc(4.5rem + var(--navbar-height)) 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.page-header>* {
    position: relative;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.page-title {
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.page-header.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
}

/* Hero with background image */
.page-header.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header.has-bg-image::before {
    display: none;
    /* Hide the default gradient overlay */
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.5));
    z-index: 0;
}

.page-actions .btn {
    min-width: 180px;
}

.page-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .page-actions {
        flex-direction: column;
        align-items: center;
    }

    .page-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Hero Section */
.hero-section {
    background: var(--surface-soft);
    padding: 4rem 0 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-section::before {
    content: none;
}

.hero-title {
    font-size: clamp(2rem, 2.6vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.hero-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
}

/* Cards */
.card,
.property-card,
.search-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.property-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    height: 200px;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.property-image i {
    font-size: 3.5rem;
    color: rgba(0, 0, 0, 0.35);
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-featured {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(146, 64, 14, 0.2);
}

.badge-available {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-reserved {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-sold {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.property-body {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.property-location i {
    color: var(--accent);
}

.property-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.feature-item i {
    color: var(--accent);
}

.table {
    color: var(--text);
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
}

/* Search */
.search-card {
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.form-control,
.form-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(0, 74, 173, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.15);
    color: var(--text);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.6rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(0, 74, 173, 0.9);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text);
    background: #fff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--text);
}

/* Footer */
footer {
    background: #004aad;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: none;
    color: #f8f9fa;
}

footer p {
    color: #f8f9fa;
    margin: 0;
}

footer h5 {
    color: #ffffff;
}

footer a {
    color: #f8f9fa;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

footer .developer-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #f8f9fa;
}

footer .developer-credits a {
    color: #f8f9fa;
}

footer .developer-credits a:hover {
    color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}
