:root {
    --portal-ui-bg: #f4f2ec;
    --portal-ui-surface: #ffffff;
    --portal-ui-surface-soft: #f8f7f3;
    --portal-ui-border: rgba(15, 23, 42, 0.1);
    --portal-ui-text: #101828;
    --portal-ui-text-soft: #566273;
    --portal-ui-brand: #ef3b2d;
    --portal-ui-brand-deep: #cb2f24;
    --portal-ui-navy: #131b2d;
    --portal-ui-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
    --portal-btn-height: 50px;
    --portal-btn-radius: 16px;
    --portal-btn-padding: 0 22px;
    --portal-btn-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body {
    background: var(--portal-ui-bg);
    color: var(--portal-ui-text);
}

body.theme-dark {
    --portal-ui-bg: #060a10;
    --portal-ui-surface: #0f1724;
    --portal-ui-surface-soft: #111b2c;
    --portal-ui-border: rgba(148, 163, 184, 0.18);
    --portal-ui-text: #eef3f8;
    --portal-ui-text-soft: rgba(226, 232, 240, 0.74);
    --portal-ui-brand: #ff5b47;
    --portal-ui-brand-deep: #ef3b2d;
    --portal-ui-navy: #0b1220;
    --portal-ui-shadow: 0 26px 64px rgba(2, 6, 23, 0.42);
}

body.theme-dark main,
body.theme-dark .portal-home-section,
body.theme-dark .portal-listing-shell,
body.theme-dark .property-shell,
body.theme-dark .about-page,
body.theme-dark .sell-page {
    color: var(--portal-ui-text);
}

#header-container.portal-header-shell,
#header-container.portal-header-shell.header.head-tr {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(20px);
}

body.theme-dark #header-container.portal-header-shell,
body.theme-dark #header-container.portal-header-shell.header.head-tr {
    background: rgba(7, 11, 18, 0.9);
    border-bottom-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

#header-container.portal-header-shell {
    position: sticky;
    top: 0;
    z-index: 1400;
}

.portal-topbar {
    background: transparent;
}

.portal-topbar__inner {
    gap: 8px;
    min-height: 40px;
    padding-top: 2px;
    padding-bottom: 0;
}

.portal-topbar__controls {
    gap: 8px;
}

.portal-pref-menu__summary,
.portal-topbar__install {
    min-height: 34px;
    padding: 5px 11px;
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.portal-topbar__theme {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    color: var(--portal-ui-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.theme-dark .portal-topbar__theme {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.18);
    color: #eef3f8;
}

.portal-pref-menu__label {
    font-size: 9px;
    letter-spacing: 0.12em;
}

.portal-pref-menu__value,
.portal-pref-menu__option-main {
    gap: 8px;
    font-size: 13px;
}

.portal-pref-menu__panel {
    min-width: 240px;
    border-radius: 18px;
    padding: 10px;
}

.portal-pref-menu--locale .portal-pref-menu__summary {
    min-width: 172px;
}

.portal-pref-menu__panel--locale {
    width: min(860px, calc(100vw - 32px));
    min-width: 600px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    padding: 12px;
}

.portal-pref-menu__panel--locale .portal-pref-menu__option {
    min-height: 48px;
}

.portal-pref-menu__option {
    border-radius: 14px;
}

.portal-header {
    padding: 2px 0 8px;
}

.portal-header__inner {
    gap: 18px;
    padding-top: 0;
    padding-bottom: 2px;
}

#header-container.portal-header-shell #logo img,
.portal-header__brand img,
.portal-header__brand #logo img {
    width: auto;
    height: 42px;
    max-height: 42px;
}

.portal-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
}

.portal-logo,
.about-hero__brand-logo,
.portal-footer__logo img {
    display: block;
    height: auto;
}

.portal-footer__logo img {
    width: auto;
    height: 52px;
    max-height: 52px;
}

.about-hero__brand-logo {
    width: auto;
    height: 56px;
    max-height: 56px;
}

.btn-yellow,
.btn-k-primary,
.btn-k-secondary,
.newsletter-signup button,
.portal-home-newsletter__form .newsletter-signup button,
.portal-newsletter-popup .newsletter-signup button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--portal-btn-height);
    padding: var(--portal-btn-padding);
    border-radius: var(--portal-btn-radius);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    box-shadow: var(--portal-btn-shadow);
    gap: 0.55rem;
}

