/* =========================================================
   AI BHARAT — PIXEL-CLOSE DESIGN SYSTEM
   Based on AI Properties Mobile UI Specification
========================================================= */

:root {
    --primary: #85280C;
    --primary-dark: #6d1e08;
    --primary-soft: #9b3a18;
    --secondary: #884223;
    --dark: #211107;
    --body: #4D3A2C;
    --gold: #D39767;
    --bg: #FDF9F5;
    --card: #FDF5EE;
    --peach: #FBEDE0;
    --border: #EEE0D6;
    --white: #FFFFFF;
    --success: #3E8B57;
    --orange: #D88918;
    --shadow-sm: 0 2px 7px rgba(80,40,20,.05);
    --shadow-card: 0 4px 14px rgba(80,40,20,.07);
    --shadow-search: 0 5px 18px rgba(90,45,20,.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--dark);
    font-family: "Poppins","Inter",Arial,sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,input,select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.ai-header {
    width: 100%;
    height: 54px;
    min-height: 54px;
    color: #fff;
    background: #343a3d;
    border-bottom: 1px solid rgba(224,76,45,.75);
    position: relative;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}

.header-inner {
    width: 100%;
    max-width: none;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding: 0 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-box {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 150px;
    text-decoration: none;
}

.desktop-nav {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 27px;
    overflow: visible;
}

.desktop-nav>a,.desktop-nav .nav-dropdown>a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 54px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .98;
}

.desktop-nav>a:hover,.desktop-nav .nav-dropdown>a:hover {
    color: #fff;
}

.desktop-nav i {
    font-size: 8px;
}

.nav-dropdown {
    height: 54px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-actions {
    flex: 0 0 auto;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-left: 18px;
}

.city-button {
    width: 98px;
    height: 38px;
    padding: 0 10px;
    color: #202427;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.city-button .bi-geo-alt-fill {
    display: none;
}

.city-button .bi-chevron-down {
    font-size: 14px;
    color: #fff;
}

.head-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    position: relative;
    flex: 0 0 36px;
}

.head-icon:hover {
    background: rgba(255,255,255,.08);
}

.notification-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 10px;
    background: #ef3d35;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 15px;
}

.download-app-head {
    width: 57px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    margin: 0 2px;
    position: relative;
    flex: 0 0 57px;
}

.download-app-icon {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    transform: translateY(-1px);
}

.download-app-icon i {
    font-size: 25px !important;
}

.download-app-text {
    display: block;
    margin-top: 0;
    font-size: 7px;
    line-height: 9px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.post-btn {
    min-width: 143px;
    height: 30px;
    padding: 0 8px 0 11px;
    border-radius: 6px;
    background: #fff;
    color: #303538;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.post-btn>i {
    display: none;
}

.home-free-badge {
    background: #08a54d;
    color: #fff;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 7px;
    font-weight: 800;
    line-height: 10px;
}

.user-head-btn {
    gap: 3px;
    border: 0;
    width: 34px;
    flex-basis: 34px;
}

.user-head-chevron {
    font-size: 8px !important;
    margin-left: 0;
}

.home-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.home-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.home-avatar-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
}

.scroll-login-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-login-avatar i {
    font-size: 17px !important;
    align-items: center;
    justify-content: center;
}

@media (max-width:1200px) {
    .desktop-nav {
        gap: 18px;
    }

    .desktop-nav>a,.desktop-nav .nav-dropdown>a {
        font-size: 14px;
    }

    .header-actions {
        margin-left: 10px;
        gap: 5px;
    }

    .post-btn {
        min-width: 128px;
    }
}

@media (max-width:900px) {
    .desktop-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .download-app-head {
        display: none;
    }
}

.ai-header {
    width: 100%;
    min-height: 72px;
    color: var(--white);
    background: linear-gradient(100deg,#721b0b 0%,#85280C 52%,#a43b18 100%);
    position: relative;
    z-index: 1000;
}

.header-inner {
    width: min(1440px,100%);
    min-height: 72px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 205px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    position: relative;
}

.logo-icon:after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 5px;
    top: 6px;
    border-radius: 50%;
    background: #D39767;
}

