/*
 * RE/MAX modern experience
 *
 * Loaded only when Web.config UiExperience is set to Modern. Every selector is
 * scoped to .ui-modern so the Legacy experience remains an exact rollback.
 */

.ui-modern {
    --ui-navy-950: #000e35;
    --ui-navy-900: #071a3d;
    --ui-navy-800: #0c2749;
    --ui-blue-500: #0072ce;
    --ui-blue-600: #003da5;
    --ui-blue-700: #002b74;
    --ui-red-600: #dc1c2e;
    --ui-ink: #11121a;
    --ui-muted: #62687a;
    --ui-soft: #f7f5ee;
    --ui-page: #f5f7fb;
    --ui-surface: #ffffff;
    --ui-line: #e3e7f0;
    --ui-success: #16794a;
    --ui-radius-sm: 10px;
    --ui-radius-md: 16px;
    --ui-radius-lg: 24px;
    --ui-shadow-sm: 0 8px 24px rgba(0, 14, 53, 0.08);
    --ui-shadow-md: 0 18px 50px rgba(0, 14, 53, 0.13);
    background: var(--ui-page);
    color: var(--ui-ink);
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.ui-modern *,
.ui-modern *::before,
.ui-modern *::after {
    box-sizing: border-box;
}

.ui-modern img {
    max-width: 100%;
}

.ui-modern a {
    color: var(--ui-blue-600);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
        box-shadow 180ms ease, transform 180ms ease;
}

.ui-modern a:hover {
    color: var(--ui-blue-700);
}

.ui-modern a:focus-visible,
.ui-modern button:focus-visible,
.ui-modern input:focus-visible,
.ui-modern select:focus-visible,
.ui-modern textarea:focus-visible {
    outline: 3px solid rgba(0, 67, 255, 0.32) !important;
    outline-offset: 3px;
}

.ui-modern h1,
.ui-modern h2,
.ui-modern h3,
.ui-modern h4,
.ui-modern h5,
.ui-modern h6 {
    color: var(--ui-ink);
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-transform: none;
}

.ui-modern p,
.ui-modern li,
.ui-modern label,
.ui-modern input,
.ui-modern select,
.ui-modern textarea,
.ui-modern button {
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
}

.ui-modern .container {
    max-width: 1240px;
}

.ui-modern .container-fluid {
    max-width: 1440px;
    padding-left: clamp(20px, 4vw, 58px);
    padding-right: clamp(20px, 4vw, 58px);
}

.ui-modern #wrapper {
    background: var(--ui-page);
    overflow: clip;
}

/* Header */
.ui-modern #header-container {
    background: rgba(0, 14, 53, 0.98);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 32px rgba(0, 14, 53, 0.14);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.ui-modern #header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 86px;
    margin: 0 !important;
    padding: 0 !important;
}

.ui-modern #header .container-header {
    align-items: center;
    display: flex;
    height: 86px;
    margin: 0 auto;
    max-width: 1320px;
    min-height: 86px;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

.ui-modern #header .left-side {
    align-items: center;
    display: flex;
    float: none;
    min-width: 0;
    width: auto;
}

.ui-modern #header #logo {
    display: flex;
    flex: 0 0 auto;
    left: auto;
    margin: 0 42px 0 0 !important;
    max-width: 205px;
    position: static;
    right: auto;
    transform: none;
}

.ui-modern #header #logo a {
    align-items: center;
    display: flex;
}

.ui-modern #header #logo img.logo-web {
    height: auto;
    margin: 0;
    max-height: 54px;
    max-width: 190px;
    width: auto;
}

.ui-modern #navigation {
    margin: 0;
}

.ui-modern #navigation.style-1 ul {
    align-items: center;
    display: flex;
    gap: 6px;
}

.ui-modern #navigation.style-1 ul li {
    background: transparent !important;
}

.ui-modern #navigation.style-1 ul a {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    padding: 13px 14px;
    text-transform: none;
}

.ui-modern #navigation.style-1 ul a:hover,
.ui-modern #navigation.style-1 ul a:focus-visible {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
}

.ui-modern #navigation.style-1 ul a strong {
    font-weight: 600;
}

.ui-modern #header .language-selector {
    align-items: center;
    display: flex !important;
    float: none;
    margin: 0 14px 0 auto;
    padding: 0;
    position: relative;
    right: auto;
    top: auto;
}

.ui-modern #header .language-selector .show-lang {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    display: flex;
    height: 44px;
    padding: 0 14px;
    width: auto;
}

.ui-modern #header .language-selector .show-lang span,
.ui-modern #header .language-selector .show-lang strong,
.ui-modern #header .language-selector .show-lang i {
    color: #fff;
}

.ui-modern #header .language-selector .show-lang strong {
    font-size: 12px;
    letter-spacing: 0.04em;
    padding-left: 7px;
}

.ui-modern #header .language-selector .arrlan {
    margin-left: 7px;
    position: static;
}

.ui-modern #header .language-selector .lang-tooltip {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    box-shadow: var(--ui-shadow-md);
    left: auto !important;
    overflow: hidden;
    padding: 8px;
    right: 0;
    top: calc(100% + 10px);
}

.ui-modern #header .language-selector .lang-tooltip a {
    border-radius: 8px;
    color: var(--ui-ink);
    display: block;
    padding: 9px 12px;
}

.ui-modern .modern-header-cta {
    align-items: center;
    background: var(--ui-blue-600);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 67, 255, 0.28);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    padding: 0 23px;
}

.ui-modern .modern-header-cta:hover {
    background: #fff;
    color: var(--ui-navy-950);
    transform: translateY(-1px);
}

.ui-modern #header .mmenu-trigger {
    margin: 0 !important;
}

.ui-modern #header .hamburger-inner,
.ui-modern #header .hamburger-inner::before,
.ui-modern #header .hamburger-inner::after {
    background: #fff;
}

.ui-modern .mm-menu,
.ui-modern .mm-panels,
.ui-modern .mm-panel {
    background: var(--ui-navy-950);
    color: #fff;
}

.ui-modern .mm-listview > li > a,
.ui-modern .mm-listview > li > span {
    color: rgba(255, 255, 255, 0.86);
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 20px;
}

