/* Sitewide spacing system */
:root {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --radius-1: 12px;
    --radius-2: 16px;
}

/* Wider page margins */
.container {
    max-width: 1360px;
}

.container-header {
    max-width: 1500px;
}

#header-container.portal-header-shell,
#header-container.portal-header-shell.header.head-tr {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    overflow: visible;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

#header-container.portal-header-shell #header.portal-header {
    position: relative;
    z-index: 1;
    padding: 4px 0 8px;
}

#header-container.portal-header-shell #logo {
    position: relative;
    left: auto;
    right: auto;
    width: auto;
    margin: 0;
    text-align: left;
}

#header-container.portal-header-shell #logo img {
    width: 52px;
}

.portal-topbar,
.portal-header,
.portal-header__inner,
.portal-pref-menu {
    overflow: visible;
}

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

.portal-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.portal-header__tagline {
    max-width: 280px;
    font-size: 11px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #667085;
}

.portal-header__nav {
    flex: 1 1 auto;
    float: none;
    margin-left: 12px;
}

.portal-header__nav ul#responsive {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

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

.portal-header__nav ul#responsive > li.portal-mobile-menu__only {
    display: none;
}

.portal-header__nav ul#responsive > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1728;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-header__nav ul#responsive > li > a:hover,
.portal-header__nav ul#responsive > li > a:focus {
    background: rgba(15, 23, 40, 0.06);
    color: #0f1728;
    transform: translateY(-1px);
}

.portal-header__actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.portal-header__mobile-trigger {
    display: none;
    margin-left: auto;
}

.portal-chip,
.portal-icon-btn {
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: #fff;
    color: #0f1728;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 40, 0.08);
}

.portal-chip {
    min-width: 168px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-chip__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.portal-chip__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 40, 0.06);
    color: currentColor;
    font-size: 14px;
}

.portal-chip:hover,
.portal-chip:focus {
    color: #0f1728;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 40, 0.12);
}

.portal-chip__eyebrow {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #667085;
}

.portal-chip__label {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
}

.portal-mobile-menu__heading,
.portal-mobile-menu__utility {
    list-style: none;
}

.portal-mobile-menu__heading {
    margin: 20px 0 8px;
}

.portal-mobile-menu__heading span {
    display: block;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #667085;
}

.portal-mobile-menu__card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 40, 0.1);
    border-radius: 20px;
    background: #fff;
    color: #0f1728;
    box-shadow: 0 18px 36px rgba(15, 23, 40, 0.08);
    text-decoration: none;
}

.portal-mobile-menu__card:hover,
.portal-mobile-menu__card:focus {
    color: #0f1728;
    text-decoration: none;
}

.portal-mobile-menu__card--button {
    text-align: left;
    cursor: pointer;
}

.portal-mobile-menu__card--button,
.portal-mobile-menu__logout-form {
    width: 100%;
}

.portal-mobile-menu__logout-form {
    margin: 0;
}

.portal-mobile-menu__card--button {
    appearance: none;
}

.portal-mobile-menu__card--accent {
    background: linear-gradient(135deg, #ef3b2d 0%, #b91c1c 100%);
    border-color: transparent;
    color: #fff;
}

.portal-mobile-menu__card--accent:hover,
.portal-mobile-menu__card--accent:focus {
    color: #fff;
}

.portal-mobile-menu__card--ghost {
    background: #f8fafc;
}

.portal-mobile-menu__utility-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 23, 40, 0.06);
    font-size: 18px;
    color: currentColor;
}

.portal-mobile-menu__card--accent .portal-mobile-menu__utility-icon {
    background: rgba(255, 255, 255, 0.14);
}

.portal-mobile-menu__utility-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
}

.portal-mobile-menu__utility-title {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.portal-mobile-menu__utility-note {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #667085;
}

.portal-mobile-menu__card--accent .portal-mobile-menu__utility-note {
    color: rgba(255, 255, 255, 0.82);
}

.portal-chip--accent {
    background: linear-gradient(135deg, #ef3b2d 0%, #b91c1c 100%);
    border-color: transparent;
    color: #fff;
}

.portal-chip--accent .portal-chip__eyebrow,
.portal-chip--accent .portal-chip__label,
.portal-chip--accent .portal-chip__icon {
    color: #fff;
}

.portal-chip--accent .portal-chip__icon {
    background: rgba(255, 255, 255, 0.16);
}

.portal-chip--ghost {
    background: #f8fafc;
}

.portal-icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-icon-btn:hover,
.portal-icon-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 40, 0.12);
}

.portal-header__logout {
    margin: 0;
}

.portal-topbar {
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.78);
}

.portal-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.portal-topbar__spacer {
    flex: 1 1 auto;
}

.portal-topbar__controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.portal-pref-menu {
    position: relative;
}

.portal-pref-menu[open] .portal-pref-menu__summary {
    border-color: rgba(239, 59, 45, 0.22);
    box-shadow: 0 16px 34px rgba(15, 23, 40, 0.12);
}

.portal-pref-menu__summary,
.portal-topbar__install {
    min-height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: #fff;
    color: #0f1728;
    box-shadow: 0 6px 14px rgba(15, 23, 40, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    cursor: pointer;
}

.portal-pref-menu__summary {
    list-style: none;
}

.portal-pref-menu__summary::-webkit-details-marker {
    display: none;
}

.portal-pref-menu__label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #64748b;
}

.portal-pref-menu__value,
.portal-pref-menu__option-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.portal-pref-menu__flag {
    font-size: 14px;
    line-height: 1;
}

.portal-pref-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 44px rgba(15, 23, 40, 0.16);
    z-index: 1140;
}

.select2-container--open,
.select2-dropdown,
.search-panel__suggestions,
.price-dropdown__panel {
    z-index: 1135;
}

.portal-pref-menu__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f1728;
    text-decoration: none;
    font-weight: 600;
}

.portal-pref-menu__option:hover,
.portal-pref-menu__option:focus {
    text-decoration: none;
    background: rgba(15, 23, 40, 0.05);
    color: #0f1728;
}

.portal-pref-menu__option.is-active {
    background: rgba(239, 59, 45, 0.08);
    color: #b42318;
}