.logo-text {
    font-family: "Playfair Display",serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.logo-text span {
    color: #F2B34A;
}

.logo-tagline {
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: 1.15px;
    font-weight: 600;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: #F2C58A;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.city-button {
    height: 38px;
    padding: 0 11px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.head-icon {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 19px;
    position: relative;
}

.notification-count {
    position: absolute;
    top: 0;
    right: -1px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    background: #d92c1d;
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
}

.post-btn {
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
}

.mobile-menu {
    display: none;
}

.logo-image {
    width: 52px;
    height: 46px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.header-login {
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 8px;
    color: #fff;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.header-login:hover {
    background: #fff;
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: -12px;
    min-width: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(40,15,5,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .18s ease;
    z-index: 9999;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark) !important;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 11px !important;
}

.nav-dropdown-menu a:hover {
    background: #fff3eb;
    color: var(--primary) !important;
}

.mobile-nav-extra {
    display: none;
}

@media (max-width:850px) {
    .mobile-nav-extra {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
        margin-top: 2px;
        border-top: 1px solid rgba(255,255,255,.18);
    }

    .mobile-nav-extra a {
        width: 100%;
        padding: 9px 4px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff !important;
        font-size: 11px !important;
    }
}

@media (max-width:850px) {
    .logo-image {
        width: 46px;
        height: 40px;
    }

    .header-login {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}

@media (max-width:1100px) {
    .desktop-nav {
        gap: 14px;
    }

    .desktop-nav a {
        font-size: 10px;
    }

    .header-inner {
        padding: 0 18px;
    }
}

@media (max-width:850px) {
    .ai-header {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
        min-height: 60px;
    }

    .header-inner {
        min-height: 60px;
        padding: 10px 30px;
        gap: 8px;
    }

    .mobile-menu {
        display: flex;
        width: 30px;
        height: 30px;
        border: 0;
        background: transparent;
        color: #fff;
        align-items: center;
        justify-content: center;
        font-size: 25px;
    }

    .desktop-nav {
        display: none;
    }

    .logo-box {
        min-width: 0;
        flex: 1;
        gap: 7px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }

    .logo-text {
        font-size: 21px;
    }

    .logo-tagline {
        display: none;
    }

    .city-button,.post-btn {
        display: none;
    }

    .head-icon {
        width: 30px;
        height: 30px;
        font-size: 21px;
    }

    .notification-count {
        min-width: 13px;
        height: 13px;
        font-size: 7px;
    }
}

/* Mobile Search Bar — 3px Side Margin */

@media (max-width: 768px) {
    .home-search-bar,
    .main-search-bar,
    .search-bar-wrapper,
    .hero-search,
    .search-container {
        width: calc(100% - 6px) !important;
        max-width: none !important;
        margin-left: 3px !important;
        margin-right: 3px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width:600px) {
    .header-inner {
        padding: 9px 30px;
    }
}

@media (max-width:380px) {
    .header-inner,.hero-inner,.container-main {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.nav-mega-dropdown {
    position: relative;
}

.nav-mega-dropdown>.nav-mega-menu {
    min-width: 230px;
    padding: 8px;
    left: -10px;
}

.nav-mega-menu .mega-menu-title {
    padding: 9px 10px 8px;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.nav-mega-menu .mega-menu-title i {
    margin-right: 5px;
}

.nav-mega-menu>a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 10px !important;
    border-radius: 7px;
    color: var(--body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.nav-mega-menu>a:hover {
    color: var(--primary) !important;
    background: var(--peach);
}

.header-pop-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-pop-wrap .head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-header-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 310px;
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(40,15,5,.18);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: .18s ease;
    z-index: 10050;
}

.home-header-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-header-popup h3 {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 9px;
}

.home-popup-list {
    max-height: 300px;
    overflow: auto;
}

.home-notification-item {
    display: flex !important;
    gap: 9px;
    padding: 9px 7px;
    border-bottom: 1px solid #f1e8e1;
    color: var(--body) !important;
}

.home-notification-item>i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.home-notification-item strong {
    font-size: 14px;
    display: block;
    color: var(--dark);
}

.home-notification-item p {
    font-size: 14px;
    margin: 3px 0;
    color: var(--body);
}

.home-notification-item small {
    font-size: 8px;
    color: #927f74;
}

.home-popup-see-all {
    display: block;
    margin-top: 8px;
    text-align: center;
    color: var(--primary) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.contact-popup {
    width: 300px;
}

.contact-popup-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1e8e1;
}

.contact-popup-row>i {
    color: var(--primary);
    font-size: 16px;
}

.contact-popup-row small {
    display: block;
    font-size: 14px;
    color: #806f65;
}

.contact-popup-row strong {
    display: block;
    margin-top: 2px;
    color: var(--dark);
    font-size: inherit;
}

.contact-callback-btn {
    margin-top: 10px;
    width: 100%;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #85280C;
    color: #fff !important;
    border-radius: 7px;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.contact-popup>p {
    margin-top: 9px;
    text-align: center;
    font-size: 14px;
    color: #806f65;
}

.contact-popup>p a {
    color: var(--primary) !important;
    font-weight: 700;
}

.user-head-btn {
    gap: 3px;
}

.user-head-chevron {
    font-size: 8px;
}

.home-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.user-popup {
    width: 235px;
    padding: 7px;
}

.user-popup>a,.user-popup-name,.user-popup-section {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 6px;
    font-size: 14px !important;
    color: var(--body) !important;
}

.user-popup>a:hover {
    background: var(--peach);
    color: var(--primary) !important;
}

.user-popup-name {
    font-weight: 800;
    color: var(--primary) !important;
}

.user-popup-section {
    margin: 4px 0 2px;
    font-size: 14px !important;
    font-weight: 800;
    text-transform: uppercase;
    color: #9a867b !important;
    border-bottom: 1px solid #f1e8e1;
    border-radius: 0;
}

.user-popup b {
    margin-left: auto;
    color: var(--primary);
    font-size: 10px;
}

.user-popup .user-logout {
    color: #b52b20 !important;
    border-top: 1px solid #f1e8e1;
    margin-top: 4px;
}

.user-popup .user-login {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

.home-free-badge {
    margin-left: 2px;
    padding: 2px 4px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 800;
}

.header-actions {
    position: relative;
}

@media (max-width:1100px) {
    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav>a,.desktop-nav>.nav-dropdown>a {
        font-size: 14px;
    }

    .home-header-popup {
        right: -5px;
    }
}

@media (max-width:768px) {
    .header-pop-wrap,.header-actions .city-button,.header-actions .post-btn {
        display: none;
    }

    .home-free-badge {
        display: none;
    }

    .desktop-nav .nav-mega-menu {
        position: static;
        display: none;
    }

    .desktop-nav .nav-dropdown.open .nav-mega-menu {
        display: block;
    }
}

.ai-header {
    height: 60px;
    min-height: 60px;
    background: linear-gradient(100deg,#721b0b 0%,#85280C 52%,#a43b18 100%);
    border-bottom: 1px solid rgba(242,197,138,.45);
    box-shadow: none;
}

.header-inner {
    height: 60px;
    min-height: 60px;
    max-width: 1440px;
    padding: 0 18px;
    gap: 14px;
}

.logo-box {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 150px;
    min-width: 150px;
    height: 60px;
    text-decoration: none !important;
}

.logo-box .logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
}

.logo-box > div:last-child {
    display: block;
}

.logo-box .logo-text {
    font-size: 20px;
    line-height: 20px;
}

.logo-box .logo-tagline {
    margin-top: 3px;
    font-size: 6px;
    letter-spacing: .8px;
    white-space: nowrap;
}

.desktop-nav {
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.desktop-nav>a,.desktop-nav .nav-dropdown>a {
    font-size: 14px;
    font-weight: 600;
    line-height: 60px;
    gap: 5px;
    letter-spacing: 0;
}

.nav-dropdown {
    height: 60px;
}

.header-actions {
    height: 60px;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

.city-button {
    width: 98px;
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 500;
}

.head-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 17px;
    border: 1px solid rgba(255,255,255,.28);
}

.download-app-head {
    width: 62px;
    height: 54px;
    flex: 0 0 62px;
    margin: 0 1px;
    gap: 1px;
    justify-content: center;
    transform: none;
}

.download-app-icon {
    width: 30px;
    height: 30px;
    font-size: 28px;
    line-height: 30px;
    transform: scale(1.05);
    transition: transform .2s ease;
}

.download-app-icon i {
    font-size: 28px !important;
    line-height: 30px;
}

.download-app-head:hover .download-app-icon {
    transform: scale(1.14);
}

.download-app-text {
    background: transparent;
    color: #fff;
    font-size: 9px;
    line-height: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.post-btn {
    height: 32px;
    min-width: 126px;
    padding: 0 9px;
    gap: 4px;
    font-size: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.home-free-badge {
    margin-left: 1px;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 9px;
}

@media (max-width:1200px) {
    .header-inner {
        padding: 0 12px;
    }

    .desktop-nav {
        gap: 14px;
    }

    .desktop-nav>a,.desktop-nav .nav-dropdown>a {
        font-size: 14px;
    }

    .header-actions {
        gap: 5px;
    }
}

.scroll-top-header {
    display: none !important;
}

@media (min-width:768px) {
    #scrollTopHeader {
        position: fixed !important;
        display: none !important;
        align-items: center !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 72px !important;
        min-height: 72px !important;
        background: linear-gradient(100deg,#721b0b 0%,#85280C 52%,#a43b18 100%) !important;
        border: 0 !important;
        box-shadow: 0 4px 18px rgba(50,15,5,.20) !important;
        z-index: 99999 !important;
    }

    #scrollTopHeader.show {
        display: flex !important;
    }

    #scrollTopHeader .scroll-top-inner {
        width: 100% !important;
        height: 72px !important;
        padding: 0 52px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
    }

    #scrollTopHeader .scroll-logo {
        flex: 0 0 263px !important;
        width: 263px !important;
        height: 52px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    #scrollTopHeader .scroll-logo img {
        width: 52px !important;
        height: 52px !important;
        object-fit: contain !important;
        flex: 0 0 52px !important;
    }

    #scrollTopHeader .scroll-logo-fallback {
        width: 52px !important;
        height: 52px !important;
        border: 2px solid #fff !important;
        border-radius: 10px !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        font-size: 23px !important;
    }

    #scrollTopHeader .scroll-logo-text {
        display: flex !important;
        flex-direction: column !important;
        color: #fff !important;
        font-family: "Playfair Display",serif !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    #scrollTopHeader .scroll-logo-text b {
        color: #F2B34A !important;
        font-weight: 700 !important;
    }

    #scrollTopHeader .scroll-logo-text small {
        display: block !important;
        margin-top: 4px !important;
        color: #fff !important;
        font-family: "DM Sans","Poppins",Arial,sans-serif !important;
        font-size: 7px !important;
        letter-spacing: 1px !important;
        font-weight: 700 !important;
    }

    #scrollTopHeader .scroll-buy-wrap {
        position: relative !important;
        flex: 0 0 auto !important;
    }

    #scrollTopHeader .scroll-buy-button {
        height: 56px !important;
        min-width: 88px !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 9px 0 0 9px !important;
        background: #fff !important;
        color: #211107 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    #scrollTopHeader .scroll-buy-button i {
        color: #33404a !important;
        font-size: 14px !important;
    }

    #scrollTopHeader .scroll-buy-menu {
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        min-width: 130px !important;
        padding: 5px !important;
        display: none !important;
        background: #fff !important;
        border: 1px solid #eadbd1 !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 28px rgba(0,0,0,.18) !important;
        z-index: 100000 !important;
    }

    #scrollTopHeader .scroll-buy-wrap.open .scroll-buy-menu {
        display: block !important;
    }

    #scrollTopHeader .scroll-buy-menu button {
        width: 100% !important;
        height: 35px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #fff !important;
        text-align: left !important;
        padding: 0 10px !important;
        color: #211107 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    #scrollTopHeader .scroll-buy-menu button:hover {
        background: #fff1e8 !important;
        color: #85280C !important;
    }

    #scrollTopHeader .scroll-search-box {
        flex: 1 1 auto !important;
        min-width: 300px !important;
        max-width: none !important;
        height: 56px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 9px 9px 0 !important;
        overflow: hidden !important;
    }

    #scrollTopHeader .scroll-search-icon {
        flex: 0 0 auto !important;
        margin: 0 12px !important;
        color: #85280C !important;
        font-size: 21px !important;
    }

    #scrollTopHeader #scrollSearchInput {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 54px !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        background: #fff !important;
        color: #4D3A2C !important;
        font-size: 14px !important;
    }

    #scrollTopHeader #scrollSearchInput::placeholder {
        color: #777 !important;
        opacity: 1 !important;
    }

    #scrollTopHeader .scroll-search-mic {
        width: 50px !important;
        height: 54px !important;
        flex: 0 0 50px !important;
        border: 0 !important;
        border-left: 1px solid #eee !important;
        background: #fff !important;
        color: #85280C !important;
        font-size: 17px !important;
    }

    #scrollTopHeader .scroll-search-submit {
        width: 58px !important;
        height: 54px !important;
        flex: 0 0 58px !important;
        border: 0 !important;
        border-left: 1px solid #eee !important;
        background: #fff !important;
        color: #85280C !important;
        font-size: 20px !important;
    }

    #scrollTopHeader .scroll-post-property {
        height: 56px !important;
        flex: 0 0 auto !important;
        padding: 0 18px !important;
        border-radius: 9px !important;
        background: #fff !important;
        color: #85280C !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    #scrollTopHeader .scroll-post-property span {
        padding: 3px 6px !important;
        border-radius: 4px !important;
        background: #16a05a !important;
        color: #fff !important;
        font-family: "DM Sans",Arial,sans-serif !important;
        font-size: 9px !important;
        font-weight: 800 !important;
    }

    #scrollTopHeader .scroll-login {
        height: 56px !important;
        min-width: 91px !important;
        flex: 0 0 auto !important;
        padding: 0 13px !important;
        border: 1px solid rgba(255,255,255,.45) !important;
        border-radius: 9px !important;
        background: rgba(255,255,255,.05) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    #scrollTopHeader .scroll-login i {
        font-size: 20px !important;
    }

    #scrollTopHeader .scroll-menu-button {
        display: none !important;
    }
}

