/* ========================================================================= */
/* PUBLIC/ASSETS/CSS/HOMEPAGE-MODERN.CSS                                     */
/* ========================================================================= */
/* Modern aesthetic overrides and custom styling specific to the new homepage*/

:root {
    --modern-primary: #f5b041;
    --modern-dark: #121212;
    --modern-dark-secondary: #1e1e1e;
    --modern-light: #ffffff;
    --modern-bg: #f9fcff;
    --modern-text: #333333;
    --modern-text-muted: #777777;
    --modern-border: rgba(0, 0, 0, 0.08);
    --modern-glass-bg: rgba(255, 255, 255, 0.85);
    --modern-glass-border: rgba(255, 255, 255, 0.4);
    --modern-radius-lg: 24px;
    --modern-radius-md: 16px;
    --modern-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
    --modern-shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Adjustments & Universal Box Sizing */
html,
body.home-modern {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body.home-modern * {
    box-sizing: border-box !important;
}

body.home-modern {
    background-color: var(--modern-bg);
    overflow-x: hidden;
    font-family: 'Montserrat', 'Open Sans', sans-serif !important;
    color: var(--modern-text);
}

body.home-modern h1,
body.home-modern h2,
body.home-modern h3,
body.home-modern h4,
body.home-modern h5,
body.home-modern h6,
body.home-modern p,
body.home-modern a {
    font-family: 'Montserrat', 'Open Sans', sans-serif !important;
}

/* Forced Header Overrides to ensure 100% visibility on all devices over the cityscape */
body.home-modern #site-header-wrap,
body.home-modern #site-header,
body.home-modern #site-header-inner {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

body.home-modern #site-header {
    position: fixed;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 1050;
    padding: 5px 0px !important;
    /* Added horizontal padding for mobile breathing room */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.home-modern #site-header .wrap-inner,
body.home-modern #site-header-inner .wrap-inner {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    transition: none !important;
    /* Stop the native theme logo from jumping vertically on scroll */
}

body.home-modern.header-fixed #site-header,
body.home-modern #site-header.is-fixed {
    position: fixed !important;
}

/* Ensure logo never disappears unexpectedly */
body.home-modern #site-logo,
body.home-modern #site-logo a,
body.home-modern #site-logo img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make nav links dark over light background initially */
body.home-modern #main-nav>ul>li>a,
body.home-modern #main-nav-mobi>ul>li>a,
body.home-modern .header-search-icon {
    color: var(--modern-dark) !important;
    text-shadow: none;
    transition: var(--transition-smooth);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 8px;
}

#main-nav>ul>li>a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--modern-primary) !important;
}

/* Ensure Logo stands out */
#site-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Hide top bar on homepage initially to give a clean hero */
body.home-modern #top-bar {
    display: none;
}

/* ========================================================================= */
/* 2. Global Typography Scaling Normalization (High Specificity)             */
/* ========================================================================= */
body.home-modern h1,
body.home-modern .modern-hero h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    font-family: 'Montserrat', sans-serif !important;
}

body.home-modern h2,
body.home-modern .modern-section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    font-family: 'Montserrat', sans-serif !important;
}

body.home-modern h3,
body.home-modern .modern-card-title,
body.home-modern .news-content h3 {
    font-size: 1.50rem !important;
    /* font-weight: 600 !important;
    line-height: 1.4 !important;
    font-family: 'Montserrat', sans-serif !important; */
}

body.home-modern p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    opacity: 0.9 !important;
    margin-bottom: 1rem !important;
    font-family: 'Open Sans', sans-serif !important;
    color: var(--modern-text);
}

.modern-hero-content p {
    color: #ffffff !important;
}

body.home-modern h4 {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    font-family: 'Montserrat', sans-serif !important;
}

body.home-modern h5 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    font-family: 'Montserrat', sans-serif !important;
}

body.home-modern h6 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    font-family: 'Montserrat', sans-serif !important;
}

body.home-modern #site-header #main-nav>ul>li>a {
    font-size: 15px !important;
}

body.home-modern #site-header #main-nav {
    margin-left: 30px !important;
}

/* ========================================================================= */
/* 3. Hero Section                                                           */
/* ========================================================================= */
.modern-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    padding-top: 180px;
    /* Increased offset to completely escape header */
    padding-bottom: 60px;
}

/* Gradient overlay to make text pop */
.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.modern-hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin-top: -5vh;
}

.hero-left-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-left-subtitle {
    font-size: 1.25rem !important;
    color: #fff !important;
    font-weight: 400 !important;
    margin-bottom: 40px !important;
    opacity: 0.9 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 600px;
}

