:root {
    --primary: #e72e3d;
    --primary-dark: #c41c2a;
    --dark: #333333;
    --light: #ffffff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
    /* Space for bottom nav */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

/* Header Styles */
.app-header {
    background-color: var(--light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}

.logo i {
    margin-right: 8px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--dark);
    border: none;
}

/* Search Section */
.search-section {
    padding: 20px 0;
    background: var(--light);
    position: sticky;
    top: 60px;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container {
    display: flex;
    background: var(--light-gray);
    border-radius: 50px;
    padding: 8px 15px;
    align-items: center;
}

.search-container i {
    color: var(--gray);
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 15px;
    outline: none;
}

.filter-btn {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
}

/* Tagline Section */
.tagline-section {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #fff6f7, #fff);
}

.tagline {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Amenities Section */
.amenities {
    padding: 10px 0 30px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.amenities::-webkit-scrollbar {
    display: none;
}

.amenities-list {
    display: inline-flex;
    gap: 15px;
    padding: 0 15px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    background: var(--light);
    border-radius: 16px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.amenity-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(231, 46, 61, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.amenity-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
    white-space: normal;
}

/* Featured Properties */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
}

.view-all {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* Updated Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.property-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-image {
    height: 160px;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: none;
    font-size: 15px;
}

.property-details {
    padding: 12px;
}

.property-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.property-society {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.property-location i {
    font-size: 12px;
    margin-right: 6px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--gray);
}

.property-feature {
    display: flex;
    align-items: center;
}

.property-feature i {
    margin-right: 4px;
    color: var(--primary);
}

/* Nearby Properties Heading */
.nearby-heading {
    text-align: center;
    padding: 25px 0 15px;
    background: var(--light-gray);
    margin-top: 20px;
    border-radius: 16px 16px 0 0;
}

.nearby-heading h2 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.nearby-heading p {
    color: var(--gray);
    font-size: 14px;
}

/* How It Works */
.how-it-works {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 30px 20px;
    margin: 30px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    background: var(--light);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
    font-size: 18px;
}

.step-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--gray);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--gray);
    flex: 1;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--light);
    z-index: 200;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.close-sidebar {
    font-size: 24px;
    color: var(--dark);
}

.sidebar-menu {
    padding: 20px;
}

.menu-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.menu-item i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: var(--gray);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.overlay.active {
    display: block;
}

/* Desktop Styles */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .bottom-nav {
        display: none;
    }

    .tagline {
        font-size: 28px;
    }

    .search-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .amenities-list {
        justify-content: center;
    }

    .amenity-item {
        min-width: 140px;
    }

    .amenity-name {
        font-size: 14px;
    }

    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .property-image {
        height: 180px;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}



footer {
    background: linear-gradient(to right, #2c3e50, #4a5568);
    color: #fff;
    padding: 40px 0 10px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ff6b6b;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ff6b6b;
}

.footer-links i {
    margin-right: 10px;
    color: #ff6b6b;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ff6b6b;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #ff6b6b;
    transform: translateY(-3px);
}


.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #4a5568;
    margin-top: 30px;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}