@media (min-width:768px) and (max-width:1200px) {
    #scrollTopHeader .scroll-top-inner {
        padding: 0 24px !important;
        gap: 8px !important;
    }

    #scrollTopHeader .scroll-logo {
        flex-basis: 210px !important;
        width: 210px !important;
    }

    #scrollTopHeader .scroll-logo-text {
        font-size: 20px !important;
    }

    #scrollTopHeader .scroll-post-property {
        padding: 0 12px !important;
        font-size: 11px !important;
    }

    #scrollTopHeader .scroll-login {
        min-width: 72px !important;
        font-size: 11px !important;
    }
}

@media (max-width:767px) {
    #scrollTopHeader,
    #scrollTopHeader.show {
        display: none !important;
    }
}

#mainHeader .home-user-account-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex: 0 0 auto !important;
    position: relative !important;
}

#mainHeader .user-head-btn {
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    flex: 0 0 auto !important;
    padding: 0 10px 0 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 1px solid rgba(255,255,255,.48) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .2s ease,border-color .2s ease,transform .2s ease !important;
}

#mainHeader .user-head-btn:hover,
#mainHeader .user-head-btn:focus-visible {
    background: rgba(255,255,255,.17) !important;
    border-color: rgba(255,255,255,.8) !important;
    outline: none !important;
}

#mainHeader .user-head-label {
    display: inline-block !important;
    max-width: 90px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

#mainHeader .user-login-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #85280c !important;
    font-size: 15px !important;
}

#mainHeader .home-avatar {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    border: 1px solid rgba(255,255,255,.85) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.18) !important;
}

#mainHeader .home-avatar-fallback {
    font-size: 17px !important;
    color: #85280c !important;
}

#mainHeader .user-dropdown-toggle {
    width: 19px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background .2s ease !important;
}

#mainHeader .user-dropdown-toggle:hover,
#mainHeader .user-dropdown-toggle:focus-visible {
    background: rgba(255,255,255,.15) !important;
    outline: none !important;
}

#mainHeader .user-dropdown-toggle i {
    font-size: 14px !important;
}

#mainHeader .user-popup {
    right: 0 !important;
    top: calc(100% + 9px) !important;
}

@media (max-width:600px) {
    #mainHeader .user-head-btn {
        height: 32px !important;
        padding: 0 7px 0 6px !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }

    #mainHeader .user-head-label {
        max-width: 58px !important;
        font-size: 14px !important;
    }

    #mainHeader .user-login-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 14px !important;
    }

    #mainHeader .home-avatar {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
    }

    #mainHeader .user-dropdown-toggle {
        width: 15px !important;
        height: 28px !important;
    }

    #mainHeader .user-popup {
        right: 0 !important;
        max-width: calc(100vw - 20px) !important;
    }
}

@media (max-width: 850px) {
    #mainHeader {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-height: 48px !important;
        height: auto !important;
        z-index: 5000 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    #mainHeader .header-inner {
        width: 100% !important;
        max-width: none !important;
        min-height: 48px !important;
        height: 48px !important;
        padding: 5px 9px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        box-sizing: border-box !important;
    }

    #mainHeader .mobile-menu {
        display: inline-flex !important;
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 30px !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    #mainHeader .logo-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        height: 38px !important;
        gap: 5px !important;
        overflow: hidden !important;
    }

    #mainHeader .logo-box .logo-image {
        width: 25px !important;
        height: 25px !important;
        flex: 0 0 25px !important;
    }

    #mainHeader .logo-box > div:last-child {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    #mainHeader .logo-text {
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    #mainHeader .logo-tagline {
        display: none !important;
    }

    #mainHeader .header-actions {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        height: 38px !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
    }

    #mainHeader .header-actions .city-button,
    #mainHeader .header-actions .post-btn,
    #mainHeader .header-actions .download-app-head,
    #mainHeader #homeHeaderBellWrap,
    #mainHeader #homeHeaderContactWrap {
        display: none !important;
    }

    #mainHeader .home-user-account-wrap {
        display: flex !important;
        flex: 0 0 auto !important;
        gap: 4px !important;
        max-width: 82px !important;
    }

    #mainHeader .user-head-btn {
        max-width: 65px !important;
        height: 30px !important;
        padding: 0 5px !important;
        gap: 4px !important;
    }

    #mainHeader .user-head-label {
        max-width: 38px !important;
    }

    #mainHeader #desktopNav,
    #mainHeader #desktopNav.mobile-menu-open {
        display: none !important;
        position: absolute !important;
        top: 48px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100vh - 70px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 7px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        background: #7f1d0d !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
        z-index: 6000 !important;
    }

    #mainHeader #desktopNav.mobile-menu-open {
        display: flex !important;
    }

    #mainHeader #desktopNav > a,
    #mainHeader #desktopNav > .nav-dropdown > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 39px !important;
        height: auto !important;
        padding: 9px 11px !important;
        box-sizing: border-box !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        border-radius: 6px !important;
    }

    #mainHeader #desktopNav > .nav-dropdown {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

    #mainHeader #desktopNav .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-width: 0 !important;
        margin: 0 0 5px !important;
        padding: 5px 7px 7px 13px !important;
        box-sizing: border-box !important;
        background: rgba(35,8,4,.25) !important;
        border: 0 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #mainHeader #desktopNav .nav-dropdown.open .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }

    #mainHeader #desktopNav .nav-mega-menu a,
    #mainHeader #desktopNav .nav-dropdown-menu a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 32px !important;
        padding: 7px 8px !important;
        color: #fff !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    #mainHeader #desktopNav .mega-menu-title {
        display: none !important;
    }

    #mainHeader #desktopNav .mobile-nav-extra {
        display: block !important;
        width: 100% !important;
        padding-top: 5px !important;
        border-top: 1px solid rgba(255,255,255,.18) !important;
    }

    #mainHeader #desktopNav .mobile-nav-extra a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 36px !important;
        padding: 8px 11px !important;
        color: #fff !important;
        font-size: 13px !important;
    }
}

@media (max-width: 380px) {
    #mainHeader .header-inner {
        padding-left: 3px !important;
        padding-right: 3px !important;
        gap: 5px !important;
    }

    #mainHeader .mobile-menu {
        flex-basis: 21px !important;
        width: 21px !important;
        font-size: 17px !important;
    }

    #mainHeader .logo-box .logo-image {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    #mainHeader .logo-text {
        font-size: 11px !important;
    }
}