/* Square Yards specific Search Box */
.square-yards-style {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 1000px !important;
    margin: 0 !important;
    /* Left aligned */
    display: flex;
    flex-direction: column;
}

.square-yards-style .modern-search-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent */
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    gap: 0;
}

.square-yards-style .modern-search-tabs button {
    color: #fff;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.square-yards-style .modern-search-tabs button:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.square-yards-style .modern-search-tabs button.active {
    background: transparent;
    opacity: 1;
    border-bottom: 3px solid #facc15;
    /* Yellow glowing underline */
    color: #fff;
}

.square-yards-style .modern-search-form.border-bottom-radius {
    border-radius: 0 8px 8px 8px;
    height: 65px;
    padding: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    background: #fff;
    overflow: hidden;
}

.search-col {
    display: flex;
    align-items: center;
    height: 100%;
}

.city-col {
    width: 180px;
    padding: 0 20px;
    justify-content: space-between;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
}

.input-col {
    flex-grow: 1;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: flex-start;
}

.square-yards-style .modern-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 0 15px;
    color: #333;

    margin: 0px;

}

.right-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
}

.square-yards-style .btn-yellow {
    background: #facc15 !important;
    color: #0f172a !important;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 40px;
    height: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.square-yards-style .btn-yellow:hover {
    background: #eab308 !important;
}

/* Filter Pills */
.modern-filter-pills {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #f8fafc;
}

/* Generic Section Styles */
.modern-section {
    padding: 80px 0;
    position: relative;
    background: var(--modern-bg);
}

.modern-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.modern-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--modern-dark);
    margin-bottom: 15px;
}

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

.container-modern {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box !important;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-hero h1 {
        font-size: 2.5rem;
    }

    .modern-search-form {
        flex-direction: column;
        border-radius: 12px;
        gap: 10px;
    }

    .modern-search-input,
    .modern-search-btn {
        border-radius: 8px;
        padding: 15px;
    }
}

/* ========================================================================= */
/* 3. Hot Selling Projects Carousel                                          */
/* ========================================================================= */
.modern-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.modern-carousel-nav {
    display: flex;
    gap: 15px;
}

.nav-pill {
    padding: 8px 24px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    color: var(--modern-text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-pill.active {
    background: var(--modern-dark);
    color: #ffffff;
    border-color: var(--modern-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.modern-card {
    background: #ffffff;
    border-radius: var(--modern-radius-md);
    overflow: hidden;
    box-shadow: var(--modern-shadow);
    transition: var(--transition-smooth);
    position: relative;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-card {
    overflow: hidden;
}

/* Lock image bounding box but bg text stays under */
.project-bg-text {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    z-index: 0;
    line-height: 1;
}

.modern-card-badge {
    position: absolute;
    top: 0px;
    left: 10px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.modern-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.modern-card-body {
    padding: 20px;
}

.modern-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--modern-dark);
}

.modern-card-location {
    font-size: 0.9rem;
    color: var(--modern-text-muted);
    margin-bottom: 10px;
}

.modern-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--modern-primary);
}

/* ========================================================================= */
/* 4. Price Insights Cards                                                   */
/* ========================================================================= */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insight-card {
    background: #ffffff;
    border-radius: var(--modern-radius-md);
    padding: 24px;
    box-shadow: var(--modern-shadow);
    position: relative;
    overflow: hidden;
}

.insight-card-blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.insight-card-orange {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.insight-card-pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

/* Decorative graphical mockups using CSS since no real charting is setup */
.mock-chart-line {
    margin-top: 30px;
    height: 120px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.mock-line-svg {
    width: 100%;
    height: 100%;
}

.mock-chart-bar {
    margin-top: 30px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.mock-bar {
    flex: 1;
    background: var(--modern-primary);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.insight-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--modern-dark);
    margin-bottom: 8px;
}

/* ========================================================================= */
/* 5. Services Grid                                                          */
/* ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-icon-card {
    background: #ffffff;
    border-radius: var(--modern-radius-md);
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--modern-border);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    color: var(--modern-dark);
}

.service-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--modern-shadow);
    border-color: var(--modern-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--modern-primary);
    margin-bottom: 15px;
}

.service-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================================================= */
/* 5.5 IVO Estate Tools                                                      */
/* ========================================================================= */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: #ffffff;
    border-radius: var(--modern-radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--modern-primary);
}

.tool-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(245, 176, 65, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--modern-primary);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.tool-card:hover .tool-icon-wrap {
    background: var(--modern-primary);
    color: #ffffff;
    transform: rotate(-5deg) scale(1.1);
}

.tool-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--modern-dark);
    margin-bottom: 15px !important;
}

.tool-description {
    font-size: 1rem !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    opacity: 1 !important;
}

.tool-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--modern-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.tool-link i {
    transition: var(--transition-smooth);
}

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

.tool-link:hover i {
    transform: translateX(5px);
}

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

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 30px 20px;
        align-items: center;
    }
}