.btn-yellow,
.btn-k-primary,
.newsletter-signup button,
.portal-home-newsletter__form .newsletter-signup button,
.portal-newsletter-popup .newsletter-signup button {
    border: 1px solid var(--portal-ui-brand);
    background: linear-gradient(180deg, var(--portal-ui-brand), var(--portal-ui-brand-deep)) !important;
    color: #fff !important;
}

.btn-k-secondary {
    border: 1.5px solid var(--portal-ui-brand);
    background: transparent !important;
    color: var(--portal-ui-brand) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border: 1.5px solid var(--portal-ui-brand) !important;
    background: transparent !important;
    color: var(--portal-ui-brand) !important;
    box-shadow: none;
}

.btn-yellow:hover,
.btn-yellow:focus,
.btn-k-primary:hover,
.btn-k-primary:focus,
.newsletter-signup button:hover,
.newsletter-signup button:focus,
.portal-home-newsletter__form .newsletter-signup button:hover,
.portal-home-newsletter__form .newsletter-signup button:focus,
.portal-newsletter-popup .newsletter-signup button:hover,
.portal-newsletter-popup .newsletter-signup button:focus {
    background: linear-gradient(180deg, #f24a37, #d83123) !important;
    border-color: #d83123;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-k-secondary:hover,
.btn-k-secondary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: var(--portal-ui-brand) !important;
    border-color: var(--portal-ui-brand);
    color: #fff !important;
    transform: translateY(-1px);
}

.portal-header__nav {
    margin-left: 6px;
}

.portal-header__nav ul#responsive {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-header__nav ul#responsive > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-header__nav ul#responsive {
    justify-content: flex-start;
    gap: 6px;
}

.portal-header__nav ul#responsive > li > a {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--portal-ui-text);
}

@media (min-width: 992px) {
    .portal-nav__link--home {
        min-width: 42px;
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .portal-nav__link--home span {
        display: none;
    }

    .portal-nav__link--home .fa {
        margin: 0;
        font-size: 18px;
    }
}

.portal-header__nav ul#responsive > li > a:hover,
.portal-header__nav ul#responsive > li > a:focus {
    background: rgba(15, 23, 42, 0.06);
    color: var(--portal-ui-text);
    transform: none;
}

body.theme-dark .portal-header__nav ul#responsive > li > a {
    color: var(--portal-ui-text);
}

body.theme-dark .portal-header__nav ul#responsive > li > a:hover,
body.theme-dark .portal-header__nav ul#responsive > li > a:focus {
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
}

.portal-header__actions {
    gap: 10px;
}

.portal-chip--compact {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.portal-chip--compact .portal-chip__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.portal-chip__single {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
}

.portal-icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 16px;
}

@media (min-width: 992px) {
    .portal-chip--peek {
        min-width: 48px;
        width: 48px;
        padding: 0 9px;
        gap: 0;
        justify-content: center;
        overflow: hidden;
    }

    .portal-chip--peek .portal-chip__icon {
        margin: 0;
    }

    .portal-chip--peek .portal-chip__single {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateX(-6px);
        transition: max-width 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
        white-space: nowrap;
    }

    .portal-chip--peek:hover,
    .portal-chip--peek:focus,
    .portal-chip--peek:focus-within {
        width: auto;
        min-width: 178px;
        padding: 0 14px;
        gap: 10px;
        justify-content: flex-start;
    }

    .portal-chip--peek:hover .portal-chip__single,
    .portal-chip--peek:focus .portal-chip__single,
    .portal-chip--peek:focus-within .portal-chip__single {
        max-width: 180px;
        opacity: 1;
        transform: translateX(0);
    }
}

.theme-toggle__icon {
    font-size: 15px;
}

.portal-home-hero {
    padding: 28px 0 22px;
}

.portal-home-hero__layout {
    gap: 24px 28px;
}

