/* =============================================================================
   Featured Home Tours by Region — style.css
   Prefix: lx-featured-home-tours-by-region-
   Helper classes on section: lx-fhtbr-*
   All rules scoped under .lx-featured-home-tours-by-region-section
   ============================================================================= */

/* ── Section & Container ──────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section {
    padding: 0;
    margin: 0;
    position: relative;
    font-family: "Instrument Sans", sans-serif;
    color: #000;
    line-height: 1.6;
    box-sizing: border-box;
}

.lx-featured-home-tours-by-region-section *,
.lx-featured-home-tours-by-region-section *::before,
.lx-featured-home-tours-by-region-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

/* ── Header visibility toggle ─────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-header {
    display: none;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.lx-featured-home-tours-by-region-section.lx-fhtbr-show-header
.lx-featured-home-tours-by-region-header {
    display: flex;
}

/* ── Title ────────────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    flex: 1;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title {
    font-family: "Libre Caslon Display", serif;
    font-size: 40px;
    line-height: 48px;
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title-text {
    margin-right: 0;
}

/* ── "in" prefix — hidden unless regions shown ────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title-in {
    display: none;
}

.lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-regions
.lx-featured-home-tours-by-region-title-in {
    display: inline;
}

/* ── Region wrapper — hidden unless .lx-featured-home-tours-by-region-show-regions ──────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-region-wrapper {
    display: none;
    align-items: center;
    gap: 0;
    position: relative;
}

.lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-regions
.lx-featured-home-tours-by-region-region-wrapper {
    display: inline-flex;
}

/* ── Location trigger ─────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-location {
    font-family: "Libre Caslon Display", serif;
    font-size: 40px;
    line-height: 48px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid #000;
    width: fit-content;
    max-width: 100%;
}

/* ── Dropdown arrow ───────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-arrow {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    font-size: 32px;
    transition: transform 0.3s ease;
    text-decoration: none;
    margin-left: 12px;
    padding-top: 16px;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-arrow.open {
    transform: rotate(180deg);
    padding-top: 0;
}

/* ── Dropdown panel ───────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 420px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-10px);
    transform-origin: top left;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* ── Dropdown items ───────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-item {
    padding: 12px 16px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-item:hover {
    background-color: #f5f5f5;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-item.lx-fhtbr-item-active {
    font-weight: 600;
    background-color: #f9f9f9;
}

/* ── SEE ALL — hidden by default; .lx-featured-home-tours-by-region-show-see-all shows it ── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-see-all {
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 0 32px;
    height: 48px;
    min-width: 64px;
    border-radius: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}

.lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-see-all
.lx-featured-home-tours-by-region-see-all {
    display: inline-flex;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-see-all:hover {
    background-color: #000;
    color: #fff;
}

/* ── Featured row — hidden by default; .lx-featured-home-tours-by-region-show-featured-row shows it ── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-row {
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 48px;
}

.lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-featured-row
.lx-featured-home-tours-by-region-featured-row {
    display: grid;
}

/* ── Featured wrapper ─────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-wrapper {
    display: flex;
    flex-direction: column;
}

/* ── Featured main image ──────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-main {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-image-wrapper {
    overflow: hidden;
    display: block;
    height: 100%;
    min-height: 400px;
    background-color: #e5e5e5;
}

/* Image wrapper doubles as the featured post link */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-link {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* Scale image on hover of the whole panel */
.lx-featured-home-tours-by-region-section
.lx-featured-home-tours-by-region-featured-main:hover
.lx-featured-home-tours-by-region-featured-image {
    transform: scale(1.05);
}



.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-badge {
    position: absolute;
    top: 32px;
    left: 32px;
    background: #fff;
    padding: 6px 16px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    text-transform: capitalize;
    letter-spacing: initial;
    z-index: 10;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
    color: #000;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform 0.5s ease;
}

.lx-featured-home-tours-by-region-section
.lx-featured-home-tours-by-region-image-wrapper:hover
.lx-featured-home-tours-by-region-featured-image {
    transform: scale(1.05);
}

.lx-featured-home-tours-by-region-section
.lx-featured-home-tours-by-region-collage-item:hover
.lx-featured-home-tours-by-region-collage-image,
.lx-featured-home-tours-by-region-section
.lx-featured-home-tours-by-region-article-image-wrapper:hover
.lx-featured-home-tours-by-region-article-image {
    transform: scale(1.05);
}

/* ── Overlay + featured title ─────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.04) 40%,
        rgba(0, 0, 0, 0.45) 75%,
        rgba(0, 0, 0, 0.65) 100%
    );
    pointer-events: none;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-title {
    font-family: "Libre Caslon Display", serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    color: #fff;
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 10;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-cats a {
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    text-align: left;
    color: #ffffff;
    width: auto;
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: underline;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-title-link {
    font-family: "Libre Caslon Display", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    display: block;
}
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-title-link:hover {
    text-decoration: none !important;
}

/* ── Featured title — categories row (Home Tours • Region Name) ───────────── */
/* Sits above the article title inside .lx-featured-home-tours-by-region-featured-title */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* Dot separator between category items */
.lx-featured-home-tours-by-region-section
.lx-featured-home-tours-by-region-featured-cats
.lx-featured-home-tours-by-region-article-category-dot {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #ffffff;
}

/* Category links and plain-text spans inside the featured-cats row */
.lx-featured-home-tours-by-region-section
.lx-featured-home-tours-by-region-featured-cats
.lx-featured-home-tours-by-region-article-category {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: underline;
    color: #ffffff;
}

/* ── Mobile collage ───────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-collage {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.5s ease,
        opacity 0.5s ease,
        margin-top 0.5s ease;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-collage.show {
    display: grid;
    max-height: 2000px;
    opacity: 1;
    margin-top: 8px;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-collage-desktop {
    display: none;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-collage-item {
    overflow: hidden;
    display: block;
    width: 100%;
    min-height: 336px;
    background-color: #e5e5e5;
    text-decoration: none;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-collage-image {
    width: 100%;
    height: 100%;
    max-height: 336px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform 0.5s ease;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-collage-caption {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    color: #666;
    padding: 6px 0 0;
    display: none; /* captions hidden in collage view — show if needed */
}

