/* 
 * UNION LETTING & SALES LIMITED - Main Stylesheet
 * Premium Dark Theme
 */

:root {
    /* Colors - Premium Luxury Theme */
    --color-primary: #e60000; /* Union Red */
    --color-primary-dark: #b30000;
    --color-secondary: #1a1a1a; /* Luxury Black */
    --color-accent: #d4af37; /* Luxury Gold accent */
    --color-bg-dark: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-muted: #f1f5f9;
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    --spacing-3xl: 8rem;
    
    /* Utilities */
    --border-radius: 4px; /* Sharper luxury look */
    --border-radius-lg: 8px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 20px rgba(230, 0, 0, 0.2);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Navigation Overhaul */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

/* Scrolled state */
.navbar.scrolled {
    padding: 10px 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: grid;
    grid-template-columns: 200px 1fr 200px; /* Logo - Menu - Spacer */
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-md);
}

.nav-menu {
    justify-self: center;
}

.nav-actions {
    justify-self: end;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.site-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .site-logo {
    height: 48px;
}

/* Menu Styling */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-flex;
    align-items: center;
}

.nav-link {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* CTA Button */
.nav-cta {
    color: var(--color-secondary) !important;
}

.nav-cta:hover {
    color: var(--color-primary) !important;
}

.nav-cta i {
    margin-right: 8px;
}

/* Mobile Toggle Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
    }
    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.jpg') center/cover;
    padding-top: 120px; /* Increased for navbar clearance */
}

.hero-slide .container {
    padding-top: 100px; /* Push content down further */
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: #fff;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xl);
}

/* Advanced Search Section */
.hero-search-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto; /* Removed negative margin, added spacing */
    position: relative;
    z-index: 10;
}

.search-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
}

.search-tab {
    padding: 1.2rem 2.5rem;
    background: #fff;
    border: none;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-secondary);
    opacity: 0.85;
}

.search-tab.active {
    background: #fff;
    color: var(--color-primary);
    opacity: 1;
}

.search-main {
    background: #fff;
    padding: 2.5rem;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
}

@media (max-width: 992px) {
    .search-main {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-main .btn-search {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .search-main {
        grid-template-columns: 1fr;
    }
    .search-main .btn-search {
        grid-column: span 1;
    }
}

.search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
}

.search-field select, .search-field input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-main);
    background-color: #fff;
    appearance: none;
}

.search-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.btn-search {
    height: 3.2rem;
    padding: 0 2.5rem;
    font-weight: 700;
}

/* Dual Banner CTA Section */
.dual-banner-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.dual-banner-card {
    flex: 1 1 50%;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

@media (max-width: 768px) {
    .dual-banner-card {
        flex: 1 1 100%;
        min-height: 350px;
    }
}

.dual-banner-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.dual-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    transition: background-color 0.4s ease;
}

.landlord-overlay {
    background-color: rgba(15, 23, 42, 0.75); /* Dark Slate */
}

.seller-overlay {
    background-color: rgba(15, 23, 42, 0.75); /* Dark Slate */
}

.dual-banner-card:hover .dual-banner-bg {
    transform: scale(1.05);
}

.dual-banner-card:hover .landlord-overlay {
    background-color: rgba(15, 23, 42, 0.85);
}

.dual-banner-card:hover .seller-overlay {
    background-color: rgba(220, 38, 38, 0.85); /* Primary Red tint on hover */
}

.dual-banner-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
}

.dual-banner-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dual-banner-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}


/* Property Type Icons */
.hero-property-types {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.type-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.type-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--color-accent);
}