.portal-pref-menu__note {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.portal-topbar__install {
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.portal-topbar__install:hover,
.portal-topbar__install:focus {
    text-decoration: none;
    color: #0f1728;
}

body.theme-dark .portal-topbar {
    background: rgba(2, 6, 23, 0.78);
    border-color: rgba(148, 163, 184, 0.16);
}

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

body.theme-dark .portal-pref-menu__label,
body.theme-dark .portal-pref-menu__note {
    color: rgba(226, 232, 240, 0.64);
}

body.theme-dark .portal-pref-menu__panel {
    background: rgba(11, 15, 21, 0.98);
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .portal-pref-menu__option {
    color: #e2e8f0;
}

body.theme-dark .portal-pref-menu__option:hover,
body.theme-dark .portal-pref-menu__option:focus {
    background: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

body.theme-dark .portal-pref-menu__option.is-active {
    background: rgba(239, 59, 45, 0.16);
    color: #ffd7d2;
}

body.theme-dark .portal-chip__icon {
    background: rgba(148, 163, 184, 0.12);
}

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

.portal-header__brand img,
.portal-header__brand #logo img {
    width: 52px;
    height: auto;
}

.portal-header__nav {
    margin-left: 0;
}

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

.portal-header__nav ul#responsive > li > a {
    min-height: 32px;
    gap: 5px;
    padding: 0 8px;
    font-size: 12.5px;
}

.portal-header__actions {
    gap: 8px;
}

.portal-chip {
    min-width: 0;
    padding: 8px 11px;
    border-radius: 11px;
}

.portal-chip__eyebrow {
    font-size: 9px;
}

.portal-chip__label {
    font-size: 13px;
}

.portal-icon-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
}

/* Standard section rhythm */
.featured,
.popular-places,
.team,
.blog-section,
.rec-pro,
.portfolio {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

@media (max-width: 767px) {
    .featured,
    .popular-places,
    .team,
    .blog-section,
    .rec-pro,
    .portfolio {
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }
}

.sec-title {
    margin-bottom: var(--space-4);
}

.sec-title h2 {
    margin-bottom: var(--space-2);
}

.form-group {
    margin-bottom: var(--space-2);
}

.widget-boxed {
    border-radius: var(--radius-2);
    padding: var(--space-3);
}

.widget-boxed-header {
    padding-bottom: var(--space-2);
    border-bottom: none !important;
}

.widget-boxed-body {
    padding-top: var(--space-2);
}

/* Keep search sidebar content inside its box */
.search-panel {
    overflow: hidden;
}

/* Sticky search on listing page */
body.the-search .search-panel {
    position: sticky;
    top: 96px;
    overflow: visible;
}

body.the-search .featured.portfolio,
body.the-search .listing-layout,
body.the-search .listing-main,
body.the-search .listing-sidebar {
    overflow: visible;
}

body.the-search .listing-sidebar__panel {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.the-search .featured.portfolio .row {
    align-items: flex-start;
}

.search-panel .form-row {
    margin-left: -6px;
    margin-right: -6px;
}

.search-panel .form-row > [class^="col"] {
    padding-left: 6px;
    padding-right: 6px;
}

.search-panel .select2-container {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    display: block;
}

/* Dark mode */
html.theme-dark,
body.theme-dark {
    background: #06080c;
    color: #f1f4f8;
}

html.theme-dark .bg-white,
html.theme-dark .bg-white-2,
html.theme-dark .section,
html.theme-dark .featured,
html.theme-dark .popular-places,
html.theme-dark .portfolio,
html.theme-dark .rec-pro,
html.theme-dark .team,
html.theme-dark .blog-section,
body.theme-dark .bg-white,
body.theme-dark .bg-white-2,
body.theme-dark .section,
body.theme-dark .featured,
body.theme-dark .popular-places,
body.theme-dark .portfolio,
body.theme-dark .rec-pro,
body.theme-dark .team,
body.theme-dark .blog-section {
    background: #06080c;
}

html.theme-dark .bg-white,
html.theme-dark .bg-white-2,
body.theme-dark .bg-white,
body.theme-dark .bg-white-2 {
    background: #06080c !important;
}

html.theme-dark a,
body.theme-dark a {
    color: #e6eaf0;
}

html.theme-dark a:hover,
body.theme-dark a:hover {
    color: var(--brand-accent);
}

html.theme-dark #header,
html.theme-dark .header,
html.theme-dark .header.head-tr,
body.theme-dark #header,
body.theme-dark .header,
body.theme-dark .header.head-tr {
    background: transparent;
}

html.theme-dark #header.cloned,
body.theme-dark #header.cloned {
    background: rgba(4, 6, 10, 0.96);
}

html.theme-dark #navigation ul li a,
html.theme-dark #main-menu ul li a,
body.theme-dark #navigation ul li a,
body.theme-dark #main-menu ul li a {
    color: #e6eaf0;
}

html.theme-dark .button.border,
html.theme-dark .button,
body.theme-dark .button.border,
body.theme-dark .button {
    border-color: rgba(241, 244, 248, 0.2);
    color: #f1f4f8;
}

html.theme-dark .widget-boxed,
html.theme-dark .search-panel,
body.theme-dark .widget-boxed,
body.theme-dark .search-panel {
    background: #0b0f15;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

html.theme-dark .widget-boxed-header,
body.theme-dark .widget-boxed-header {
    border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .homes-content,
html.theme-dark .homes-content h3 a,
body.theme-dark .homes-content,
body.theme-dark .homes-content h3 a {
    color: #f1f4f8;
}

html.theme-dark .homes-address a span,
html.theme-dark .homes-list span,
body.theme-dark .homes-address a span,
body.theme-dark .homes-list span {
    color: #c9d1dd;
}

html.theme-dark .portfolio .sec-title h2,
html.theme-dark .portfolio .sec-title h2 span,
body.theme-dark .portfolio .sec-title h2,
body.theme-dark .portfolio .sec-title h2 span {
    color: #f1f4f8 !important;
}

html.theme-dark .portfolio .homes-content,
body.theme-dark .portfolio .homes-content {
    background: #0a0e14 !important;
}

html.theme-dark .portfolio .homes-content h3,
html.theme-dark .portfolio .homes-content h3 a,
html.theme-dark .portfolio .homes-content h3.title a,
body.theme-dark .portfolio .homes-content h3,
body.theme-dark .portfolio .homes-content h3 a,
body.theme-dark .portfolio .homes-content h3.title a {
    color: #f1f4f8 !important;
}

html.theme-dark .portfolio .homes-content .homes-address a,
body.theme-dark .portfolio .homes-content .homes-address a {
    color: #c9d1dd !important;
}

html.theme-dark .project-single,
body.theme-dark .project-single {
    background: #0a0e14;
}

html.theme-dark .select2-container .select2-selection--single,
body.theme-dark .select2-container .select2-selection--single {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

html.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f4f8;
}

html.theme-dark .select2-dropdown,
body.theme-dark .select2-dropdown {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f4f8;
}

html.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(239, 59, 45, 0.16);
    color: var(--brand-accent);
}

html.theme-dark .form-control,
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
body.theme-dark .form-control,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f4f8;
}

html.theme-dark .sec-title h2,
html.theme-dark .sec-title p,
body.theme-dark .sec-title h2,
body.theme-dark .sec-title p {
    color: #f1f4f8;
}

/* Home hero + tabs */
html.theme-dark .welcome-area.overlay::before,
body.theme-dark .welcome-area.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 12, 0.82);
    z-index: 0;
}

html.theme-dark .hero-main,
body.theme-dark .hero-main {
    position: relative;
    z-index: 1;
}

html.theme-dark .banner-inner .title,
html.theme-dark .banner-inner .sub-title,
body.theme-dark .banner-inner .title,
body.theme-dark .banner-inner .sub-title {
    color: #f1f4f8;
}

html.theme-dark .banner-search-wrap,
body.theme-dark .banner-search-wrap {
    background: transparent;
}