/* ── Gallery toggle button ────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-gallery-toggle {
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 0 32px;
    height: 48px;
    min-width: 64px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    background: #fff;
    width: 100%;
    margin-top: 16px;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-gallery-toggle:hover {
    background-color: #000;
    color: #fff;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-gallery-chevron {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-gallery-chevron.open {
    transform: rotate(180deg);
}

/* ── Article grid ─────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    transition: opacity 0.3s ease;
}

.lx-featured-home-tours-by-region-section.lx-fhtbr-is-loading
.lx-featured-home-tours-by-region-grid {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Article card ─────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-card {
    text-decoration: none;
    color: #000;
    display: block;
}

/* ── Article image wrapper ────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-image-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-bottom: 24px;
    min-height: 336px;
    background-color: #e5e5e5;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-image-wrapper a {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-image {
    width: 100%;
    height: auto;
    min-height: 336px;
    max-height: 336px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform 0.5s ease;
}

/* ── Gold flag ────────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-gold-flag {
    display: none;
    position: absolute;
    top: 0;
    right: 24px;
    z-index: 11;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
}

.lx-featured-home-tours-by-region-section .lx-fhtbr-article-is-gold-list
.lx-featured-home-tours-by-region-article-gold-flag {
    display: block;
}

/* ── Year badges ──────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-badges {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-badge {
    background-color: #ffffff;
    padding: 8px 20px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
    color: #000000;
    line-height: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* ── Category labels ──────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-categories {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-category {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: underline;
    background: transparent;
    border: none;
    color: #000;
    transition: opacity 0.2s ease;
}


/* ── Article title ────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-title {
    font-family: "Libre Caslon Display", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-title a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    transition: opacity 0.2s ease;
    display: block;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-title a:hover {
    opacity: 0.7;
}

/* ── No results ───────────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-no-results {
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
    padding: 32px 0;
}

/* ── Loading overlay ──────────────────────────────────────────────────────── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.lx-featured-home-tours-by-region-section.lx-fhtbr-is-loading
.lx-featured-home-tours-by-region-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-loading-spinner {
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #000;
    border-radius: 50%;
    animation: lx-fhtbr-spin 0.7s linear infinite;
}

@keyframes lx-fhtbr-spin {
    to { transform: rotate(360deg); }
}

/* ── Load More — hidden by default; .lx-featured-home-tours-by-region-show-load-more shows it ── */
.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-load-more-wrapper {
    display: none;
    justify-content: center;
    margin-top: 48px;
}

.lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-load-more
.lx-featured-home-tours-by-region-load-more-wrapper {
    display: flex;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-load-more {
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1.8px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 0 32px;
    height: 48px;
    min-width: 64px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    background: #fff;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-load-more:hover {
    background-color: #000;
    color: #fff;
}

.lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-load-more.is-loading {
    opacity: 0.6;
    cursor: wait;
}

/* ── 2-col — tablet ───────────────────────────────────────────────────────── */
@media (min-width: 800px) {
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        row-gap: 24px;
    }
}