/* ========================================================================= */
/* 6. Testimonials & Google Reviews                                           */
/* ========================================================================= */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.google-reviews-panel {
    background: #ffffff;
    border-radius: var(--modern-radius-md);
    padding: 40px;
    box-shadow: var(--modern-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.google-rating-huge {
    font-size: 4rem;
    font-weight: 800;
    color: var(--modern-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    color: #fbbc05;
    font-size: 1.5rem;
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modern-dark);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.video-card:hover .video-play-btn {
    background: var(--modern-primary);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================================================= */
/* 7. Discover More Properties                                               */
/* ========================================================================= */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.discover-card {
    position: relative;
    height: 350px;
    border-radius: var(--modern-radius-md);
    overflow: hidden;
    color: #ffffff;
}

.discover-card>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.discover-card:hover>img {
    transform: scale(1.08);
}

.discover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

.discover-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
}

.discover-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.discover-content p {
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: white !important;
}

/* ========================================================================= */
/* 8. Top Localities & Developers                                            */
/* ========================================================================= */
.localities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.locality-card {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius-md);
    padding: 20px;
    transition: var(--transition-smooth);
}

.locality-card:hover {
    border-color: var(--modern-primary);
    transform: translateY(-3px);
    box-shadow: var(--modern-shadow);
}

.locality-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--modern-dark);
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.locality-pill {
    background: #fff8e1;
    color: #ffb300;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.developers-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.developer-card {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius-md);
    padding: 20px;
    text-align: center;
    flex: 1;
    transition: var(--transition-smooth);
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--modern-shadow);
}

.developer-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.developer-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: var(--modern-text-muted);
    border-top: 1px solid #eaeaea;
    padding-top: 10px;
    margin-top: 10px;
}

/* ========================================================================= */
/* 9. Media Coverage & Cities                                                */
/* ========================================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    border-radius: var(--modern-radius-md);
    overflow: hidden;
    position: relative;
    background: var(--modern-dark);
    color: #fff;
    height: 250px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* opacity: 0.6; */
    transition: var(--transition-smooth);
}

.news-card:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.news-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.news-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.read-more {
    color: var(--modern-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.city-pill {
    background: #ffffff;
    border: 1px solid var(--modern-border);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.city-pill:hover {
    background: var(--modern-dark);
    color: #ffffff;
    border-color: var(--modern-dark);
}

.city-pill img {
    width: 24px;
    height: 24px;
}

/* ========================================================================= */
/* 10. App Banner & Footer integration adjustments                             */
/* ========================================================================= */
.app-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--modern-dark);
    border-radius: var(--modern-radius-lg);
    padding: 40px 60px;
    color: #ffffff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.app-banner-content {
    max-width: 50%;
    z-index: 2;
}

.app-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.app-banner p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 30px;
}

/* Mocking app store inputs */
.app-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.app-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--modern-primary);
    color: var(--modern-dark);
    font-weight: 700;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
}

.app-stores img {
    height: 40px;
    margin-right: 15px;
}

