:root {
    --portal-surface: rgba(255, 255, 255, 0.96);
    --portal-surface-dark: rgba(15, 23, 42, 0.88);
    --portal-border: rgba(15, 23, 42, 0.1);
    --portal-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    --portal-text: #0f172a;
    --portal-text-soft: #526072;
    --portal-accent: #ef3b2d;
}

.portal-home-hero {
    min-height: 620px;
    padding: 3.8rem 0 3rem;
}

.portal-home-hero__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 28px 34px;
}

.portal-home-hero__copy-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-home-hero__quick-links--inline {
    margin-top: 0;
    margin-bottom: 2px;
}

.portal-home-hero__stats-column {
    align-self: stretch;
}

.portal-home .search-panel--hero .search-panel__row--hero {
    display: block;
    margin-bottom: 12px;
}

.search-panel__combined-bar {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(3, 7, 18, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-panel__toggle-group--inline {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 176px;
}

.search-panel__location--combined {
    position: relative;
    min-width: 0;
}

.search-panel__location--combined .search-panel__input {
    width: 100%;
}

.search-panel__location--combined .search-panel__suggestions {
    top: calc(100% + 10px);
    left: 0;
    right: 0;
}

.search-panel__hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.66);
}

.portal-home .search-panel--hero .search-panel__row--price-only {
    grid-template-columns: 1fr;
}

.portal-home .search-panel--hero .search-panel__row--details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
}

.portal-home .search-panel--hero .search-panel__row--details > [class*="col"],
.portal-home .search-panel--hero .search-panel__row--details .search-panel__cell {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.portal-home .search-panel--hero .search-panel__row--quaternary {
    grid-template-columns: 1fr;
}

.portal-home .search-panel--hero .search-panel__submit-group {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
}

.portal-home-hero--searching .search-panel--hero .search-panel__row--primary {
    grid-template-columns: 1fr;
}

.portal-home-hero--searching .search-panel--hero .search-panel__row--price-only {
    grid-template-columns: 1fr;
}

.portal-home-hero--searching .search-panel--hero .search-panel__row--details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .portal-home-hero {
        min-height: 0;
        padding: 2.6rem 0 2.4rem;
    }

    .search-panel__combined-bar {
        grid-template-columns: 1fr;
    }

    .search-panel__toggle-group--inline {
        min-width: 0;
    }

    .portal-home .search-panel--hero .search-panel__row--price-only,
    .portal-home .search-panel--hero .search-panel__row--details,
    .portal-home-hero--searching .search-panel--hero .search-panel__row--price-only,
    .portal-home-hero--searching .search-panel--hero .search-panel__row--details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .portal-home-hero__quick-links--inline {
        gap: 8px;
    }

    .portal-home-hero__quick-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .portal-home .search-panel--hero .search-panel__submit-group {
        grid-template-columns: 1fr;
    }
}

body.theme-dark {
    --portal-surface: rgba(11, 15, 21, 0.92);
    --portal-border: rgba(148, 163, 184, 0.16);
    --portal-shadow: 0 24px 48px rgba(2, 6, 23, 0.44);
    --portal-text: #e2e8f0;
    --portal-text-soft: rgba(226, 232, 240, 0.74);
}

body.portal-home #ajax-content {
    padding-top: 0;
}

.portal-container {
    max-width: 1380px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.portal-home-hero {
    position: relative;
    overflow: hidden;
    padding: 4.6rem 0 2.6rem;
    background:
        linear-gradient(125deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.46)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 36%),
        url('/assest/images/dubai.jpg') center center / cover no-repeat;
    color: #f8fafc;
}

.portal-home-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(245, 247, 251, 0.96));
}

body.theme-dark .portal-home-hero::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.96));
}

.portal-home-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    grid-template-areas:
        "copy search"
        "stats search";
    gap: 24px;
    align-items: end;
}

.portal-home-hero__copy-column,
.portal-home-hero__stats-column,
.portal-home-hero__search-panel {
    min-width: 0;
    will-change: transform, opacity;
}

.portal-home-hero__copy-column {
    grid-area: copy;
}

.portal-home-hero__stats-column {
    grid-area: stats;
}

.portal-home-hero__search-panel {
    grid-area: search;
}

.portal-home-hero--searching .portal-home-hero__layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
    grid-template-areas:
        "copy stats"
        "search search";
    align-items: start;
}

.portal-home-hero--searching .portal-home-hero__stats {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.portal-home-hero__eyebrow,
.portal-section-heading__eyebrow,
.portal-market-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(248, 250, 252, 0.76);
}