html.theme-dark .rld-banner-tab .nav-item a,
body.theme-dark .rld-banner-tab .nav-item a {
    background: #0b0f15;
    color: #f1f4f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-dark .rld-banner-tab .nav-item a.active,
html.theme-dark .rld-banner-tab .nav-item a:hover,
body.theme-dark .rld-banner-tab .nav-item a.active,
body.theme-dark .rld-banner-tab .nav-item a:hover {
    /* background: #1a2331; */
    color: var(--brand-accent);
}

html.theme-dark .rld-main-search,
body.theme-dark .rld-main-search {
    background: #0b0f15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* Footer */
html.theme-dark .first-footer,
html.theme-dark .top-footer,
html.theme-dark .second-footer,
body.theme-dark .first-footer,
body.theme-dark .top-footer,
body.theme-dark .second-footer {
    background: #05070b;
    color: #c9d1dd;
}

html.theme-dark .first-footer p,
html.theme-dark .second-footer p,
html.theme-dark .newsletters p,
body.theme-dark .first-footer p,
body.theme-dark .second-footer p,
body.theme-dark .newsletters p {
    color: #c9d1dd;
}

html.theme-dark .netsocials li a,
body.theme-dark .netsocials li a {
    color: #c9d1dd;
}

html.theme-dark .bloq-email input[type="email"],
html.theme-dark .bloq-email input[type="submit"],
body.theme-dark .bloq-email input[type="email"],
body.theme-dark .bloq-email input[type="submit"] {
    background: #0a0e14;
    color: #f1f4f8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html.theme-dark .go-up,
body.theme-dark .go-up {
    background: #10161f;
    color: #f1f4f8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Main content background after search */
html.theme-dark #wrapper,
body.theme-dark #wrapper {
    background: #06080c;
}

html.theme-dark .featured.portfolio,
html.theme-dark .rec-pro,
body.theme-dark .featured.portfolio,
body.theme-dark .rec-pro {
    background: #06080c;
}

html.theme-dark .featured.portfolio .container,
html.theme-dark .featured.portfolio .container-fluid,
body.theme-dark .featured.portfolio .container,
body.theme-dark .featured.portfolio .container-fluid {
    background: transparent;
}

/* Global text */
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #f1f4f8;
}

html.theme-dark p,
html.theme-dark li,
html.theme-dark span,
html.theme-dark label,
body.theme-dark p,
body.theme-dark li,
body.theme-dark span,
body.theme-dark label {
    color: #c9d1dd;
}

html.theme-dark .text-muted,
body.theme-dark .text-muted {
    color: #9aa6b2 !important;
}

/* Cards and lists */
html.theme-dark .project-single,
html.theme-dark .agents-grid,
html.theme-dark .portfolio .project-single,
html.theme-dark .homes-content,
body.theme-dark .project-single,
body.theme-dark .agents-grid,
body.theme-dark .portfolio .project-single,
body.theme-dark .homes-content {
    background: #0a0e14;
}

html.theme-dark .homes-list li,
html.theme-dark .homes-address a,
body.theme-dark .homes-list li,
body.theme-dark .homes-address a {
    color: #c9d1dd;
}

/* Pagination */
html.theme-dark .pagination .page-link,
body.theme-dark .pagination .page-link {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f4f8;
}

html.theme-dark .pagination .page-item.active .page-link,
body.theme-dark .pagination .page-item.active .page-link {
    background: #1a2331;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--brand-accent);
}

/* Inputs */
html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder,
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #8f9aa8;
}

/* Section accents */
html.theme-dark .bg-gray,
html.theme-dark .bg-light,
body.theme-dark .bg-gray,
body.theme-dark .bg-light {
    background: #070a10;
}

/* Property details page */
html.theme-dark section.single-proper,
html.theme-dark section.headings-2,
html.theme-dark .bg-white-inner,
body.theme-dark section.single-proper,
body.theme-dark section.headings-2,
body.theme-dark .bg-white-inner {
    background: #06080c !important;
}

html.theme-dark .inner-pages .headings-2 .listing-title-bar h3,
html.theme-dark .inner-pages .headings-2 .listing-title-bar h4,
body.theme-dark .inner-pages .headings-2 .listing-title-bar h3,
body.theme-dark .inner-pages .headings-2 .listing-title-bar h4 {
    color: #f1f4f8;
}

html.theme-dark .inner-pages .headings-2 .listing-title-bar a,
html.theme-dark .inner-pages .headings-2 .listing-title-bar a p,
body.theme-dark .inner-pages .headings-2 .listing-title-bar a,
body.theme-dark .inner-pages .headings-2 .listing-title-bar a p {
    color: #c9d1dd;
}

html.theme-dark .inner-pages .headings-2 span.category-tag,
body.theme-dark .inner-pages .headings-2 span.category-tag {
    background: #1a2331;
    color: var(--brand-accent);
    border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .inner-pages .blog .blog-info.details,
html.theme-dark .listing-details-sliders.mb-30,
html.theme-dark .homes-content.details.mb-30,
html.theme-dark .property-location,
html.theme-dark .reviews.comments,
html.theme-dark .reviews.leve-comments,
html.theme-dark .wprt-image-video.w50.pro,
html.theme-dark .ag-de .similar-property,
html.theme-dark .ag-de .portfolio.py-0.age,
html.theme-dark .det .similar-property,
body.theme-dark .inner-pages .blog .blog-info.details,
body.theme-dark .listing-details-sliders.mb-30,
body.theme-dark .homes-content.details.mb-30,
body.theme-dark .property-location,
body.theme-dark .reviews.comments,
body.theme-dark .reviews.leve-comments,
body.theme-dark .wprt-image-video.w50.pro,
body.theme-dark .ag-de .similar-property,
body.theme-dark .ag-de .portfolio.py-0.age,
body.theme-dark .det .similar-property {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

html.theme-dark .inner-pages .blog .block-heading.details h4,
html.theme-dark .inner-pages .blog .blog-info.details h4,
html.theme-dark .inner-pages .blog .blog-info.details h5,
html.theme-dark .inner-pages .carousel-inner h5,
html.theme-dark .wprt-image-video.w50.pro h5,
body.theme-dark .inner-pages .blog .block-heading.details h4,
body.theme-dark .inner-pages .blog .blog-info.details h4,
body.theme-dark .inner-pages .blog .blog-info.details h5,
body.theme-dark .inner-pages .carousel-inner h5,
body.theme-dark .wprt-image-video.w50.pro h5 {
    color: #f1f4f8;
}

html.theme-dark .homes-content span.det,
body.theme-dark .homes-content span.det {
    color: #c9d1dd !important;
}

/* Common light background overrides */
html.theme-dark .header-top,
html.theme-dark #header.cloned,
html.theme-dark #navigation ul ul,
html.theme-dark #navigation ul ul li:hover,
html.theme-dark .navbar-area-3,
html.theme-dark .banner-search-wrap,
html.theme-dark .rld-banner-search,
html.theme-dark .blog-section .news-item,
html.theme-dark .blog-section .news-item-text,
html.theme-dark .blog-section .news-item-descr,
html.theme-dark .blog .blog-info,
html.theme-dark .blog .blog-info.details,
html.theme-dark .blog .blog-pots,
html.theme-dark .team .team-details,
html.theme-dark .team .team-social,
html.theme-dark .agents-grid,
html.theme-dark .properties-right,
html.theme-dark .property-location,
html.theme-dark .reviews,
html.theme-dark .agent-details,
html.theme-dark .agent-row,
html.theme-dark .user-profile-box,
html.theme-dark .contact-form-wrapper,
html.theme-dark .newsletters,
html.theme-dark .netabout,
body.theme-dark .header-top,
body.theme-dark #header.cloned,
body.theme-dark #navigation ul ul,
body.theme-dark #navigation ul ul li:hover,
body.theme-dark .navbar-area-3,
body.theme-dark .banner-search-wrap,
body.theme-dark .rld-banner-search,
body.theme-dark .blog-section .news-item,
body.theme-dark .blog-section .news-item-text,
body.theme-dark .blog-section .news-item-descr,
body.theme-dark .blog .blog-info,
body.theme-dark .blog .blog-info.details,
body.theme-dark .blog .blog-pots,
body.theme-dark .team .team-details,
body.theme-dark .team .team-social,
body.theme-dark .agents-grid,
body.theme-dark .properties-right,
body.theme-dark .property-location,
body.theme-dark .reviews,
body.theme-dark .agent-details,
body.theme-dark .agent-row,
body.theme-dark .user-profile-box,
body.theme-dark .contact-form-wrapper,
body.theme-dark .newsletters,
body.theme-dark .netabout {
    /* background: #0a0e14; */
    /* border-color: rgba(255, 255, 255, 0.12); */
}

html.theme-dark #navigation ul ul a,
body.theme-dark #navigation ul ul a {
    color: #c9d1dd !important;
}

/* Home page contrast (light + dark) */
.homepage-3 .featured.portfolio,
.homepage-3 .popular-places {
    background: #f7f9fc;
}

.homepage-3 .popular-places {
    background: #ffffff;
}

.homepage-3 .featured.portfolio,
.homepage-3 .popular-places {
    border-top: 1px solid #e9edf3;
}

.homepage-3 .img-box,
.homepage-3 .project-single {
    background: #ffffff;
    border: 1px solid rgba(13, 20, 33, 0.08);
}

html.theme-dark .homepage-3 .featured.portfolio,
html.theme-dark .homepage-3 .popular-places,
body.theme-dark .homepage-3 .featured.portfolio,
body.theme-dark .homepage-3 .popular-places {
    background: #0b0f15;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .homepage-3 .popular-places,
body.theme-dark .homepage-3 .popular-places {
    background: #070a10;
}

html.theme-dark .homepage-3 .img-box,
html.theme-dark .homepage-3 .project-single,
body.theme-dark .homepage-3 .img-box,
body.theme-dark .homepage-3 .project-single {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Homepage hero gradient: dark = black to red */
html.theme-dark .homepage-3 .welcome-area,
body.theme-dark .homepage-3 .welcome-area {
    background: url(../images/bg/video-poster2.png) no-repeat scroll center center/cover;
    position: relative;
}

.homepage-3 .welcome-area {
    background: url(../images/bg/video-poster2.png) no-repeat scroll center center/cover;
    position: relative;
}

.homepage-3 .welcome-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(-36deg, rgba(200, 29, 37, 0.55) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: 0;
}

html.theme-dark .homepage-3 .welcome-area::before,
body.theme-dark .homepage-3 .welcome-area::before {
    background: linear-gradient(-36deg, rgba(200, 29, 37, 0.55) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.homepage-3 .welcome-area > * {
    position: relative;
    z-index: 1;
}

/* Dark mode: featured properties carousel */
html.theme-dark .featured.portfolio .slick-prev,
html.theme-dark .featured.portfolio .slick-next,
body.theme-dark .featured.portfolio .slick-prev,
body.theme-dark .featured.portfolio .slick-next {
    background-color: #0a0e14;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

html.theme-dark .featured.portfolio .slick-prev:before,
html.theme-dark .featured.portfolio .slick-next:before,
body.theme-dark .featured.portfolio .slick-prev:before,
body.theme-dark .featured.portfolio .slick-next:before {
    color: #f1f4f8;
}

html.theme-dark .featured.portfolio .slick-prev:hover,
html.theme-dark .featured.portfolio .slick-next:hover,
body.theme-dark .featured.portfolio .slick-prev:hover,
body.theme-dark .featured.portfolio .slick-next:hover {
    background: var(--brand-accent);
}

html.theme-dark .featured.portfolio .slick-prev.slick-disabled,
html.theme-dark .featured.portfolio .slick-next.slick-disabled,
body.theme-dark .featured.portfolio .slick-prev.slick-disabled,
body.theme-dark .featured.portfolio .slick-next.slick-disabled {
    background-color: #10151d;
    box-shadow: none;
}

html.theme-dark .featured.portfolio .slick-prev.slick-disabled:before,
html.theme-dark .featured.portfolio .slick-next.slick-disabled:before,
body.theme-dark .featured.portfolio .slick-prev.slick-disabled:before,
body.theme-dark .featured.portfolio .slick-next.slick-disabled:before {
    color: #6b7280;
}

html.theme-dark .featured.portfolio .slick-dots li,
body.theme-dark .featured.portfolio .slick-dots li {
    color: #c9d1dd;
    box-shadow: inset 0 0 0 2px #c9d1dd;
}

html.theme-dark .featured.portfolio .slick-dots li.slick-active,
body.theme-dark .featured.portfolio .slick-dots li.slick-active {
    box-shadow: inset 0 0 0 6px #c81d25;
}

html.theme-dark .featured.portfolio .slick-dots li:after,
body.theme-dark .featured.portfolio .slick-dots li:after {
    background-color: #c81d25;
}

/* Equal property card image sizes */
.featured.portfolio .project-head,
.featured.portfolio .project-inner.project-head,
.property_list .project-head,
.property_list .project-inner.project-head {
    height: 240px;
    overflow: hidden;
}

.featured.portfolio .homes,
.property_list .homes,
.featured.portfolio .homes-img,
.property_list .homes-img {
    height: 100%;
    display: block;
}

.featured.portfolio .homes-img img,
.property_list .homes-img img,
.featured.portfolio .project-head img,
.property_list .project-head img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

/* Ensure property images fill their frames in all contexts */
.homes-img,
.project-head {
    overflow: hidden;
}

.homes-img img,
.project-head img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

@media (max-width: 767px) {
    .featured.portfolio .project-head,
    .featured.portfolio .project-inner.project-head,
    .property_list .project-head,
    .property_list .project-inner.project-head {
        height: 200px;
    }
}

/* Search results: shorter images and clearer spacing */
.property_list .project-head,
.property_list .project-inner.project-head {
    height: 170px;
}

@media (max-width: 767px) {
    .property_list .project-head,
    .property_list .project-inner.project-head {
        height: 150px;
    }
}

.property_list .project-single {
    margin-bottom: 20px;
}

/* Wider page layout for listings */
.featured.portfolio .container {
    max-width: 1400px;
}

/* Dark mode: property cards in carousel */
html.theme-dark .featured.portfolio .project-single,
html.theme-dark .featured.portfolio .homes-content,
html.theme-dark .recently.portfolio .project-single,
html.theme-dark .recently.portfolio .homes-content,
body.theme-dark .featured.portfolio .project-single,
body.theme-dark .featured.portfolio .homes-content,
body.theme-dark .recently.portfolio .project-single,
body.theme-dark .recently.portfolio .homes-content {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .recently .button-effect .fa-photo:before,
body.theme-dark .recently .button-effect .fa-photo:before {
    color: #f1f4f8;
}

/* Keyily brand accent (red) */
:root {
    --brand-accent: #ef3b2d;
    --brand-accent-dark: #c81d25;
    --brand-accent-soft: rgba(239, 59, 45, 0.12);
    --brand-accent-strong: rgba(239, 59, 45, 0.2);
    --main-color-one: var(--brand-accent);
}

/* Homepage 3: red sale tag + red slick dots */
.homepage-3 .portfolio .homes-tag.sale {
    background: var(--brand-accent) !important;
}

.homepage-3 .slick-dots li {
    color: var(--brand-accent);
    box-shadow: inset 0 0 0 2px var(--brand-accent);
}

.homepage-3 .slick-dots li:after {
    background: var(--brand-accent);
}

.homepage-3 .slick-dots li.slick-active {
    box-shadow: inset 0 0 0 6px var(--brand-accent);
}

/* Property details list: one item per row */
.property-details-grid li {
    width: 100%;
    display: block;
    float: none;
}

.inner-pages .blog .homes-content .homes-list li {
        height: -webkit-fill-available;

    width: 100%;
    float: none;
    line-height: 1.8;
    color: #c9d1dd;
}

html.theme-dark .inner-pages .blog .homes-content h5,
body.theme-dark .inner-pages .blog .homes-content h5 {
    color: #f1f4f8;
}

/* Logo size: 30% smaller */
#logo img {
    width: 98px;
}

@media (max-width: 767px) {
    #logo img {
        width: 84px;
    }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    margin: 0;
}

.theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.theme-dark .portal-header-shell {
    background: rgba(6, 8, 12, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .portal-chip,
body.theme-dark .portal-icon-btn {
    background: rgba(11, 15, 21, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f4f8;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

body.theme-dark .portal-chip__eyebrow,
body.theme-dark .portal-header__tagline {
    color: #94a3b8;
}

body.theme-dark .portal-header__nav ul#responsive > li > a {
    color: #f1f4f8;
}

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

body:not(.theme-dark) .portal-header-shell {
    box-shadow: 0 14px 34px rgba(15, 23, 40, 0.08);
}

body:not(.theme-dark) .portal-header__nav ul#responsive > li > a,
body:not(.theme-dark) .portal-header__nav ul#responsive > li > a:hover,
body:not(.theme-dark) .portal-header__nav ul#responsive > li > a:focus {
    color: #0f1728 !important;
    background: transparent;
}

body:not(.theme-dark) #header #navigation ul li a,
body:not(.theme-dark) #header #navigation ul li a:hover,
body:not(.theme-dark) #header #navigation ul li a:focus {
    color: #0f1728 !important;
}

body:not(.theme-dark) #header #navigation ul li a:after {
    color: #94a3b8;
}

body:not(.theme-dark) .portal-header__nav ul#responsive > li > a:hover,
body:not(.theme-dark) .portal-header__nav ul#responsive > li > a:focus {
    background: rgba(15, 23, 40, 0.06);
}

body:not(.theme-dark) .portal-topbar {
    background: rgba(255, 255, 255, 0.88);
}

body:not(.theme-dark) .portal-topbar__controls {
    gap: 8px;
}

body:not(.theme-dark) .portal-pref-menu__summary,
body:not(.theme-dark) .portal-topbar__install {
    color: #0f1728;
}

body.theme-dark .portal-chip--ghost {
    background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .portal-mobile-menu__heading span,
html.theme-dark .portal-mobile-menu__heading span {
    color: #94a3b8;
}

body.theme-dark .portal-mobile-menu__card,
html.theme-dark .portal-mobile-menu__card {
    background: rgba(11, 15, 21, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f4f8;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
}

body.theme-dark .portal-mobile-menu__card:hover,
body.theme-dark .portal-mobile-menu__card:focus,
html.theme-dark .portal-mobile-menu__card:hover,
html.theme-dark .portal-mobile-menu__card:focus {
    color: #f1f4f8;
}

body.theme-dark .portal-mobile-menu__utility-icon,
html.theme-dark .portal-mobile-menu__utility-icon {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .portal-mobile-menu__utility-note,
html.theme-dark .portal-mobile-menu__utility-note {
    color: #94a3b8;
}

body.theme-dark .portal-mobile-menu__card--accent,
html.theme-dark .portal-mobile-menu__card--accent {
    color: #fff;
}

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, 255, 255, 0.82);
}

@media (max-width: 1199px) {
    .portal-header__inner {
        flex-wrap: wrap;
    }

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

    .portal-header__nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .portal-header__actions {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    #header-container.portal-header-shell #header.portal-header {
        padding: 6px 0 8px;
    }

    #header-container.portal-header-shell {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .portal-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 8px;
        align-items: center;
    }

    .portal-header__tagline {
        display: none;
    }

    .portal-header__brand {
        width: auto;
        justify-content: flex-start;
        min-height: 40px;
    }

    .portal-header__brand img,
    .portal-header__brand #logo img {
        width: 34px;
    }

    .portal-header__mobile-trigger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        justify-self: end;
        position: static;
        transform: none;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(15, 23, 40, 0.12);
        border-radius: 14px;
        background-color: #0f1728 !important;
        box-shadow: 0 10px 22px rgba(15, 23, 40, 0.18);
    }

    #header-container.portal-header-shell .mmenu-trigger {
        margin: 0;
        background: transparent;
    }

    #header-container.portal-header-shell #logo {
        position: relative;
        width: auto;
        margin: 0;
    }

    #header-container.portal-header-shell .portal-header__mobile-trigger .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        top: auto;
        left: auto;
        margin: 0;
        padding: 0;
        border-radius: inherit;
        background-color: transparent;
        transform: none;
    }

    #header-container.portal-header-shell .portal-header__mobile-trigger .portal-header__mobile-trigger-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        line-height: 1;
        color: #f8fafc;
    }

    #header-container.portal-header-shell .portal-header__mobile-trigger .hamburger-box {
        display: none;
    }

    body.theme-dark #header-container.portal-header-shell .portal-header__mobile-trigger .portal-header__mobile-trigger-icon {
        color: #e2e8f0;
    }

    .portal-header__nav {
        display: none;
        grid-column: 1 / -1;
        margin: 0;
        order: 4;
    }

    #header #navigation.portal-header__nav,
    #header #navigation.portal-header__nav ul#responsive {
        display: none !important;
    }

    .portal-header__actions {
        display: none !important;
    }

    .portal-topbar__controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portal-topbar__install {
        display: none;
    }

    .portal-chip {
        min-width: 0;
    }

    #navigation {
        margin-left: 0;
        float: none;
    }

    .portal-mmenu.mm-menu.mm-offcanvas {
        width: 100vw;
        min-width: 100vw;
        max-width: none;
        z-index: 9999;
    }

    html.mm-opening .portal-mmenu.mm-menu.mm-opened ~ .mm-slideout {
        transform: translate3d(100vw, 0, 0);
    }

    .portal-mmenu .mm-panels,
    .portal-mmenu .mm-panel {
        background: linear-gradient(180deg, rgba(247, 248, 251, 0.98) 0%, rgba(255, 255, 255, 0.99) 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(8, 12, 18, 0.98) 0%, rgba(11, 15, 21, 0.99) 100%);
    }

    .portal-mmenu .mm-listview > li > a,
    .portal-mmenu .mm-listview > li > span {
        padding: 16px 18px;
        font-size: 18px;
        font-weight: 700;
        color: #0f1728;
    }

    .portal-mmenu .mm-listview > li:not(.portal-mobile-menu__only) > a .fa {
        width: 18px;
        margin-right: 10px;
    }

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

    .portal-mmenu .mm-listview > li.portal-mobile-menu__only {
        display: block;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__utility {
        padding: 0 18px;
        margin-bottom: 12px;
    }

    .portal-mmenu .mm-listview > li.portal-mobile-menu__utility:after,
    .portal-mmenu .mm-listview > li.portal-mobile-menu__heading:after {
        display: none;
    }

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

    .portal-mmenu .mm-navbar {
        height: 68px;
        padding: 0 18px;
        border-bottom: 1px solid rgba(15, 23, 40, 0.08);
    }

    .portal-mmenu .mm-navbar .mm-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #667085;
    }

    .portal-mmenu .mm-close {
        padding-right: 0;
    }

    body.theme-dark .portal-mmenu .mm-navbar,
    html.theme-dark .portal-mmenu .mm-navbar {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body.theme-dark .portal-mmenu .mm-listview > li > a,
    body.theme-dark .portal-mmenu .mm-listview > li > span,
    body.theme-dark .portal-mmenu .mm-navbar .mm-title,
    html.theme-dark .portal-mmenu .mm-listview > li > a,
    html.theme-dark .portal-mmenu .mm-listview > li > span,
    html.theme-dark .portal-mmenu .mm-navbar .mm-title {
        color: #f8fafc;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    #header-container.portal-header-shell .portal-header__mobile-trigger {
        display: none !important;
    }

    #header-container.portal-header-shell #navigation.portal-header__nav,
    #header-container.portal-header-shell #navigation.portal-header__nav ul#responsive {
        display: block !important;
    }

    #header-container.portal-header-shell .portal-header__nav ul#responsive {
        display: flex !important;
    }
}