/* ── Desktop — min-width: 1280px ──────────────────────────────────────────── */
@media (min-width: 1280px) {
    .lx-featured-home-tours-by-region-section {
        padding: 64px 0;
        margin: 0;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-header {
        margin-bottom: 40px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title {
        font-size: 48px;
        line-height: 56px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-location {
        font-size: 48px;
        line-height: 56px;
    }

    /* Featured row layout — flex, side by side */
    .lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-featured-row
    .lx-featured-home-tours-by-region-featured-row {
        display: flex;
        gap: 8px;
        margin-bottom: 48px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-wrapper {
        max-width: 40%;
        width: 40%;
        flex-shrink: 0;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-main {
        min-height: 517px;
        height: 517px;
        width: 100%;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-image-wrapper {
        min-height: 517px;
    }

    /* Hide mobile collage & toggle on desktop */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-collage {
        display: none !important;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-gallery-toggle {
        display: none;
    }

    /* Desktop collage grid */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-collage-desktop {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        min-height: 517px;
        height: 517px;
        width: calc(60% - 8px);
        max-width: calc(60% - 8px);
        flex-shrink: 0;
        align-content: space-between;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-collage-item {
        min-height: calc(50% - 4px);
        height: calc(50% - 4px);
        flex-shrink: 0;
    }

    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-collage-item:nth-child(1) {
        width: calc(40% - 4px);
    }

    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-collage-item:nth-child(2) {
        width: calc(60% - 4px);
    }

    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-collage-item:nth-child(3) {
        width: calc(60% - 4px);
    }

    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-collage-item:nth-child(4) {
        width: calc(40% - 4px);
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-collage-image {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: 50% 50%;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-featured-title {
        font-size: 32px;
        line-height: 40px;
        bottom: 32px;
        left: 32px;
        right: 32px;
    }

    /* Article grid — 3 columns on desktop */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        row-gap: 24px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-image {
        min-height: 620px;
        max-height: 620px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-article-image-wrapper {
        min-height: 620px;
    }
}

/* ── Mobile — stacked title + dropdown ───────────────────────────────────── */
@media (max-width: 799px) {
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-arrow {
        font-size: 24px;
        line-height: 24px;
    }
}

@media (max-width: 620px) {
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-location {
        font-size: 24px;
        line-height: 32px;
    }

    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title {
        font-size: 32px;
        line-height: 40px;
    }
}

/* ── ≤800px — header stacking, inline title + wrappable region row ────────── */
@media (max-width: 800px) {

    /* Header: stack children vertically, stretch to full width */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-header {
        flex-direction: column;
        align-items: stretch;
    }

    /* Title wrapper stays first */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title-wrapper {
        order: 1;
    }

    /* SEE ALL: full-width block, stacks below the title */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-see-all {
        order: 2;
        width: 100%;
        /* Keep display:none default; show-see-all rule below overrides */
    }

    .lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-see-all
    .lx-featured-home-tours-by-region-see-all {
        display: flex; /* block-level full-width flex, not inline-flex */
    }

    /* ── Title: switch from flex to block so span children flow as inline text.
       This means title-text + title-in ("View Home Tours" + " in") naturally
       run together on one wrappable line; the region-wrapper <div> then starts
       on its own line as a normal block element. ────────────────────────────── */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title {
        display: block;
        /* font-size / line-height inherited from the ≤620px rule (32px / 40px) */
    }

    /* Ensure title-text stays inline (it is by default, but be explicit) */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-title-text {
        display: inline;
    }

    /* "in" only shows when regions are enabled — mirrors the base rule */
    .lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-regions
    .lx-featured-home-tours-by-region-title-in {
        display: inline;
    }

    /* ── Region wrapper: flex row below the title text — only when regions enabled ── */
    .lx-featured-home-tours-by-region-section.lx-featured-home-tours-by-region-show-regions
    .lx-featured-home-tours-by-region-region-wrapper {
        display: flex;          /* block-level flex, not inline-flex              */
        align-items: flex-start;/* arrow pins to top when region name wraps       */
        width: fit-content;     /* only as wide as the content                    */
        max-width: 100%;
        margin-top: 12px;       /* breathing room below "…in" text                */
    }

    /* ── Location text: same size as title, wrappable ───────────────────────── */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-location {
        font-size: 32px;        /* match title — overrides the 24px from ≤620px   */
        line-height: 40px;
        white-space: normal;    /* allow long region names to wrap                */
        word-break: break-word;
        flex: 0 1 auto;         /* don't force-grow; stay content-width           */
        min-width: 0;
    }

    /* ── Dropdown arrow: pin to top, match visual weight of title ────────────── */
    .lx-featured-home-tours-by-region-section .lx-featured-home-tours-by-region-dropdown-arrow {
        flex-shrink: 0;
        align-self: flex-start;
        width: 28px;
        height: auto;
        font-size: 22px;
        /* Nudge down ~9px to optically centre the chevron on the first text line */
        padding-top: 9px;
        margin-left: 10px;
    }
}

/* ── Partner Content card ─────────────────────────────────────────────────── */

/* Outer card wrapper — sits in normal grid flow                                */
.lx-featured-home-tours-by-region-section .lx-fhtbr-partner-card {
    display: block;
}

/* ── Placeholder card (shown when no Placement ID is configured) ─────────── */

/* Image wrapper — identical dimensions to .lx-featured-home-tours-by-region-article-image-wrapper */
.lx-featured-home-tours-by-region-section .lx-fhtbr-partner-image-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 336px;
    background-color: #e5e5e5;
}

/* Fill div — stretches to cover the entire wrapper */
.lx-featured-home-tours-by-region-section .lx-fhtbr-partner-img-fill {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e5e5;
}

/* Centred label inside the grey image area */
.lx-featured-home-tours-by-region-section .lx-fhtbr-partner-img-label {
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #999;
}

/* ── Desktop overrides ───────────────────────────────────────────────────── */
@media (min-width: 1280px) {
    .lx-featured-home-tours-by-region-section .lx-fhtbr-partner-image-wrap {
        min-height: 620px;
    }
}

/* ── Desktop collage: count-aware layout variants (1 / 2 / 3 images) ─────────
   4 images → existing rules apply unchanged (40/60 widths, two half-height rows)
   We use :has() so each rule reacts to the live DOM automatically after every
   AJAX region switch — no JS or PHP changes required.
   ─────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {

    /* ── 1 image — single item fills the full collage width and height ───── */
    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-featured-collage-desktop:has(
        > .lx-featured-home-tours-by-region-collage-item:only-child
    )
    .lx-featured-home-tours-by-region-collage-item {
        width: 100%;
        height: 100%;
        min-height: 100%;
    }

    /* ── 2 images — side by side, each 50% wide, full height ────────────── */
    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-featured-collage-desktop:has(
        > .lx-featured-home-tours-by-region-collage-item:nth-child(2):last-child
    )
    .lx-featured-home-tours-by-region-collage-item {
        width: calc(50% - 4px);
        height: 100%;
        min-height: 100%;
        flex-shrink: 0;
    }

    /* ── 3 images — top row: items 1 & 2 at 50% wide / 50% tall
                     bottom row: item 3 at 100% wide / 50% tall ─────────── */
    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-featured-collage-desktop:has(
        > .lx-featured-home-tours-by-region-collage-item:nth-child(3):last-child
    )
    .lx-featured-home-tours-by-region-collage-item {
        height: calc(50% - 4px);
        min-height: calc(50% - 4px);
        flex-shrink: 0;
    }

    /* items 1 & 2: equal half-width columns */
    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-featured-collage-desktop:has(
        > .lx-featured-home-tours-by-region-collage-item:nth-child(3):last-child
    )
    .lx-featured-home-tours-by-region-collage-item:nth-child(1),
    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-featured-collage-desktop:has(
        > .lx-featured-home-tours-by-region-collage-item:nth-child(3):last-child
    )
    .lx-featured-home-tours-by-region-collage-item:nth-child(2) {
        width: calc(50% - 4px);
    }

    /* item 3: full-width bottom strip */
    .lx-featured-home-tours-by-region-section
    .lx-featured-home-tours-by-region-featured-collage-desktop:has(
        > .lx-featured-home-tours-by-region-collage-item:nth-child(3):last-child
    )
    .lx-featured-home-tours-by-region-collage-item:nth-child(3) {
        width: 100%;
    }
}

/* ── Gutenberg editor preview ─────────────────────────────────────────────── */
.block-editor-block-list__block .lx-featured-home-tours-by-region-section {
    pointer-events: none;
}

/* Ensure partner placeholder image area has explicit height in the editor     */
.block-editor-block-list__block .lx-fhtbr-partner-image-wrap {
    height: 336px;
}

.block-editor-block-list__block .lx-fhtbr-partner-img-fill {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
}