/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-dark: #0d0d0d;
    --color-bg-card:rgba(230,247,147,1);
    
    --color-text-primary: #111111;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-white: #ffffff;
    --color-accent-green: #E6F793;
    --color-accent-green-dark: #16a34a;
    --color-accent-green-hover:#bcfbd3;
    --color-border: #BCDD13 ;
    --color-border-dark: #000000;
    --color-border-light: #f3f4f6;
    --font-primary: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(1, 1, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.2s ease;
    --section-color: #FDF9F7;
    --color-accent-red: #FF5A5F;
    --background-danger-red: #ffcccc;

    --color-black-08: rgba(0,0,0,0.08);


    /*  */
    --pasted-lime: #EFFEA6;
    --line-height-header: 100%;
    --letter-spacing-header: -2%;
}


html {
    scroll-behavior: smooth;
    font-size: 1rem;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    height: 72px;
    display: flex;
    align-items: center;
}

/* Subtle shadow once the page has been scrolled (toggled by base.js) */
.navbar--scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Lock body scroll while the mobile drawer / a modal is open */
.scroll-locked {
    overflow: hidden;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}


.navbar__logo-icon svg {
    width: 18px;
    height: 18px;
}


.navbar__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Mobile in-panel action buttons and footer CTA are hidden on desktop and only revealed inside the mobile drawer */
.navbar__nav-actions,
.navbar__nav-footer {
    display: none;
}

.navbar__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.navbar__link:hover {
    color: var(--color-text-primary);
}

.navbar__link svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== PROPERTY DROPDOWN ===== */
.navbar__item.navbar__dropdown {
    position: relative;
}

.navbar__link--trigger {
    cursor: pointer;
    background: none;
    border: none;
}

.navbar__item--has-mega > .navbar__link > svg,
.navbar__link--trigger .navbar__chevron {
    color: #BCDD13;
    opacity: 1;
    transition: transform 0.2s ease;
}

.navbar__link--trigger .navbar__chevron {
    width: 12px;
    height: 12px;
    stroke-width: 1.67px;
    transform: rotate(0deg);
}

.navbar__dropdown:hover .navbar__chevron,
.navbar__dropdown:focus-within .navbar__chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.navbar__dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: min(92vw, 700px);
    min-width: 560px;
    background-color: white;
    border: 1px solid #e6ead8;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08), 0 2px 8px rgba(17, 24, 39, 0.04);
    padding: 20px 24px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1001;
}

.navbar__dropdown-panel::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.navbar__dropdown:hover .navbar__dropdown-panel,
.navbar__dropdown:focus-within .navbar__dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 14px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    position: relative;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.navbar__dropdown-item:hover {
    background: #f8fbef;
    border-color: #d3dc9a;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.navbar__dropdown-item::after {
    content: '\2197';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #31ac30;
    opacity: 0.75;
    line-height: 1;
}

.navbar__dropdown-item svg {
    width: 22px;
    height: 22px;
    color: #111111;
    stroke: #111111;
    opacity: 1;
    margin-bottom: 4px;
}

.navbar__dropdown-item:hover svg {
    opacity: 1;
}

.navbar__dropdown-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.navbar__dropdown-desc {
    display: block;
    font-size: 0.74rem;
    color: #8a909d;
    line-height: 1.35;
    margin-top: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--outline {
    border: 2px solid var(--color-border-dark);
    color: var(--color-text-primary);
    background: transparent;
    border-radius: 8px;
}

.btn--outline:hover {
    background: var(--color-bg-card);
    border: var(2px solid var(--color-bg-card));
}

/* Outline button variant on a card-tinted background (no border) */
.btn--outline--card {
    background-color: var(--color-bg-card);
    border: none;
}

.btn--primary {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    border: 1.5px solid var(--color-bg-dark);
    border-radius: 8px;
}


.btn--primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== MOBILE NAV TOGGLE ===== */
.navbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    flex-shrink: 0;
}

.navbar__toggle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;                /* full footer height instead of 200px */
    /* background: radial-gradient(ellipse at center top, rgba(209, 255, 130, 0.15), rgba(209, 255, 130, 0.03) 60%, transparent 100%); */
    pointer-events: none;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}


.footer__logo-icon img {
    width: 100%;
    height: auto;
}