.portal-home-hero__headline {
    max-width: 12ch;
    margin: 14px 0 14px;
    font-family: Montserrat, Lato, sans-serif;
    font-size: clamp(2.25rem, 4.35vw, 3.85rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-transform: none !important;
}

.portal-home-hero__copy {
    max-width: 56ch;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(248, 250, 252, 0.86);
}

.portal-home-hero__copy-soft {
    display: inline-block;
    margin-left: 6px;
    color: rgba(248, 250, 252, 0.98);
    font-weight: 700;
}

.portal-home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.portal-home-hero__stat {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(248, 250, 252, 0.14);
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(12px);
}

.portal-home-hero__stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.portal-home-hero__stat-label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.72);
}

.portal-home-card {
    border: 1px solid var(--portal-border);
    border-radius: 24px;
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
    color: var(--portal-text);
}

.portal-home-card--search {
    padding: 18px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
}

.portal-home-hero--searching .portal-home-card--search {
    padding: 16px 18px;
}

.portal-home-card__header {
    margin-bottom: 14px;
}

.portal-home-card__header h2,
.portal-section-heading h2 {
    margin: 0;
    font-size: clamp(1.48rem, 2vw, 2.02rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: none !important;
}

.portal-home-card__header p,
.portal-section-heading p {
    margin: 8px 0 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--portal-text-soft);
}

.portal-home-card--search .portal-home-card__header p {
    color: rgba(226, 232, 240, 0.76);
}

.portal-home .search-panel--hero {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.portal-home .search-panel--hero .search-panel__form {
    padding: 0;
}

.portal-home .search-panel--hero .search-panel__row {
    margin-left: 0;
    margin-right: 0;
    gap: 12px;
}

.portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__row--primary,
.portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__row--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__cell--location,
.portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__cell--price,
.portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__cell--submit {
    grid-column: 1 / -1;
}

.portal-home-hero--searching .search-panel--hero .search-panel__row--primary {
    grid-template-columns: minmax(148px, 0.95fr) minmax(0, 2.55fr) minmax(180px, 1.25fr);
}

.portal-home-hero--searching .search-panel--hero .search-panel__row--secondary {
    grid-template-columns: minmax(132px, 0.9fr) minmax(132px, 0.9fr) minmax(220px, 1.55fr) minmax(280px, 1.9fr);
}

.portal-home .search-panel--hero .search-panel__row > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
}

.portal-home .search-panel--hero .search-panel__input,
.portal-home .search-panel--hero .select2-container--default .select2-selection--single,
.portal-home .search-panel--hero .price-dropdown__toggle,
.portal-home .search-panel--hero .search-panel__toggle-group label,
.portal-listings .select2-container--default .select2-selection--single,
.portal-listings .search-panel__input,
.portal-listings .price-dropdown__toggle {
    min-height: 50px;
    height: 50px !important;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.portal-home .search-panel--hero .search-panel__input,
.portal-home .search-panel--hero .select2-container--default .select2-selection--single,
.portal-home .search-panel--hero .price-dropdown__toggle {
    background: rgba(2, 6, 23, 0.54);
}

.portal-home .search-panel--hero .select2-dropdown-container {
    margin-bottom: 0;
}

.portal-home .search-panel--hero .select2-container--default .select2-selection--single .select2-selection__rendered,
.portal-home .search-panel--hero .select2-container--default .select2-selection--single .select2-selection__placeholder {
    line-height: 50px !important;
}

.portal-home .search-panel--hero .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
}

.portal-home .search-panel--hero .search-panel__submit,
.portal-home .search-panel--hero .search-panel__reset {
    min-height: 50px;
    border-radius: 14px;
}

.portal-home-hero__quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.portal-home-hero__quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.12);
    color: #f8fafc;
    text-decoration: none;
}

.portal-home-hero__quick-link:hover,
.portal-home-hero__quick-link:focus {
    text-decoration: none;
    color: #fff;
    background: rgba(248, 250, 252, 0.18);
}

.portal-home-section {
    padding: 42px 0 0;
}

.portal-home-results {
    scroll-margin-top: 140px;
}

.portal-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.portal-section-heading__eyebrow {
    color: #64748b;
}

.portal-home-card--results,
.portal-home-news .portal-home-card {
    padding: 20px;
}

.portal-home-newsletter__card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--portal-border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(39, 39, 42, 0.94));
    box-shadow: var(--portal-shadow);
}

.portal-home-newsletter__copy h2 {
    margin: 6px 0 10px;
    color: #f8fafc;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 800;
}

.portal-home-newsletter__copy p {
    margin: 0;
    max-width: 56ch;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.7;
}