@media (max-width: 640px) {
    .portal-chip,
    .portal-header__logout,
    .portal-header__logout .portal-chip {
        width: 100%;
        min-width: 0;
    }

    .portal-chip {
        min-width: 0;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 14px;
        justify-content: center;
    }

    .portal-chip__eyebrow {
        display: none;
    }

    .portal-chip__label {
        display: block;
        min-width: 0;
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .portal-chip {
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .portal-chip__icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 12px;
    }

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

    .portal-header__mobile-trigger {
        justify-self: end;
    }

    .portal-header__nav {
        width: 100%;
        margin: 4px 0 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        order: 4;
    }

    .portal-header__nav ul#responsive {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
        gap: 4px;
        padding-bottom: 2px;
    }

    .portal-header__nav ul#responsive > li > a {
        min-height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}

h2 span,
.section-title h2,
.section-title:before,
.top-headings-section h2::after,
.rld-banner-tab .nav-item a.active,
.rld-banner-tab .nav-item a:hover,
.rld-banner-tab .nav-item a:focus {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.rld-banner-tab .nav-item a.active,
.rld-banner-tab .nav-item a:hover,
.rld-banner-tab .nav-item a:focus {
    background: var(--brand-accent);
}

.homepage-3 .rld-banner-tab .nav-item a.active,
.homepage-3 .rld-banner-tab .nav-item a:hover,
.homepage-3 .rld-banner-tab .nav-item a:focus {
    color: #fff;
}

.button,
.btn,
.btn-yellow,
.homes-tag.button.alt,
.homes-tag.button.sale,
.overlay-dark::after,
.header-top,
.search-button,
.button-menu,
.navbar-area-3,
.top-headings-section h2::after,
.section-title:before {
    background-color: var(--brand-accent);
}

.button.border,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.button.border:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.rld-banner-search .rld-single-input button,
.search-panel__actions .btn {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.rld-banner-search .rld-single-input button:hover,
.search-panel__actions .btn:hover {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
}
.navigation,
#navigation:not(.portal-header__nav) {
    position: relative;
    display: block;
    margin-top: 9px;
    margin-left: 40px;
    float: right;
}

.portal-header__nav {
    margin-top: 0;
    margin-left: 0;
    float: none;
}

/* Keep content clear of header on inner pages */
body:not(.homepage-3) #ajax-content {
    padding-top: 0;
}

