/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --muted: #64748b;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    /* Lighter background for better contrast */
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.05);
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    height: 75vh;
    /* Slightly reduced height */
    min-height: 550px;
    background-image: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0;
    /* Remove margin, sections will flow naturally */
    border-radius: 0 0 0 0;
    /* Flat bottom for integration */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
    margin-top: -50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Search Box Floating */
.search-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: -4rem auto 3rem auto;
    /* Clean overlap */
    position: relative;
    z-index: 10;
}

.nav-tabs-custom {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    background: transparent;
    color: var(--muted) !important;
    font-weight: 600;
    padding-bottom: 1rem;
    margin-bottom: -2px;
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

.form-control-lg,
.form-select-lg {
    border: 1px solid #cbd5e1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Category Icons Section */
.category-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    height: 100%;
    text-decoration: none;
    display: block;
    color: var(--dark);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

/* City / Location Cards */
.location-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 250px;
    display: block;
    color: white;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.location-card:hover img {
    transform: scale(1.1);
}

.location-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Properties Grid */
.card-property {
    border: none;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.card-property:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-top-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-property:hover .card-img-top-wrapper img {
    transform: scale(1.05);
}

.badge-float-start {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.badge-float-end {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.card-body {
    padding: 1.5rem;
}

.price-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
}

.location-text {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Call to Action Banner */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.1;
    background-image: radial-gradient(#fff 2px, transparent 2px);
    background-size: 30px 30px;
}

/* Services / Features */
.service-box {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}