.portal-home-newsletter__card .portal-section-heading__eyebrow {
    color: rgba(248, 250, 252, 0.74);
}

.portal-home-newsletter__form .newsletter-signup .email {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.portal-home-newsletter__form .newsletter-signup input[type="email"] {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.98);
    color: #0f172a;
    padding: 0 16px;
}

.portal-home-newsletter__form .newsletter-signup button {
    min-height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 14px;
    background: #ef3b2d;
    color: #fff;
    font-weight: 800;
}

.portal-market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-market-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
}

.portal-market-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portal-market-card__body {
    padding: 18px;
}

.portal-market-card__body h3 {
    margin: 10px 0 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--portal-text);
}

.portal-market-card__body p {
    margin: 0;
    line-height: 1.65;
    color: var(--portal-text-soft);
}

.portal-market-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-weight: 700;
    color: var(--portal-accent);
    text-decoration: none;
}

.portal-listing-shell {
    padding: 12px 0 40px;
}

.featured.portfolio.rec-pro.portal-listing-shell {
    padding-top: 12px;
    padding-bottom: 40px;
}

.portal-listing-shell .portal-container {
    display: grid;
    gap: 22px;
}

.portal-listing-shell [data-fade-in] {
    animation: portal-fade-up 0.48s ease both;
}

.portal-listing-band {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) auto;
    gap: 22px;
    align-items: end;
    padding: 22px 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(118deg, rgba(9, 16, 29, 0.98), rgba(15, 23, 42, 0.96) 58%, rgba(92, 32, 54, 0.82)),
        radial-gradient(circle at top right, rgba(239, 59, 45, 0.16), transparent 34%);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.18);
    color: #f8fafc;
}

.portal-listing-band__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.7);
}

.portal-listing-band__title {
    margin: 10px 0 8px;
    font-family: Montserrat, Lato, sans-serif;
    font-size: clamp(1.86rem, 3vw, 2.72rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: none !important;
    color: #fff;
}

.portal-listing-band__criteria {
    font-size: 0.98rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.82);
}

.portal-listing-band__summary {
    max-width: 60ch;
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.56;
    color: rgba(226, 232, 240, 0.76);
}

.portal-listing-band__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.portal-listing-band__sort {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 10px 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
}

.portal-listing-band__sort span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}

.portal-listing-band__sort-select {
    min-width: 192px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.74);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

.portal-listing-band__sort-select option {
    color: #0f172a;
}

.portal-listings .property-view-toggle--portal {
    margin: 0;
}

.portal-listings .listing-search-widget {
    margin-bottom: 16px;
}

.portal-listings .listing-search-widget .widget-boxed {
    padding: 0;
    border: 1px solid var(--portal-border);
    border-radius: 22px;
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
}

.portal-listings .listing-search-widget .widget-boxed-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.portal-listings .listing-search-widget .widget-boxed-body {
    padding: 0 20px 20px;
}

body:not(.theme-dark) .portal-listings .search-panel__combined-bar--listing {
    padding: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body:not(.theme-dark) .portal-listings .search-panel__combined-bar--listing .search-panel__location--combined .search-panel__input {
    background: #fff;
}

.listing-search-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.listing-search-widget__subtitle {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.listing-search-widget__map-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(239, 59, 45, 0.28);
    border-radius: 999px;
    background: rgba(239, 59, 45, 0.08);
    color: var(--portal-accent);
    font-weight: 700;
    white-space: nowrap;
}

.listing-search-widget__map-button:hover,
.listing-search-widget__map-button:focus {
    background: rgba(239, 59, 45, 0.14);
    color: #d92d20;
}

.portal-listings .search-panel--listing .search-panel__row {
    gap: 12px;
}

.portal-listings .search-panel--listing .search-panel__row--primary {
    grid-template-columns: 1fr;
}

.portal-listings .search-panel--listing .search-panel__cell--listing-combined {
    min-width: 0;
}

.portal-listings .search-panel--listing .search-panel__combined-bar--listing {
    width: 100%;
}

.portal-listings .search-panel--listing .search-panel__combined-bar--listing .search-panel__toggle-group--inline {
    flex: 0 0 auto;
    min-width: 168px;
}

.portal-listings .search-panel--listing .search-panel__combined-bar--listing .search-panel__location--combined {
    min-width: 0;
}

.portal-listings .search-panel--listing .search-panel__combined-bar--listing .search-panel__hint {
    right: 16px;
}

.portal-listing-workspace {
    align-items: flex-start;
}

.portal-listing-workspace > .listing-main,
.portal-listing-workspace > .listing-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
}

.portal-listing-workspace .property_list {
    margin-top: 0;
}