.ui-modern .mm-listview > li,
.ui-modern .mm-listview > li::after {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Shared buttons and controls */
.ui-modern .btn,
.ui-modern button,
.ui-modern input[type="submit"],
.ui-modern .multiple-send-message,
.ui-modern a.btn {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    min-height: 48px;
    text-transform: none;
}

.ui-modern .btn-yellow,
.ui-modern .btn-primary,
.ui-modern .btn-search,
.ui-modern input[type="submit"],
.ui-modern .multiple-send-message {
    background: var(--ui-blue-600) !important;
    border: 1px solid var(--ui-blue-600) !important;
    box-shadow: 0 10px 24px rgba(0, 67, 255, 0.2);
    color: #fff !important;
}

.ui-modern .btn-yellow:hover,
.ui-modern .btn-primary:hover,
.ui-modern .btn-search:hover,
.ui-modern input[type="submit"]:hover,
.ui-modern .multiple-send-message:hover {
    background: var(--ui-blue-700) !important;
    border-color: var(--ui-blue-700) !important;
    box-shadow: 0 14px 28px rgba(0, 67, 255, 0.27);
    transform: translateY(-1px);
}

.ui-modern input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.ui-modern select,
.ui-modern textarea,
.ui-modern .nice-select,
.ui-modern .select2-selection,
.ui-modern button.btn-filter {
    background: #fff;
    border: 1px solid var(--ui-line) !important;
    border-radius: 12px !important;
    box-shadow: none;
    color: var(--ui-ink);
    font-size: 14px;
    min-height: 52px;
    padding: 0 16px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ui-modern textarea {
    min-height: 130px;
    padding-bottom: 14px;
    padding-top: 14px;
    resize: vertical;
}

.ui-modern input:focus,
.ui-modern select:focus,
.ui-modern textarea:focus,
.ui-modern .nice-select:focus,
.ui-modern button.btn-filter:focus {
    border-color: var(--ui-blue-600) !important;
    box-shadow: 0 0 0 4px rgba(0, 67, 255, 0.1) !important;
}

.ui-modern label {
    color: var(--ui-ink);
    font-size: 13px;
    font-weight: 600;
}

/* Homepage hero */
.ui-modern .main-slider,
.ui-modern .main-slider .tp-banner-container,
.ui-modern .main-slider .tp-banner,
.ui-modern .main-slider .rev_slider,
.ui-modern .main-slider .rev_slider_wrapper {
    height: 735px !important;
    max-height: 735px !important;
    min-height: 735px !important;
}

.ui-modern .main-slider {
    background: var(--ui-navy-950);
    overflow: hidden;
    position: relative;
}

.ui-modern .main-slider::after {
    background: linear-gradient(90deg, rgba(0, 14, 53, 0.78), rgba(0, 14, 53, 0.28) 62%, rgba(0, 14, 53, 0.5));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.ui-modern .main-slider .tp-static-layers {
    align-items: center;
    bottom: auto !important;
    display: flex;
    height: 100% !important;
    inset: 0 !important;
    justify-content: center;
    position: absolute !important;
    text-align: left;
    top: 0 !important;
    width: 100% !important;
    transform: none !important;
    z-index: 40;
}

.ui-modern .main-slider #hero-area,
.ui-modern .main-slider .main-search-inner,
.ui-modern .main-slider .container.vid,
.ui-modern .main-slider .container.vid > .row,
.ui-modern .main-slider .container.vid > .row > [class*="col-"] {
    width: 100%;
}

.ui-modern .main-slider .container.vid {
    max-width: 1240px;
}

.ui-modern .main-slider .hero-inner2 {
    max-width: 1010px;
}

.ui-modern .modern-hero-eyebrow {
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.ui-modern .main-slider .welcome-text h1,
.ui-modern .main-slider .dark-overlay h1,
.ui-modern .dark-overlay h1 {
    background: transparent !important;
    color: #fff;
    font-size: clamp(48px, 5vw, 72px) !important;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    margin: 0 0 34px;
    max-width: 850px;
    text-align: left;
    text-shadow:
        0 2px 4px rgba(0, 14, 53, 0.92),
        0 14px 36px rgba(0, 14, 53, 0.68);
    text-transform: none;
}

.ui-modern .main-slider .banner-search-wrap {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 14, 53, 0.28);
    max-width: 920px;
    overflow: visible;
    padding: 18px;
}

.ui-modern .main-slider .banner-search-wrap .nav-tabs {
    border: 0;
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    margin: 0 0 14px;
    padding: 4px;
    width: 100%;
}

.ui-modern .main-slider .rld-banner-tab .nav-link {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
    min-width: 110px;
    text-align: center;
}

.ui-modern .main-slider .rld-banner-tab .nav-link.active {
    background: var(--ui-navy-950);
    color: #fff;
}

.ui-modern.the-search .main-slider .rld-banner-tab .nav-item .nav-link.active::before {
    content: none;
    display: none;
}

.ui-modern .main-slider .rld-main-search {
    background: transparent;
    box-shadow: none;
    height: auto !important;
    min-width: 0;
    padding: 0;
}

.ui-modern .main-slider .rld-main-search > .row {
    align-items: center;
    margin: 0;
}

.ui-modern .main-slider .rld-main-search > .row > [class*="col-"] {
    padding: 0 6px;
}

.ui-modern .main-slider .rld-single-input {
    margin: 0 !important;
    width: 100% !important;
}

.ui-modern .main-slider .rld-single-input input {
    background: #f8f9fc;
    font-size: 15px;
    height: 56px;
    width: 100% !important;
}

.ui-modern .main-slider .btn-yellow {
    height: 56px;
    width: 100%;
}

/* Modern homepage information architecture. Legacy keeps the source order. */
.ui-modern .home-content-flow {
    display: flex;
    flex-direction: column;
}

.ui-modern .home-primary-flow {
    display: contents;
}

.ui-modern .home-properties-section {
    order: 1;
}

.ui-modern .home-locations-section {
    order: 2;
}

.ui-modern .home-why-section {
    order: 3;
}

.ui-modern .home-services-section {
    order: 4;
}

.ui-modern .home-mission-section {
    order: 5;
}

.ui-modern .home-culture-section {
    order: 6;
}

.ui-modern .home-properties-section #propertiescontent .portfolio-items > .item:nth-child(n + 7) {
    display: none;
}

.ui-modern .modern-section-action {
    margin-top: 42px;
    text-align: center;
}

.ui-modern .modern-section-action .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 210px;
    padding: 0 28px;
}

.ui-modern .home-mission-section {
    background: var(--ui-navy-950) !important;
    margin: 0 !important;
}

.ui-modern .home-mission-section h2,
.ui-modern .home-mission-section h2 span,
.ui-modern .home-mission-section p.header-p {
    color: #fff !important;
}

.ui-modern .home-mission-section .about-us h2::after,
.ui-modern .home-mission-section h2::after {
    background: var(--ui-red-600) !important;
}

.ui-modern .home-culture-section .news-item.last {
    display: none;
}

/* Shared sections and headings */
.ui-modern section.about-us,
.ui-modern section.blog-section,
.ui-modern section.featured,
.ui-modern section.properties-right,
.ui-modern section.single-proper,
.ui-modern section.headings,
.ui-modern section.headings-2 {
    background: var(--ui-surface) !important;
}

.ui-modern section.about-us,
.ui-modern section.blog-section,
.ui-modern section.featured,
.ui-modern section.properties-right,
.ui-modern section.single-proper {
    padding-bottom: clamp(68px, 7vw, 108px);
    padding-top: clamp(68px, 7vw, 108px);
}

.ui-modern section.about-us:nth-of-type(even),
.ui-modern section.blog-section.bg-white-3,
.ui-modern section.featured.bg-white-3 {
    background: var(--ui-soft) !important;
}

.ui-modern .about-us h2,
.ui-modern .blog-section > .container > h2,
.ui-modern .blog-section > .container-fluid > h2,
.ui-modern .section-title h1,
.ui-modern .section-title h2,
.ui-modern .sec-title h2,
.ui-modern h1.title-but-with-lower-fontSize {
    color: var(--ui-ink) !important;
    font-size: clamp(34px, 4vw, 54px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-transform: none !important;
}

.ui-modern .about-us h2::after,
.ui-modern .h2-title::after {
    background: var(--ui-blue-600) !important;
    border: 0 !important;
    border-radius: 999px;
    content: "" !important;
    display: block !important;
    height: 5px !important;
    margin: 20px auto 30px !important;
    max-width: 76px !important;
    width: 76px !important;
}

.ui-modern .h2-title {
    border: 0 !important;
    width: auto !important;
}

.ui-modern .about-us .pftext,
.ui-modern .about-us .who-1 > p,
.ui-modern .about-us p:not(.header-p) {
    color: var(--ui-muted);
    font-size: 17px;
    line-height: 1.85;
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
}

.ui-modern p.header-p {
    color: var(--ui-navy-900);
    font-family: "Montserrat", "Poppins", Arial, sans-serif !important;
    font-size: clamp(28px, 3.2vw, 46px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em;
    line-height: 1.15 !important;
    margin: 0 auto;
    max-width: 920px;
    padding-top: 0;
}

/* Blog and editorial cards */
.ui-modern .blog-section .news-wrap {
    margin-top: 42px;
}

.ui-modern .blog-section .news-item,
.ui-modern .news-item.details,
.ui-modern .widget,
.ui-modern .recent-post {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
}

.ui-modern .blog-section .news-item-sm {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    min-height: 290px;
    overflow: hidden;
}

.ui-modern .blog-section .news-item-sm:hover {
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-4px);
}

.ui-modern .blog-section .news-item-sm .news-img-link {
    flex: 0 0 42%;
    max-width: 42%;
    overflow: hidden;
}

.ui-modern .blog-section .news-item-sm .news-item-img {
    height: 100%;
    min-height: 290px;
}

.ui-modern .blog-section .news-item-sm .resp-img {
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
    transition: transform 400ms ease;
}

.ui-modern .blog-section .news-item-sm:hover .resp-img {
    transform: scale(1.035);
}

.ui-modern .blog-section .news-item-sm .news-item-text {
    display: flex;
    flex: 1 1 58%;
    flex-direction: column;
    justify-content: center;
    max-width: 58%;
    min-width: 0;
    padding: 28px;
}

.ui-modern .blog-section .news-item h3 {
    color: var(--ui-ink);
    display: -webkit-box;
    font-size: 20px;
    height: auto;
    line-height: 1.3;
    margin-bottom: 15px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ui-modern .blog-section .news-item-descr {
    color: var(--ui-muted);
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.65;
    max-height: 4.95em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ui-modern .blog-section .news-item.details {
    background: #fff;
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
}

.ui-modern .blog-section .news-item.details .news-item-img > img {
    aspect-ratio: 2 / 1;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    width: 100%;
}

.ui-modern .blog-section .news-item.details .news-item-text {
    padding: clamp(24px, 4vw, 52px);
}

.ui-modern[data-page="blog-notice"] .news-item.details .modern-article-title {
    color: var(--ui-ink);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 clamp(24px, 3vw, 38px);
    overflow-wrap: anywhere;
}

.ui-modern[data-page="blog-notice"] .modern-article-body {
    color: #3f4555;
    font-size: 16px;
    line-height: 1.8;
}

.ui-modern[data-page="blog-notice"] .modern-article-body h1,
.ui-modern[data-page="blog-notice"] .modern-article-body h2,
.ui-modern[data-page="blog-notice"] .modern-article-body h3,
.ui-modern[data-page="blog-notice"] .modern-article-body h4 {
    color: var(--ui-ink);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 32px 0 12px;
}

.ui-modern[data-page="blog-notice"] .modern-article-body h1 {
    font-size: clamp(27px, 2.4vw, 34px) !important;
}

.ui-modern[data-page="blog-notice"] .modern-article-body h2 {
    font-size: clamp(24px, 2vw, 30px) !important;
}

.ui-modern[data-page="blog-notice"] .modern-article-body h3 {
    font-size: clamp(21px, 1.7vw, 25px) !important;
}

.ui-modern[data-page="blog-notice"] .modern-article-body h4 {
    font-size: clamp(18px, 1.4vw, 21px) !important;
}

.ui-modern[data-page="blog-notice"] .modern-article-body > h3:first-child {
    color: #3f4555;
    font-size: clamp(18px, 1.5vw, 21px) !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.65;
    margin-top: 0;
}

.ui-modern[data-page="blog-notice"] .modern-article-body p,
.ui-modern[data-page="blog-notice"] .modern-article-body li {
    color: #3f4555;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.ui-modern[data-page="blog-notice"] .modern-article-body img {
    height: auto;
    max-width: 100%;
}

.ui-modern .blog-section .news-item.details p,
.ui-modern .blog-section .news-item.details li {
    color: #3f4555;
    font-size: 16px;
    line-height: 1.8;
}

/* Property cards shared by home, results, agents, and offices */
.ui-modern .portfolio-items {
    row-gap: 28px;
}

.ui-modern .portfolio-items > .item {
    margin-bottom: 0 !important;
}

.ui-modern .recent-16 {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    color: var(--ui-ink);
    height: 430px;
    overflow: hidden;
    position: relative;
}

.ui-modern .recent-16:hover {
    box-shadow: var(--ui-shadow-md);
    color: var(--ui-ink);
    transform: translateY(-5px);
}

.ui-modern .recent-16 .recent-img16 {
    background-color: #dfe3ec;
    bottom: auto;
    height: 240px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.ui-modern .recent-16 .recent-content {
    background: linear-gradient(to bottom, rgba(0, 14, 53, 0), rgba(0, 14, 53, 0.34));
    bottom: auto;
    height: 92px;
    top: 148px;
}

.ui-modern .recent-16 .recent-details {
    background: #fff;
    bottom: auto;
    color: var(--ui-ink);
    height: 142px;
    left: 0;
    padding: 20px;
    position: absolute;
    right: 0;
    top: 240px;
    transform: none !important;
    width: auto;
}

.ui-modern .recent-16 .recent-title {
    color: var(--ui-ink);
    display: -webkit-box;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 44px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ui-modern .recent-16 .recent-price {
    color: var(--ui-blue-600);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 7px;
}

.ui-modern .recent-16 .house-details {
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-modern .recent-16 .house-details span {
    color: #c4c9d4;
    opacity: 1;
    padding: 0 5px;
}

.ui-modern .recent-16 .house-details .modern-property-fact {
    color: var(--ui-muted);
    display: inline;
    padding: 0;
}

.ui-modern .recent-16 .house-details .modern-property-fact + .modern-property-fact::before {
    color: #c4c9d4;
    content: "·";
    padding: 0 7px;
}

.ui-modern .recent-16 .view-proper {
    background: #fff;
    border-top: 1px solid var(--ui-line);
    bottom: 0;
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    height: 48px;
    left: 0;
    opacity: 1;
    overflow: hidden;
    padding: 14px 20px;
    position: absolute;
    right: 0;
    text-overflow: ellipsis;
    transform: none !important;
    white-space: nowrap;
    width: auto;
}

.ui-modern .homes-tag.button.alt.featured,
.ui-modern .homes-tag.button.sale.rent {
    background: rgba(0, 14, 53, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    height: auto;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 9px 12px !important;
    top: 14px;
}

.ui-modern .homes-tag.button.alt.featured {
    left: 14px;
}

.ui-modern .homes-tag.button.sale.rent {
    background: var(--ui-red-600) !important;
    right: 14px;
}

/* Search and results */
.ui-modern section.properties-right {
    background: var(--ui-page) !important;
    padding-top: 44px;
}

.ui-modern .modern-results-intro {
    margin: 12px 0 34px;
    max-width: 860px;
}

.ui-modern .modern-results-intro .modern-kicker {
    color: var(--ui-blue-600);
    margin-bottom: 12px;
}

.ui-modern .modern-results-intro h1 {
    color: var(--ui-ink);
    font-size: clamp(38px, 4.8vw, 62px);
    letter-spacing: -0.055em;
    margin-bottom: 14px;
}

.ui-modern .modern-results-intro > p:last-child {
    color: var(--ui-muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 720px;
}

.ui-modern .modern-filter-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ui-line) !important;
    box-shadow: var(--ui-shadow-sm);
    color: var(--ui-ink);
    display: none;
    gap: 9px;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}

.ui-modern .modern-filter-toggle i {
    color: var(--ui-blue-600);
}

.ui-modern .properties-right form.wizard-form > .row {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 0 34px;
    padding: 20px;
}

.ui-modern .properties-right form.wizard-form > .row > [class*="col-"] {
    flex: none;
    margin: 0;
    max-width: none;
    padding: 0;
    width: auto;
}

.ui-modern .properties-right form.wizard-form > .row > [class*="col-"]:first-of-type {
    grid-column: span 2;
}

.ui-modern .properties-right .rld-single-input,
.ui-modern .properties-right .rld-single-select,
.ui-modern .properties-right .dropdown {
    margin: 0 !important;
}

.ui-modern .properties-right .rld-single-input input,
.ui-modern .properties-right select,
.ui-modern .properties-right button#dropdownMenuButton,
.ui-modern .properties-right .btn-search {
    height: 52px;
    margin: 0;
    width: 100% !important;
}

.ui-modern .properties-right .dropdown-menu {
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    box-shadow: var(--ui-shadow-md);
    max-height: 420px;
    overflow-y: auto;
}

.ui-modern #propertiescontent section.headings-2 {
    background: transparent !important;
    padding: 0 0 24px !important;
}

.ui-modern #propertiescontent .listing-title-bar p {
    color: var(--ui-muted);
    font-size: 14px;
    font-weight: 600 !important;
}

.ui-modern #propertiescontent .pagination.grid-3 {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 42px 0 0;
}

.ui-modern #propertiescontent .pagination.grid-3 .page-link {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 999px !important;
    color: var(--ui-ink);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 9px 15px;
}

.ui-modern #propertiescontent .pagination.grid-3 .active .page-link,
.ui-modern #propertiescontent .pagination.grid-3 .page-link:hover {
    background: var(--ui-blue-600);
    border-color: var(--ui-blue-600);
    color: #fff;
}

/* Property detail experience */
.ui-modern .single-property-4,
.ui-modern .single-proper.blog.details {
    background: var(--ui-page);
}

.ui-modern .single-property-4 > .container-fluid,
.ui-modern .single-proper > .container-fluid {
    max-width: 1440px;
    padding-left: clamp(20px, 4vw, 58px) !important;
    padding-right: clamp(20px, 4vw, 58px) !important;
}

.ui-modern .single-property-4 .slider-pro,
.ui-modern .single-property-4 .sp-slides-container,
.ui-modern .single-property-4 .sp-mask {
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
}

.ui-modern .single-property-4 .sp-slide,
.ui-modern .single-property-4 .sp-image-container {
    background: #e8ebf1;
}

.ui-modern .single-property-4 .sp-image {
    object-fit: cover;
}

.ui-modern .single-property-4 .sidebar,
.ui-modern .single-property-4 .widget-boxed,
.ui-modern .single-proper .widget-boxed,
.ui-modern .single.detail-wrapper,
.ui-modern .blog-info.details,
.ui-modern .homes-content.details,
.ui-modern .property-location,
.ui-modern .wprt-image-video {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
}

.ui-modern .single-property-4 .widget-boxed,
.ui-modern .single-proper .widget-boxed {
    overflow: hidden;
}

.ui-modern .widget-boxed-header {
    background: transparent;
    border-bottom: 1px solid var(--ui-line);
    padding: 20px 22px;
}

.ui-modern .widget-boxed-header h4,
.ui-modern .widget-boxed-header h3 {
    font-size: 18px;
    margin: 0;
}

.ui-modern .widget-boxed-body {
    padding: 22px;
}

.ui-modern .sidebar-widget .author-box img,
.ui-modern .author-widget2 .author__img {
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 26px rgba(0, 14, 53, 0.16);
    height: 112px;
    object-fit: cover;
    width: 112px;
}

.ui-modern .author-widget2 .author-box {
    align-items: center;
    display: grid;
    gap: 4px 16px;
    grid-template-columns: 96px minmax(0, 1fr);
    margin-bottom: 22px;
}

.ui-modern .author-widget2 .author__img {
    float: none;
    grid-row: 1 / span 2;
    height: 96px;
    margin: 0;
    width: 96px;
}

.ui-modern .author-widget2 .author__title,
.ui-modern .author-widget2 .author-box .author__title {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 !important;
    overflow-wrap: anywhere;
    padding-top: 0 !important;
}

.ui-modern .author-widget2 .author__meta,
.ui-modern .sidebar .author-widget2 .author__meta {
    font-size: 13px;
    grid-column: 2;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
}

.ui-modern .agent-contact-form-sidebar input,
.ui-modern .agent-contact-form-sidebar textarea {
    width: 100%;
}

.ui-modern .modern-mobile-inquiry-slot {
    display: none;
}

.ui-modern .single-proper section.headings-2 {
    background: transparent !important;
    padding: 30px 0 18px !important;
}

.ui-modern .single-proper .pro-wrapper {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.ui-modern .single-proper .pro-wrapper > .detail-wrapper-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ui-modern .single-proper .pro-wrapper > .single.detail-wrapper {
    flex: 0 0 auto;
    margin: 0 !important;
    min-width: 235px;
    padding: 22px 26px !important;
}

.ui-modern .listing-title-bar h3,
.ui-modern .listing-title-bar h2,
.ui-modern .listing-title-bar h1 {
    color: var(--ui-ink);
    font-size: clamp(30px, 2.8vw, 42px);
    letter-spacing: -0.045em;
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-transform: none !important;
}

.ui-modern .listing-title-bar .listing-address {
    color: var(--ui-muted);
    font-size: 14px;
}

.ui-modern .headings-2 span.category-tag {
    background: var(--ui-navy-950);
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    height: auto !important;
    line-height: 1.2 !important;
    margin-left: 10px;
    min-height: 0 !important;
    padding: 8px 12px;
    position: static !important;
    top: auto !important;
    vertical-align: middle;
    white-space: nowrap;
    width: auto !important;
}

.ui-modern[data-page="home-propertydetails"] .single.detail-wrapper h4,
.ui-modern[data-page="home-frombuyeremail"] .single.detail-wrapper h4,
.ui-modern[data-page="home-appdetails"] .single.detail-wrapper h4 {
    line-height: 1.08;
}

.ui-modern .single.detail-wrapper,
.ui-modern .blog-info.details,
.ui-modern .homes-content.details,
.ui-modern .property-location,
.ui-modern .wprt-image-video {
    margin-bottom: 24px !important;
    padding: clamp(22px, 3vw, 34px) !important;
}

.ui-modern .modern-property-highlights {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    overflow: hidden;
}

.ui-modern .modern-property-highlights > div {
    align-items: center;
    border-right: 1px solid var(--ui-line);
    display: grid;
    gap: 2px 10px;
    grid-template-columns: auto 1fr;
    padding: 20px;
}

.ui-modern .modern-property-highlights > div:last-child {
    border-right: 0;
}

.ui-modern .modern-property-highlights i {
    color: var(--ui-blue-600);
    font-size: 19px;
    grid-row: span 2;
}

.ui-modern .modern-property-highlights strong {
    color: var(--ui-ink);
    font-size: 15px;
    line-height: 1.25;
}

.ui-modern .modern-property-highlights span {
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.25;
}

.ui-modern[data-page="home-propertydetails"] .single-property-4 .col-md-3,
.ui-modern[data-page="home-frombuyeremail"] .single-property-4 .col-md-3,
.ui-modern[data-page="home-appdetails"] .single-property-4 .col-md-3 {
    align-self: flex-start;
    position: sticky;
    top: 108px;
}

.ui-modern[data-page="home-propertydetails"] .single-property-4,
.ui-modern[data-page="home-frombuyeremail"] .single-property-4,
.ui-modern[data-page="home-appdetails"] .single-property-4 {
    padding-bottom: 32px;
    padding-top: 36px;
}

.ui-modern[data-page="home-propertydetails"] .single-property-4 > .container-fluid > .row,
.ui-modern[data-page="home-frombuyeremail"] .single-property-4 > .container-fluid > .row,
.ui-modern[data-page="home-appdetails"] .single-property-4 > .container-fluid > .row {
    align-items: flex-start;
}

.ui-modern[data-page="home-propertydetails"] .single.detail-wrapper h4,
.ui-modern[data-page="home-frombuyeremail"] .single.detail-wrapper h4,
.ui-modern[data-page="home-appdetails"] .single.detail-wrapper h4 {
    color: var(--ui-blue-600);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    margin: 0;
}

.ui-modern .blog-info.details h5,
.ui-modern .homes-content.details h5,
.ui-modern .property-location h5,
.ui-modern .wprt-image-video h5 {
    color: var(--ui-ink);
    font-size: 22px;
    margin-bottom: 20px !important;
}

.ui-modern .blog-info.details p,
.ui-modern .blog-info.details li,
.ui-modern .homes-content.details li {
    color: #444b5c;
    line-height: 1.75;
}

.ui-modern .homes-list li {
    border-bottom: 1px solid var(--ui-line);
    min-height: 48px;
    padding: 13px 0;
}

.ui-modern .homes-list li:last-child {
    border-bottom: 0;
}

.ui-modern .property-location iframe,
.ui-modern .wprt-image-video iframe {
    border: 0;
    border-radius: 12px;
    height: clamp(380px, 42vw, 560px) !important;
    min-height: 0;
    width: 100% !important;
}

.ui-modern #similar-property .portfolio-items > .item:nth-child(n + 7) {
    display: none;
}

.ui-modern .modern-property-collapsed {
    display: none !important;
}

.ui-modern .modern-property-reveal-wrap {
    margin: 34px 0 12px;
    text-align: center;
}

.ui-modern .modern-property-reveal {
    min-width: 220px;
}

/* Agents and offices */
.ui-modern .widget-boxed.popular,
.ui-modern .itemAscard,
.ui-modern .team-pro,
.ui-modern .agent-details,
.ui-modern .office-card {
    background: #fff;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-md) !important;
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
}

.ui-modern .widget-boxed.popular .banner img,
.ui-modern .itemAscard img,
.ui-modern .team-pro img {
    border-radius: 12px;
    object-fit: cover;
}

.ui-modern .itemAscard {
    padding: 20px;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.ui-modern .itemAscard:hover {
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-3px);
}

.ui-modern .sidebar-boton {
    border-color: var(--ui-blue-600);
}

.ui-modern .properties-right aside iframe {
    border: 0;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
}

/* Specialization and location tiles */
.ui-modern .section-dark {
    background: var(--ui-navy-950) !important;
    border-radius: var(--ui-radius-lg);
    margin: clamp(30px, 5vw, 76px) auto !important;
    max-width: 1350px;
    padding: 18px !important;
}

.ui-modern .remax-commercial-block,
.ui-modern .remax-collection-block,
.ui-modern .joinremax-block,
.ui-modern .img-box {
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
}

.ui-modern .remax-commercial-block,
.ui-modern .remax-collection-block,
.ui-modern .joinremax-block {
    min-height: 440px;
    position: relative;
}

.ui-modern .remax-commercial-block::after,
.ui-modern .remax-collection-block::after,
.ui-modern .joinremax-block::after,
.ui-modern .img-box::after {
    background: linear-gradient(to top, rgba(0, 14, 53, 0.78), rgba(0, 14, 53, 0.08));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.ui-modern .block-content,
.ui-modern .img-box-content {
    position: relative;
    z-index: 2;
}

.ui-modern h1.white.center.larger {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.ui-modern .popular-places .img-box {
    display: block;
    min-height: 270px;
    position: relative;
}

.ui-modern .popular-places .img-box img {
    height: 270px;
    object-fit: cover;
    width: 100%;
}

.ui-modern .popular-places .img-box-content {
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 24px;
    position: absolute;
    right: 0;
}

/* Footer */
.ui-modern footer.first-footer,
.ui-modern .homepage-2 .first-footer .top-footer {
    background: var(--ui-navy-950) !important;
    border: 0 !important;
}

.ui-modern footer.first-footer {
    color: rgba(255, 255, 255, 0.74);
    margin-top: 0;
}

.ui-modern footer.first-footer .top-footer {
    padding: 76px 0 32px;
}

.ui-modern footer.first-footer .container {
    max-width: 1240px;
}

.ui-modern footer.first-footer img.el-salvador {
    height: auto;
    margin-bottom: 20px;
    max-width: 210px !important;
}

.ui-modern .modern-footer-intro {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 330px;
}

.ui-modern footer.first-footer span {
    color: #fff !important;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.ui-modern footer.first-footer ul.nodeco {
    margin: 0;
    padding: 0;
}

.ui-modern footer.first-footer ul.nodeco li,
.ui-modern footer.first-footer ul.nodeco li[style] {
    margin: 0 !important;
    padding: 5px 0;
}

.ui-modern footer.first-footer a.footer-link,
.ui-modern footer.first-footer a.footer-link:hover {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    font-size: 13px;
    padding: 4px 0 !important;
}

.ui-modern footer.first-footer a.footer-link:hover {
    color: #fff;
    transform: translateX(3px);
}

.ui-modern footer.first-footer p[style*="border-top"] {
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.58) !important;
    margin-top: 42px;
    padding-top: 22px;
}

.ui-modern footer.first-footer .top-footer > .container > .row:first-child > [class*="col-"]:nth-child(n + 2) .nodeco li:nth-child(n + 9) {
    display: none;
}

.ui-modern footer.first-footer.modern-site-footer {
    background:
        radial-gradient(circle at 8% 16%, rgba(0, 114, 206, 0.2), transparent 27%),
        radial-gradient(circle at 92% 86%, rgba(220, 28, 46, 0.14), transparent 24%),
        var(--ui-navy-950) !important;
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.ui-modern footer.first-footer.modern-site-footer::before {
    background: linear-gradient(90deg, var(--ui-red-600) 0 33%, #fff 33% 66%, var(--ui-blue-500) 66% 100%);
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.ui-modern footer.first-footer.modern-site-footer::after {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
    height: 460px;
    position: absolute;
    right: -240px;
    top: 180px;
    width: 460px;
    z-index: -1;
}

.ui-modern footer.modern-site-footer .top-footer,
.ui-modern .homepage-2 footer.modern-site-footer .top-footer {
    background: transparent !important;
    padding: clamp(72px, 7vw, 104px) 0 34px;
}

.ui-modern .modern-footer-cta {
    align-items: center;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: clamp(64px, 7vw, 90px);
    overflow: hidden;
    padding: clamp(34px, 4.5vw, 56px);
    position: relative;
}

.ui-modern .modern-footer-cta::after {
    background: rgba(0, 114, 206, 0.18);
    border-radius: 63% 37% 31% 69% / 44% 61% 39% 56%;
    content: "";
    height: 230px;
    position: absolute;
    right: -70px;
    top: -110px;
    width: 230px;
}

.ui-modern footer.first-footer .modern-footer-kicker {
    color: #fff !important;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.ui-modern .modern-footer-cta h2 {
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0;
}

.ui-modern .modern-footer-cta p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.7;
    margin: 18px 0 0;
    max-width: 650px;
}

.ui-modern .modern-footer-cta-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.ui-modern .modern-footer-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
}

.ui-modern .modern-footer-btn-primary {
    background: #fff;
    color: var(--ui-navy-950);
}

.ui-modern .modern-footer-btn-primary:hover {
    background: var(--ui-red-600);
    color: #fff;
    transform: translateY(-2px);
}

.ui-modern .modern-footer-btn-secondary {
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

.ui-modern .modern-footer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.ui-modern .modern-footer-grid {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.72fr));
}

.ui-modern .modern-footer-brand {
    padding-right: 20px;
}

.ui-modern footer.first-footer .modern-footer-brand img.el-salvador {
    max-width: 220px !important;
}

.ui-modern .modern-footer-opportunity {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 9px;
    margin-top: 3px;
}

.ui-modern .modern-footer-opportunity:hover {
    color: #fff;
    transform: translateX(3px);
}

.ui-modern footer.first-footer .modern-footer-opportunity span {
    color: var(--ui-red-600) !important;
    display: inline-block;
    font-size: 16px;
    margin: 0;
}

.ui-modern .modern-footer-nav h2 {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 5px 0 22px;
    text-transform: uppercase;
}

.ui-modern footer.first-footer .modern-footer-nav ul.nodeco li {
    padding: 3px 0;
}

.ui-modern footer.first-footer .modern-footer-nav a.footer-link,
.ui-modern footer.first-footer .modern-footer-nav a.footer-link:hover {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.45;
    padding: 5px 0 !important;
}

.ui-modern footer.first-footer .modern-footer-nav a.footer-link:hover {
    color: #fff;
}

.ui-modern .modern-footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-top: clamp(54px, 6vw, 76px);
    padding-top: 26px;
}

.ui-modern .modern-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
}

.ui-modern .modern-footer-bottom strong {
    color: rgba(255, 255, 255, 0.74);
}

@media only screen and (max-width: 1024px) {
    .ui-modern .modern-footer-cta {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-footer-cta-actions {
        justify-content: flex-start;
    }

    .ui-modern .modern-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 600px) {
    .ui-modern .modern-footer-cta {
        border-radius: 22px;
        padding: 30px 24px;
    }

    .ui-modern .modern-footer-cta-actions,
    .ui-modern .modern-footer-btn {
        width: 100%;
    }

    .ui-modern .modern-footer-grid {
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-footer-brand {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 0 34px;
    }

    .ui-modern .modern-footer-nav {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 24px;
    }

    .ui-modern .modern-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

.ui-modern .go-up {
    align-items: center;
    background: var(--ui-blue-600);
    border-radius: 50%;
    bottom: 22px;
    box-shadow: 0 12px 28px rgba(0, 67, 255, 0.3);
    display: flex;
    height: 48px;
    justify-content: center;
    right: 22px;
    width: 48px;
}

.ui-modern .go-up,
.ui-modern .go-up:hover,
.ui-modern .go-up:focus,
.ui-modern .go-up i,
.ui-modern .go-up i::before {
    color: #fff !important;
}

.ui-modern .go-up i {
    line-height: 1;
}

/* Branded page and AJAX loading states */
.ui-modern #preloader.modern-preloader {
    align-items: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 67, 255, 0.08), transparent 34%),
        #f7f8fc;
    display: flex;
    justify-content: center;
}

.ui-modern #preloader.modern-preloader #status.modern-loader-status {
    align-items: center;
    background-image: linear-gradient(145deg, #001447, var(--ui-navy-950));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 14, 53, 0.24);
    display: flex;
    flex-direction: column;
    height: auto;
    left: 50%;
    margin: 0;
    padding: 30px 34px 26px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100% - 40px));
}