.portal-home-hero__headline {
    font-size: clamp(3rem, 5.5vw, 5.65rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.portal-home-hero__copy {
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.68;
    color: var(--portal-ui-text-soft);
}

.portal-home-hero__stats {
    gap: 12px;
}

.portal-home-hero__stat {
    border-radius: 20px;
    background: rgba(19, 27, 45, 0.8);
}

body:not(.theme-dark) .portal-home-hero__stat {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

body:not(.theme-dark) .portal-home-hero__stat-value {
    color: #101828;
}

body:not(.theme-dark) .portal-home-hero__stat-label {
    color: #566273;
}

body:not(.theme-dark) .portal-home-hero__quick-link {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body:not(.theme-dark) .portal-home-hero__quick-link:hover,
body:not(.theme-dark) .portal-home-hero__quick-link:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.portal-home-card--search,
.portal-home-card--results,
.portal-home-news .portal-home-card,
.portal-home-newsletter__card {
    border-radius: 28px;
    box-shadow: var(--portal-ui-shadow);
}

.portal-home-card--search {
    padding: 22px;
}

.portal-home-card__header h2,
.portal-section-heading h2,
.portal-listing-band__title,
.about-page h2,
.sell-page h2 {
    letter-spacing: -0.04em;
}

.search-panel--hero,
.portal-listings .listing-search-widget .widget-boxed,
.portal-listing-map-drawer,
.portal-listing-band,
.property-section-card,
.property-side-panel,
.property-hero__panel {
    border-color: var(--portal-ui-border);
    box-shadow: var(--portal-ui-shadow);
}

.search-panel--hero {
    background: var(--portal-ui-navy);
    border-radius: 24px;
    padding: 18px;
}

.search-panel--hero .search-panel__row--primary {
    grid-template-columns: minmax(138px, 0.92fr) minmax(0, 2.3fr) minmax(170px, 1.16fr);
}

.search-panel--hero .search-panel__row--secondary {
    grid-template-columns: minmax(132px, 0.94fr) minmax(132px, 0.94fr) minmax(230px, 1.5fr) minmax(286px, 1.72fr);
}

.search-panel--listing .search-panel__row--primary {
    grid-template-columns: minmax(144px, 0.92fr) minmax(0, 2.8fr);
}

.search-panel--listing .search-panel__row--secondary {
    grid-template-columns: minmax(162px, 1.04fr) minmax(116px, 0.72fr) minmax(116px, 0.72fr) minmax(224px, 1.34fr) minmax(286px, 1.56fr);
}

.search-panel--hero .select2-container--default .select2-selection--single,
.search-panel--listing .select2-container--default .select2-selection--single,
.search-panel--hero .search-panel__input,
.search-panel--listing .search-panel__input,
.search-panel--hero .price-dropdown__toggle,
.search-panel--listing .price-dropdown__toggle,
.search-panel__submit,
.search-panel__reset {
    height: 50px;
    border-radius: 16px;
}

.search-panel__toggle-group label {
    min-height: 50px;
    border-radius: 16px;
    font-weight: 700;
}

.search-panel__submit-group {
    align-items: stretch;
}

.search-panel--hero .search-panel__submit-group,
.search-panel--listing .search-panel__submit-group {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
}

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

.portal-listing-band__title {
    font-size: clamp(2rem, 3.6vw, 3.15rem);
}

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

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

.listing-infinite-sentinel {
    width: 100%;
    height: 1px;
}

.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%;
    }
}

.property-card {
    border-radius: 24px;
}

.latest-properties-carousel__track {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.latest-properties-carousel__slide {
    display: flex;
    height: 100%;
    align-self: stretch;
}

.latest-properties-carousel__slide .property-card,
.latest-properties-carousel__slide .property-card--carousel {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}

.latest-properties-carousel__slide .property-card__gallery {
    aspect-ratio: 10 / 7;
    overflow: hidden;
}

.latest-properties-carousel__slide .property-card__image-wrap {
    display: block;
    height: 100%;
}

.property-card__image {
    height: clamp(212px, 18vw, 276px);
}

.property-card__body {
    padding: 16px;
    min-height: 222px;
}

.property-card__header {
    min-height: 98px;
}

.property-card__price {
    font-size: 19px;
}

.property-card__title {
    font-size: 15px;
}

.property-card__location,
.property-card__meta {
    font-size: 12.5px;
}

.property-card__agent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
}

.property-card__agent:hover,
.property-card__agent:focus {
    color: inherit;
    text-decoration: none;
}

.property-card__agent-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: var(--portal-ui-brand);
    font-size: 18px;
    font-weight: 800;
}

.property-card__agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card__agent-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.property-card__agent-name,
.property-card__agent-note {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-card__agent-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--portal-ui-text);
}