@media (max-width: 767px) {
    body:not(.homepage-3) #ajax-content {
        padding-top: 0;
    }
}


/* Home page: reduce header height */
#header-container.portal-header-shell.homepage-3 #header,
body.homepage-3 #header-container.portal-header-shell #header {
    padding: 8px 0 14px 0;
}

@media (max-width: 767px) {
    body.homepage-3 #header-container.portal-header-shell #header {
        padding: 6px 0 12px 0;
    }
}

/* Listing page header should match other pages */
body.the-search #header {
    padding: 8px 0 14px 0;
}

@media (max-width: 767px) {
    body.the-search #header {
        padding: 6px 0 12px 0;
    }
}

.detail-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-header-meta {
    margin-left: auto;
    text-align: right;
    min-width: 180px;
}

@media (max-width: 991px) {
    .detail-header-meta {
        text-align: left;
        margin-left: 0;
    }
}

body.theme-dark #property-enquiry-modal .modal-content {
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

body.theme-dark #property-enquiry-modal .modal-header,
body.theme-dark #property-enquiry-modal .modal-footer {
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark #property-enquiry-modal label {
    color: rgba(226, 232, 240, 0.85);
}

body.theme-dark #property-enquiry-modal .form-control {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

body.theme-dark #property-enquiry-modal .form-control::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

body.theme-dark #property-enquiry-modal .text-muted {
    color: rgba(226, 232, 240, 0.6) !important;
}

body.theme-dark #property-enquiry-modal .border {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark .listing-details-sliders h5 {
    color: #e2e8f0;
}

:root {
    --property-card-bg: #ffffff;
    --property-card-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    --property-card-shadow-hover: 0 16px 40px rgba(16, 24, 40, 0.14);
    --property-card-text: #101828;
    --property-card-muted: #667085;
    --property-card-meta-bg: #f8fafc;
    --property-card-meta-text: #667085;
    --property-card-divider: rgba(16, 24, 40, 0.1);
    --property-card-icon-bg: rgba(255, 255, 255, 0.95);
    --property-card-icon-bg-hover: #ffffff;
    --property-card-icon-color: #101828;
    --property-card-pill-bg: rgba(255, 255, 255, 0.92);
    --property-card-pill-border: rgba(16, 24, 40, 0.12);
    --property-card-btn-bg: #111827;
    --property-card-btn-border: #111827;
}