/* The legacy slider styles point to cursor files that are not shipped. Native
   grab cursors avoid a network 404 while preserving the intended affordance. */
.ui-modern .sp-grab,
.ui-modern .tp-carousel-wrapper {
    cursor: grab !important;
}

.ui-modern .sp-grabbing,
.ui-modern .tp-carousel-wrapper.dragged {
    cursor: grabbing !important;
}

.ui-modern .modern-loader-logo {
    height: auto;
    margin-bottom: 22px;
    max-height: 62px;
    max-width: 178px;
    object-fit: contain;
    width: auto;
}

.ui-modern .modern-loader-track {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    display: block;
    height: 4px;
    overflow: hidden;
    width: 100%;
}

.ui-modern .modern-loader-track > span {
    animation: modern-loader-progress 1.15s ease-in-out infinite;
    background: linear-gradient(90deg, var(--ui-red-600), #fff 52%, var(--ui-blue-500));
    border-radius: inherit;
    display: block;
    height: 100%;
    transform: translateX(-72%);
    width: 72%;
}

.ui-modern .modern-loader-copy {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: 16px;
    text-transform: uppercase;
}

.ui-modern .blockUI.blockOverlay {
    background: var(--ui-navy-950) !important;
    opacity: 0.58 !important;
}

.ui-modern .blockUI.blockMsg {
    background: #fff !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 14, 53, 0.28) !important;
    box-sizing: border-box !important;
    color: var(--ui-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    left: 50% !important;
    line-height: 1.4 !important;
    min-width: 190px;
    padding: 24px 28px !important;
    transform: translateX(-50%);
    width: auto !important;
}

.ui-modern .blockUI.blockMsg::before {
    animation: modern-loader-spin 0.8s linear infinite;
    border: 3px solid rgba(0, 67, 255, 0.16);
    border-radius: 50%;
    border-top-color: var(--ui-blue-600);
    content: "";
    display: block;
    height: 30px;
    margin: 0 auto 12px;
    width: 30px;
}

.ui-modern .blockUI.blockMsg h1 {
    color: inherit;
    font-size: inherit;
    margin: 0;
}

@keyframes modern-loader-progress {
    0% { transform: translateX(-100%); }
    55% { transform: translateX(38%); }
    100% { transform: translateX(140%); }
}

@keyframes modern-loader-spin {
    to { transform: rotate(360deg); }
}

/* Error, magazine, and lightweight content pages */
.ui-modern .headings,
.ui-modern .headings-2 {
    padding: 72px 0 38px;
}

.ui-modern .headings h1,
.ui-modern .headings-2 h1,
.ui-modern .headings h2,
.ui-modern .headings-2 h2 {
    font-size: clamp(34px, 4vw, 54px);
}

.ui-modern .single-post,
.ui-modern .blog-pots,
.ui-modern .contact-us,
.ui-modern .about-us .who-1 {
    color: var(--ui-muted);
}

.ui-modern .modern-content-page {
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 67, 255, 0.15), transparent 32%),
        var(--ui-navy-950);
    color: #fff;
    min-height: 620px;
    padding: clamp(96px, 11vw, 160px) 0;
}