.view-all-types {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Featured Tabs */
.featured-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.featured-tab {
    background: transparent;
    border: 2px solid var(--color-border);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.featured-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.featured-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--color-primary);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.stat-label {
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Featured Areas */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.area-card {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.area-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    transition: var(--transition);
}

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

.area-card:hover .area-overlay {
    padding-bottom: 3rem;
}

.area-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Trust Cards / Why Choose Us */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.trust-card:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.trust-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.testimonial-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.property-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.property-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
    z-index: 2;
}

.property-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.property-content {
    padding: 2rem;
}

.property-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.property-title a {
    color: var(--color-secondary);
}

.property-title a:hover {
    color: var(--color-primary);
}

.property-address {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.property-address i {
    color: var(--color-primary);
}

.property-features {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

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

/* Footer Redesign - Light Theme */
/* Footer Redesign - Premium White Theme */
.footer {
    background-color: #ffffff;
    color: var(--color-text-main);
    position: relative;
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    padding: 5rem 0;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--color-border);
}

.footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.newsletter-content h3 {
    color: var(--color-secondary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.newsletter-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 500px;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    padding: 6px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    flex: 1;
    outline: none;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
}

.footer-main {
    padding: 6rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    font-family: var(--font-heading);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 50px;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo .site-logo {
    max-height: 70px;
}

.footer-about p {
    margin: 1.5rem 0 2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(230, 0, 0, 0.2);
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links li a {
    color: var(--color-text-muted);
    transition: var(--transition);
    display: inline-block;
    font-size: 1rem;
}

.footer-links li a:hover {
    color: var(--color-primary);
    transform: translateX(8px);
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.footer-contact li i {
    color: var(--color-primary);
    margin-top: 5px;
    font-size: 1.2rem;
}

.footer-contact li a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 2.5rem 0;
    background-color: #fff;
    border-top: 1px solid var(--color-border);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .properties-section > .container > div {
        grid-template-columns: 1fr !important;
    }
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 1200px) {
    .footer-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-newsletter {
        text-align: center;
        justify-content: center;
    }
    .newsletter-form {
        max-width: 100%;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.properties-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Listing Page Redesign */
.filter-sidebar {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
    border: 1px solid #f0f0f0;
}

.filter-group {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid #f5f5f5;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    color: var(--color-secondary);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9rem;
}

.search-input-wrap .form-control {
    padding-left: 45px !important;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.05);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

.results-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text-muted);
}

.view-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* List View Support */
.property-grid.list-view {
    grid-template-columns: 1fr;
}

.property-grid.list-view .property-card {
    display: flex;
    height: 280px;
}

.property-grid.list-view .property-img-wrap {
    width: 400px;
    height: 100%;
}

/* Property Detail Page */
.property-hero {
    background: #fff;
    padding: 10rem 0 4rem;
    border-bottom: 1px solid var(--color-border);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.property-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.property-price-tag {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.feature-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item strong {
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.booking-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

/* Calculator */
.calculator-box {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 3rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.calc-result {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    grid-column: span 2;
}

.calc-result h4 {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calc-result .monthly-payment {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Responsive */
/* Pricing Cards */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    position: relative;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-val {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    margin: 1.5rem 0;
}

.price-val span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
    color: var(--color-secondary);
}

.pricing-features li i {
    color: var(--color-primary);
    margin-top: 3px;
}

/* ==========================================================================
   Mobile Responsiveness & Fixes
   ========================================================================== */

@media (max-width: 991px) {
    /* Header & Navigation Fixes */
    .nav-container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--color-secondary);
        border-radius: 3px;
        transition: var(--transition);
    }

    .nav-toggle.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 120px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-heading);
        text-transform: capitalize;
        letter-spacing: 0;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 10px;
    }

    .nav-actions { display: none !important; }

    /* Layout General */
    .section { padding: 4rem 0; }
    .page-header { padding: 10rem 0 5rem !important; }
    .page-title { font-size: 2.5rem !important; }

    /* Properties Listing */
    .properties-layout {
        display: flex !important;
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        padding: 2rem !important;
    }

    /* Property Detail */
    .property-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }

    .property-header div:last-child {
        text-align: left !important;
    }

    .property-single section .container > div {
        grid-template-columns: 1fr !important;
    }

    .gallery-top { height: 350px !important; }
    .gallery-thumbs { height: 80px !important; }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    /* Landlords */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Page */
    .contact-page section .container > div {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }

    .contact-form-wrap > div {
        padding: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    
    /* Homepage Banners */
    .dual-banners {
        grid-template-columns: 1fr !important;
        margin-top: 0 !important;
        padding: 0 1.5rem;
        gap: 2rem !important;
    }

    .banner-card {
        padding: 2.5rem 1.5rem !important;
        text-align: center;
    }

    .banner-card h2 {
        font-size: 1.8rem !important;
        br { display: none; }
    }

    /* Split Section Improvements */
    .split-section {
        flex-direction: column !important;
        min-height: auto !important;
        margin: 4rem 0 !important;
    }

    .split-content-left {
        padding: 4rem 1.5rem !important;
        text-align: center !important;
    }

    .hero-content-inner {
        width: 100% !important;
    }

    .hero-content-inner p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-content-inner div {
        justify-content: center !important;
    }

    .split-image-right {
        min-height: 400px !important;
    }

    .split-image-right div {
        background: linear-gradient(to bottom, #111 0%, transparent 100%) !important;
    }

    /* Footer */
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .newsletter-content h3 { font-size: 1.8rem !important; }
    .newsletter-form { width: 100%; max-width: 100%; }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 1.5rem;
    }

    /* Valuation CTA */
    .valuation-cta h2 { font-size: 2rem !important; }
}

@media (max-width: 576px) {
    .site-logo { height: 42px; }
    .nav-container { padding: 0 1rem; }
    
    .property-main-title { font-size: 2rem !important; }
    .property-price-tag { font-size: 2rem !important; }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