body.theme-dark {
    --property-card-bg: #0f172a;
    --property-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --property-card-shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.5);
    --property-card-text: #e5e7eb;
    --property-card-muted: #a3aab8;
    --property-card-meta-bg: rgba(255, 255, 255, 0.06);
    --property-card-meta-text: #c3c8d4;
    --property-card-divider: rgba(255, 255, 255, 0.1);
    --property-card-icon-bg: rgba(15, 23, 42, 0.72);
    --property-card-icon-bg-hover: rgba(15, 23, 42, 0.9);
    --property-card-icon-color: #e5e7eb;
    --property-card-pill-bg: rgba(15, 23, 42, 0.75);
    --property-card-pill-border: rgba(255, 255, 255, 0.12);
    --property-card-btn-bg: #e5e7eb;
    --property-card-btn-border: #e5e7eb;
}

.property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--property-card-bg);
    box-shadow: var(--property-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: var(--property-card-text);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--property-card-shadow-hover);
}

.property-card__gallery {
    position: relative;
}

.property-card__image {
    height: clamp(220px, 20vw, 290px);
    width: 100%;
    object-fit: cover;
    display: block;
}

.property-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.property-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--property-card-pill-bg);
    border: 1px solid var(--property-card-pill-border);
    color: var(--property-card-text);
}

.property-card__actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

.property-card__icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--property-card-icon-bg);
    color: var(--property-card-icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.property-card__icon-btn:hover {
    background: var(--property-card-icon-bg-hover);
    transform: translateY(-1px);
}

.property-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 18px 18px;
}

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

.property-card__price {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 18px;
}

.property-card__title {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__location {
    color: var(--property-card-muted);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.property-card__divider {
    border-top: 1px solid var(--property-card-divider);
    margin: 16px 0;
}

.property-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--property-card-meta-text);
    font-size: 13px;
}