.ui-modern .modern-content-page .container {
    max-width: 1040px;
}

.ui-modern .modern-content-page h1 {
    color: #fff;
    font-size: clamp(48px, 7vw, 82px);
    letter-spacing: -0.06em;
    margin-bottom: 28px;
    max-width: 900px;
}

.ui-modern .modern-kicker,
.ui-modern .modern-error-code {
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.ui-modern .modern-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
    max-width: 780px;
}

.ui-modern .modern-content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.ui-modern .modern-content-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 190px;
    padding: 0 26px;
}

.ui-modern .modern-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.ui-modern .modern-btn-secondary:hover {
    background: #fff;
    color: var(--ui-navy-950) !important;
}

.ui-modern .modern-error-page {
    min-height: 560px;
}

/* Standard blog listing */
.ui-modern[data-page="blog-index"] .blog-section,
.ui-modern[data-page="blog-notice"] .blog-section {
    background: var(--ui-page) !important;
    padding-bottom: 100px;
    padding-top: 80px;
}

.ui-modern .modern-editorial-intro {
    margin: 0 auto 52px;
    max-width: 920px;
    text-align: center;
}

.ui-modern .modern-editorial-intro .modern-kicker {
    color: var(--ui-blue-600);
    margin-bottom: 12px;
}

.ui-modern .modern-editorial-intro h1 {
    color: var(--ui-ink);
    font-size: clamp(42px, 5vw, 64px);
    letter-spacing: -0.055em;
    margin-bottom: 16px;
}

.ui-modern .modern-editorial-intro > p:last-child {
    color: var(--ui-muted);
    font-size: 16px;
    line-height: 1.7;
}

.ui-modern .blog-section .news-item.nomb {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    height: 100%;
    overflow: hidden;
}

.ui-modern .blog-section .news-item.nomb:hover {
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-4px);
}

.ui-modern .blog-section .news-item.nomb .news-item-img {
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
}

.ui-modern .blog-section .news-item.nomb .news-item-img img {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover;
    width: 100%;
}

.ui-modern .blog-section .news-item.nomb .news-item-text {
    padding: 24px;
}

.ui-modern .blog-section .news-item.nomb .big-news {
    color: var(--ui-muted);
    display: -webkit-box;
    line-height: 1.65;
    max-height: 4.95em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ui-modern .blog-section .news-item.nomb .news-link {
    color: var(--ui-blue-600);
    font-size: 13px;
    font-weight: 700;
}

.ui-modern .blog-section aside .widget,
.ui-modern .blog-section aside .recent-post,
.ui-modern .properties-right aside .widget,
.ui-modern .properties-right aside .recent-post {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    padding: 22px;
}

.ui-modern .recent-main {
    align-items: center;
    border-bottom: 1px solid var(--ui-line) !important;
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
}

.ui-modern .recent-main:last-child {
    border-bottom: 0 !important;
}

.ui-modern .recent-main .recent-img {
    border-radius: 10px;
    flex: 0 0 88px;
    height: 72px;
    margin: 0;
    min-width: 88px;
    overflow: hidden;
}

.ui-modern .recent-main .recent-img img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ui-modern .recent-main .info-img h6 {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ui-modern .recent-main .info-img p {
    color: var(--ui-blue-600);
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

/* Agent and office discovery */
.ui-modern[data-page="home-officeandagentsearch"] .main-slider .hero-inner2 {
    max-width: 760px;
}

.ui-modern[data-page="home-officeandagentsearch"] .main-slider form {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 14, 53, 0.28);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 28px;
    padding: 16px;
}

.ui-modern[data-page="home-officeandagentsearch"] .office-search-select {
    margin: 0 !important;
}

.ui-modern[data-page="home-officeandagentsearch"] .office-select {
    height: 54px;
    width: 100%;
}

.ui-modern[data-page="home-officeandagentsearch"] .form-actions {
    margin: 0;
}

.ui-modern[data-page="home-officeandagentsearch"] .form-actions .btn {
    height: 54px;
    margin: 0;
    padding-left: 28px;
    padding-right: 28px;
}

.ui-modern[data-page="home-officeandagentsearch"] .blog-section .news-item.last {
    display: none;
}

.ui-modern section.properties-right > .row {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
}

.ui-modern[data-page="home-agentsearchbyname"] section.properties-right,
.ui-modern[data-page="home-officeandagentsearchcountry"] section.properties-right,
.ui-modern[data-page="home-showmembers"] section.properties-right,
.ui-modern[data-page="home-showpropertiesperagent"] section.properties-right {
    min-height: 650px;
}

.ui-modern[data-page="home-agentsearchbyname"] .itemAscard,
.ui-modern[data-page="home-officeandagentsearchcountry"] .itemAscard,
.ui-modern[data-page="home-showmembers"] .itemAscard {
    color: var(--ui-ink);
    min-height: 190px;
    text-align: center;
}

.ui-modern[data-page="home-agentsearchbyname"] .itemAscard img,
.ui-modern[data-page="home-showmembers"] .itemAscard img {
    height: 92px;
    max-width: 92px !important;
    object-fit: cover;
    width: 92px;
}

.ui-modern[data-page="home-officeandagentsearchcountry"] .itemAscard img {
    height: 84px;
    max-width: 120px !important;
    object-fit: contain;
}

.ui-modern[data-page="home-showpropertiesperagent"] .widget-boxed.popular {
    position: sticky;
    top: 108px;
}

/* Country office summaries and lightweight regional pages */
.ui-modern .popular-places .countr {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    min-height: 170px;
    padding: 24px;
}

.ui-modern .popular-places .countr i {
    color: var(--ui-blue-600);
}

.ui-modern .popular-places .countr .counter {
    color: var(--ui-ink);
    font-size: 34px;
    font-weight: 800;
}

.ui-modern[data-page="home-showfooterbycountry"] .popular-places,
.ui-modern[data-page="international-index"] #wrapper > .row {
    background: var(--ui-page);
    margin: 0;
    min-height: 620px;
    padding: 76px clamp(20px, 5vw, 70px);
}

/* About leadership and community pages */
.ui-modern[data-page="home-aboutnelson"] .shadown,
.ui-modern[data-page="home-aboutrudo"] .shadown {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow-md) !important;
    color: #3f4555;
    line-height: 1.8;
    overflow: hidden;
    padding: 24px;
}

.ui-modern[data-page="home-aboutnelson"] .shadown img,
.ui-modern[data-page="home-aboutrudo"] .shadown img,
.ui-modern[data-page="home-aboutusgrenada"] img.img-responsive {
    border-radius: var(--ui-radius-md) !important;
    box-shadow: none !important;
}