.property-card__agent-note {
    font-size: 11px;
    color: var(--portal-ui-text-soft);
}

.latest-properties-carousel__slide .property-card__body {
    min-height: 236px;
}

.latest-properties-carousel__slide .property-card__header {
    min-height: 116px;
}

.latest-properties-carousel__slide .property-card__image {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.property-card__location {
    min-height: 20px;
}

.latest-properties-carousel__slide .property-card__location {
    min-height: 22px;
}

.property-card__title,
.property-card__location span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__title {
    -webkit-line-clamp: 2;
}

.property-card__location span {
    -webkit-line-clamp: 1;
}

.latest-properties-carousel__slide .property-card__meta {
    min-height: 42px;
    align-content: flex-start;
}

.latest-properties-carousel__slide .property-card__agent,
.latest-properties-carousel__slide .property-card__agent--empty {
    min-height: 56px;
}

.latest-properties-carousel__slide .property-card__agent--empty {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid transparent;
}

.latest-properties-carousel__slide .property-card__cta {
    margin-top: auto;
}

.property-card__meta-item {
    border-radius: 10px;
}

body.theme-dark .property-card__agent {
    border-top-color: rgba(148, 163, 184, 0.12);
}

body.theme-dark .property-card__agent-avatar {
    background: rgba(148, 163, 184, 0.12);
}

body.theme-dark .property-card__agent-name {
    color: var(--portal-ui-text);
}

.about-page {
    background:
        radial-gradient(circle at top left, rgba(239, 59, 45, 0.09), transparent 26%),
        linear-gradient(180deg, #f6f3ee 0%, #f1f3f8 100%);
}

body.theme-dark .about-page {
    background:
        radial-gradient(circle at top left, rgba(239, 59, 45, 0.12), transparent 28%),
        linear-gradient(180deg, #06090f 0%, #101826 100%);
}

.about-shell {
    padding: 18px 0 40px;
}

.about-hero {
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 255, 255, 0.92) 58%, rgba(239, 59, 45, 0.08) 100%);
    border-color: rgba(15, 23, 42, 0.08);
}

body.theme-dark .about-hero {
    background:
        linear-gradient(135deg, rgba(12, 17, 27, 0.96) 0%, rgba(15, 23, 42, 0.95) 60%, rgba(91, 29, 51, 0.52) 100%);
    border-color: rgba(148, 163, 184, 0.16);
}

.about-hero__inner {
    padding: 36px 28px 30px;
}

.about-hero__actions,
.about-cta__actions {
    align-items: stretch;
}

.about-hero__actions .btn,
.about-cta__actions .btn {
    min-width: 214px;
}

.about-hero h1 {
    max-width: 820px;
    font-size: clamp(2.7rem, 5vw, 4.95rem);
    line-height: 0.95;
    color: var(--portal-ui-text);
}

body.theme-dark .about-hero h1 {
    color: var(--portal-ui-text);
}

.about-hero p,
.about-page p,
.about-search__field input,
.about-search__field button,
.about-page .lead {
    color: var(--portal-ui-text-soft);
}

.about-search {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.08);
}

body.theme-dark .about-search {
    background: rgba(9, 14, 24, 0.72);
    border-color: rgba(148, 163, 184, 0.16);
}

.about-page .portal-footer,
.portal-footer {
    border-radius: 28px 28px 0 0;
}

.portal-footer {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.96);
}

body:not(.theme-dark) .portal-footer {
    color: #101828;
}

body.theme-dark .portal-footer {
    background: rgba(9, 14, 24, 0.96);
}

.portal-footer__inner {
    gap: 24px;
}

.portal-footer__heading {
    font-size: 13px;
    letter-spacing: 0.12em;
}

body:not(.theme-dark) .portal-footer__heading,
body:not(.theme-dark) .portal-footer__newsletter-copy h4 {
    color: #101828;
}

body:not(.theme-dark) .portal-footer__copy,
body:not(.theme-dark) .portal-footer__contact span,
body:not(.theme-dark) .portal-footer__links a,
body:not(.theme-dark) .portal-footer__bottom span,
body:not(.theme-dark) .portal-footer__newsletter-copy p {
    color: #566273;
}