@media (min-width: 851px) {
    #mainHeader #desktopNav {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    #mainHeader {
        position: absolute !important;
        overflow: visible !important;
        z-index: 5000 !important;
    }

    #mainHeader .header-inner {
        position: relative !important;
    }

    #mainHeader .mobile-menu {
        display: inline-flex !important;
        cursor: pointer !important;
    }

    #mainHeader #desktopNav,
    #mainHeader #desktopNav.mobile-menu-open {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 2px) !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 64px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 7px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        background: #7f1d0d !important;
        border: 1px solid rgba(255,255,255,.2) !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
        z-index: 6000 !important;
    }

    #mainHeader #desktopNav.mobile-menu-open {
        display: flex !important;
    }

    #mainHeader #desktopNav > a,
    #mainHeader #desktopNav > .nav-dropdown > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 42px !important;
        height: auto !important;
        padding: 10px 12px !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        touch-action: manipulation;
    }

    #mainHeader #desktopNav > .nav-dropdown {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

    #mainHeader #desktopNav .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 0 6px !important;
        padding: 5px 7px 7px 13px !important;
        background: rgba(35,8,4,.28) !important;
        border: 0 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #mainHeader #desktopNav .nav-dropdown.open > .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown.open > .nav-dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    #mainHeader #desktopNav .nav-mega-menu a,
    #mainHeader #desktopNav .nav-dropdown-menu a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        color: #fff !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    #mainHeader #desktopNav .mega-menu-title {
        display: none !important;
    }

    #mainHeader #desktopNav .mobile-nav-extra {
        display: block !important;
        width: 100% !important;
        padding-top: 5px !important;
        border-top: 1px solid rgba(255,255,255,.18) !important;
    }

    #mainHeader #desktopNav .mobile-nav-extra a {
        min-height: 40px !important;
        color: #fff !important;
    }
}

@media (min-width: 1025px) {
    #mainHeader .mobile-menu {
        display: none !important;
    }

    #mainHeader #desktopNav {
        display: flex !important;
    }

    #mainHeader #desktopNav .nav-dropdown:hover > .nav-dropdown-menu,
    #mainHeader #desktopNav .nav-dropdown:hover > .nav-mega-menu {
        display: block;
    }
}

/* ================================
   Menu Bar Font Styling Only
   Background color unchanged
================================ */

/* Top Menu Bar */

.main-menu > li > a,
#main-menu > li > a,
.nav-menu > li > a,
header .main-menu li a {
    font-size: 12px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
    text-transform: none !important;
}

/* Dropdown Menu Font */

.main-menu .sub-menu li a,
#main-menu .sub-menu li a,
.nav-menu .sub-menu li a,
header .main-menu .sub-menu li a {
    font-size: 12px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-transform: none !important;
    line-height: 1.6 !important;
}

/* Dropdown Headings */

.main-menu .sub-menu h3,
.main-menu .sub-menu h4,
.main-menu .sub-menu .title,
#main-menu .sub-menu h3,
#main-menu .sub-menu h4 {
    font-size: 12px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

/* Dropdown paragraph and list text */

.main-menu .sub-menu p,
.main-menu .sub-menu li,
#main-menu .sub-menu p,
#main-menu .sub-menu li {
    font-size: 12px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
}

/* =========================================================
   NOTIFICATION PANEL — mobile list inspired by the reference
   Existing desktop header design is preserved.
========================================================= */

#mainHeader #homeHeaderBellWrap {
    position: relative;
}

#mainHeader #homeHeaderBellPopup.notification-popup {
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 16px;
    background: #fff;
    color: #171717;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0,0,0,.18);
}

.notification-screen-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#mainHeader .notification-screen-heading h3 {
    margin: 0;
    color: #171717;
    font-size: 19px;
    font-weight: 800;
}

.notification-screen-heading h3 i {
    color: #85280C;
    margin-right: 7px;
}

.notification-close-btn {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #444;
}

#mainHeader .notification-popup .home-popup-list {
    max-height: 360px;
    overflow-y: auto;
}

#mainHeader .notification-popup .home-notification-item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 2px;
    border-bottom: 1px solid #e9e9e9;
    color: #222 !important;
    text-decoration: none;
}

#mainHeader .notification-popup .notification-property-image {
    display: block;
    flex: 0 0 82px;
    width: 82px;
    height: 70px;
    margin-top: 1px;
    border-radius: 9px;
    object-fit: cover;
    background: #f4eee9;
}

#mainHeader .notification-popup .notification-category-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 7px;
    padding: 4px 9px;
    border-radius: 20px;
    background: #fff0e7;
    color: #85280C;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

#mainHeader .notification-popup .home-notification-item > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-top: 1px;
    border-radius: 50%;
    background: #f8e9e2;
    color: #85280C;
    font-size: 17px;
}

#mainHeader .notification-popup .home-notification-item > div {
    flex: 1;
    min-width: 0;
}

#mainHeader .notification-popup .home-notification-item strong {
    display: block;
    margin-bottom: 4px;
    color: #171717;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

#mainHeader .notification-popup .home-notification-item p {
    margin: 0 0 7px;
    color: #454545;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#mainHeader .notification-popup .home-notification-item small {
    color: #888;
    font-size: 11px;
}

#mainHeader .notification-popup .home-popup-see-all {
    display: block;
    flex: 0 0 auto;
    margin-top: 12px;
    padding: 12px 10px;
    border-radius: 8px;
    background: #fff5ef;
    color: #85280C !important;
    font-size: 13px !important;
    text-align: center;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    /* The bell is visible on mobile; only its notification popup is fullscreen. */

    #mainHeader #homeHeaderBellWrap {
        display: flex !important;
        position: static !important;
    }

    #mainHeader #homeHeaderBellBtn {
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        border: 1px solid rgba(255,255,255,.35) !important;
        border-radius: 50% !important;
        color: #fff !important;
        background: transparent !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
    }

    #mainHeader #homeHeaderBellPopup.notification-popup,
    #mainHeader #homeHeaderBellPopup.notification-popup.show {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1000000 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px) !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        opacity: 0;
        visibility: hidden;
        transform: none !important;
        transition: none !important;
    }

    #mainHeader #homeHeaderBellPopup.notification-popup.show {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .notification-screen-heading {
        flex: 0 0 auto;
        margin-bottom: 18px;
    }

    #mainHeader .notification-screen-heading h3 {
        font-size: 25px;
    }

    .notification-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
    }

    #mainHeader .notification-popup .home-popup-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #mainHeader .notification-popup .home-popup-see-all {
        flex: 0 0 auto;
        margin-top: 8px;
        margin-bottom: 2px;
        padding: 14px 12px;
        border-top: 1px solid #eee;
        border-radius: 0;
        background: #fff;
        font-size: 15px !important;
    }

    #mainHeader .notification-popup .home-notification-item {
        gap: 12px;
        padding: 18px 0;
    }

    #mainHeader .notification-popup .notification-property-image {
        flex-basis: 88px;
        width: 88px;
        height: 76px;
        border-radius: 9px;
    }

    #mainHeader .notification-popup .notification-category-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    #mainHeader .notification-popup .home-notification-item > i {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    #mainHeader .notification-popup .home-notification-item strong {
        font-size: 17px;
        line-height: 1.4;
    }

    #mainHeader .notification-popup .home-notification-item p {
        font-size: 15px;
        line-height: 1.55;
    }

    #mainHeader .notification-popup .home-notification-item small {
        font-size: 12px;
    }

    #mainHeader .notification-popup .home-popup-see-all {
        flex: 0 0 auto;
        margin-top: 10px;
        padding: 13px;
        font-size: 14px !important;
    }
}

/* MOBILE SEARCH BAR WIDTH FIX: keep only 3px gap from screen edges */