.ui-modern[data-page="home-aboutusgrenada"] video,
.ui-modern[data-page="communitycitizenship-index"] video {
    background: var(--ui-navy-950);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-md);
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.ui-modern[data-page="home-aboutusgrenada"] .ptitle {
    color: var(--ui-blue-600);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.ui-modern[data-page="home-aboutusgrenada"] .pbody {
    color: var(--ui-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ui-modern[data-page="communitycitizenship-index"] .blog-info.details {
    margin-bottom: 28px;
}

.ui-modern[data-page="communitycitizenship-index"] .community-video {
    aspect-ratio: 16 / 9;
    background: var(--ui-navy-950);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-sm);
    display: block;
    object-fit: cover;
    width: 100%;
}

.ui-modern[data-page="international-index"] .modern-network-page {
    background:
        radial-gradient(circle at 86% 6%, rgba(0, 67, 255, 0.1), transparent 28%),
        var(--ui-page);
    min-height: 680px;
    padding: clamp(84px, 8vw, 120px) 0;
}

.ui-modern .modern-network-heading {
    margin-bottom: 42px;
    max-width: 780px;
}

.ui-modern .modern-network-heading .modern-kicker {
    color: var(--ui-blue-600);
    margin-bottom: 14px;
}

.ui-modern .modern-network-heading h1 {
    color: var(--ui-ink);
    font-size: clamp(40px, 5vw, 66px);
    letter-spacing: -0.055em;
    line-height: 1;
    margin-bottom: 20px;
}

.ui-modern .modern-network-heading > p:last-child {
    color: var(--ui-muted);
    font-size: 17px;
    line-height: 1.7;
}

.ui-modern .modern-network-grid {
    row-gap: 18px;
}

.ui-modern .network-country-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    box-shadow: var(--ui-shadow-sm);
    color: var(--ui-ink) !important;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 14px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 14px 18px;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.ui-modern .network-country-card:hover,
.ui-modern .network-country-card:focus {
    box-shadow: var(--ui-shadow-md);
    color: var(--ui-blue-600) !important;
    transform: translateY(-2px);
}

.ui-modern .network-country-card img,
.ui-modern .network-country-fallback {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 30px;
    justify-content: center;
    object-fit: cover;
    width: 30px;
}

.ui-modern .network-country-fallback {
    background: var(--ui-soft);
    color: var(--ui-blue-600);
}

.ui-modern .network-country-card > .fa-arrow-right {
    color: var(--ui-blue-600);
    font-size: 12px;
}

/* Homepage deep-audit corrections. These rules intentionally follow the
   generic section styles so Modern-only contrast cannot be overwritten. */
.ui-modern .main-slider::after {
    background:
        linear-gradient(90deg, rgba(0, 14, 53, 0.88) 0%, rgba(0, 14, 53, 0.64) 48%, rgba(0, 14, 53, 0.38) 100%),
        linear-gradient(0deg, rgba(0, 14, 53, 0.34), rgba(0, 14, 53, 0.06) 58%);
}

.ui-modern .modern-hero-eyebrow {
    align-items: center;
    background: rgba(0, 14, 53, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    padding: 8px 12px;
    text-shadow: 0 2px 12px rgba(0, 14, 53, 0.75);
}

.ui-modern section.home-mission-section {
    background:
        radial-gradient(circle at 14% 22%, rgba(0, 67, 255, 0.28), transparent 34%),
        radial-gradient(circle at 86% 76%, rgba(220, 28, 46, 0.2), transparent 32%),
        var(--ui-navy-950) !important;
    color: #fff;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
}

.ui-modern section.home-mission-section::before {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    height: 420px;
    position: absolute;
    right: -150px;
    top: -230px;
    width: 420px;
}

.ui-modern section.home-mission-section > .container {
    position: relative;
    z-index: 1;
}

.ui-modern section.home-mission-section .who-1,
.ui-modern section.home-mission-section .who-1 p,
.ui-modern section.home-mission-section .pftext {
    background: transparent !important;
    color: #fff !important;
}

.ui-modern section.home-mission-section .who-1 {
    min-height: 0;
}

.ui-modern section.home-mission-section h2,
.ui-modern section.home-mission-section p.header-p {
    color: #fff !important;
}

.ui-modern section.home-mission-section h2 span {
    color: var(--ui-red-600) !important;
}

.ui-modern section.home-mission-section h2::after {
    background: var(--ui-red-600) !important;
}

.ui-modern .home-locations-section .img-box {
    aspect-ratio: 16 / 10;
    background: var(--ui-navy-950);
    height: auto !important;
    min-height: 0;
}

.ui-modern .home-locations-section .img-box::before {
    background: linear-gradient(to top, rgba(0, 14, 53, 0.88), rgba(0, 14, 53, 0.06) 68%);
    opacity: 1;
    z-index: 1;
}

.ui-modern .home-locations-section .img-box::after {
    background: linear-gradient(105deg, rgba(0, 14, 53, 0.2), transparent 58%);
    z-index: 1;
}

.ui-modern .home-locations-section .img-box img,
.ui-modern .home-locations-section .img-box img.modern-location-image {
    height: 100% !important;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.ui-modern .home-locations-section .img-box-content {
    bottom: 0;
    padding: 28px 30px;
    text-align: left;
    top: auto;
    transform: none;
    z-index: 2;
}

.ui-modern .home-locations-section .img-box-content h4 {
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.ui-modern .home-locations-section .modern-location-count {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 9px;
    position: static;
    text-transform: uppercase;
}

.ui-modern .home-services-section .remax-commercial-block,
.ui-modern .home-services-section .remax-collection-block,
.ui-modern .home-services-section .joinremax-block {
    background-position: center;
}

.ui-modern .home-services-section .remax-commercial-block::after,
.ui-modern .home-services-section .remax-collection-block::after,
.ui-modern .home-services-section .joinremax-block::after {
    background: linear-gradient(to top, rgba(0, 14, 53, 0.96), rgba(0, 14, 53, 0.38) 70%, rgba(0, 14, 53, 0.22));
}

.ui-modern .home-services-section .block-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    padding: 28px;
}

.ui-modern .home-services-section .collectionlogo,
.ui-modern .home-services-section .collectionlogo[style] {
    align-items: center;
    background: rgba(0, 14, 53, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    min-height: 124px !important;
    padding: 18px;
}

.ui-modern .home-services-section .collectionlogo center {
    width: 100%;
}

.ui-modern .home-services-section .collectionlogo img {
    margin: 0 auto;
    max-height: 92px;
    max-width: min(100%, 230px) !important;
    object-fit: contain;
}

.ui-modern .home-services-section h1.white.center.larger {
    margin: 0;
    min-height: 2.1em;
    text-shadow: 0 3px 18px rgba(0, 14, 53, 0.8);
}

.ui-modern .home-culture-section .news-item.last {
    display: flex;
}

.ui-modern .home-culture-section .news-item-descr * {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
    margin: 0 !important;
}

@media only screen and (max-width: 1199px) {
    .ui-modern #header .container-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ui-modern #navigation.style-1 ul a {
        padding-left: 9px;
        padding-right: 9px;
    }

    .ui-modern .modern-header-cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ui-modern .properties-right form.wizard-form > .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ui-modern[data-page="home-propertydetails"] .single-proper > .container-fluid > .row > .col-lg-9,
    .ui-modern[data-page="home-propertydetails"] .single-proper > .container-fluid > .row > .col-lg-3,
    .ui-modern[data-page="home-frombuyeremail"] .single-proper > .container-fluid > .row > .col-lg-9,
    .ui-modern[data-page="home-frombuyeremail"] .single-proper > .container-fluid > .row > .col-lg-3,
    .ui-modern[data-page="home-appdetails"] .single-proper > .container-fluid > .row > .col-lg-9,
    .ui-modern[data-page="home-appdetails"] .single-proper > .container-fluid > .row > .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width: 1024px) {
    .ui-modern #navigation {
        display: none;
    }

    .ui-modern #header,
    .ui-modern #header .container-header {
        height: 76px;
        min-height: 76px;
    }

    .ui-modern #header {
        padding: 0 !important;
    }

    .ui-modern #header .container-header {
        justify-content: center;
    }

    .ui-modern #header .left-side {
        display: contents;
    }

    .ui-modern #header #logo {
        left: 50%;
        margin: 0 !important;
        max-width: calc(100% - 220px);
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .ui-modern #header #logo img.logo-web {
        max-height: 48px;
        max-width: 168px;
    }

    .ui-modern #header .mmenu-trigger {
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 50%;
        display: flex !important;
        height: 46px;
        justify-content: center;
        left: 18px;
        position: absolute;
        top: 15px;
        width: 46px;
        z-index: 3;
    }

    .ui-modern #header .hamburger {
        height: 42px;
        left: auto;
        min-height: 42px;
        padding: 0;
        position: relative;
        top: auto;
        transform: none;
        width: 42px;
    }

    .ui-modern #header .hamburger-box {
        display: block;
        height: 22px;
        margin: 0 auto;
        width: 28px;
    }

    .ui-modern #header .hamburger-inner,
    .ui-modern #header .hamburger-inner::before,
    .ui-modern #header .hamburger-inner::after {
        height: 2px;
        left: 0;
        width: 28px;
    }

    .ui-modern #header .hamburger--collapse .hamburger-inner {
        bottom: auto;
        margin-top: -1px;
        top: 50%;
    }

    .ui-modern #header .hamburger--collapse .hamburger-inner::before {
        top: -8px;
    }

    .ui-modern #header .hamburger--collapse .hamburger-inner::after {
        bottom: auto;
        top: 8px;
    }

    .ui-modern #header .hamburger--collapse.is-active .hamburger-inner {
        transform: rotate(45deg);
    }

    .ui-modern #header .hamburger--collapse.is-active .hamburger-inner::before {
        top: 0;
        transform: rotate(90deg);
    }

    .ui-modern #header .hamburger--collapse.is-active .hamburger-inner::after {
        opacity: 0;
        top: 0;
    }

    .ui-modern #header .language-selector {
        margin: 0;
        position: absolute;
        right: 18px;
        top: 16px;
    }

    .ui-modern #header .language-selector .show-lang {
        height: 44px;
    }

    .ui-modern .modern-header-cta {
        display: none;
    }

    .ui-modern .main-slider,
    .ui-modern .main-slider .tp-banner-container,
    .ui-modern .main-slider .tp-banner,
    .ui-modern .main-slider .rev_slider,
    .ui-modern .main-slider .rev_slider_wrapper {
        height: 660px !important;
        max-height: 660px !important;
        min-height: 660px !important;
    }

    .ui-modern .main-slider .welcome-text h1,
    .ui-modern .dark-overlay h1 {
        font-size: clamp(42px, 7vw, 62px) !important;
    }
}

@media only screen and (max-width: 767px) {
    .ui-modern {
        font-size: 15px;
    }

    .ui-modern #header,
    .ui-modern #header .container-header {
        height: 72px;
        min-height: 72px;
    }

    .ui-modern #header .container-header {
        padding: 0 14px;
    }

    .ui-modern #header .mmenu-trigger {
        left: 12px;
        top: 13px;
    }

    .ui-modern #header .language-selector {
        right: 10px;
        top: 14px;
    }

    .ui-modern #header .language-selector .show-lang {
        border: 0;
        height: 42px;
        padding: 0 6px;
    }

    .ui-modern #header .language-selector .show-lang .fas,
    .ui-modern #header .language-selector .arrlan {
        display: none;
    }

    .ui-modern #header #logo {
        max-width: calc(100% - 160px);
    }

    .ui-modern #header #logo img.logo-web {
        max-height: 44px;
        max-width: 148px;
    }

    .ui-modern .main-slider,
    .ui-modern .main-slider .tp-banner-container,
    .ui-modern .main-slider .tp-banner,
    .ui-modern .main-slider .rev_slider,
    .ui-modern .main-slider .rev_slider_wrapper {
        height: 650px !important;
        max-height: 650px !important;
        min-height: 650px !important;
    }

    .ui-modern .main-slider .tp-static-layers {
        padding: 0 15px;
        transform: none !important;
    }

    .ui-modern .main-slider .container.vid {
        padding: 0;
    }

    .ui-modern .main-slider .hero-inner2 {
        margin: 0 auto;
        max-width: 520px;
        width: calc(100% + 30px);
    }

    .ui-modern .main-slider .welcome-text h1,
    .ui-modern .dark-overlay h1 {
        font-size: clamp(38px, 11vw, 52px) !important;
        line-height: 1.02;
        margin-bottom: 26px;
        text-align: left;
    }

    .ui-modern .main-slider .banner-search-wrap {
        border-radius: 18px;
        padding: 14px;
    }

    .ui-modern .main-slider .rld-banner-tab {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }

    .ui-modern .main-slider .rld-banner-tab .nav-item {
        flex: 1 1 50%;
        width: auto;
    }

    .ui-modern .main-slider .rld-banner-tab .nav-link {
        align-items: center;
        display: flex;
        height: 54px;
        justify-content: center;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .ui-modern .main-slider .rld-main-search > .row {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .ui-modern .main-slider .rld-main-search > .row > [class*="col-"] {
        max-width: none;
        padding: 0;
        width: 100%;
    }

    .ui-modern .about-us h2,
    .ui-modern .blog-section > .container > h2,
    .ui-modern .blog-section > .container-fluid > h2,
    .ui-modern .section-title h1,
    .ui-modern .section-title h2,
    .ui-modern .sec-title h2,
    .ui-modern h1.title-but-with-lower-fontSize {
        font-size: clamp(32px, 9vw, 42px) !important;
    }

    .ui-modern .blog-section .news-item-sm {
        display: block;
        min-height: 0;
    }

    .ui-modern .blog-section .news-item-sm .news-img-link,
    .ui-modern .blog-section .news-item-sm .news-item-text {
        display: block;
        max-width: 100%;
        width: 100%;
    }

    .ui-modern .blog-section .news-item-sm .news-item-img {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .ui-modern .blog-section .news-item-sm .news-item-text {
        padding: 24px;
    }

    .ui-modern .blog-section .news-item h3 {
        font-size: 19px;
    }

    .ui-modern .properties-right form.wizard-form > .row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ui-modern .modern-filter-toggle {
        display: flex;
    }

    .ui-modern.modern-ui-ready[data-page="home-showproperties"] .properties-right form.wizard-form {
        display: none;
    }

    .ui-modern.modern-ui-ready[data-page="home-showproperties"] .properties-right form.wizard-form.modern-filters-open {
        display: block;
    }

    .ui-modern .properties-right form.wizard-form > .row > [class*="col-"]:first-of-type {
        grid-column: auto;
    }

    .ui-modern .recent-16 {
        height: 420px;
    }

    .ui-modern .home-properties-section #propertiescontent .portfolio-items > .item:nth-child(n + 5) {
        display: none;
    }

    .ui-modern .recent-16 .recent-img16 {
        height: 230px;
    }

    .ui-modern .recent-16 .recent-content {
        top: 138px;
    }

    .ui-modern .recent-16 .recent-details {
        top: 230px;
    }

    .ui-modern .single-property-4 > .container-fluid,
    .ui-modern .single-proper > .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .ui-modern .single-property-4 .sidebar,
    .ui-modern .single-property-4 .widget-boxed,
    .ui-modern .single-proper .widget-boxed,
    .ui-modern .single.detail-wrapper,
    .ui-modern .blog-info.details,
    .ui-modern .homes-content.details,
    .ui-modern .property-location,
    .ui-modern .wprt-image-video {
        border-radius: 14px;
    }

    .ui-modern .single-proper .pro-wrapper {
        display: block;
    }

    .ui-modern .single-proper .listing-title-bar h3 {
        font-size: clamp(26px, 7vw, 32px) !important;
        line-height: 1.1 !important;
    }

    .ui-modern .single-proper .headings-2 span.category-tag {
        margin-left: 8px;
        padding: 7px 10px;
    }

    .ui-modern .single-proper .pro-wrapper > .single.detail-wrapper {
        margin-top: 18px !important;
        min-width: 0;
        width: 100%;
    }

    .ui-modern[data-page="home-propertydetails"] .single-property-4 .col-md-3,
    .ui-modern[data-page="home-frombuyeremail"] .single-property-4 .col-md-3,
    .ui-modern[data-page="home-appdetails"] .single-property-4 .col-md-3 {
        position: static;
    }

    .ui-modern .modern-mobile-inquiry-slot {
        display: block;
        margin-bottom: 24px;
    }

    .ui-modern .modern-mobile-inquiry-slot .single-widget,
    .ui-modern .modern-mobile-inquiry-slot .sidebar,
    .ui-modern .modern-mobile-inquiry-slot .widget-boxed {
        margin: 0;
        width: 100%;
    }

    .ui-modern .modern-inquiry-relocated {
        display: none;
    }

    .ui-modern .modern-property-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-modern .modern-property-highlights > div:nth-child(2) {
        border-right: 0;
    }

    .ui-modern .modern-property-highlights > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--ui-line);
    }

    .ui-modern .property-location iframe,
    .ui-modern .wprt-image-video iframe {
        height: 360px !important;
        min-height: 0;
    }

    .ui-modern #similar-property .portfolio-items > .item:nth-child(n + 4) {
        display: none;
    }

    .ui-modern .section-dark {
        border-radius: 18px;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .ui-modern .remax-commercial-block,
    .ui-modern .remax-collection-block,
    .ui-modern .joinremax-block {
        min-height: 330px;
    }

    .ui-modern footer.first-footer .top-footer {
        padding: 56px 0 28px;
    }

    .ui-modern footer.first-footer .row > [class*="col-"] {
        margin-bottom: 34px;
    }

    .ui-modern footer.first-footer .innerspam {
        padding-left: 0 !important;
    }

    .ui-modern footer.first-footer .top-footer > .container > .row:first-child > [class*="col-"]:nth-child(n + 2) .nodeco li:nth-child(n + 6) {
        display: none;
    }

    .ui-modern .modern-content-page {
        min-height: 520px;
        padding: 86px 0;
    }

    .ui-modern .modern-content-page h1 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .ui-modern .modern-content-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-content-actions .btn {
        width: 100%;
    }

    .ui-modern[data-page="home-officeandagentsearch"] .main-slider form {
        grid-template-columns: 1fr;
    }

    .ui-modern[data-page="home-showpropertiesperagent"] .widget-boxed.popular {
        position: static;
    }
}