.footer__brand-description {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}
/* Preserve spacing when footer text is rendered via rich text. */
.footer__brand-description > *:first-child { margin-top: 0; }
.footer__brand-description > *:last-child { margin-bottom: 0; }

.footer__heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-text-primary);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.footer__social a {
    width: 24px;
    height: 24px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: var(--transition);
}

.footer__social a:hover {
    background: none;
    color: var(--color-text-secondary);
}

.footer__social svg {
    width: 16px;
    height: 16px;
}

.footer__bottom {
    border-top: 1px solid #71768033;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.footer__bottom-links a:hover {
    color: var(--color-text-primary);
}
/* ===== MEGA MENU ===== */
.navbar__item {
    position: static;
}

.navbar__item .navbar__link {
    cursor: pointer;
}

.navbar__item .navbar__link svg {
    transition: transform 0.25s ease;
}

.navbar__item.active .navbar__link svg {
    transform: rotate(180deg);
}

.navbar__item.active .navbar__link {
    color: var(--color-text-primary);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: min(92vw, 700px);
    min-width: 560px;
    background: white;
    border: 1px solid #e6ead8;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08), 0 2px 8px rgba(17, 24, 39, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
    z-index: 1001;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.mega-menu--active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu:has(.mega-menu__inner--property),
.mega-menu:has(.mega-menu__inner--whouses) {
    top: 72px;
    left: 0;
    right: 0;
    transform: translateY(-8px);
    width: auto;
    min-width: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.mega-menu:has(.mega-menu__inner--property).mega-menu--active,
.mega-menu:has(.mega-menu__inner--whouses).mega-menu--active {
    transform: translateY(0);
}

/* Frame 570 – panel body: stacks the card row above the insights bar */
.mega-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px 0;
    width: 100%;
}

/* Frame 568 – 3-card row: 16px gap, stretches to fill panel inset */
.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-self: stretch;
}

.mega-menu__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mega-menu__card:hover {
    background: #f8fbef;
    border-color: #d3dc9a;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.mega-menu__card::after {
    content: '\2197';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color:#31ac30;
    opacity: 0.75;
    line-height: 1;
}

.mega-menu__icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mega-menu__icon svg {
    width: 22px;
    height: 22px;
    color: #111111;
    stroke: #111111;
    fill: none;
    opacity: 1;
}

.mega-menu__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.mega-menu__desc {
    font-size: 0.74rem;
    color: #8a909d;
    line-height: 1.35;
    margin-top: 2px;
}

/* Promo card */
.mega-menu__promo {
    width: 260px;
    min-width: 260px;
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.mega-menu__promo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu__promo-icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
}

.mega-menu__promo-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.mega-menu__promo-desc {
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.mega-menu__promo .btn--sm {
    padding: 10px 24px;
    font-size: 0.82rem;
    margin-top: 4px;
}

.mega-menu__promo-note {
    font-size: 0.65rem;
    color: var(--color-text-light);
    opacity: 0.7;
    line-height: 1.5;
}

/* Mega menu: Property Intelligence variant
   Keeps horizontal sidebar/content/image layout, but allows the insights bar
   to wrap to a full-width row at the bottom of the panel. */
.mega-menu__inner--property {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
}

.mega-menu__inner--property > .mega-menu__insights-bar {
    flex-basis: 100%;
}

.mega-menu__sidebar {
    width: 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-right: 1px solid var(--color-border-light);
}

.mega-menu__sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    margin: 2px 8px;
    transition: background 0.2s ease;
}

.mega-menu__sidebar-item:hover {
    background: var(--color-accent-green-hover);
}

.mega-menu__sidebar-item--active {
    background: #eef8b9;
    border: 1px solid #d9e84a;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.mega-menu__sidebar-item svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mega-menu__sidebar-item--active svg {
    opacity: 0.72;
}

.mega-menu__sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    margin: auto 8px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.mega-menu__sidebar-link:hover {
    color: var(--color-text-primary);
}

.mega-menu__sidebar-link svg {
    width: 16px;
    height: 16px;
}

.mega-menu__grid--2col {
    grid-template-columns: repeat(2, 1fr);
    flex: 1;
    padding: 0 24px;
}

/* Subheader column layout (e.g. "On Market" | "Off Market") */
.mega-menu__columns {
    flex: 1;
    display: flex;
    gap: 24px;
    padding: 8px 24px;
}