.portal-listing-workspace .listing-sidebar {
    align-self: stretch;
}

.portal-listing-workspace--grid > .listing-sidebar {
    order: 1;
}

.portal-listing-workspace--grid > .listing-main {
    order: 2;
}

.portal-listing-workspace--grid > .listing-main,
.portal-listing-workspace--grid > .listing-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
}

.portal-listing-workspace--list > .listing-main {
    order: 1;
}

.portal-listing-workspace--list > .listing-sidebar {
    order: 2;
}

.portal-listing-workspace--grid .listing-search-widget .widget-boxed-header {
    padding: 16px 18px 12px;
}

.portal-listing-workspace--grid .listing-search-widget .widget-boxed-body {
    padding: 0 18px 18px;
}

.portal-listing-workspace--grid .listing-sidebar__panel {
    position: static;
    top: auto;
}

.portal-listing-workspace--grid .listing-search-widget__header {
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.portal-listing-workspace--grid .search-panel--listing .search-panel__row--toolbar {
    grid-template-columns: minmax(170px, 0.92fr) minmax(250px, 1.18fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) 60px;
}

.portal-listing-workspace--grid .search-panel--listing .search-panel__cell--type,
.portal-listing-workspace--grid .search-panel--listing .search-panel__cell--bedrooms,
.portal-listing-workspace--grid .search-panel--listing .search-panel__cell--bathrooms,
.portal-listing-workspace--grid .search-panel--listing .search-panel__cell--price,
.portal-listing-workspace--grid .search-panel--listing .search-panel__cell--reset {
    grid-column: auto;
}

.portal-listing-workspace--grid .search-panel--listing .search-panel__cell--reset {
    justify-content: flex-end;
}

.portal-listing-workspace--grid .search-panel--listing .search-panel__clear-icon {
    margin-left: auto;
}

.portal-listing-workspace--list .search-panel--listing .search-panel__row--toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-listing-workspace .listing-sidebar__panel {
    position: sticky;
    top: 132px;
}

.portal-listing-results {
    margin-top: 0;
}

.portal-listing-workspace--list .property-card-grid {
    row-gap: 18px;
}

@media (min-width: 1200px) {
    .portal-listing-workspace--list > .listing-main {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }

    .portal-listing-workspace--list > .listing-sidebar {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

.portal-listing-map-drawer {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 22px;
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.portal-listing-map-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
}

.portal-listing-map-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.portal-listing-map-drawer__header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--portal-text);
}

.portal-listing-map-drawer__header p {
    margin: 6px 0 0;
    color: var(--portal-text-soft);
}

.portal-listing-map-drawer__close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--portal-text);
    font-weight: 700;
}

.portal-listing-map-drawer__map {
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.14);
}

.portal-listing-map-drawer__empty {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--portal-text-soft);
}

.listing-map-popup__card {
    display: grid;
    gap: 4px;
    text-decoration: none;
    color: #0f172a;
}

.listing-map-popup__price {
    font-size: 0.92rem;
}

.listing-map-popup__title {
    font-weight: 700;
}

.listing-map-popup__location {
    font-size: 0.82rem;
    color: #475569;
}

@keyframes portal-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

body.theme-dark .portal-listing-band {
    background:
        linear-gradient(118deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94) 58%, rgba(76, 27, 47, 0.8)),
        radial-gradient(circle at top right, rgba(239, 59, 45, 0.16), transparent 34%);
}

body.theme-dark .portal-listing-band__sort {
    background: rgba(2, 6, 23, 0.5);
}

body.theme-dark .portal-listing-band__sort-select {
    background: rgba(2, 6, 23, 0.88);
}