.qr-code-box {
    position: absolute;
    right: 40%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.app-phones {
    position: absolute;
    right: 5%;
    bottom: -100px;
    width: 300px;
}

/* Footer modern overrides */
body.home-modern #site-footer {
    background-color: var(--modern-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================================================= */
/* 11. Responsive Media Queries                                              */
/* ========================================================================= */
@media (max-width: 1024px) {

    .cards-grid,
    .localities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid,
    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .developers-grid {
        flex-wrap: wrap;
    }

    .developer-card {
        flex: 1 1 40%;
        margin-bottom: 20px;
        padding: 15px;
    }
}

@media (max-width: 768px) {

    /* Header Fixes for Mobile */
    body.home-modern #site-header {
        /* padding: 5px 15px !important; */
        box-sizing: border-box !important;
    }

    body.home-modern #site-header .wrap-inner {
        padding: 0 !important;
    }

    body.home-modern #site-logo {
        display: block !important;
        margin: 0 !important;
    }

    body.home-modern #site-logo img {
        /* max-width: 130px; */
        display: inline-block !important;
        margin-top: 10px !important;
    }

    .mobile-button {
        margin-top: 0;
        z-index: 1060;
    }

    body.home-modern .mobile-button:before,
    body.home-modern .mobile-button:after,
    body.home-modern .mobile-button span {
        background-color: var(--modern-dark) !important;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .cards-grid,
    .localities-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Services grid fix */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-icon-card {
        padding: 15px 10px;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .service-title {
        font-size: 0.85rem;
    }

    .news-grid,
    .discover-grid {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Developers grid fix */
    .developer-card {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    /* App Promo fix */
    .app-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        margin-top: 40px;
    }

    /* Widget obstruction fix */
 

    .app-banner-content {
        max-width: 100%;
    }

    .app-input-group {
        flex-direction: column;
    }

    .app-stores {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .app-stores img {
        margin-right: 0;
    }

    .modern-section {
        padding: 40px 0;
    }

    body.home-modern h1,
    body.home-modern .modern-hero h1 {
        font-size: 2rem !important;
    }

    body.home-modern h2,
    body.home-modern .modern-section-title {
        font-size: 1.7rem !important;
    }

    body.home-modern h3,
    body.home-modern .modern-card-title,
    body.home-modern .news-content h3 {
        font-size: 1.25rem !important;
    }

    body.home-modern h4 {
        font-size: 1.15rem !important;
    }

    body.home-modern h5 {
        font-size: 1.05rem !important;
    }

    body.home-modern h6 {
        font-size: 0.95rem !important;
    }

    body.home-modern p {
        font-size: 1rem !important;
    }

    .modern-section-subtitle {
        font-size: 0.95rem !important;
    }

    .modern-carousel-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .modern-carousel-nav {
        flex-wrap: wrap;
    }

    /* Hero fixes */
    .modern-hero {
        min-height: auto;
        padding-top: 150px;
        padding-bottom: 60px;
    }

    .modern-hero-content {
        padding: 0 15px;
        margin-top: 0;
        width: 100% !important;
    }

    .modern-hero h1 {
        font-size: 2rem;
    }

    .modern-hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .modern-search-wrapper {
        padding: 0 !important;
        margin-top: 20px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .modern-search-tabs {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        border-bottom: none;
        background: transparent !important;
        width: 100%;
        margin-bottom: 15px;
        padding: 0 !important;
    }

    .modern-search-tabs button {
        font-size: 0.85rem;
        padding: 8px 15px;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        white-space: nowrap;
    }

    .modern-search-tabs button.active {
        background: #facc15 !important;
        color: #000 !important;
        border-color: #facc15 !important;
    }

    .modern-search-form {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        background: #fff !important;
        border-radius: 12px !important;
        padding: 15px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .city-col {
        width: 100% !important;
        height: 50px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 0 10px !important;
        border-right: 1px solid #e2e8f0 !important;
    }

    .input-col {
        width: 100% !important;
        padding: 0 !important;
    }

    .modern-search-input {
        height: 50px !important;
        width: 100% !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        padding: 0 80px 0 15px !important;
        /* More padding for right icons */
        background: #f8fafc !important;
        font-size: 0.95rem !important;
    }

    .right-icons {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;
        z-index: 5;
    }

    .input-icon-left {
        display: none !important;
    }

    .modern-search-btn {
        height: 50px !important;
        border-radius: 8px !important;
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        background: #facc15 !important;
        color: #000 !important;
        font-weight: 700 !important;
        margin-top: 5px !important;
    }

    /* Footer Overrides for Mobile */
    body.home-modern #footer,
    body.home-modern #bottom {
        padding: 40px 15px !important;
    }

    body.home-modern #footer-widgets .widget {
        margin-bottom: 30px !important;
    }

    body.home-modern #footer-widgets .widget:last-child {
        margin-bottom: 0 !important;
    }

    body.home-modern #footer-widgets .widget ul li {
        padding: 8px 0 !important;
        margin: 0 !important;
    }

    body.home-modern #footer-widgets .widget ul li a {
        display: inline-block;
        padding: 2px 0;
        font-size: 14px;
    }
}

/* Specificity fixes for white text over dark backgrounds */
body.home-modern .modern-hero h1.hero-left-title,
body.home-modern .modern-hero .hero-left-title,
body.home-modern .modern-hero p.hero-left-subtitle,
body.home-modern .modern-hero .hero-left-subtitle {
    color: #ffffff !important;
}

body.home-modern .news-card .news-content h3 {
    color: #ffffff !important;
}

body.home-modern .discover-card .discover-content h3 {
    color: #ffffff !important;
}

@media only screen and (max-width: 767px) {
    .google-reviews-panel {
        padding: 20px !important;
    }
    .review-card {
        max-width: 330px;
    }
}

.video-testimonials-panel.animate-up {
    display: none;
}