.mega-menu__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu__subheader {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    padding: 8px 16px 4px;
    margin-bottom: 4px;
}

.mega-menu__image-promo {
    width: 220px;
    min-width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mega-menu__image-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mega-menu__image-promo .btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    text-align: center;
}
/* Mega menu: Who Uses Us variant */
.mega-menu__inner--whouses {
    flex-direction: column;
    gap: 0;
    padding: 24px 24px 0;
}

/* Tighten the card grid spacing so it matches the rest of the unified look */
.mega-menu__inner--whouses .mega-menu__card-grid {
    gap: 16px;
}

.mega-menu__card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding-bottom: 20px;
}

.mega-menu__use-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mega-menu__use-card:hover {
    border-color: #d3dc9a;
    background: #f8fbef;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.mega-menu__use-card--cta,
/* Middle-card lime highlight — applied positionally across every
   flat-grid dropdown (default mega, auth Property, Who Uses Us).
   The sidebar variant's .mega-menu__grid--2col is intentionally skipped
   because that layout already has its own active-item highlight. */
.navbar__dropdown-panel > .navbar__dropdown-item:nth-child(2):not(:only-child),
.mega-menu__grid:not(.mega-menu__grid--2col) > .mega-menu__card:nth-child(2):not(:only-child),
.mega-menu__card-grid > .mega-menu__use-card:nth-child(2):not(:only-child) {
    border-color: #d9e84a;
    background: #eef8b9;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.mega-menu__use-card--cta .mega-menu__use-title {
    color: #101010;
}

.mega-menu__use-card--cta:hover,
.navbar__dropdown-panel > .navbar__dropdown-item:nth-child(2):not(:only-child):hover,
.mega-menu__grid:not(.mega-menu__grid--2col) > .mega-menu__card:nth-child(2):not(:only-child):hover,
.mega-menu__card-grid > .mega-menu__use-card:nth-child(2):not(:only-child):hover {
    border-color: #c7d93f;
    background: #e7f394;
}

.mega-menu__use-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.mega-menu__use-icon svg {
    width: 22px;
    height: 22px;
    color: #111111;
    stroke: #111111;
    fill: none;
    opacity: 1;
}

.mega-menu__use-arrow {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 16px;
    height: 16px;
    color: #111111;
    stroke: #111111;
    opacity: 0.75;
}

.mega-menu__use-card--cta .mega-menu__use-arrow {
    color: #111111;
    stroke: #111111;
    opacity: 0.85;
}

.mega-menu__use-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.mega-menu__use-desc {
    font-size: 0.74rem;
    color: #8a909d;
    line-height: 1.35;
    margin-top: 2px;
}

/* =====================================================================
   Insights bar — "Need property insights? Start your Search Now"
   Bottom section of every navbar dropdown (Frame 38 spec).
   Typography / pill / icon mirror the mobile .navbar__nav-footer-* tokens
   so desktop + mobile stay in lockstep.
   ===================================================================== */
.mega-menu__insights-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    align-self: stretch;
    min-height: 89px;
    margin: 20px -24px 0;
    padding: 24px;
    background: #FFFFFF;
    border-top: 0.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 0 0 8px 8px;
}

.mega-menu__insights-bar-blurb {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.mega-menu__insights-bar-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-green);
    color: var(--color-text-primary);
}

.mega-menu__insights-bar-icon svg {
    width: 18px;
    height: 18px;
}

.mega-menu__insights-bar-blurb p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 150%;
    letter-spacing: -0.04em;
}

.mega-menu__insights-bar-blurb p strong {
    font-weight: 700;
}

.mega-menu__insights-bar-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 8px;
    justify-content: center;
    min-height: 44px;
    border: 2px solid var(--pasted-lime);
    background: var(--pasted-lime);
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 150%;
    letter-spacing: -0.04em;
}