body:not(.theme-dark) .portal-footer__links a:hover,
body:not(.theme-dark) .portal-footer__links a:focus {
    color: #ef3b2d;
}

body:not(.theme-dark) .portal-footer__bottom {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.property-shell {
    padding-top: 24px;
}

.property-hero {
    margin-bottom: 20px;
}

.property-hero__panel,
.property-side-panel,
.property-section-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

body.theme-dark .property-hero__panel,
body.theme-dark .property-side-panel,
body.theme-dark .property-section-card {
    background: linear-gradient(180deg, rgba(12, 17, 27, 0.98), rgba(15, 23, 42, 0.95));
}

.property-hero__title {
    font-size: clamp(2.15rem, 4vw, 3.25rem);
}

.property-hero__media {
    margin-top: 1.5rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
}

body.theme-dark .property-hero__media {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(148, 163, 184, 0.08);
}

.property-gallery {
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
}

.property-gallery .carousel-inner,
.property-gallery .carousel-item,
.property-gallery .item {
    border-radius: 0;
}

.property-gallery img {
    min-height: 460px;
}

.property-gallery .carousel-indicators {
    margin: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
}

body.theme-dark .property-gallery .carousel-indicators {
    background: rgba(11, 15, 21, 0.94);
}

.property-gallery .carousel-indicators li {
    width: 100%;
    margin: 0;
}

.property-gallery .carousel-indicators a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
}

.property-gallery .carousel-indicators li.active a {
    border-color: var(--portal-ui-brand);
}

.property-gallery .carousel-indicators img {
    min-height: 0;
    height: 84px;
    object-fit: cover;
}

.auth-modal .modal-dialog {
    max-width: 560px;
}

.auth-modal .modal-title {
    font-size: 30px;
}

.portal-install-badge {
    right: 82px;
    bottom: 18px;
    max-width: 240px;
    padding: 7px 9px;
    border-radius: 18px;
}

.portal-install-badge__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
}

.portal-install-badge__title {
    font-size: 13px;
}

.portal-install-badge__text {
    font-size: 11px;
}

.portal-newsletter-popup {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1205;
    width: min(388px, calc(100vw - 32px));
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.portal-newsletter-popup[hidden] {
    display: none !important;
}

.portal-newsletter-popup.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.portal-newsletter-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--portal-ui-text);
}

.portal-newsletter-popup__copy h3 {
    margin: 6px 0 8px;
    font-size: 24px;
    line-height: 1.05;
}

.portal-newsletter-popup__copy p {
    margin: 0 0 14px;
    color: var(--portal-ui-text-soft);
}

.portal-newsletter-popup__eyebrow {
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--portal-ui-brand);
}

.portal-newsletter-popup .newsletter-signup .email {
    flex-wrap: nowrap;
}

.portal-newsletter-popup .newsletter-signup input[type="email"] {
    min-height: 48px;
    border-radius: 14px;
}

.portal-newsletter-popup .newsletter-signup button {
    min-height: 48px;
    border-radius: 14px;
}

body.theme-dark .portal-newsletter-popup {
    background: rgba(10, 15, 24, 0.98);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.46);
}

body.theme-dark .portal-newsletter-popup__close {
    background: rgba(148, 163, 184, 0.12);
    color: var(--portal-ui-text);
}