.property-card__meta-item {
    background: var(--property-card-meta-bg);
    border-radius: 12px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.property-card__cta {
    margin-top: auto;
    padding-top: 16px;
}

.property-card__btn {
    width: 100%;
    background: var(--property-card-btn-bg);
    border: 1px solid var(--property-card-btn-border);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 12px;
}

body.theme-dark .property-card__btn {
    color: #0b1220;
}

.property-view-toggle {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.listing-layout {
    row-gap: 24px;
}

.listing-search-widget__subtitle {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.property_list {
    margin-top: 12px;
}

.property-card-grid {
    row-gap: 22px;
}

.property-view-toggle__btn {
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.property-view-toggle__btn.is-active {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

body.theme-dark .property-view-toggle__btn {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

body.theme-dark .property-view-toggle__btn.is-active {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.property-card-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.property-card-grid > .property-card-col,
.property-card-grid > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

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

.property-card-grid.property-view--list > .property-card-col {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .property-card-col.property-card-col--half {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .property-card-col.property-card-col--third {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

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

.property-card--list {
    display: flex;
    align-items: stretch;
}

.property-card--list .property-card__gallery {
    flex: 0 0 38%;
}

.property-card--list .property-card__image {
    height: 220px;
}

.property-card--list .property-card__body {
    flex: 1 1 auto;
}

.property-card--view-all {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 24px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    text-decoration: none;
}

.property-card--view-all:hover,
.property-card--view-all:focus {
    text-decoration: none;
    border-color: rgba(239, 59, 45, 0.38);
}

.property-card__view-all-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 59, 45, 0.1);
    color: var(--brand-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.property-card__view-all-title {
    margin: 0;
    color: #0f1728;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.property-card__view-all-copy {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.6;
}

.property-card__view-all-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-accent);
    font-size: 14px;
    font-weight: 700;
}

body.theme-dark .property-card--view-all {
    border-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(11, 15, 21, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%);
}

body.theme-dark .property-card__view-all-title {
    color: #f8fafc;
}

body.theme-dark .property-card__view-all-copy {
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .property-card--list {
        flex-direction: column;
    }

    .property-card--list .property-card__gallery {
        flex: 0 0 auto;
    }

    .property-card--list .property-card__image {
        height: 230px;
    }
}

.latest-properties-carousel {
    position: relative;
}

.latest-properties-carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.latest-properties-carousel__control {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #101828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.latest-properties-carousel__control:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(239, 59, 45, 0.28);
    color: var(--brand-accent);
}

.latest-properties-carousel__control:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.latest-properties-carousel__viewport {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.latest-properties-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.latest-properties-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 22px;
    padding: 4px 2px 10px;
}

.latest-properties-carousel__slide {
    min-width: 0;
}

.latest-properties-carousel.is-static .latest-properties-carousel__controls {
    display: none;
}

.property-card--carousel {
    min-height: 100%;
}

body.theme-dark .latest-properties-carousel__control {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e5e7eb;
}

@media (min-width: 768px) {
    .latest-properties-carousel__track {
        grid-auto-columns: minmax(360px, calc((100% - 22px) / 2));
    }
}

@media (min-width: 1280px) {
    .latest-properties-carousel__track {
        grid-auto-columns: minmax(320px, calc((100% - 44px) / 3));
    }
}

.property-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.property-action-row__item {
    width: 100%;
}

.property-action-row__btn {
    width: 100%;
    min-height: 44px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.property-action-row .btn-k-secondary i {
    color: #2f3a4b !important;
}

.btn-k-secondary:hover,
.btn-k-secondary:focus {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.btn-k-primary {
    border: 1px solid var(--brand-accent);
    background: var(--brand-accent);
    color: #fff;
}

.property-action-row .btn-k-primary i {
    color: #fff !important;
}

.btn-k-primary:hover,
.btn-k-primary:focus {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #fff;
}

body.theme-dark .btn-k-secondary {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

body.theme-dark .property-action-row .btn-k-secondary i {
    color: #fff !important;
}

body.theme-dark .property-action-row .btn-k-primary i {
    color: #fff !important;
}

.search-panel__reset,
.btn-k-secondary,
.btn-k-primary,
.property-description__toggle {
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.listing-details-sliders .carousel-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    opacity: 1;
    text-shadow: none;
}

.listing-details-sliders .carousel-control:hover,
.listing-details-sliders .carousel-control:focus {
    background: var(--brand-accent);
    color: #fff;
}

.listing-details-sliders .carousel-control.left {
    left: 16px;
}

.listing-details-sliders .carousel-control.right {
    right: 16px;
}

.listing-details-sliders .carousel-indicators li {
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.listing-details-sliders .carousel-indicators li.active {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff;
    border: 1px solid var(--brand-accent);
    text-transform: capitalize;
}

.property-description__content {
    color: inherit;
    line-height: 1.8;
}

.property-description.is-collapsed .property-description__content {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-description__toggle {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-accent);
    font-weight: 700;
}

.property-description__toggle:hover,
.property-description__toggle:focus {
    color: var(--brand-accent-dark);
}

.agency-directory {
    margin-top: 24px;
}

.agency-directory__hero {
    margin-bottom: 28px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(239, 59, 45, 0.12), rgba(15, 23, 42, 0.04));
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.agency-directory__eyebrow {
    margin-bottom: 10px;
    color: var(--brand-accent);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.agency-directory__title {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
}

.agency-directory__subtitle {
    max-width: 720px;
    margin: 0 0 18px;
    color: rgba(15, 23, 42, 0.72);
    font-size: 16px;
}

.agency-directory__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.agency-directory__stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.agency-directory__stat strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.agency-directory__stat span {
    display: block;
    margin-top: 6px;
    color: rgba(15, 23, 42, 0.65);
    font-size: 13px;
}

.agency-directory__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.agency-card {
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.04);
}

.agency-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agency-card__logoWrap {
    flex: 0 0 auto;
}

.agency-card__logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.agency-card__logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--brand-accent);
}

.agency-card__headline h3 {
    margin: 0;
    font-size: 22px;
}

.agency-card__headline p,
.agency-card__location,
.agency-agent__meta {
    margin: 4px 0 0;
    color: rgba(15, 23, 42, 0.65);
    font-size: 14px;
}

.agency-card__body {
    margin-top: 18px;
}

.agency-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.agency-card__contacts a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(239, 59, 45, 0.1);
    color: var(--brand-accent);
    font-size: 13px;
    text-decoration: none;
}

.agency-card__agents {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.agency-agent {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.03);
}

.agency-agent__name {
    font-weight: 600;
}

.agency-agent__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agency-directory__empty {
    padding: 26px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.03);
}

body.theme-dark .agency-directory__hero,
body.theme-dark .agency-card,
body.theme-dark .agency-directory__stat,
body.theme-dark .agency-directory__empty,
body.theme-dark .agency-agent {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.theme-dark .agency-directory__subtitle,
body.theme-dark .agency-card__headline p,
body.theme-dark .agency-card__location,
body.theme-dark .agency-agent__meta,
body.theme-dark .agency-directory__stat span {
    color: rgba(226, 232, 240, 0.72);
}

body.theme-dark .agency-card__logo {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 991px) {
    .agency-directory__grid {
        grid-template-columns: 1fr;
    }
}

.account-profile .container {
    padding-bottom: 40px;
}

.profile-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}

.profile-hero__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-hero__subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.profile-hero__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    min-width: 240px;
}

.profile-hero__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-weight: 700;
}

.profile-hero__name {
    font-weight: 700;
}

.profile-hero__email,
.profile-hero__meta {
    color: #6b7280;
    font-size: 12px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px 18px;
}

.profile-stat__label {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
}

.profile-stat__value {
    font-size: 22px;
    font-weight: 700;
}

.profile-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.profile-section--full {
    margin-top: 24px;
}

.profile-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-section__header--tabs {
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-section__header h4 {
    margin-bottom: 0;
    font-weight: 700;
}

.profile-section__hint {
    font-size: 12px;
    color: #6b7280;
}

.profile-section__body {
    padding: 18px 20px 20px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-tab {
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: transparent;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.profile-tab.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.is-active {
    display: block;
}

.profile-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.profile-code {
    display: inline-block;
    background: rgba(15, 23, 42, 0.06);
    padding: 6px 8px;
    border-radius: 8px;
}

.profile-section--compact .table {
    font-size: 13px;
}

.profile-section--compact th,
.profile-section--compact td {
    padding: 10px 12px;
    vertical-align: middle;
}

.is-hidden-row {
    display: none;
}

.profile-search-readable {
    display: inline-block;
    background: rgba(15, 23, 42, 0.06);
    padding: 6px 8px;
    border-radius: 8px;
}

body.theme-dark .profile-search-readable {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

body.theme-dark .profile-hero__card,
body.theme-dark .profile-stat,
body.theme-dark .profile-section {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
}

body.theme-dark .profile-tab {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

body.theme-dark .profile-tab.is-active {
    background: #ff385c;
    border-color: #ff385c;
    color: #fff;
}

body.theme-dark .profile-hero__avatar {
    background: #ff385c;
}

body.theme-dark .profile-hero__eyebrow,
body.theme-dark .profile-hero__subtitle,
body.theme-dark .profile-hero__email,
body.theme-dark .profile-hero__meta,
body.theme-dark .profile-stat__label,
body.theme-dark .profile-section__hint {
    color: rgba(226, 232, 240, 0.65);
}

body.theme-dark .profile-section__header {
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .profile-code {
    background: rgba(148, 163, 184, 0.16);
}

body.theme-dark .profile-section table,
body.theme-dark .profile-section th,
body.theme-dark .profile-section td {
    color: #e2e8f0;
}

body.theme-dark .profile-section thead th {
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .profile-section tbody tr {
    border-color: rgba(148, 163, 184, 0.12);
}

body.theme-dark .profile-section .table {
    border-color: rgba(148, 163, 184, 0.2);
}

.account-login {
    position: relative;
    min-height: 100vh;
    padding: 90px 0 70px;
    background: linear-gradient(180deg, #0b0d13, #0d1118);
    color: rgba(248, 250, 252, 0.92);
    overflow: hidden;
}

.account-login .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.account-login__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.account-login__dots {
    position: absolute;
    inset: -40%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.2;
    mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 80%);
}

.account-login__blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(200px);
    opacity: 0.55;
    animation: accountLoginPulse 40s ease-in-out infinite;
}

.account-login__blob--red {
    width: 1600px;
    height: 1600px;
    left: 20%;
    top: 30%;
    background: radial-gradient(circle, rgba(255, 56, 92, 0.8), rgba(255, 56, 92, 0.25) 45%, transparent 85%);
}

.account-login__blob--warm {
    width: 2000px;
    height: 2000px;
    left: 70%;
    top: 55%;
    background: radial-gradient(circle, rgba(227, 28, 95, 0.55), rgba(227, 28, 95, 0.2) 45%, transparent 80%);
    animation-duration: 55s;
    animation-delay: -12s;
}

@keyframes accountLoginPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.12);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.account-login__card {
    width: min(460px, 92vw);
    padding: 36px 34px 30px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
    position: relative;
}

.account-login__card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(650px 260px at 20% 0%, rgba(255, 56, 92, 0.18), transparent 62%),
        radial-gradient(620px 260px at 95% 20%, rgba(255, 110, 110, 0.15), transparent 60%);
    pointer-events: none;
}

.account-login__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.account-login__logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.account-login__card h2 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
}

.account-login__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.account-login__field {
    margin: 14px 0;
}

.account-login__input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
}

.account-login__input:focus-within {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.12);
}

.account-login__input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(248, 250, 252, 0.92);
    font-size: 16px;
}

.account-login__input input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.account-login__icon {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.account-login__toggle {
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.account-login__toggle:hover {
    opacity: 1;
}

.account-login__submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(90deg, #e31c5f, #ff385c);
}

.account-login__submit:hover {
    filter: brightness(1.05);
}

.account-login__footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.account-login__footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.account-login__footer a:hover {
    opacity: 1;
}

.consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    color: #f8fafc;
}

.consent-banner__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.consent-banner__content strong {
    font-size: 14px;
    font-weight: 700;
}

.consent-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.consent-banner__btn {
    padding: 8px 16px;
}

.legal-page {
    padding: 90px 0 70px;
    background: #f7f7f7;
}

.legal-page h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-page h3 {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 700;
}

.legal-page ul {
    padding-left: 18px;
}

.legal-updated {
    color: #6b7280;
    margin-bottom: 24px;
}

.footer-legal {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 0;
    flex-wrap: wrap;
}

.footer-legal a {
    color: inherit;
    font-size: 13px;
}

body.theme-dark .legal-page {
    background: #0f172a;
    color: #e2e8f0;
}

body.theme-dark .legal-updated {
    color: rgba(226, 232, 240, 0.65);
}

.property-map {
    width: 100%;
    min-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.amenities-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.amenities-panel__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.amenities-panel__header h6 {
    margin: 0;
    font-weight: 700;
}

.amenities-panel__hint {
    font-size: 12px;
    color: #6b7280;
}

.amenities-distance {
    margin-left: 6px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    padding: 2px 6px;
    background: #fff;
    font-size: 12px;
}

.amenities-panel__status {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.amenities-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 8px;
}

.amenities-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amenities-list__type {
    text-transform: capitalize;
    color: #ff385c;
    font-weight: 600;
}

.amenities-accordion {
    display: grid;
    gap: 10px;
}

.amenities-accordion__item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.amenities-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.04);
    border: none;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.amenities-accordion__count {
    font-size: 12px;
    color: #ff385c;
}

.amenities-accordion__item .amenities-list {
    padding: 10px 12px;
    display: none;
}

.amenities-accordion__item.is-open .amenities-list {
    display: grid;
}

body.theme-dark .amenities-panel {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
}

body.theme-dark .amenities-distance {
    background: rgba(2, 6, 23, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

body.theme-dark .amenities-accordion__item {
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .amenities-accordion__toggle {
    background: rgba(2, 6, 23, 0.35);
    color: #e2e8f0;
}

body.theme-dark .amenities-panel__hint,
body.theme-dark .amenities-panel__status {
    color: rgba(226, 232, 240, 0.65);
}

body.theme-dark .amenities-list li {
    border-color: rgba(148, 163, 184, 0.2);
}

.auth-modal .modal-content {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.auth-modal .modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 24px 24px 12px;
    background:
        radial-gradient(circle at top right, rgba(239, 59, 45, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
}

.auth-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b42318;
}

.auth-modal .modal-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.02;
    text-transform: none !important;
}

.auth-modal__subtitle {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #526072;
}

.auth-modal .modal-body {
    padding: 20px 24px 24px;
}

.auth-modal__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-modal__benefit {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(239, 59, 45, 0.08);
    color: #9f1f14;
    font-size: 12px;
    font-weight: 700;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-tab {
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.auth-tab.is-active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.auth-modal .form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.auth-modal .form-control {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: none;
}

.auth-modal .btn-yellow {
    min-height: 50px;
    border-radius: 14px;
    font-weight: 700;
}

body.theme-dark .auth-modal .modal-content {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

body.theme-dark .auth-modal .modal-header {
    border-color: rgba(148, 163, 184, 0.2);
    background:
        radial-gradient(circle at top right, rgba(239, 59, 45, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 15, 21, 0.98));
}

body.theme-dark .auth-modal__subtitle {
    color: rgba(226, 232, 240, 0.65);
}

body.theme-dark .auth-tab {
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

body.theme-dark .auth-tab.is-active {
    background: #ff385c;
    border-color: #ff385c;
}

body.theme-dark .auth-modal__benefit {
    background: rgba(239, 59, 45, 0.14);
    color: #ffd7d2;
}

body.theme-dark .auth-modal .form-group label {
    color: rgba(226, 232, 240, 0.74);
}

body.theme-dark .auth-modal .form-control {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

.portal-install-badge {
    position: fixed;
    right: 22px;
    bottom: 76px;
    z-index: 1088;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100vw - 36px));
    padding: 10px 12px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28);
}

.go-up {
    z-index: 1087;
}

.portal-install-badge__action {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f8fafc;
    text-align: left;
}

.portal-install-badge__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 800;
}

.portal-install-badge__copy {
    display: grid;
    gap: 2px;
}

.portal-install-badge__title {
    font-size: 14px;
    font-weight: 800;
}

.portal-install-badge__text {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.72);
}

.portal-install-badge__dismiss {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.88);
    font-size: 22px;
    line-height: 1;
}

.property-card-grid--skeleton {
    pointer-events: none;
}

.property-skeleton-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.property-skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
    animation: propertySkeletonShimmer 1.2s ease-in-out infinite;
}

.property-skeleton-card__media,
.property-skeleton-card__line,
.property-skeleton-card__chip {
    display: block;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.86), rgba(226, 232, 240, 0.58));
}

.property-skeleton-card__media {
    aspect-ratio: 1.35 / 1;
    margin-bottom: 14px;
}

.property-skeleton-card__line {
    height: 12px;
    margin-bottom: 10px;
}

.property-skeleton-card__line--short {
    width: 48%;
}

.property-skeleton-card__line--muted {
    width: 72%;
    margin-bottom: 14px;
}

.property-skeleton-card__chips {
    display: flex;
    gap: 8px;
}

.property-skeleton-card__chip {
    width: 72px;
    height: 26px;
    border-radius: 999px;
}

body.theme-dark .property-skeleton-card {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(11, 15, 21, 0.92);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.42);
}

body.theme-dark .property-skeleton-card::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(148, 163, 184, 0.14), rgba(15, 23, 42, 0));
}

body.theme-dark .property-skeleton-card__media,
body.theme-dark .property-skeleton-card__line,
body.theme-dark .property-skeleton-card__chip {
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.92), rgba(51, 65, 85, 0.55));
}

@keyframes propertySkeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

.portal-footer {
    margin-top: 48px;
    padding: 26px 0 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 15, 21, 0.98));
    color: #f8fafc;
}

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

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