@media (max-width: 768px) {
    /* Search control and its immediate wrappers */

    body :is(
        .home-search-bar,
        .main-search-bar,
        .search-bar-wrapper,
        .hero-search,
        .search-container,
        .home-search,
        .main-search,
        .searchbar,
        .search-bar,
        .search-form,
        .search-box
    ) {
        box-sizing: border-box !important;
        width: calc(100vw - 6px) !important;
        max-width: calc(100vw - 6px) !important;
        margin-left: calc(50% - 50vw + 3px) !important;
        margin-right: 0 !important;
    }

    /* Catch the actual search field wrapper even if its class name differs */

    body :is(div, form, section):has(input[placeholder*="City/Locality" i]) {
        box-sizing: border-box !important;
    }

    /* Remove horizontal padding on common hero/search parents that shrink the bar */

    body :is(.hero-inner, .container-main, .hero-section, .search-section, .home-search-section):has(input[placeholder*="City/Locality" i]) {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body input[placeholder*="City/Locality" i] {
        min-width: 0 !important;
    }
}

/* MOBILE HEADER LAYOUT FIX — keeps existing desktop styling unchanged */

@media (max-width: 850px) {
    #mainHeader {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible !important;
    }

    #mainHeader .header-inner {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 52px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    #mainHeader .mobile-menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #mainHeader .logo-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 5px !important;
    }

    #mainHeader .logo-box > div:last-child {
        min-width: 0 !important;
    }

    #mainHeader .logo-image {
        width: 27px !important;
        height: 27px !important;
        flex: 0 0 27px !important;
        object-fit: contain !important;
    }

    #mainHeader .logo-text {
        font-size: clamp(13px, 3.8vw, 18px) !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    #mainHeader .logo-tagline {
        display: none !important;
    }

    #mainHeader .header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        gap: 7px !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
    }

    #mainHeader .header-actions .city-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        max-width: 83px !important;
        min-width: 0 !important;
        height: 34px !important;
        padding: 0 5px !important;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    #mainHeader .city-button .bi-geo-alt-fill {
        display: inline-block !important;
        font-size: 15px !important;
    }

    #mainHeader .city-button .bi-chevron-down {
        display: inline-block !important;
        font-size: 10px !important;
    }

    #mainHeader .header-pop-wrap {
        display: flex !important;
        flex: 0 0 30px !important;
    }

    #mainHeader .header-pop-wrap .head-icon {
        display: flex !important;
        width: 30px !important;
        height: 34px !important;
        font-size: 21px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    #mainHeader .header-actions .post-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: 86px !important;
        height: 31px !important;
        padding: 0 8px !important;
        margin: 0 !important;
        border-radius: 18px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    #mainHeader .home-free-badge {
        display: none !important;
    }

    #mainHeader .notification-count {
        top: 0 !important;
        right: 0 !important;
    }

    /* Side menu: Login and Post Property stay inside the opened menu */

    #mainHeader #desktopNav.mobile-menu-open {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: min(86vw, 340px) !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
        padding: 14px !important;
        gap: 4px !important;
        background: #fff !important;
        color: #422014 !important;
        border-radius: 0 0 14px 0 !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.24) !important;
        z-index: 100000 !important;
    }

    #mainHeader #desktopNav.mobile-menu-open > .nav-dropdown,
  #mainHeader #desktopNav.mobile-menu-open > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        border-bottom: 1px solid #f0e5df !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-dropdown > a,
  #mainHeader #desktopNav.mobile-menu-open > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 44px !important;
        padding: 10px 8px !important;
        color: #482013 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-dropdown-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 4px 8px 8px 14px !important;
        background: #fffaf7 !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .mobile-nav-extra {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #eadbd3 !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .mobile-nav-extra a {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
        border-radius: 9px !important;
        background: #fff3e8 !important;
        color: #81280e !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .mobile-nav-extra a:last-child {
        background: #85280c !important;
        color: #fff !important;
    }
}

@media (max-width: 1024px) {
    #mainHeader .header-inner {
        gap: 5px !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    #mainHeader .mobile-menu {
        flex-basis: 25px !important;
        width: 25px !important;
        min-width: 25px !important;
    }

    #mainHeader .logo-image {
        width: 23px !important;
        height: 23px !important;
        flex-basis: 23px !important;
    }

    #mainHeader .logo-text {
        font-size: 13px !important;
    }

    #mainHeader .header-actions {
        gap: 3px !important;
    }

    #mainHeader .header-actions .city-button {
        max-width: 67px !important;
        font-size: 11px !important;
    }

    #mainHeader .header-actions .post-btn {
        max-width: 73px !important;
        padding: 0 6px !important;
        font-size: 10px !important;
    }

    #mainHeader .header-pop-wrap {
        flex-basis: 26px !important;
    }

    #mainHeader .header-pop-wrap .head-icon {
        width: 26px !important;
    }
}

/* MOBILE HEADER FINAL TUNING: hide the top login/account control only on small screens */

@media (max-width: 850px) {
    #mainHeader .header-actions .home-user-account-wrap,
  #mainHeader .home-user-account-wrap {
        display: none !important;
    }

    #mainHeader .header-actions {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        gap: clamp(3px, 1vw, 7px) !important;
    }

    #mainHeader .header-actions .city-button {
        flex: 0 1 auto !important;
        max-width: clamp(58px, 17vw, 90px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #mainHeader #homeHeaderBellWrap {
        display: flex !important;
        flex: 0 0 30px !important;
        min-width: 30px !important;
    }

    #mainHeader #homeHeaderBellBtn {
        position: relative !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 34px !important;
        font-size: 21px !important;
    }

    #mainHeader .header-actions .post-btn {
        flex: 0 0 auto !important;
        max-width: clamp(70px, 22vw, 105px) !important;
        min-height: 31px !important;
        padding: 0 7px !important;
        font-size: clamp(9px, 2.6vw, 11px) !important;
        line-height: 1 !important;
    }

    #mainHeader .header-actions .post-btn i {
        margin-right: 3px !important;
    }
}

@media (max-width: 1024px) {
    #mainHeader .header-inner {
        gap: 4px !important;
    }

    #mainHeader .logo-box {
        flex: 1 1 0 !important;
    }

    #mainHeader .logo-text {
        font-size: 12px !important;
    }

    #mainHeader .header-actions {
        gap: 2px !important;
    }

    #mainHeader .header-actions .city-button {
        max-width: 56px !important;
        padding: 0 0px !important;
    }

    #mainHeader .header-actions .city-button .bi-geo-alt-fill {
        font-size: 13px !important;
    }

    #mainHeader #homeHeaderBellWrap,
  #mainHeader #homeHeaderBellBtn {
        width: 27px !important;
        min-width: 27px !important;
        flex-basis: 27px !important;
    }

    #mainHeader .header-actions .post-btn {
        max-width: 69px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
    }
}

/* Attractive, compact mobile header controls + reliable city picker */

#mainHeader .header-actions .city-button {
    border: 1px solid rgba(255,255,255,.34) !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 3px 9px rgba(48,12,3,.15) !important;
    font-weight: 700 !important;
    transition: background .18s ease, border-color .18s ease !important;
}

#mainHeader .header-actions .city-button:active,
#mainHeader .header-actions .city-button:focus-visible {
    background: rgba(255,255,255,.22) !important;
    border-color: #f3c38f !important;
    outline: 2px solid rgba(243,195,143,.35) !important;
}

#mainHeader .city-button .bi-geo-alt-fill {
    color: #ffd4a4 !important;
    flex: 0 0 auto !important;
}

#mainHeader .city-button .bi-chevron-down {
    color: #fff !important;
    flex: 0 0 auto !important;
}

#mainHeader #homeHeaderBellBtn {
    border: 1px solid rgba(255,255,255,.48) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 9px rgba(48,12,3,.16) !important;
    transition: transform .18s ease, background .18s ease !important;
}

#mainHeader #homeHeaderBellBtn:active {
    transform: scale(.94) !important;
    background: rgba(255,255,255,.24) !important;
}

#mainHeader #homeHeaderBellBtn > i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
}

#mainHeader .header-actions .post-btn {
    background: linear-gradient(135deg,#fff8ed 0%,#ffe1b8 100%) !important;
    color: #7d250b !important;
    border: 1px solid #ffd8a5 !important;
    box-shadow: 0 4px 11px rgba(55,14,2,.22), inset 0 1px 0 #fff !important;
    font-weight: 800 !important;
    letter-spacing: -.1px !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

#mainHeader .header-actions .post-btn:active {
    transform: translateY(1px) scale(.97) !important;
}

#cityBox {
    color: #3c2115 !important;
    font-family: inherit !important;
    animation: cityPickerIn .16s ease-out both;
}

#cityBox > div:first-child {
    color: #7d250b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 10px 10px 12px !important;
    border-bottom: 1px solid #f0dfd4 !important;
}

#cityBox > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 4px 0 !important;
    padding: 11px 12px !important;
    min-height: 42px !important;
    color: #43271b !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background .15s ease, color .15s ease !important;
}