.portal-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.portal-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .portal-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    .portal-home-hero__headline {
        font-size: clamp(2.45rem, 7vw, 4.25rem);
    }

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

    .search-panel--hero .search-panel__cell--location,
    .search-panel--hero .search-panel__cell--price,
    .search-panel--hero .search-panel__cell--submit,
    .search-panel--listing .search-panel__cell--price,
    .search-panel--listing .search-panel__cell--submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .portal-topbar__inner {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .portal-topbar__spacer {
        display: none;
    }

    .portal-header__inner {
        gap: 12px;
    }

    .portal-header__actions {
        display: none;
    }

    .portal-mobile-menu__card {
        padding: 14px 16px;
        border-radius: 18px;
        gap: 12px;
    }

    .portal-mobile-menu__utility-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 12px;
    }

    .portal-mobile-menu__utility-title {
        font-size: 15px;
    }

    .portal-mobile-menu__utility-note {
        font-size: 12px;
    }

    .portal-home-hero {
        padding-top: 20px;
    }

    .about-hero__inner,
    .portal-home-card--search,
    .portal-home-card--results,
    .portal-home-news .portal-home-card,
    .portal-home-newsletter__card,
    .portal-listing-band,
    .portal-listings .listing-search-widget .widget-boxed-body,
    .portal-listings .listing-search-widget .widget-boxed-header,
    .property-section-card,
    .property-side-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .property-gallery img {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .portal-topbar__controls {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 2px;
    }

    .portal-pref-menu__summary,
    .portal-topbar__install {
        min-height: 34px;
        padding: 4px 10px;
    }

    #header-container.portal-header-shell #logo img,
    .portal-header__brand img,
    .portal-header__brand #logo img {
        width: auto;
        height: 38px;
        max-height: 38px;
    }

    .portal-home-hero__headline,
    .about-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .search-panel--hero,
    .portal-listings .listing-search-widget .widget-boxed {
        border-radius: 22px;
    }

    .search-panel--hero .search-panel__row--primary,
    .search-panel--hero .search-panel__row--secondary,
    .search-panel--listing .search-panel__row--primary,
    .search-panel--listing .search-panel__row--secondary {
        grid-template-columns: 1fr;
    }

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

    .portal-install-badge {
        right: 14px;
        left: 14px;
        bottom: 72px;
        max-width: none;
    }

    .portal-newsletter-popup {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
    }

    .portal-newsletter-popup .newsletter-signup .email {
        flex-wrap: wrap;
    }

    .property-gallery .carousel-indicators {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body:not(.theme-dark) #header-container.portal-header-shell .portal-header__nav ul#responsive > li > a,
body:not(.theme-dark) #header-container.portal-header-shell .portal-header__nav ul#responsive > li > a span,
body:not(.theme-dark) #header-container.portal-header-shell .portal-header__nav ul#responsive > li > a .fa {
    color: var(--portal-ui-text) !important;
}

body.theme-dark #header-container.portal-header-shell .portal-header__nav ul#responsive > li > a,
body.theme-dark #header-container.portal-header-shell .portal-header__nav ul#responsive > li > a span,
body.theme-dark #header-container.portal-header-shell .portal-header__nav ul#responsive > li > a .fa {
    color: var(--portal-ui-text) !important;
}