.portal-footer__copy,
.portal-footer__contact span,
.portal-footer__links a,
.portal-footer__bottom span {
    color: rgba(226, 232, 240, 0.76);
}

.portal-footer__copy {
    margin: 14px 0;
    max-width: 42ch;
    line-height: 1.7;
}

.portal-footer__contact {
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.portal-footer__heading {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 250, 252, 0.9);
}

.portal-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.portal-footer__links a {
    text-decoration: none;
}

.portal-footer__links a:hover,
.portal-footer__links a:focus {
    color: #fff;
    text-decoration: none;
}

.portal-footer__newsletter-copy {
    margin-bottom: 12px;
}

.portal-footer__newsletter-copy h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

.portal-footer__newsletter-copy p {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.65;
}

.portal-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 12px;
}

@media (max-width: 768px) {
    .consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .consent-banner__content,
    .consent-banner__content strong {
        font-size: 13px;
    }

    .consent-banner__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .portal-topbar__inner {
        justify-content: stretch;
    }

    .portal-topbar__spacer {
        display: none;
    }

    .portal-topbar__controls {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        justify-content: stretch;
    }

    .portal-pref-menu,
    .portal-topbar__install {
        flex: none;
        min-width: 0;
    }

    .portal-pref-menu__summary,
    .portal-topbar__install {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        min-height: 40px;
        padding: 4px 8px;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(15, 23, 40, 0.06);
    }

    .portal-pref-menu__label {
        font-size: 7px;
        letter-spacing: 0.08em;
    }

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

    .portal-footer__inner,
    .portal-footer__bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .portal-footer__newsletter-copy {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .account-login {
        padding: 70px 0 50px;
    }
    .account-login__card {
        padding: 30px 26px;
    }
    .account-login__card h2 {
        font-size: 28px;
    }

    .portal-header__actions {
        display: none !important;
        width: 100%;
    }

    .portal-chip,
    .portal-header__logout,
    .portal-header__logout .portal-chip {
        width: 100%;
    }

    .portal-header__actions {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    }

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

    .auth-modal .modal-header,
    .auth-modal .modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.newsletter-flash {
    border-radius: 16px;
    border: 1px solid rgba(239, 59, 45, 0.18);
    background: rgba(239, 59, 45, 0.08);
    color: #7f1d1d;
}

.newsletter-signup .email {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}

.newsletter-signup input[type="email"] {
    flex: 1 1 260px;
}

.newsletter-signup button {
    border: none;
    border-radius: 999px;
    background: #ef3b2d;
    color: #fff;
    font-weight: 700;
    padding: 14px 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-signup button:hover {
    background: #d92e20;
    transform: translateY(-1px);
}

.subscription-success,
.subscription-error {
    width: 100%;
    margin: 12px 0 0;
    font-size: 14px;
}

.subscription-success {
    color: #177245;
}

.subscription-error {
    color: #b91c1c;
}

.keyily-news,
.keyily-news-page,
.keyily-article {
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(239, 59, 45, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(255, 250, 248, 0.96), rgba(255, 255, 255, 1));
}

.keyily-news__card,
.keyily-article__card,
.keyily-article__sidebarCard,
.keyily-news__empty {
    height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.keyily-news__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.keyily-news__body,
.keyily-article__card,
.keyily-article__sidebarCard {
    padding: 28px;
}

.keyily-news__meta,
.keyily-article__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #9a5b56;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.keyily-news__title,
.keyily-article__title {
    margin-bottom: 16px;
    color: #221c1b;
}

.keyily-news__title a {
    color: inherit;
}

.keyily-news__summary,
.keyily-article__summary {
    color: #5f4d49;
}

.keyily-news__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyily-news__tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(239, 59, 45, 0.08);
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.keyily-news__link,
.keyily-news__footer {
    margin-top: 20px;
}

.keyily-article__image {
    width: 100%;
    border-radius: 24px;
    margin: 12px 0 28px;
}

.keyily-article__content {
    color: #342d2b;
    line-height: 1.85;
}

.keyily-article__content p:last-child {
    margin-bottom: 0;
}

.keyily-article__related {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    color: #342d2b;
}

.keyily-article__related:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.keyily-article__related span {
    color: #9a5b56;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.theme-dark .keyily-news,
body.theme-dark .keyily-news-page,
body.theme-dark .keyily-article {
    background:
        radial-gradient(circle at top left, rgba(239, 59, 45, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

body.theme-dark .keyily-news__card,
body.theme-dark .keyily-article__card,
body.theme-dark .keyily-article__sidebarCard,
body.theme-dark .keyily-news__empty {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.34);
}

body.theme-dark .keyily-news__title,
body.theme-dark .keyily-news__title a,
body.theme-dark .keyily-article__title,
body.theme-dark .keyily-article__content,
body.theme-dark .keyily-article__related,
body.theme-dark .keyily-news__summary,
body.theme-dark .keyily-article__summary {
    color: #f8fafc;
}

body.theme-dark .keyily-news__meta,
body.theme-dark .keyily-article__meta,
body.theme-dark .keyily-article__related span {
    color: rgba(248, 250, 252, 0.65);
}

@media (max-width: 767px) {
    .newsletter-signup .email {
        flex-direction: column;
        align-items: stretch;
    }

    .keyily-news,
    .keyily-news-page,
    .keyily-article {
        padding: 56px 0;
    }

    .keyily-news__body,
    .keyily-article__card,
    .keyily-article__sidebarCard {
        padding: 22px;
    }
}