#cityBox > a:hover, #cityBox > a:focus-visible, #cityBox > a:active {
    background: #fff0e4 !important;
    color: #85280c !important;
    outline: none !important;
}

#cityBox > a .bi-geo-alt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    background: #fff0e4 !important;
    border-radius: 9px !important;
    font-size: 15px !important;
}

@keyframes cityPickerIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width:1024px) {
    #mainHeader .header-actions .city-button {
        max-width: 82px !important;
        min-width: 62px !important;
        height: 34px !important;
        padding: 0 6px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }

    #mainHeader .header-actions .city-button .bi-geo-alt-fill {
        font-size: 13px !important;
    }

    #mainHeader #homeHeaderBellWrap {
        flex-basis: 30px !important;
        min-width: 30px !important;
    }

    #mainHeader #homeHeaderBellBtn {
        width: 30px !important;
        min-width: 30px !important;
        height: 34px !important;
        font-size: 19px !important;
    }

    #mainHeader .header-actions .post-btn {
        max-width: 82px !important;
        min-height: 32px !important;
        padding: 0 8px !important;
        font-size: 10px !important;
        border-radius: 18px !important;
    }
}

/* SMALL MOBILE ONLY: clean city/bell icons + premium Post Property button.
   All desktop and larger-screen styles remain unchanged. */

@media (max-width: 1024px) {
    #mainHeader .header-actions .city-button,
  #mainHeader .header-actions .city-button:focus,
  #mainHeader .header-actions .city-button:focus-visible,
  #mainHeader .header-actions .city-button:active {
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 2px !important;
        min-width: 0 !important;
        max-width: 58px !important;
        height: 34px !important;
        gap: 4px !important;
    }

    #mainHeader .header-actions .city-button .bi-geo-alt-fill {
        color: #ffd7a5 !important;
        font-size: 14px !important;
        filter: none !important;
    }

    #mainHeader .header-actions .city-button .bi-chevron-down {
        color: #fff !important;
        font-size: 9px !important;
    }

    #mainHeader #homeHeaderBellWrap {
        flex: 0 0 25px !important;
        min-width: 25px !important;
        width: 25px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #mainHeader #homeHeaderBellBtn,
  #mainHeader #homeHeaderBellBtn:focus,
  #mainHeader #homeHeaderBellBtn:focus-visible,
  #mainHeader #homeHeaderBellBtn:active {
        width: 25px !important;
        min-width: 25px !important;
        height: 34px !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
        font-size: 20px !important;
    }

    #mainHeader #homeHeaderBellBtn > i {
        filter: none !important;
    }

    #mainHeader #homeHeaderBellBtn .notification-count {
        top: -1px !important;
        right: -3px !important;
        min-width: 13px !important;
        height: 13px !important;
        padding: 0 3px !important;
        border: 1px solid #85280c !important;
        border-radius: 20px !important;
        background: #ffd166 !important;
        color: #68200b !important;
        font-size: 8px !important;
        line-height: 11px !important;
        box-shadow: none !important;
    }

    #mainHeader .header-actions .post-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 7px !important;
        overflow: visible !important;
        border: 1px solid #ffe0a8 !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #fffdf7 0%, #ffe7bd 55%, #ffd18a 100%) !important;
        color: #79240d !important;
        box-shadow: 0 3px 9px rgba(45, 12, 2, .22), inset 0 1px 0 #fff !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: -.15px !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    #mainHeader .header-actions .post-btn > i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background: #85280c !important;
        color: #fff !important;
        font-size: 10px !important;
    }

    #mainHeader .header-actions .post-btn .home-free-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin: 0 0 0 1px !important;
        padding: 3px 4px !important;
        border: 0 !important;
        border-radius: 4px !important;
        background: #168849 !important;
        color: #fff !important;
        font-size: 7px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        box-shadow: 0 1px 2px rgba(0,0,0,.12) !important;
    }
}

@media (max-width: 360px) {
    #mainHeader .header-inner {
        gap: 3px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #mainHeader .header-actions {
        gap: 2px !important;
    }

    #mainHeader .header-actions .city-button {
        max-width: 53px !important;
    }

    #mainHeader .header-actions .post-btn {
        gap: 3px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
    }

    #mainHeader .header-actions .post-btn > i {
        width: 14px !important;
        height: 14px !important;
        flex-basis: 14px !important;
        font-size: 9px !important;
    }

    #mainHeader .header-actions .post-btn .home-free-badge {
        padding: 3px !important;
        font-size: 6px !important;
    }
}

/* Small mobile: lift FREE badge above the label and keep the button compact. */

@media (max-width: 1024px) {
    #mainHeader .header-actions .post-btn {
        position: relative !important;
        height: 27px !important;
        min-height: 27px !important;
        padding: 0 6px !important;
        gap: 3px !important;
        font-size: 9px !important;
        overflow: visible !important;
        border-radius: 8px !important;
    }

    #mainHeader .header-actions .post-btn .home-free-badge {
        position: absolute !important;
        top: -7px !important;
        right: 3px !important;
        z-index: 2 !important;
        margin: 0 !important;
        padding: 2px 4px !important;
        font-size: 6px !important;
        line-height: 1 !important;
        border-radius: 3px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
    }

    #mainHeader .header-actions .post-btn > i {
        width: 14px !important;
        height: 14px !important;
        flex-basis: 14px !important;
        font-size: 9px !important;
    }
}

@media (max-width: 360px) {
    #mainHeader .header-actions .post-btn {
        height: 25px !important;
        min-height: 25px !important;
        padding: 0 5px !important;
        font-size: 8px !important;
    }

    #mainHeader .header-actions .post-btn .home-free-badge {
        top: -6px !important;
        right: 2px !important;
        font-size: 5px !important;
        padding: 2px 3px !important;
    }
}

/* Small mobile: keep the compact Post Property button and show Login/Account icon immediately after it. */