@media (max-width: 991.98px) {
    .portal-install-badge,
    .portal-newsletter-popup {
        display: none !important;
    }

    .portal-topbar {
        display: none;
    }

    .portal-header__mobile-trigger {
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .portal-topbar__controls {
        gap: 6px;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .portal-topbar__controls::-webkit-scrollbar {
        display: none;
    }

    .portal-topbar__inner {
        min-height: 42px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .portal-pref-menu__summary,
    .portal-topbar__install,
    .portal-topbar__theme {
        flex: 0 0 auto;
    }

    .portal-header {
        padding: 2px 0 8px;
    }

    .portal-header__inner {
        gap: 10px;
        padding-bottom: 4px;
    }

    .portal-header__mobile-trigger .hamburger {
        width: 42px;
        height: 42px;
        border-radius: 16px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
    }

    body.theme-dark .portal-header__mobile-trigger .hamburger {
        border-color: rgba(148, 163, 184, 0.16);
        background: rgba(15, 23, 42, 0.86);
    }

    .portal-mmenu.mm-menu.mm-offcanvas {
        background: transparent;
    }

    .portal-mmenu .mm-panels,
    .portal-mmenu .mm-panel {
        padding: 14px 18px 28px;
        background:
            linear-gradient(180deg, rgba(245, 247, 251, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
    }

    body.theme-dark .portal-mmenu .mm-panels,
    body.theme-dark .portal-mmenu .mm-panel,
    html.theme-dark .portal-mmenu .mm-panels,
    html.theme-dark .portal-mmenu .mm-panel {
        background:
            linear-gradient(180deg, rgba(7, 11, 18, 0.985) 0%, rgba(12, 17, 27, 0.995) 100%);
    }

    .portal-mmenu .mm-navbar {
        height: auto;
        min-height: 60px;
        padding: 10px 18px 14px;
        border-bottom: 0;
        background: transparent;
    }

    .portal-mmenu .mm-navbar .mm-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        text-transform: none;
        color: #0f1728;
    }

    .portal-mmenu .mm-navbar .mm-btn.mm-close,
    .portal-mmenu .mm-navbar .mm-btn_close {
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    body.theme-dark .portal-mmenu .mm-navbar .mm-title,
    html.theme-dark .portal-mmenu .mm-navbar .mm-title {
        color: #f8fafc;
    }

    body.theme-dark .portal-mmenu .mm-navbar .mm-btn.mm-close,
    body.theme-dark .portal-mmenu .mm-navbar .mm-btn_close,
    html.theme-dark .portal-mmenu .mm-navbar .mm-btn.mm-close,
    html.theme-dark .portal-mmenu .mm-navbar .mm-btn_close {
        border-color: rgba(148, 163, 184, 0.18);
        background: rgba(15, 23, 42, 0.82);
    }

    .portal-mmenu .mm-panels > .mm-panel > .mm-listview:first-child,
    .portal-mmenu .mm-panels > .mm-panel > .mm-navbar + .mm-listview {
        margin-top: 8px;
    }

    .portal-mmenu .mm-listview,
    .portal-mmenu .mm-listview > li {
        list-style: none;
    }

    .portal-mmenu .mm-listview > li:after {
        display: none;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item {
        margin-bottom: 8px;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 52px;
        padding: 0 18px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
        color: #0f1728;
        font-size: 16px;
        font-weight: 600;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: auto;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(-45deg);
        opacity: 0.48;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a .fa {
        width: 18px;
        margin-right: 0;
        color: var(--portal-ui-brand);
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a span {
        flex: 1 1 auto;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a:hover,
    .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a:focus {
        color: #0f1728;
        transform: translateY(-1px);
    }

    body.theme-dark .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a,
    html.theme-dark .portal-mmenu .mm-listview > li.portal-mobile-menu__nav-item > a {
        border-color: rgba(148, 163, 184, 0.14);
        background: rgba(15, 23, 42, 0.84);
        box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
        color: #f8fafc;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__heading {
        display: block;
        margin: 18px 0 8px;
        padding: 0 4px;
    }

    .portal-mobile-menu__heading span {
        padding: 0;
        font-size: 10px;
        letter-spacing: 0.16em;
        color: var(--portal-ui-text-soft);
    }

    .portal-mobile-menu__utility-group {
        display: block;
        padding: 0;
        margin: 0;
    }

    .portal-mobile-menu__preferences {
        display: grid;
        gap: 10px;
    }

    .portal-mobile-menu__pref-group {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .portal-mobile-menu__pref-summary {
        display: flex;
        align-items: center;
        min-height: 64px;
        padding: 14px 16px;
        cursor: pointer;
        list-style: none;
    }

    .portal-mobile-menu__pref-summary::-webkit-details-marker {
        display: none;
    }

    .portal-mobile-menu__pref-summary::after {
        content: "";
        width: 10px;
        height: 10px;
        margin-left: auto;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.58;
        transition: transform 0.2s ease;
    }

    .portal-mobile-menu__pref-group[open] .portal-mobile-menu__pref-summary::after {
        transform: rotate(225deg);
    }

    .portal-mobile-menu__pref-copy {
        display: grid;
        gap: 6px;
    }

    .portal-mobile-menu__pref-label {
        font-size: 10px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--portal-ui-text-soft);
    }

    .portal-mobile-menu__pref-current {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 700;
        color: #0f1728;
    }

    .portal-mobile-menu__pref-options {
        display: grid;
        gap: 8px;
        padding: 0 16px 16px;
    }

    .portal-mobile-menu__pref-option {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(248, 250, 252, 0.94);
        color: #0f1728;
        font-size: 14px;
        font-weight: 600;
    }

    .portal-mobile-menu__pref-option.is-active {
        border-color: rgba(239, 59, 45, 0.26);
        background: rgba(239, 59, 45, 0.08);
        color: var(--portal-ui-brand);
    }

    .portal-mobile-menu__pref-flag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
    }

    .portal-mobile-menu__utility-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .portal-mobile-menu__card {
        min-height: 94px;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 15px;
        border-radius: 18px;
        border-color: rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .portal-mobile-menu__card--stacked {
        flex-direction: column;
    }

    .portal-mobile-menu__card--wide,
    .portal-mobile-menu__logout-form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .portal-mobile-menu__card--wide {
        min-height: 68px;
        align-items: center;
    }

    .portal-mobile-menu__card--accent {
        border-color: rgba(239, 59, 45, 0.26);
        background: rgba(239, 59, 45, 0.07);
    }

    .portal-mobile-menu__card--ghost {
        background: rgba(242, 244, 247, 0.94);
    }

    .portal-mobile-menu__utility-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 12px;
    }

    .portal-mobile-menu__utility-content {
        gap: 5px;
    }

    .portal-mobile-menu__utility-title {
        font-size: 13px;
        line-height: 1.25;
    }

    .portal-mobile-menu__utility-note {
        font-size: 11px;
        line-height: 1.4;
    }

    .portal-mobile-menu__card--accent .portal-mobile-menu__utility-title,
    .portal-mobile-menu__card--accent .portal-mobile-menu__utility-icon {
        color: var(--portal-ui-brand);
    }

    .portal-mobile-menu__card--accent .portal-mobile-menu__utility-note {
        color: #7a2f24;
    }

    body.theme-dark .portal-mobile-menu__card,
    html.theme-dark .portal-mobile-menu__card {
        border-color: rgba(148, 163, 184, 0.12);
        background: rgba(15, 23, 42, 0.88);
        box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
    }

    body.theme-dark .portal-mobile-menu__pref-group,
    html.theme-dark .portal-mobile-menu__pref-group {
        border-color: rgba(148, 163, 184, 0.12);
        background: rgba(15, 23, 42, 0.88);
        box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
    }

    body.theme-dark .portal-mobile-menu__pref-current,
    html.theme-dark .portal-mobile-menu__pref-current,
    body.theme-dark .portal-mobile-menu__pref-option,
    html.theme-dark .portal-mobile-menu__pref-option {
        color: #f8fafc;
    }

    body.theme-dark .portal-mobile-menu__pref-option,
    html.theme-dark .portal-mobile-menu__pref-option {
        border-color: rgba(148, 163, 184, 0.12);
        background: rgba(15, 23, 42, 0.62);
    }

    body.theme-dark .portal-mobile-menu__pref-option.is-active,
    html.theme-dark .portal-mobile-menu__pref-option.is-active {
        border-color: rgba(239, 59, 45, 0.3);
        background: rgba(239, 59, 45, 0.11);
        color: #ff8a7b;
    }

    body.theme-dark .portal-mobile-menu__card--ghost,
    html.theme-dark .portal-mobile-menu__card--ghost {
        background: rgba(15, 23, 42, 0.62);
    }

    body.theme-dark .portal-mobile-menu__card--accent,
    html.theme-dark .portal-mobile-menu__card--accent {
        border-color: rgba(239, 59, 45, 0.3);
        background: rgba(239, 59, 45, 0.11);
    }

    body.theme-dark .portal-mobile-menu__card--accent .portal-mobile-menu__utility-title,
    body.theme-dark .portal-mobile-menu__card--accent .portal-mobile-menu__utility-icon,
    html.theme-dark .portal-mobile-menu__card--accent .portal-mobile-menu__utility-title,
    html.theme-dark .portal-mobile-menu__card--accent .portal-mobile-menu__utility-icon {
        color: #ff8a7b;
    }

    body.theme-dark .portal-mobile-menu__card--accent .portal-mobile-menu__utility-note,
    html.theme-dark .portal-mobile-menu__card--accent .portal-mobile-menu__utility-note {
        color: rgba(255, 214, 208, 0.82);
    }
}

@media (max-width: 767.98px) {
    .portal-pref-menu__summary {
        min-width: auto;
        gap: 6px;
    }

    .portal-pref-menu__label {
        display: none;
    }

    .portal-pref-menu__value,
    .portal-pref-menu__option-main {
        font-size: 12px;
        gap: 6px;
    }

    .portal-topbar__install span {
        font-size: 12px;
    }

    .portal-pref-menu__panel--locale {
        width: min(100vw - 24px, 420px);
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .about-hero__actions .btn,
    .about-cta__actions .btn {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .portal-pref-menu__panel--locale {
        width: min(680px, calc(100vw - 32px));
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .portal-pref-menu__panel--locale {
        width: min(520px, calc(100vw - 32px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .portal-mobile-menu__utility-grid {
        grid-template-columns: 1fr;
    }
}
