/* Nipuro Real Estate Portal - Magicbricks Style */

:root {
    /* Magicbricks Color Palette */
    --primary-color: #1E4D5C;      /* Nipuro Teal */
    --secondary-color: #FF6B35;     /* Nipuro Orange */
    --accent-color: #00A651;        /* Green */
    --text-color: #333333;          /* Dark Gray */
    --text-muted: #666666;          /* Medium Gray */
    --border-color: #E5E5E5;        /* Light Border */
    --logo-bg-color: #FFF7E6;        /* Logo background */
    --background-color: #FFFFFF;     /* White */
    --light-bg: #F8F9FA;            /* Light Background */
    --success-color: #28A745;        /* Success Green */
    --warning-color: #FFC107;        /* Warning Yellow */
    --danger-color: #DC3545;         /* Danger Red */
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-secondary: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-md);
    font-weight: 500;
    padding: var(--spacing-md) var(--spacing-lg);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #E55A2B;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #E55A2B 100%);
    padding: var(--spacing-xxl) 0;
    color: white;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    color: white;
}

/* Search Container */
.search-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-xl);
}

.search-tabs {
    display: flex;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.search-tab {
    background: none;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.search-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.search-tab:hover {
    color: var(--primary-color);
}

.search-field {
    margin-bottom: var(--spacing-md);
}

.search-field label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.input-group .form-control {
    padding-left: 2.5rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.search-btn {
    height: 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-color);
    border: none;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.search-btn:hover {
    background-color: #E55A2B;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Stats Section */
.stats-section {
    background-color: var(--light-bg);
    padding: var(--spacing-xxl) 0;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-content p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Featured Section */
.featured-section {
    background-color: white;
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.property-content {
    padding: var(--spacing-lg);
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.property-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.property-features {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Locations Section */
.locations-section {
    background-color: var(--light-bg);
    padding: var(--spacing-xxl) 0;
}

.location-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.location-image {
    height: 150px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.05);
}

.location-content {
    padding: var(--spacing-lg);
}

.location-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.location-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    background-color: white;
    padding: var(--spacing-xxl) 0;
}

.feature-card {
    padding: var(--spacing-xl);
    text-align: center;
    height: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #E55A2B 100%);
    padding: var(--spacing-xxl) 0;
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-container {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-md);
    }
    
    .search-tabs {
        flex-direction: column;
    }
    
    .search-tab {
        text-align: left;
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .search-tab.active {
        border-bottom-color: transparent;
        border-left-color: var(--primary-color);
    }
    
    .property-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .search-container {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-sm);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* Utilities override to align brand colors */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-left-primary { border-left: .25rem solid var(--primary-color) !important; }

/* Checkbox Styling */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 77, 92, 0.25) !important;
}

.form-check-input:checked:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 77, 92, 0.25) !important;
}

/* Properties Page Scrollable Layout */
.properties-container {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f8f9fa;
}

.properties-container::-webkit-scrollbar {
    width: 8px;
}

.properties-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.properties-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.properties-container::-webkit-scrollbar-thumb:hover {
    background: #1a3d47;
}

/* Sticky Map Styling */
.sticky-top {
    position: sticky !important;
    top: 20px !important;
    z-index: 1020;
}

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
    .properties-container {
        max-height: 60vh;
    }
    
    .sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px;
    }
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: var(--spacing-sm);
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-right: var(--spacing-md);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
}

.language-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
} 