@media (max-width: 1024px) {
    #mainHeader .header-actions .home-user-account-wrap {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 0 25px !important;
        width: 25px !important;
        min-width: 25px !important;
        margin-left: 1px !important;
        position: relative !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 25px !important;
        min-width: 25px !important;
        height: 30px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-login-icon {
        display: inline-block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        font-size: 19px !important;
        color: #fff !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-label,
  #mainHeader .header-actions .home-user-account-wrap .user-dropdown-toggle {
        display: none !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .home-avatar {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .home-header-popup {
        right: 0 !important;
        left: auto !important;
        max-width: calc(100vw - 12px) !important;
    }
}

@media (max-width: 360px) {
    #mainHeader .header-actions .home-user-account-wrap {
        flex-basis: 22px !important;
        width: 22px !important;
        min-width: 22px !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-btn {
        width: 22px !important;
        min-width: 22px !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-login-icon {
        font-size: 17px !important;
    }
}

/* Polished small-mobile Login / Account icon */

@media (max-width: 1024px) {
    #mainHeader .header-actions .home-user-account-wrap {
        width: 34px !important;
        min-width: 34px !important;
        flex: 0 0 34px !important;
        margin-left: 3px !important;
        align-self: center !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-btn {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid rgba(255,255,255,.68) !important;
        border-radius: 50% !important;
        background: linear-gradient(145deg, #ffffff, #e9efff) !important;
        box-shadow: 0 2px 7px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9) !important;
        color: #173a72 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        transition: transform .18s ease, box-shadow .18s ease !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-btn:active {
        transform: scale(.94) !important;
        box-shadow: 0 1px 3px rgba(0,0,0,.18) !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-login-icon {
        display: inline-block !important;
        font-size: 20px !important;
        line-height: 1 !important;
        color: #173a72 !important;
        margin: 0 !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .home-avatar {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        border: 2px solid #fff !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        background: linear-gradient(145deg, #dbeafe, #fff) !important;
        box-shadow: 0 1px 5px rgba(0,0,0,.15) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .home-avatar-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .home-avatar-fallback {
        color: #173a72 !important;
        font-size: 18px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-label,
  #mainHeader .header-actions .home-user-account-wrap .user-dropdown-toggle {
        display: none !important;
    }
}

@media (max-width: 360px) {
    #mainHeader .header-actions .home-user-account-wrap {
        width: 30px !important;
        min-width: 30px !important;
        flex-basis: 30px !important;
        margin-left: 2px !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-btn {
        width: 29px !important;
        min-width: 29px !important;
        height: 29px !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-login-icon {
        font-size: 18px !important;
    }
}

/* MOBILE/TABLET SUBMENU CONTRAST FIX — AI Bharat theme */

@media (max-width: 1024px) {
    #mainHeader #desktopNav.mobile-menu-open .nav-dropdown.open > .nav-mega-menu,
  #mainHeader #desktopNav.mobile-menu-open .nav-dropdown.open > .nav-dropdown-menu {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 8px !important;
        padding: 7px !important;
        background: #fff7f0 !important;
        border: 1px solid #f0d9c8 !important;
        border-radius: 9px !important;
        box-shadow: inset 0 1px 2px rgba(91, 37, 12, .04) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        overflow: visible !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-mega-menu .mega-menu-title {
        display: block !important;
        padding: 8px 9px !important;
        margin: 0 0 4px !important;
        color: #85280c !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.4 !important;
        border-bottom: 1px solid #ead4c4 !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-mega-menu > a,
  #mainHeader #desktopNav.mobile-menu-open .nav-dropdown-menu > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        width: 100% !important;
        min-height: 38px !important;
        height: auto !important;
        padding: 9px 10px !important;
        margin: 2px 0 !important;
        color: #4d2b1d !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 7px !important;
        font-family: "DM Sans", "Poppins", Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        opacity: 1 !important;
        text-decoration: none !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-mega-menu > a > i,
  #mainHeader #desktopNav.mobile-menu-open .nav-dropdown-menu > a > i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 22px !important;
        width: 22px !important;
        height: 22px !important;
        border-radius: 6px !important;
        background: #f9e4d5 !important;
        color: #85280c !important;
        font-size: 13px !important;
    }

    #mainHeader #desktopNav.mobile-menu-open .nav-mega-menu > a:hover,
  #mainHeader #desktopNav.mobile-menu-open .nav-dropdown-menu > a:hover,
  #mainHeader #desktopNav.mobile-menu-open .nav-mega-menu > a:focus-visible,
  #mainHeader #desktopNav.mobile-menu-open .nav-dropdown-menu > a:focus-visible,
  #mainHeader #desktopNav.mobile-menu-open .nav-mega-menu > a:active,
  #mainHeader #desktopNav.mobile-menu-open .nav-dropdown-menu > a:active {
        color: #85280c !important;
        background: #fbe8db !important;
        outline: none !important;
    }
}

/* MOBILE HEADER TOP FIX */

@media (max-width: 850px) {
    #mainHeader {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        background: linear-gradient(
            100deg,
            #721b0b 0%,
            #85280C 52%,
            #a43b18 100%
        ) !important;
        overflow: visible !important;
        z-index: 5000 !important;
    }

    #mainHeader .header-inner {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 5px 9px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Desktop account dropdown chevron sits inside its own outlined box. */

@media (min-width: 1025px) {
    #mainHeader .home-user-account-wrap .user-dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 32px !important;
        margin-left: 5px !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,.65) !important;
        border-radius: 7px !important;
        background: rgba(255,255,255,.10) !important;
        color: #fff !important;
        box-sizing: border-box !important;
    }

    #mainHeader .home-user-account-wrap .user-dropdown-toggle i {
        font-size: 12px !important;
    }
}

/* Avatar for the account shortcut inside the mobile navigation drawer. */

#mainHeader .mobile-nav-extra .mobile-nav-account-link {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
}

#mainHeader .mobile-nav-extra .mobile-nav-account-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    color: #85280C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.8);
}

#mainHeader .mobile-nav-extra .mobile-nav-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#mainHeader .mobile-nav-extra .mobile-nav-account-avatar i {
    align-items: center;
    justify-content: center;
}

/* Final account control polish: keep the dropdown chevron inside the same outlined account box. */

@media (min-width: 1025px) {
    #mainHeader .home-user-account-wrap {
        gap: 0 !important;
        border: 1px solid rgba(255,255,255,.55) !important;
        border-radius: 9px !important;
        background: rgba(255,255,255,.09) !important;
        overflow: visible !important;
    }

    #mainHeader .home-user-account-wrap .user-head-btn {
        border: 0 !important;
        border-radius: 8px 0 0 8px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #mainHeader .home-user-account-wrap .user-dropdown-toggle {
        width: 30px !important;
        min-width: 30px !important;
        height: 34px !important;
        margin: 0 !important;
        border: 0 !important;
        border-left: 1px solid rgba(255,255,255,.32) !important;
        border-radius: 0 8px 8px 0 !important;
        background: transparent !important;
    }

    #mainHeader .home-user-account-wrap .user-dropdown-toggle:hover,
  #mainHeader .home-user-account-wrap .user-dropdown-toggle:focus-visible {
        background: rgba(255,255,255,.14) !important;
    }
}

/* Ensure profile photo is visible and cropped as a circle in all header variants. */

#mainHeader .home-avatar,
#mainHeader .home-avatar-image {
    overflow: hidden !important;
    border-radius: 50% !important;
}

#mainHeader .home-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mainHeader .home-avatar-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/*
 * Responsive header rules — authoritative final layer.
 * Tablet (including iPad portrait 768px): retain the full menu bar.
 * Small phones: keep the compact hamburger layout.
 * The sticky system-search header activates from 768px upward.
 */

@media (min-width: 768px) and (max-width: 1024px) {
    #mainHeader {
        position: relative !important;
        width: 100% !important;
        min-height: 60px !important;
        height: 60px !important;
        background: linear-gradient(100deg,#721b0b 0%,#85280C 52%,#a43b18 100%) !important;
        overflow: visible !important;
        z-index: 5000 !important;
    }

    #mainHeader .header-inner {
        width: 100% !important;
        max-width: none !important;
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 10px !important;
        gap: 7px !important;
        display: flex !important;
        align-items: center !important;
    }

    #mainHeader .mobile-menu {
        display: none !important;
    }

    #mainHeader .logo-box {
        flex: 0 1 112px !important;
        width: 112px !important;
        min-width: 92px !important;
        gap: 5px !important;
        overflow: hidden !important;
    }

    #mainHeader .logo-box .logo-image {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
    }

    #mainHeader .logo-text {
        font-size: 15px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    #mainHeader .logo-tagline {
        display: none !important;
    }

    #mainHeader #desktopNav,
    #mainHeader #desktopNav.mobile-menu-open {
        position: static !important;
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: none !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: clamp(5px, 0.9vw, 10px) !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    #mainHeader #desktopNav > a,
    #mainHeader #desktopNav > .nav-dropdown > a {
        display: inline-flex !important;
        width: auto !important;
        min-height: 34px !important;
        height: auto !important;
        padding: 4px 2px !important;
        font-size: clamp(9px, 1.15vw, 12px) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        justify-content: center !important;
    }

    #mainHeader #desktopNav > .nav-dropdown {
        display: flex !important;
        width: auto !important;
        height: 60px !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

    #mainHeader #desktopNav .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 2px) !important;
        left: 0 !important;
        display: none !important;
        width: max-content !important;
        min-width: 165px !important;
        max-width: 280px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 7px !important;
        background: #fff !important;
        border: 1px solid #EEE0D6 !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,.18) !important;
        z-index: 7000 !important;
    }

    #mainHeader #desktopNav .nav-dropdown.open > .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown.open > .nav-dropdown-menu,
    #mainHeader #desktopNav .nav-dropdown:hover > .nav-mega-menu,
    #mainHeader #desktopNav .nav-dropdown:hover > .nav-dropdown-menu {
        display: block !important;
    }

    #mainHeader #desktopNav .nav-mega-menu a,
    #mainHeader #desktopNav .nav-dropdown-menu a {
        display: flex !important;
        width: 100% !important;
        min-height: 32px !important;
        padding: 7px 9px !important;
        color: #211107 !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    #mainHeader #desktopNav .mobile-nav-extra {
        display: none !important;
    }

    #mainHeader .header-actions {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        height: 60px !important;
        margin: 0 0 0 auto !important;
        gap: 5px !important;
    }

    #mainHeader .header-actions .city-button,
    #mainHeader .header-actions .post-btn,
    #mainHeader .header-actions .home-user-account-wrap {
        display: inline-flex !important;
    }

    #mainHeader .header-actions .city-button {
        width: auto !important;
        max-width: 72px !important;
        min-width: 48px !important;
        height: 30px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
        gap: 3px !important;
        white-space: nowrap !important;
    }

    #mainHeader .header-actions .post-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: clamp(126px, 16vw, 158px) !important;
        height: 34px !important;
        padding: 0 clamp(7px, 1.1vw, 13px) !important;
        gap: 5px !important;
        font-size: clamp(10px, 1.2vw, 13px) !important;
        white-space: nowrap !important;
    }

    #mainHeader .header-actions .post-btn .home-free-badge {
        font-size: 8px !important;
        padding: 3px 4px !important;
        line-height: 1 !important;
    }

    #mainHeader .header-actions .home-user-account-wrap {
        max-width: 40px !important;
        flex: 0 0 auto !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-btn {
        width: 34px !important;
        min-width: 34px !important;
        height: 32px !important;
        padding: 0 4px !important;
        justify-content: center !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .user-head-label,
    #mainHeader .header-actions .home-user-account-wrap .user-dropdown-toggle {
        display: none !important;
    }

    #mainHeader .header-actions .home-user-account-wrap .home-avatar {
        width: 23px !important;
        height: 23px !important;
        flex-basis: 23px !important;
    }

    /* Tablet system/search view: fit the existing sticky header to the screen. */

    #scrollTopHeader .scroll-top-inner {
        padding: 0 10px !important;
        gap: 5px !important;
    }

    #scrollTopHeader .scroll-logo {
        flex: 0 1 145px !important;
        width: 145px !important;
        min-width: 92px !important;
        gap: 5px !important;
    }

    #scrollTopHeader .scroll-logo img {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
    }

    #scrollTopHeader .scroll-logo-text {
        font-size: 16px !important;
    }

    #scrollTopHeader .scroll-buy-button {
        min-width: 58px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    #scrollTopHeader .scroll-search-box {
        flex: 1 1 130px !important;
        min-width: 90px !important;
    }

    #scrollTopHeader .scroll-search-icon {
        margin: 0 6px !important;
        font-size: 16px !important;
    }

    #scrollTopHeader #scrollSearchInput {
        min-width: 0 !important;
        font-size: 11px !important;
    }

    #scrollTopHeader .scroll-search-mic {
        width: 32px !important;
        flex-basis: 32px !important;
    }

    #scrollTopHeader .scroll-search-submit {
        width: 36px !important;
        flex-basis: 36px !important;
    }

    #scrollTopHeader .scroll-post-property {
        min-width: 128px !important;
        padding: 0 9px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }

    #scrollTopHeader .scroll-post-property span {
        font-size: 8px !important;
    }

    #scrollTopHeader .scroll-login {
        min-width: 54px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
    }
}

