:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    --primary-color: #34495e;
    --text-color: #e0e0e0;
    --bg-color: #1a1a2e;
    --card-bg: #2d2d44;
    --border-color: #3d3d5c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 26px;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
}

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

.btn-login {
    background: var(--secondary-color);
    padding: 8px 25px !important;
    border-radius: 50px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), 
                url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1600');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 50px;
}

/* Search Box */
.search-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 1000px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tab.active {
    background: var(--secondary-color);
    color: white;
}

.search-form .form-select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
}

.btn-search {
    background: var(--secondary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Featured Properties */
.featured-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.property-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

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

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.property-badge.featured { background: #f39c12; }
.property-badge.hot { background: #e74c3c; }
.property-badge.new { background: #27ae60; }

.property-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.property-status.sale { background: #3498db; }
.property-status.rent { background: #9b59b6; }

.btn-wishlist {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--secondary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: white;
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.property-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.property-location {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 15px 0;
}

.property-features span {
    font-size: 13px;
    color: #7f8c8d;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.agent-info span {
    font-size: 13px;
    font-weight: 500;
}

.btn-details {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--secondary-color);
}

.btn-view-all {
    background: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-box {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 35px;
    color: white;
}

.feature-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.testimonial-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.rating {
    color: #f39c12;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-cta {
    background: var(--secondary-color);
    color: white;
    padding: 15px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Properties Listing */
.properties-listing {
    padding: 80px 0;
}

.filters-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.filters-box h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-color);
}

.form-check-label {
    font-weight: 400 !important;
    color: var(--text-color);
}

.bhk-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bhk-btn {
    padding: 10px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bhk-btn:hover, .bhk-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-apply-filters {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-reset-filters {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
}

.properties-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-weight: 600;
    color: var(--text-color);
}

.sort-by .form-select {
    width: auto;
    padding: 8px 15px;
}

.pagination-nav {
    margin-top: 40px;
}

.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    background: var(--card-bg);
}

.page-link:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.page-item.active .page-link {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p {
    color: #bdc3c7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: #bdc3c7;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 38px; }
    .filters-box { position: relative; top: 0; margin-bottom: 30px; }
}

@media (max-width: 767px) {
    .hero-content h1 { font-size: 32px; }
    .search-tabs { flex-direction: column; }
    .properties-toolbar { flex-direction: column; gap: 15px; }
}

