* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc3545;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0;
    animation: slideIn 8s ease-in-out infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
}

.hero-slide:nth-child(3) {
    animation-delay: 16s;
}

.hero-slide:nth-child(4) {
    animation-delay: 24s;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease-out;
    position: relative;
    z-index: 1;
}

.form-select-lg, .btn-lg {
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 500;
}

.form-select option {
    color: var(--text-color);
}

/* Property Card */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.2);
}

.property-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.property-details {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.property-detail-item {
    text-align: center;
    flex: 1;
}

.property-detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.property-detail-item small {
    display: block;
    color: #666;
    font-size: 0.85rem;
}

/* Area Card */
.area-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.area-card:hover {
    transform: scale(1.05);
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.area-card:hover img {
    transform: scale(1.1);
}

.area-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    transition: all 0.3s ease;
}

.area-card:hover .area-overlay {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(0, 0, 0, 0.8));
}

.area-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.area-properties {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Buttons */
.btn-danger {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #b8243e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Stats Section */
.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.bg-danger h3 {
    font-size: 3rem;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.3rem;
    color: white !important;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* List Items */
.list-unstyled li {
    color: #666;
    font-size: 0.95rem;
}

.list-unstyled li i {
    margin-right: 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Animation for sections on scroll */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Card shadows on hover */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1.display-3 {
        font-size: 2rem;
    }

    h2.display-5 {
        font-size: 1.75rem;
    }

    .hero-section {
        min-height: 400px;
    }

    .search-container {
        padding: 15px;
    }

    section {
        padding: 50px 0;
    }

    .area-name {
        font-size: 1.4rem;
    }

    .property-card img {
        height: 200px;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