body.theme-dark .portal-listings .listing-search-widget .widget-boxed-header {
    border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .listing-search-widget__map-button {
    background: rgba(239, 59, 45, 0.12);
    color: #ff8b7f;
}

body.theme-dark .portal-listing-map-drawer__close {
    background: rgba(148, 163, 184, 0.1);
    color: #f8fafc;
}

.portal-listings .property-card-col.property-card-col--third {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 1280px) {
    .portal-listings .property-card-col.property-card-col--third {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 1199.98px) {
    .portal-home-hero__layout,
    .portal-home-hero--searching .portal-home-hero__layout,
    .portal-market-grid,
    .portal-home-newsletter__card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "stats"
            "search";
    }

    .portal-home-hero__stats {
        grid-template-columns: 1fr;
    }

    .portal-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-listing-band {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .portal-listing-band__controls {
        justify-content: flex-start;
    }

    .portal-listings .search-panel--listing .search-panel__row--toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-listings .search-panel--listing .search-panel__combined-bar--listing {
        grid-template-columns: 1fr;
    }

    .portal-listings .search-panel--listing .search-panel__combined-bar--listing .search-panel__toggle-group--inline {
        min-width: 0;
    }

    .portal-listing-workspace .listing-sidebar__panel {
        position: static;
        top: auto;
    }

}

@media (max-width: 991.98px) {
    .portal-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .portal-home-hero {
        padding-top: 3.6rem;
    }

    .portal-listing-shell {
        padding-top: 20px;
    }

    .portal-listing-band {
        padding: 20px;
        border-radius: 22px;
    }

    .portal-listing-band__title {
        font-size: clamp(1.72rem, 6vw, 2.18rem);
    }

    .portal-listing-band__controls,
    .listing-search-widget__header,
    .portal-listing-map-drawer__header {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-listing-band__sort {
        width: 100%;
        justify-content: space-between;
    }

    .portal-listing-band__sort-select {
        min-width: 0;
        width: 100%;
    }

    .portal-listings .search-panel--listing .search-panel__row--toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-listings .search-panel--listing .search-panel__row {
        gap: 10px;
    }

    .portal-listings .search-panel--listing .search-panel__combined-bar--listing {
        grid-template-columns: 1fr;
    }

    .listing-search-widget__map-button,
    .portal-listing-map-drawer__close {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .portal-listings .search-panel--listing .search-panel__row--toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-listings .search-panel--listing .search-panel__toggle-group,
    .portal-listings .search-panel--listing .search-panel__submit-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-listings .search-panel--listing .search-panel__combined-bar--listing {
        grid-template-columns: 1fr;
    }

    .portal-home-hero {
        padding: 2.4rem 0 1.6rem;
    }

    .portal-home-hero::after {
        height: 72px;
    }

    .portal-home-hero__layout,
    .portal-home-hero--searching .portal-home-hero__layout,
    .portal-market-grid,
    .portal-home-newsletter__card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "search"
            "stats";
    }

    .portal-home-hero__copy-column {
        max-width: 38rem;
    }

    .portal-home-hero__eyebrow {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .portal-home-hero__headline {
        margin: 10px 0 10px;
        font-size: clamp(1.95rem, 8vw, 2.45rem);
        line-height: 1;
    }

    .portal-home-hero__copy {
        font-size: 0.92rem;
        line-height: 1.62;
        max-width: none;
    }

    .portal-home-hero__stats {
        margin-top: 0;
        gap: 8px;
    }

    .portal-home-hero__stat {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .portal-home-hero__stat-value {
        font-size: 0.95rem;
    }

    .portal-home-hero__stat-label {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.45;
    }

    .portal-home-card--search,
    .portal-home-card--results,
    .portal-home-news .portal-home-card {
        padding: 14px;
    }

    .portal-home-newsletter__card {
        padding: 16px;
        gap: 14px;
    }

    .portal-home-newsletter__form .newsletter-signup .email {
        grid-template-columns: 1fr;
    }

    .portal-home-card__header {
        margin-bottom: 12px;
    }

    .portal-home .search-panel--hero .search-panel__row > [class*="col"] {
        width: 100%;
    }

    .portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__row--primary,
    .portal-home .portal-home-hero:not(.portal-home-hero--searching) .search-panel--hero .search-panel__row--secondary,
    .portal-home-hero--searching .search-panel--hero .search-panel__row--primary,
    .portal-home-hero--searching .search-panel--hero .search-panel__row--secondary {
        grid-template-columns: 1fr;
    }

    .portal-listings .property-card-col.property-card-col--third {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .portal-section-heading {
        margin-bottom: 14px;
        gap: 10px;
    }

    .portal-section-heading h2 {
        font-size: 1.28rem;
        line-height: 1.08;
    }

    .portal-section-heading p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .portal-home-section {
        padding-top: 30px;
    }

    .portal-market-card__media img {
        height: 180px;
    }

    .portal-market-card__body {
        padding: 16px;
    }

    .portal-market-card__body h3 {
        font-size: 1.08rem;
        margin: 8px 0 8px;
    }

    .portal-home-news .portal-home-card {
        padding: 14px;
    }

    .portal-home-news .keyily-news__card {
        border-radius: 18px;
        overflow: hidden;
    }

    .portal-home-news .keyily-news__title {
        font-size: 1.06rem;
        line-height: 1.22;
    }

    .portal-home-news .keyily-news__summary {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .portal-home-news .keyily-news__link,
.portal-home-news .keyily-news__footer .btn {
        min-height: 44px;
        border-radius: 12px;
    }
}

.portal-listings [data-search-pagination].is-infinite-active {
    display: none;
}
