/* Custom CSS for Ganpati Homes */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-muted: #6b7280;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 64, 175, 0.9)),
                url('/static/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 76px;
}

.hero-overlay {
    padding: 5rem 0;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
}

.property-image img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.property-features .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-icon i {
    color: var(--primary-color);
}

/* Service Card Images - Fixed Height */
.service-img-fixed {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
}

/* Process Steps */
.process-step {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.step-number {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Property Detail */
.property-detail-section {
    padding-top: 100px;
    padding-bottom: 60px;
}

.property-gallery img {
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.property-info .card {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.property-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.property-location {
    font-size: 1.1rem;
}

.property-price {
    font-size: 2.5rem;
}

.feature-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    margin: 0 5px;
}

.agent-info img {
    object-fit: cover;
}

/* Contact Form */
.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-item:last-child {
    border-bottom: none;
}

.map-placeholder {
    border-radius: 15px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .property-gallery img {
        height: 300px;
    }
    
    .property-price {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-overlay {
        padding: 3rem 0;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.shadow-medium {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-strong {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.border-radius-lg {
    border-radius: 15px;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success States */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Property Filters */
.filter-active {
    background-color: var(--primary-color) !important;
    color: white !important;
}