/* Keep the compact hamburger layout on actual small phones. */

@media (max-width: 767px) {
    #mainHeader .mobile-menu {
        display: inline-flex !important;
    }

    #mainHeader #desktopNav {
        display: none !important;
    }

    #mainHeader #desktopNav.mobile-menu-open {
        display: flex !important;
    }

    #scrollTopHeader,
    #scrollTopHeader.show {
        display: none !important;
    }
}

/* iPad/tablet: show the FREE badge above Post Property, matching mobile. */

@media (min-width: 768px) and (max-width: 1024px) {
    #mainHeader .header-actions .post-btn {
        position: relative !important;
        overflow: visible !important;
    }

    #mainHeader .header-actions .post-btn .home-free-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: -7px !important;
        right: 4px !important;
        z-index: 5 !important;
        margin: 0 !important;
        padding: 2px 5px !important;
        border-radius: 4px !important;
        background: #168849 !important;
        color: #fff !important;
        font-size: 8px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
    }
}

/* Mobile + tablet notification page: list scrolls, See all stays visible at the bottom. */

html.notification-open,
body.notification-open {
    overflow: hidden !important;
    height: 100% !important;
    overscroll-behavior: none !important;
}

@media (max-width: 1024px) {
    #mainHeader #homeHeaderBellWrap {
        position: static !important;
        display: flex !important;
    }

    #mainHeader #homeHeaderBellPopup.notification-popup,
    #mainHeader #homeHeaderBellPopup.notification-popup.show {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483000 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
    }

    #mainHeader #homeHeaderBellPopup.notification-popup:not(.show) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    #mainHeader #homeHeaderBellPopup.notification-popup.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    #mainHeader #homeHeaderBellPopup .notification-screen-heading {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin: 0 0 10px !important;
    }

    #mainHeader #homeHeaderBellPopup .notification-close-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        cursor: pointer !important;
    }

    /* Only this middle section scrolls. */

    #mainHeader #homeHeaderBellPopup .home-popup-list {
        display: block !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
        padding: 0 2px 14px !important;
        scrollbar-width: thin !important;
    }

    #mainHeader #homeHeaderBellPopup .home-notification-item {
        display: flex !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 80px !important;
        box-sizing: border-box !important;
    }

    /* Always visible at the bottom; never part of the scrolling list. */

    #mainHeader #homeHeaderBellPopup a.home-popup-see-all {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border-top: 1px solid #eee !important;
        border-radius: 0 !important;
        color: #85280C !important;
        text-align: center !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        text-decoration: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 5 !important;
    }

    #mainHeader #homeHeaderBellPopup .notification-screen-heading h3 {
        line-height: 1.3 !important;
    }
}

/*
 * Final stacking/viewport correction:
 * #mainHeader creates a stacking context on mobile. Raise that context while
 * notifications are open so the fixed mobile bottom navigation cannot cover
 * the notification page or its "See all notifications" link.
 */

@media (max-width: 1024px) {
    html.notification-open,
    body.notification-open {
        overflow: hidden !important;
        height: 100% !important;
        position: relative !important;
        overscroll-behavior: none !important;
    }

    body.notification-open #mainHeader {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        z-index: 2147483647 !important;
        overflow: visible !important;
        pointer-events: none !important;
    }

    body.notification-open #mainHeader #homeHeaderBellPopup.notification-popup,
    body.notification-open #mainHeader #homeHeaderBellPopup.notification-popup.show {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding-top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
        padding-right: 16px !important;
        padding-bottom: 0 !important;
        padding-left: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 2147483647 !important;
        pointer-events: auto !important;
        background: #fff !important;
    }

    body.notification-open #mainHeader #homeHeaderBellPopup .notification-screen-heading {
        flex: 0 0 auto !important;
    }

    body.notification-open #mainHeader #homeHeaderBellPopup .home-popup-list {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
    }

    body.notification-open #mainHeader #homeHeaderBellPopup a.home-popup-see-all {
        position: relative !important;
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        border-top: 1px solid #eee !important;
        background: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2147483647 !important;
    }

    body.notification-open #mainHeader #homeHeaderBellBtn {
        pointer-events: none !important;
    }
}

/* FIX: MAIN MENU STAYS FIXED WHILE SCROLLING */

#mainHeader.is-scroll-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 51px !important;
    background: linear-gradient(
        100deg,
        #721b0b 0%,
        #85280C 52%,
        #a43b18 100%
    ) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .22) !important;
    z-index: 999999 !important;
    overflow: visible !important;
}

/* Keep desktop content from jumping */

#mainHeader-scroll-spacer {
    display: none;
    width: 100%;
}

/* Mobile and tablet */

@media (max-width: 1024px) {
    #mainHeader.is-scroll-fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #85280C !important;
        z-index: 999999 !important;
    }

    #mainHeader.is-scroll-fixed .header-inner {
        position: relative !important;
    }

    #mainHeader.is-scroll-fixed #desktopNav.mobile-menu-open {
        position: absolute !important;
        top: calc(100% + 2px) !important;
    }
}

/* Browser top/bottom safe areas follow the AI Bharat brand on mobile. */

@media (max-width: 1025px) {
    html {
        background: #85280C !important;
    }

    body {
        min-height: 100%;
        background: var(--bg, #FDF9F5);
    }

    #mainHeader {
        background: linear-gradient(100deg,#721b0b 0%,#85280C 52%,#a43b18 100%) !important;
    }
}

/* Small screens: display the city name only, with compact typography. */

@media (max-width: 1024px) {
    #mainHeader .header-actions .city-button {
        font-size: 9px !important;
        letter-spacing: -.15px !important;
        max-width: 58px !important;
        gap: 3px !important;
    }

    #mainHeader .header-actions .city-button .bi-geo-alt-fill {
        font-size: 12px !important;
    }

    #mainHeader .header-actions .city-button .bi-chevron-down {
        font-size: 8px !important;
    }
}