.mega-menu__insights-bar-cta:hover {
    background: #e5f793;
    border-color: #e5f793;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Inside the auth Property dropdown (CSS grid container), the bar must
   span all 3 columns and break out to the full panel edge. */
.navbar__dropdown-panel > .mega-menu__insights-bar {
    grid-column: 1 / -1;
    margin: 12px -24px 0;
}

/* Inside the Property Intelligence sidebar variant (no horizontal padding
   on the inner), the bar shouldn't use negative side margins. */
.mega-menu__inner--property > .mega-menu__insights-bar {
    margin: 0;
}

/* Panel visibility toggle (sidebar mega menu) */
.mega-menu__panel--hidden {
    display: none !important;
}

/* need to update */
/* Accent CTA button (lime green, used on image promo) */
.btn--accent {
    background: #d1ff82;
    color: var(--color-text-primary);
    border: 1.5px solid #d1ff82;
    font-weight: 700;
}

.btn--accent:hover {
    background: #bef062;
    border-color: #bef062;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE Section ===== */
/* ===== LARGE SCREENS ===== */
@media (min-width: 1440px) {
    .container {
        max-width: 85.375rem;
    }

    .footer .container {
        max-width: 85.375rem;
    }

    .footer__grid {
        gap: 64px;
    }

    .footer__brand-description {
        max-width: 360px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 100rem;
    }

    .footer .container {
        max-width: 100rem;
    }

    .footer__grid {
        gap: 80px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 120rem;
    }

    .footer .container {
        max-width: 120rem;
    }

    .footer__grid {
        gap: 96px;
    }
}

@media (max-width: 1024px) {
    .navbar .container {
        position: relative;
    }

    /* Hide the in-dropdown insights bar on mobile — the existing
       .navbar__nav-footer renders once at the bottom of the drawer instead. */
    .mega-menu__insights-bar,
    .navbar__dropdown-panel > .mega-menu__insights-bar {
        display: none !important;
    }

    /* ===== Full-viewport mobile drawer ===== */
    .navbar__nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: auto;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border-light);
        border-radius: 0;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
        padding: 16px;
        z-index: 1002;
        gap: 0;
    }

    .navbar__nav.navbar__nav--open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* Hide outer Login/Try-for-FREE on mobile; duplicates now live inside the drawer */
    .navbar__actions .btn {
        display: none;
    }

    .navbar__actions {
        margin-left: auto;
        gap: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__item {
        position: relative;
        width: 100%;
    }

    .navbar__link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 4px;
        border-bottom: 1px solid var(--color-border-light);
        color: var(--color-text-primary);
        font-size: 0.95rem;
        font-weight: 500;
    }

    .navbar__link svg {
        width: 16px;
        height: 16px;
        opacity: 0.7;
        transition: transform 0.2s ease;
    }

    /* Chevron rotates on active (expanded) */
    .navbar__item--has-mega.active > .navbar__link svg,
    .navbar__dropdown.active > .navbar__link svg.navbar__chevron {
        transform: rotate(180deg);
    }

    /* ===== In-panel action buttons (Login / Try for FREE) =====
       Flex layout so a single Logout button stretches full width while
       Login + Try-for-FREE still split evenly when both are present. */
    .navbar__nav-actions {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .navbar__nav-actions .btn {
        flex: 1;
        padding: 12px 16px;
    }

    /* ===== Mega menu as inline accordion panel (override desktop display:none) ===== */
    .mega-menu {
        display: none;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        padding: 12px 0 16px;
    }

    .navbar__item--has-mega.active .mega-menu,
    .navbar__item--has-mega.active .mega-menu--active {
        display: contents;
    }

    .mega-menu__inner {
        padding: 0;
        max-width: none;
        display: block;
    }

    /* Flatten all desktop mega-menu layouts into a simple stacked list */
    .mega-menu__grid,
    .mega-menu__card-grid,
    .mega-menu__columns,
    .mega-menu__inner--property,
    .mega-menu__inner--whouses {
        display: flex;
        flex-direction: column;
        gap: 13px;
        grid-template-columns: none;
    }

    .mega-menu__sidebar,
    .mega-menu__image-promo,
    .mega-menu__cta-bar,
    .mega-menu__subheader {
        display: none;
    }

    .mega-menu__panel--hidden {
        display: none !important;
    }

    .mega-menu__card,
    .mega-menu__use-card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-height: 126px;
        padding: 18px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #ffffff;
        text-decoration: none;
        color: var(--color-text-primary);
    }

    .mega-menu__card .mega-menu__icon,
    .mega-menu__use-card .mega-menu__use-icon {
        display: inline-flex;
        width: 24px;
        height: 24px;
        align-items: center;
        justify-content: center;
        color: var(--color-text-primary);
    }

    .mega-menu__card .mega-menu__icon svg,
    .mega-menu__use-card .mega-menu__use-icon svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
    }

    .mega-menu__card .mega-menu__title,
    .mega-menu__use-card .mega-menu__use-title {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .mega-menu__card .mega-menu__desc,
    .mega-menu__use-card .mega-menu__use-desc {
        display: block;
        font-size: 0.82rem;
        color: var(--color-text-secondary);
        line-height: 1.4;
    }

    /* Diagonal arrow (#BCDD13) — inline SVG data URI for crisp, consistent rendering */
    .mega-menu__card::after,
    .mega-menu__use-card::after {
        content: '';
        position: absolute;
        top: 18px;
        right: 18px;
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BCDD13' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        color: transparent;
    }

    .mega-menu__use-card .mega-menu__use-arrow {
        display: none;
    }

    /* ===== Featured card (2nd child per Figma) ===== */
    .navbar__item--has-mega.active .mega-menu__grid > .mega-menu__card:nth-child(2),
    .navbar__item--has-mega.active .mega-menu__card-grid > .mega-menu__use-card:nth-child(2),
    .navbar__dropdown.active .navbar__dropdown-panel > .navbar__dropdown-item:nth-child(2) {
        background: var(--color-bg-card);
        border-color: transparent;
    }

    /* ===== Property dropdown (authenticated) as accordion ===== */
    .navbar__dropdown .navbar__dropdown-panel {
        display: none;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        min-width: 0;
        margin-top: 0;
        padding: 12px 0 16px;
        gap: 13px;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
    }

    .navbar__dropdown.active .navbar__dropdown-panel {
        display: grid;
    }

    /* Neutralise desktop hover opening on mobile */
    .navbar__dropdown:hover .navbar__dropdown-panel,
    .navbar__dropdown:focus-within .navbar__dropdown-panel {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .navbar__dropdown:not(.active):hover .navbar__dropdown-panel,
    .navbar__dropdown:not(.active):focus-within .navbar__dropdown-panel {
        display: none;
    }

    .navbar__dropdown-item {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-height: 126px;
        padding: 18px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #ffffff;
    }

    .navbar__dropdown-item > svg {
        width: 22px;
        height: 22px;
        margin-bottom: 0;
    }

    .navbar__dropdown-title {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .navbar__dropdown-desc {
        font-size: 0.82rem;
        color: var(--color-text-secondary);
        line-height: 1.4;
        margin-top: 0;
    }

    .navbar__dropdown-item::after {
        content: '';
        top: 18px;
        right: 18px;
        width: 20px;
        height: 20px;
        font-size: 0;
        opacity: 1;
        color: transparent;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BCDD13' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    /* ===== Mobile footer CTA block ===== */
    .navbar__nav-footer {
        display: block;
        margin-top: auto;
        padding: 20px 4px 8px;
        border-top: 1px solid var(--color-border-light);
    }

    /* Icon + text inline, 15px gap per Figma (wrapper 42px tall) */
    .navbar__nav-footer-blurb {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin-bottom: 14px;
        min-height: 42px;
    }

    .navbar__nav-footer-icon {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--color-accent-green);
        color: var(--color-text-primary);
    }

    .navbar__nav-footer-icon svg {
        width: 18px;
        height: 18px;
    }

    .navbar__nav-footer-blurb p {
        flex: 1;
        margin: 0;
        font-size: 0.875rem;
        line-height: 150%;
        letter-spacing: -0.04em;
    }

    .navbar__nav-footer-blurb p strong {
        font-weight: 700;
        font-size: 0.875rem;
        line-height: 150%;
        letter-spacing: -0.04em;
    }

    .navbar__nav-footer-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 24px;
        border-radius: 8px;
        border: 2px solid var(--pasted-lime);
        background: var(--pasted-lime);
        color: var(--color-text-primary);
        font-weight: 700;
        font-size: 0.875rem;
        line-height: 150%;
        letter-spacing: -0.04em;
    }

    .navbar__nav-footer-cta:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .mega-menu__inner {
        padding: 0;
        max-width: none;
        display: block;
        margin-top: 10px;   /* push the panel down inside the mobile drawer */
}

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