@media only screen and (max-width: 420px) {
    .ui-modern #header .language-selector .show-lang strong {
        font-size: 11px;
        padding-left: 0;
    }

    .ui-modern #header #logo img.logo-web {
        max-width: 132px;
    }

    .ui-modern .main-slider .welcome-text h1,
    .ui-modern .dark-overlay h1 {
        font-size: 38px !important;
    }

    .ui-modern .main-slider .rld-banner-tab .nav-link {
        min-width: 98px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .ui-modern #propertiescontent .pagination.grid-3 {
        gap: 6px;
    }

    .ui-modern #propertiescontent .pagination.grid-3 .page-link {
        min-width: 42px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Homepage editorial refinement: a quieter, more premium hierarchy. */
.ui-modern .modern-home-heading {
    align-items: flex-end;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin: 0 auto 40px;
    max-width: 1240px;
    text-align: left;
}

.ui-modern .modern-home-heading > div {
    max-width: 720px;
}

.ui-modern .modern-home-kicker {
    color: var(--ui-blue-600);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.ui-modern .modern-home-heading h2 {
    color: var(--ui-ink) !important;
    font-size: clamp(36px, 3.3vw, 50px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.055em;
    line-height: 1.02;
    margin: 0;
    max-width: 680px;
    text-transform: none !important;
}

.ui-modern .modern-home-heading h2::after {
    content: none !important;
    display: none !important;
}

.ui-modern .modern-home-heading p {
    color: var(--ui-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 17px 0 0;
    max-width: 640px;
}

.ui-modern .modern-home-link {
    align-items: center;
    border-bottom: 1px solid rgba(0, 67, 255, 0.32);
    color: var(--ui-navy-950);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.02em;
    padding: 0 0 8px;
}

.ui-modern .modern-home-link span {
    color: var(--ui-blue-600);
    font-size: 17px;
    transition: transform 180ms ease;
}

.ui-modern .modern-home-link:hover span {
    transform: translate(3px, -3px);
}

.ui-modern .home-properties-section,
.ui-modern .home-locations-section,
.ui-modern .home-services-section,
.ui-modern .home-culture-section {
    padding-bottom: clamp(64px, 5vw, 80px) !important;
    padding-top: clamp(64px, 5vw, 80px) !important;
}

.ui-modern .home-properties-section > .container-fluid,
.ui-modern .home-services-section > .container-fluid,
.ui-modern .home-culture-section > .container-fluid {
    margin: 0 auto;
    max-width: 1320px;
    padding-left: 40px;
    padding-right: 40px;
}

.ui-modern .home-properties-section .portfolio {
    float: none;
    margin: 0 auto;
    max-width: 1270px;
    padding: 0 15px;
}

.ui-modern .home-properties-section #propertiescontent .portfolio-items > .item:nth-child(n + 5) {
    display: none;
}

.ui-modern .home-locations-section > .container {
    max-width: 1240px;
}

.ui-modern .home-locations-section .row {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.ui-modern .home-locations-section .row > .col-md-12 {
    display: none;
}

.ui-modern .home-locations-section .row > [class*="col-"] {
    float: none;
    max-width: none;
    padding: 0;
    width: auto;
}

.ui-modern .home-locations-section .img-box {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(0, 14, 53, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 14, 53, 0.09);
    margin-bottom: 0;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.ui-modern .home-locations-section .img-box:hover {
    box-shadow: 0 22px 48px rgba(0, 14, 53, 0.15);
    transform: translateY(-5px);
}

.ui-modern .home-locations-section .img-box img {
    transition: transform 420ms ease;
}

.ui-modern .home-locations-section .img-box:hover img {
    transform: scale(1.035);
}

.ui-modern .home-locations-section .img-box-content {
    padding: 22px;
}

.ui-modern .home-locations-section .img-box-content h4 {
    font-size: clamp(23px, 2vw, 31px);
}

.ui-modern .home-why-section > section.about-us {
    padding-bottom: clamp(72px, 6.5vw, 96px);
    padding-top: clamp(72px, 6.5vw, 96px);
}

.ui-modern .home-why-section .container {
    max-width: 1240px;
}

.ui-modern .home-why-section .who-1 {
    align-items: start;
    display: grid;
    gap: clamp(48px, 7vw, 100px);
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr);
}

.ui-modern .home-why-section .who-1 h2 {
    font-size: clamp(38px, 3.4vw, 50px) !important;
    margin: 0 !important;
    max-width: 440px;
    text-align: left !important;
}

.ui-modern .home-why-section .who-1 h2::after {
    margin: 22px 0 0 !important;
}

.ui-modern .home-why-section .pftext {
    max-width: none;
    text-align: left !important;
}

.ui-modern .home-why-section .pftext p {
    font-size: 16px;
    line-height: 1.85;
    margin: 0;
    text-align: left !important;
}

.ui-modern .home-services-section {
    background: var(--ui-surface) !important;
    margin: 0 !important;
}

.ui-modern .home-services-section .row {
    margin-left: -10px;
    margin-right: -10px;
}

.ui-modern .home-services-section .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.ui-modern .home-services-section .remax-commercial-block,
.ui-modern .home-services-section .remax-collection-block,
.ui-modern .home-services-section .joinremax-block {
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 14, 53, 0.13);
    height: 380px;
    min-height: 380px;
}

.ui-modern section.home-mission-section {
    padding-bottom: clamp(64px, 6vw, 84px) !important;
    padding-top: clamp(64px, 6vw, 84px) !important;
}

.ui-modern section.home-mission-section h2 {
    font-size: clamp(34px, 3.2vw, 46px) !important;
}

.ui-modern section.home-mission-section p.header-p {
    font-size: clamp(28px, 3vw, 42px) !important;
    max-width: 850px;
}

.ui-modern .home-culture-section .news-wrap {
    margin-top: 0;
}

.ui-modern .home-culture-section .news-wrap > .row {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.ui-modern .home-culture-section .news-wrap > .row > [class*="col-"] {
    display: contents;
}

.ui-modern .home-culture-section .news-item.news-item-sm {
    display: block;
    height: 100%;
    margin: 0;
    min-height: 0;
}

.ui-modern .home-culture-section .news-item-sm .news-img-link,
.ui-modern .home-culture-section .news-item-sm .news-item-text {
    display: block;
    max-width: 100%;
    width: 100%;
}

.ui-modern .home-culture-section .news-item-sm .news-img-link {
    aspect-ratio: 16 / 10;
    height: auto !important;
    overflow: hidden;
    position: relative;
}

.ui-modern .home-culture-section .news-item-sm .news-item-img {
    aspect-ratio: auto;
    height: 100% !important;
    inset: 0;
    min-height: 0;
    position: absolute;
    width: 100%;
}

.ui-modern .home-culture-section .news-item-sm .news-item-text {
    min-height: 190px;
    padding: 22px;
}

.ui-modern .home-culture-section .news-item h3 {
    font-size: 17px;
    -webkit-line-clamp: 3;
}

.ui-modern .home-culture-section .news-item-descr {
    -webkit-line-clamp: 2;
    max-height: 3.3em;
}

@media only screen and (max-width: 1199px) {
    .ui-modern .home-properties-section #propertiescontent .portfolio-items > .item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .ui-modern .home-locations-section .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-modern .home-culture-section .news-wrap > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-modern .home-culture-section .news-item.news-item-sm {
        display: flex;
        min-height: 270px;
    }

    .ui-modern .home-culture-section .news-item-sm .news-img-link {
        aspect-ratio: auto;
        flex: 0 0 42%;
        height: 270px !important;
        max-width: 42%;
    }

    .ui-modern .home-culture-section .news-item-sm .news-item-img {
        aspect-ratio: auto;
        height: 100%;
        min-height: 270px;
    }

    .ui-modern .home-culture-section .news-item-sm .news-item-text {
        display: flex;
        flex: 1 1 58%;
        justify-content: center;
        max-width: 58%;
        min-height: 270px;
    }
}

@media only screen and (max-width: 767px) {
    .ui-modern .home-properties-section #propertiescontent .portfolio-items > .item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .ui-modern .modern-home-heading,
    .ui-modern .modern-home-heading-split {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
    }

    .ui-modern .modern-home-heading h2 {
        font-size: clamp(32px, 10vw, 40px) !important;
    }

    .ui-modern .home-properties-section > .container-fluid,
    .ui-modern .home-services-section > .container-fluid,
    .ui-modern .home-culture-section > .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ui-modern .home-properties-section .portfolio {
        padding: 0;
    }

    .ui-modern .home-locations-section .row,
    .ui-modern .home-culture-section .news-wrap > .row {
        grid-template-columns: 1fr;
    }

    .ui-modern .home-locations-section .img-box {
        aspect-ratio: 16 / 10;
    }

    .ui-modern .home-why-section .who-1 {
        display: block;
    }

    .ui-modern .home-why-section .who-1 h2 {
        margin-bottom: 34px !important;
    }

    .ui-modern .home-services-section .row {
        margin-left: 0;
        margin-right: 0;
    }

    .ui-modern .home-services-section .row > [class*="col-"] {
        padding: 0;
    }

    .ui-modern .home-services-section .remax-commercial-block,
    .ui-modern .home-services-section .remax-collection-block,
    .ui-modern .home-services-section .joinremax-block {
        height: 330px;
        min-height: 330px;
    }

    .ui-modern .home-culture-section .news-item.news-item-sm {
        display: block;
        min-height: 0;
    }

    .ui-modern .home-culture-section .news-item-sm .news-img-link,
    .ui-modern .home-culture-section .news-item-sm .news-item-text {
        max-width: 100%;
    }

    .ui-modern .home-culture-section .news-item-sm .news-img-link {
        aspect-ratio: 16 / 10;
        height: auto !important;
    }

    .ui-modern .home-culture-section .news-item-sm .news-item-img {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .ui-modern .home-culture-section .news-item-sm .news-item-text {
        min-height: 0;
    }
}

/* 2026 country-wide directory and advisor experience */
.ui-modern .modern-breadcrumb {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
    gap: 9px;
    letter-spacing: 0.04em;
    margin-bottom: clamp(44px, 6vw, 78px);
    position: relative;
    text-transform: uppercase;
    z-index: 2;
}

.ui-modern .modern-breadcrumb a,
.ui-modern .modern-breadcrumb span {
    color: inherit;
}

.ui-modern .modern-section-heading {
    margin-bottom: 40px;
}

.ui-modern .modern-section-heading > span,
.ui-modern .modern-section-heading > div > span {
    color: var(--ui-blue-600);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 13px;
    text-transform: uppercase;
}

.ui-modern .modern-section-heading h2 {
    font-size: clamp(34px, 3.4vw, 50px);
    letter-spacing: -0.055em;
    line-height: 1.02;
    margin: 0;
    max-width: 760px;
}

.ui-modern .modern-section-heading-split {
    align-items: flex-end;
    display: flex;
    gap: 48px;
    justify-content: space-between;
}

.ui-modern .modern-section-heading-split > p {
    color: var(--ui-muted);
    line-height: 1.75;
    margin: 0;
    max-width: 460px;
}

/* Homepage: centered intent switcher and a single opportunity story. */
.ui-modern .home-services-section {
    overflow: hidden;
}

.ui-modern .modern-opportunity {
    align-items: center;
    background: var(--ui-navy-950);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 14, 53, 0.2);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    isolation: isolate;
    min-height: 430px;
    overflow: hidden;
    padding: clamp(44px, 6vw, 76px);
    position: relative;
}

.ui-modern .modern-opportunity::before {
    background:
        linear-gradient(90deg, rgba(0, 14, 53, 0.98) 0%, rgba(0, 14, 53, 0.9) 45%, rgba(0, 14, 53, 0.56) 100%),
        var(--opportunity-image) center / cover no-repeat;
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.ui-modern .modern-opportunity::after {
    background: linear-gradient(90deg, var(--ui-red-600) 0 34%, #fff 34% 66%, var(--ui-blue-500) 66% 100%);
    bottom: 0;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    right: 0;
}

.ui-modern .modern-opportunity-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.ui-modern .modern-opportunity .modern-home-kicker {
    color: #fff;
}

.ui-modern .modern-opportunity h2 {
    color: #fff;
    font-size: clamp(38px, 4.6vw, 66px);
    letter-spacing: -0.065em;
    line-height: 0.98;
    margin: 0;
    max-width: 820px;
}

.ui-modern .modern-opportunity p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.75;
    margin: 24px 0 0;
    max-width: 680px;
}

.ui-modern .modern-opportunity-cta {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: var(--ui-navy-950);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 12px;
    margin-top: 32px;
    padding: 15px 22px;
}

.ui-modern .modern-opportunity-cta:hover {
    color: var(--ui-blue-600);
    transform: translateY(-2px);
}

.ui-modern .modern-opportunity-mark {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ui-modern .modern-opportunity-mark img {
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
    max-height: 190px;
    width: auto;
}

.ui-modern .modern-opportunity-orbit {
    border: 1px solid rgba(255, 255, 255, 0.16);
    position: absolute;
    right: -70px;
    top: -110px;
    z-index: 1;
}

.ui-modern .modern-opportunity-orbit-one {
    animation: modernMorph 13s ease-in-out infinite alternate;
    height: 360px;
    width: 360px;
}

.ui-modern .modern-opportunity-orbit-two {
    animation: modernMorph 17s ease-in-out -4s infinite alternate-reverse;
    background: rgba(0, 114, 206, 0.16);
    height: 260px;
    right: 80px;
    top: 210px;
    width: 260px;
}

@keyframes modernMorph {
    0% { border-radius: 58% 42% 43% 57% / 45% 56% 44% 55%; transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { border-radius: 38% 62% 55% 45% / 62% 39% 61% 38%; transform: rotate(9deg) translate3d(-12px, 12px, 0); }
    100% { border-radius: 62% 38% 37% 63% / 42% 63% 37% 58%; transform: rotate(-6deg) translate3d(10px, -8px, 0); }
}

.ui-modern.modern-ui-ready [data-modern-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-modern.modern-ui-ready [data-modern-reveal].modern-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Country office and agent directory */
.ui-modern .modern-directory-page,
.ui-modern .modern-office-page,
.ui-modern .modern-agent-page {
    background: var(--ui-page);
}

.ui-modern .modern-directory-hero {
    background: var(--ui-navy-950);
    color: #fff;
    isolation: isolate;
    min-height: 650px;
    overflow: hidden;
    padding: 46px 0 86px;
    position: relative;
}

.ui-modern .modern-directory-hero::before {
    background:
        linear-gradient(90deg, rgba(0, 14, 53, 0.96) 0%, rgba(0, 14, 53, 0.8) 54%, rgba(0, 14, 53, 0.4) 100%),
        var(--directory-hero) center 44% / cover no-repeat;
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.ui-modern .modern-directory-hero::after {
    background: linear-gradient(90deg, var(--ui-red-600), #fff 50%, var(--ui-blue-500));
    bottom: 0;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
}

.ui-modern .modern-directory-hero-shape,
.ui-modern .modern-office-hero-shape,
.ui-modern .modern-agent-hero-shape {
    animation: modernMorph 16s ease-in-out infinite alternate;
    background: rgba(0, 114, 206, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    height: 420px;
    position: absolute;
    right: -160px;
    top: -190px;
    width: 420px;
    z-index: -1;
}

.ui-modern .modern-directory-hero .modern-breadcrumb {
    color: rgba(255, 255, 255, 0.72);
}

.ui-modern .modern-directory-hero-grid {
    align-items: end;
    display: grid;
    gap: clamp(40px, 7vw, 100px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
    position: relative;
    z-index: 2;
}

.ui-modern .modern-directory-hero-grid-single {
    grid-template-columns: minmax(0, 900px);
}

.ui-modern .modern-directory-eyebrow,
.ui-modern .modern-office-eyebrow,
.ui-modern .modern-agent-eyebrow {
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.ui-modern .modern-directory-intro h1 {
    color: #fff;
    font-size: clamp(48px, 5.3vw, 76px);
    letter-spacing: -0.065em;
    line-height: 1.01;
    margin: 0;
    max-width: 760px;
}

.ui-modern .modern-directory-intro > p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.75;
    margin: 24px 0 0;
    max-width: 660px;
}

.ui-modern .modern-directory-inline-proof {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.ui-modern .modern-directory-inline-proof strong {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.ui-modern .modern-directory-inline-proof span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.45;
}

.ui-modern .modern-directory-search-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 14, 53, 0.3);
    color: var(--ui-ink);
    padding: 28px;
}

.ui-modern .modern-directory-search-label {
    color: var(--ui-blue-600);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.ui-modern .modern-directory-search label {
    color: var(--ui-ink);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.ui-modern .modern-directory-search-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ui-modern .modern-directory-search-row .office-select,
.ui-modern .modern-directory-search-row .btn {
    height: 54px;
    margin: 0;
}

.ui-modern .modern-directory-search-row .btn {
    padding: 0 24px;
}

.ui-modern .modern-directory-proof {
    align-items: center;
    border-top: 1px solid var(--ui-line);
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
}

.ui-modern .modern-directory-proof strong {
    color: var(--ui-red-600);
    font-size: 34px;
    line-height: 1;
}

.ui-modern .modern-directory-proof span {
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.4;
}

.ui-modern .modern-office-directory,
.ui-modern .modern-directory-insights {
    padding: clamp(72px, 8vw, 112px) 0;
}

.ui-modern .modern-office-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-modern .modern-office-card {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    box-shadow: var(--ui-shadow-sm);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.ui-modern .modern-office-card:hover {
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-5px);
}

.ui-modern .modern-office-card-media {
    align-items: center;
    background: linear-gradient(145deg, #fff, #f5f7fb);
    display: flex;
    height: 190px;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}

.ui-modern .modern-office-card-media img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ui-modern .modern-office-card-media img.modern-office-card-placeholder {
    height: 104px;
    width: auto;
}

.ui-modern .modern-office-card-body {
    border-top: 1px solid var(--ui-line);
    padding: 24px;
}

.ui-modern .modern-office-code {
    color: var(--ui-red-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ui-modern .modern-office-card h3 {
    font-size: 21px;
    margin: 9px 0 13px;
}

.ui-modern .modern-office-card h3 a {
    color: var(--ui-ink);
}

.ui-modern .modern-office-card p {
    color: var(--ui-muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    min-height: 41px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ui-modern .modern-office-card p i {
    color: var(--ui-blue-600);
    margin-right: 5px;
}

.ui-modern .modern-office-card-actions {
    align-items: center;
    border-top: 1px solid var(--ui-line);
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 17px;
}

.ui-modern .modern-office-primary {
    color: var(--ui-navy-950);
    font-size: 12px;
    font-weight: 800;
}

.ui-modern .modern-office-icon {
    align-items: center;
    background: var(--ui-page);
    border: 0;
    border-radius: 50%;
    color: var(--ui-blue-600);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ui-modern .protected-contact-action {
    font-family: inherit;
    transition: opacity 160ms ease, transform 160ms ease;
}

.ui-modern .protected-contact-action:hover {
    transform: translateY(-1px);
}

.ui-modern .protected-contact-action[aria-busy="true"] {
    cursor: wait;
    opacity: 0.62;
    pointer-events: none;
}

.ui-modern .protected-contact-action.has-error {
    box-shadow: 0 0 0 3px rgba(220, 28, 46, 0.24);
}

.ui-modern .modern-directory-insights {
    background: #fff;
}

.ui-modern .modern-directory-insight-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-modern .modern-directory-insight-card {
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    overflow: hidden;
}

.ui-modern .modern-directory-insight-card > a {
    color: var(--ui-ink);
    display: block;
    padding: 14px 14px 22px;
}

.ui-modern .modern-directory-insight-card img {
    aspect-ratio: 16 / 10;
    border-radius: 13px;
    object-fit: cover;
    width: 100%;
}

.ui-modern .modern-directory-insight-card span {
    color: var(--ui-red-600);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 20px 6px 8px;
    text-transform: uppercase;
}

.ui-modern .modern-directory-insight-card h3 {
    display: -webkit-box;
    font-size: 20px;
    line-height: 1.28;
    margin: 0 6px 22px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ui-modern .modern-directory-insight-card strong {
    color: var(--ui-blue-600);
    font-size: 12px;
    margin: 0 6px;
}

/* Office detail */
.ui-modern .modern-office-hero {
    background:
        radial-gradient(circle at 78% 18%, rgba(0, 114, 206, 0.28), transparent 34%),
        linear-gradient(130deg, var(--ui-navy-950), var(--ui-navy-800));
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    padding: 42px 0 82px;
    position: relative;
}

.ui-modern .modern-office-hero .modern-breadcrumb {
    color: rgba(255, 255, 255, 0.68);
}

.ui-modern .modern-office-hero-grid {
    align-items: end;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
    z-index: 2;
}

.ui-modern .modern-office-hero h1 {
    color: #fff;
    font-size: clamp(44px, 5vw, 72px);
    letter-spacing: -0.065em;
    line-height: 1;
    margin: 0;
    max-width: 900px;
}

.ui-modern .modern-office-hero h1 + p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.75;
    margin: 24px 0 0;
    max-width: 680px;
}

.ui-modern .modern-office-hero-actions,
.ui-modern .modern-agent-contact-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.ui-modern .modern-office-hero-actions .btn {
    margin: 0;
}

.ui-modern .modern-office-hero .modern-text-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
}

.ui-modern .modern-office-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 150px);
    margin: 0;
}

.ui-modern .modern-office-stats > div {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 22px;
}

.ui-modern .modern-office-stats dt {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.ui-modern .modern-office-stats dd {
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
    line-height: 1.4;
    margin: 9px 0 0;
}

.ui-modern .modern-office-content {
    padding: clamp(64px, 7vw, 96px) 0 110px;
}

.ui-modern .modern-office-information-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
}

.ui-modern .modern-office-information-grid.modern-office-information-grid-single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.ui-modern .modern-office-map-card,
.ui-modern .modern-office-contact-card {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
}

.ui-modern .modern-office-map-card iframe {
    border: 0;
    display: block;
    height: 360px;
    width: 100%;
}

.ui-modern .modern-office-contact-card {
    padding: 34px;
}

.ui-modern .modern-office-contact-card > span,
.ui-modern .modern-agent-contact-card > span {
    color: var(--ui-red-600);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.ui-modern .modern-office-contact-card h2,
.ui-modern .modern-agent-contact-card h2 {
    font-size: 30px;
    line-height: 1.08;
    margin: 0;
}

.ui-modern .modern-office-contact-card ul {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.ui-modern .modern-office-contact-card li {
    align-items: flex-start;
    color: var(--ui-muted);
    display: flex;
    font-size: 13px;
    gap: 13px;
    line-height: 1.55;
    padding: 10px 0;
}

.ui-modern .modern-office-contact-card li i {
    color: var(--ui-blue-600);
    margin-top: 4px;
    width: 16px;
}

.ui-modern .modern-contact-button-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.ui-modern .modern-contact-button,
.ui-modern .modern-agent-contact-button {
    align-items: center;
    background: var(--ui-page);
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    color: var(--ui-navy-950);
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
}

.ui-modern .modern-contact-button i,
.ui-modern .modern-agent-contact-button i {
    color: var(--ui-blue-600);
}

.ui-modern .modern-office-agents,
.ui-modern .modern-office-listings {
    padding-top: clamp(76px, 8vw, 112px);
}

.ui-modern .modern-agent-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-modern .modern-agent-card {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.ui-modern .modern-agent-card:hover {
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-5px);
}

.ui-modern .modern-agent-photo {
    align-items: flex-end;
    background: linear-gradient(150deg, #eef2f8, #fff);
    display: flex;
    height: 260px;
    justify-content: center;
    overflow: hidden;
}

.ui-modern .modern-agent-photo img {
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    width: 100%;
}

.ui-modern .modern-agent-photo img.modern-agent-placeholder {
    height: 120px;
    margin: auto;
    width: auto;
}

.ui-modern .modern-agent-card-body {
    padding: 22px;
}

.ui-modern .modern-agent-card-body > span {
    color: var(--ui-red-600);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ui-modern .modern-agent-card h3 {
    font-size: 19px;
    margin: 7px 0 10px;
}

.ui-modern .modern-agent-card h3 a {
    color: var(--ui-ink);
}

.ui-modern .modern-agent-card p {
    color: var(--ui-muted);
    font-size: 12px;
    margin: 0 0 14px;
}

.ui-modern .modern-agent-links {
    align-items: center;
    border-top: 1px solid var(--ui-line);
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 15px;
}

.ui-modern .modern-agent-links a:first-child {
    color: var(--ui-navy-950);
    font-size: 11px;
    font-weight: 800;
}

.ui-modern .modern-agent-links a:last-child:not(:first-child),
.ui-modern .modern-agent-links button:last-child:not(:first-child) {
    align-items: center;
    background: var(--ui-page);
    border: 0;
    border-radius: 50%;
    color: var(--ui-blue-600);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.ui-modern .modern-office-property-grid .headings-2,
.ui-modern .modern-agent-property-grid .headings-2 {
    background: transparent !important;
    padding-bottom: 18px !important;
}

.ui-modern .modern-empty-state {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    padding: 62px 28px;
    text-align: center;
}

.ui-modern .modern-property-empty-state {
    overflow: hidden;
    position: relative;
}

.ui-modern .modern-property-empty-state > span {
    color: var(--ui-blue-700);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-top: 16px;
    text-transform: uppercase;
}

.ui-modern .modern-empty-state i {
    color: var(--ui-blue-600);
    font-size: 34px;
}

.ui-modern .modern-empty-state h3 {
    font-size: 25px;
    margin: 18px 0 8px;
}

.ui-modern .modern-empty-state p {
    color: var(--ui-muted);
    margin: 0 auto;
    max-width: 560px;
}

.ui-modern .modern-empty-state-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.ui-modern .modern-empty-state-actions .btn,
.ui-modern .modern-empty-secondary {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
    min-width: 190px;
    padding: 0 24px;
}

.ui-modern .modern-empty-secondary {
    background: #fff;
    border: 1px solid var(--ui-line);
    color: var(--ui-blue-700);
    font-weight: 700;
}

.ui-modern .modern-empty-secondary:hover {
    border-color: var(--ui-blue-600);
    color: var(--ui-blue-700);
}

/* Agent profile and listings */
.ui-modern .modern-agent-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(0, 114, 206, 0.15), transparent 30%),
        #fff;
    isolation: isolate;
    overflow: hidden;
    padding: 42px 0 72px;
    position: relative;
}

.ui-modern .modern-agent-hero .modern-breadcrumb {
    color: var(--ui-muted);
}

.ui-modern .modern-agent-hero-grid {
    align-items: center;
    display: grid;
    gap: clamp(34px, 5vw, 64px);
    grid-template-columns: 230px minmax(0, 1fr) 150px;
    position: relative;
    z-index: 2;
}

.ui-modern .modern-agent-portrait {
    align-items: flex-end;
    background: linear-gradient(150deg, var(--ui-page), #fff);
    border: 1px solid var(--ui-line);
    border-radius: 28px;
    box-shadow: var(--ui-shadow-md);
    display: flex;
    height: 300px;
    justify-content: center;
    overflow: hidden;
}

.ui-modern .modern-agent-portrait img {
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    width: 100%;
}

.ui-modern .modern-agent-portrait img.modern-agent-placeholder {
    height: 130px;
    margin: auto;
    width: auto;
}

.ui-modern .modern-agent-intro .modern-agent-eyebrow {
    color: var(--ui-red-600);
}

.ui-modern .modern-agent-intro h1 {
    font-size: clamp(44px, 5vw, 70px);
    letter-spacing: -0.065em;
    line-height: 1;
    margin: 0;
}

.ui-modern .modern-agent-role {
    color: var(--ui-blue-600) !important;
    font-size: 14px !important;
    font-weight: 800;
    margin: 12px 0 0 !important;
}

.ui-modern .modern-agent-intro > p:not(.modern-agent-role) {
    color: var(--ui-muted);
    line-height: 1.75;
    margin: 22px 0 0;
    max-width: 720px;
}

.ui-modern .modern-agent-contact-actions {
    gap: 18px 24px;
}

.ui-modern .modern-agent-contact-actions .btn {
    margin: 0;
}

.ui-modern .modern-agent-contact-actions > .btn,
.ui-modern .modern-agent-contact-actions > .modern-agent-contact-button {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex !important;
    height: 48px;
    justify-content: center;
    line-height: 1 !important;
    min-height: 48px;
    padding: 0 22px !important;
    vertical-align: middle;
    white-space: nowrap;
}

.ui-modern .modern-agent-contact-actions > .modern-agent-contact-button i {
    flex: 0 0 auto;
    line-height: 1;
    margin: 0;
}

.ui-modern .modern-agent-contact-actions > a:not(.btn) {
    color: var(--ui-navy-950);
    font-size: 12px;
    font-weight: 700;
}

.ui-modern .modern-agent-contact-actions .modern-agent-contact-button {
    background: #fff;
}

.ui-modern .modern-agent-contact-actions i {
    color: var(--ui-blue-600);
    margin-right: 5px;
}

.ui-modern .modern-agent-office-link {
    color: var(--ui-blue-600);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 23px;
}

.ui-modern .modern-agent-stat {
    border-left: 1px solid var(--ui-line);
    margin: 0;
    padding: 24px 0 24px 30px;
}

.ui-modern .modern-agent-stat dt {
    color: var(--ui-blue-600);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.ui-modern .modern-agent-stat dd {
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.4;
    margin: 9px 0 0;
}

.ui-modern .modern-agent-workspace {
    padding: clamp(62px, 7vw, 94px) 0 110px;
}

.ui-modern .modern-agent-workspace-grid {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 350px;
}

.ui-modern .modern-agent-results {
    min-width: 0;
}

.ui-modern .modern-agent-filters {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-sm);
    display: grid;
    gap: 12px;
    grid-template-columns: 1.35fr repeat(3, minmax(130px, 0.8fr));
    margin-bottom: 30px;
    padding: 18px;
}

.ui-modern .modern-filter-field {
    display: block;
    margin: 0;
}

.ui-modern .modern-filter-field > span {
    color: var(--ui-muted);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 7px 3px;
    text-transform: uppercase;
}

.ui-modern .modern-filter-field input,
.ui-modern .modern-filter-field select {
    background: var(--ui-page);
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ui-ink);
    font-size: 12px;
    height: 48px;
    padding: 0 13px;
    width: 100%;
}

.ui-modern .modern-agent-filters .modern-filter-field > .nice-select {
    align-items: center;
    display: flex;
    float: none;
    height: 52px;
    line-height: 1.25;
    margin: 0;
    padding: 0 42px 0 16px;
    width: 100%;
}

.ui-modern .modern-agent-filters .nice-select .current {
    display: block;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-modern .modern-agent-filters .nice-select .list {
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    box-shadow: var(--ui-shadow-sm);
    left: 0;
    margin-top: 8px;
    max-height: min(46vh, 300px);
    min-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    right: 0;
    width: 100%;
    z-index: 30;
}

.ui-modern .modern-agent-filters .nice-select .option {
    line-height: 1.35;
    min-height: 42px;
    overflow-wrap: anywhere;
    padding: 11px 34px 11px 16px;
    white-space: normal;
}

.ui-modern .modern-agent-filters .btn-search {
    grid-column: 1 / -1;
    height: 48px;
    margin: 2px 0 0;
    width: 100%;
}

.ui-modern .modern-agent-contact-card {
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-md);
    padding: 30px;
    position: sticky;
    top: 108px;
}

.ui-modern .modern-agent-contact-card > p {
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 15px 0 24px;
}

.ui-modern .modern-agent-contact-form .form-group {
    margin-bottom: 15px;
}

.ui-modern .modern-agent-contact-form label {
    color: var(--ui-ink);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.ui-modern .modern-agent-contact-form .form-control {
    background: var(--ui-page);
    border-color: var(--ui-line);
    border-radius: 11px;
    font-size: 13px;
}

.ui-modern .modern-agent-contact-form input.form-control {
    height: 46px;
}

.ui-modern .modern-agent-contact-form textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

.ui-modern .modern-agent-contact-form .btn {
    margin: 6px 0 0;
    width: 100%;
}

@media only screen and (max-width: 1100px) {
    .ui-modern .modern-office-grid,
    .ui-modern .modern-directory-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-modern .modern-agent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ui-modern .modern-agent-hero-grid {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .ui-modern .modern-agent-stat {
        border-left: 0;
        grid-column: 2;
        padding: 0;
    }

    .ui-modern .modern-agent-workspace-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .ui-modern .modern-agent-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 900px) {
    .ui-modern .modern-directory-hero-grid,
    .ui-modern .modern-office-hero-grid,
    .ui-modern .modern-office-information-grid,
    .ui-modern .modern-agent-workspace-grid {
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-directory-search-card {
        max-width: 620px;
    }

    .ui-modern .modern-office-stats {
        grid-template-columns: repeat(2, minmax(0, 180px));
    }

    .ui-modern .modern-agent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-modern .modern-agent-contact-card {
        position: static;
    }
}

@media only screen and (max-width: 767px) {
    .ui-modern .modern-section-heading-split {
        align-items: flex-start;
        display: block;
    }

    .ui-modern .modern-section-heading-split > p {
        margin-top: 18px;
    }

    .ui-modern .modern-opportunity {
        display: block;
        min-height: 500px;
        padding: 40px 28px 180px;
    }

    .ui-modern .modern-opportunity-mark {
        bottom: 34px;
        position: absolute;
        right: 34px;
    }

    .ui-modern .modern-opportunity-mark img {
        max-height: 125px;
    }

    .ui-modern .modern-directory-hero,
    .ui-modern .modern-office-hero,
    .ui-modern .modern-agent-hero {
        padding-top: 28px;
    }

    .ui-modern .modern-breadcrumb {
        margin-bottom: 40px;
    }

    .ui-modern .modern-directory-search-row {
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-directory-search-row .btn {
        width: 100%;
    }

    .ui-modern .modern-office-grid,
    .ui-modern .modern-directory-insight-grid {
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-agent-hero-grid {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .ui-modern .modern-agent-portrait {
        border-radius: 20px;
        height: 210px;
    }

    .ui-modern .modern-agent-intro h1 {
        font-size: clamp(36px, 10vw, 54px);
    }

    .ui-modern .modern-agent-contact-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ui-modern .modern-agent-stat {
        grid-column: 1 / -1;
    }

    .ui-modern .modern-agent-filters {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 520px) {
    .ui-modern .main-slider .banner-search-wrap .nav-tabs {
        gap: 2px;
    }

    .ui-modern .modern-directory-intro h1,
    .ui-modern .modern-office-hero h1 {
        font-size: 40px;
    }

    .ui-modern .modern-directory-search-card,
    .ui-modern .modern-office-contact-card,
    .ui-modern .modern-agent-contact-card {
        padding: 22px;
    }

    .ui-modern .modern-office-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-modern .modern-contact-button-grid {
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-agent-contact-actions .modern-agent-contact-button {
        width: 100%;
    }

    .ui-modern .modern-agent-contact-actions > .btn {
        width: 100%;
    }

    .ui-modern .modern-agent-grid,
    .ui-modern .modern-agent-hero-grid {
        grid-template-columns: 1fr;
    }

    .ui-modern .modern-agent-portrait {
        height: 300px;
        max-width: 270px;
    }

    .ui-modern .modern-agent-stat {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-modern *,
    .ui-modern *::before,
    .ui-modern *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
