.fmm-floor-map .fmm-map-wrapper {
    display: inline-block;
    position: relative;
}

.fmm-floor-map .fmm-map-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.fmm-floor-map .badge-custom {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}
.fmm-floor-map .badge-Rented { background: #f8d7da; color: #721c24; }
.fmm-floor-map .badge-Vacant { background: #d4edda; color: #155724; }
.fmm-floor-map .badge-Furnished { background: #cce5ff; color: #004085; }
.fmm-floor-map .badge-Unfurnished { background: #e2e3e5; color: #383d41; }

.fmm-floor-map .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 8px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}
.fmm-floor-map .icon-btn:hover { opacity: 0.9; color: #fff; }
.fmm-floor-map .icon-call { background: #0d6efd; }
.fmm-floor-map .icon-whatsapp { background: #25d366; }
.fmm-floor-map .icon-email { background: #6c757d; }

/* Bootstrap Icons - fallback if not loaded */
.fmm-floor-map .bi {
    width: 1em;
    height: 1em;
    display: inline-block;
}

/* ===== Filter bar ===== */
.fmm-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
}
.fmm-filter-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 8px;
    border: 2px solid var(--ast-global-color-0, var(--e-global-color-primary, #1e3a5f));
    background: transparent;
    color: var(--ast-global-color-0, var(--e-global-color-primary, #1e3a5f));
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}
.fmm-filter-btn:hover {
    background: var(--ast-global-color-0, var(--e-global-color-primary, #1e3a5f));
    color: #fff;
}
.fmm-filter-btn.is-active {
    background: var(--ast-global-color-0, var(--e-global-color-primary, #1e3a5f));
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== Grid cards (shared) ===== */
.fmm-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.fmm-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.fmm-card-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.fmm-card-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: -14px;
}

/* ===== Modern style ===== */
.fmm-style-modern .fmm-area-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}
.fmm-style-modern .fmm-area-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}
.fmm-style-modern .fmm-card-img-wrap {
    padding: 14px 14px 0;
}
.fmm-style-modern .fmm-card-img {
    border-radius: 14px;
}
.fmm-style-modern .fmm-card-placeholder {
    background: #f3f4f6;
    color: #b0b8c1;
    border-radius: 14px;
    margin: 14px 14px 0;
    width: calc(100% - 28px);
}
.fmm-style-modern .card-body {
    padding: 12px 22px 22px;
}
.fmm-style-modern .card-title {
    color: var(--ast-global-color-0, var(--e-global-color-primary, #1e3a5f));
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}
.fmm-style-modern .fmm-card-desc {
    color: #555;
    font-size: 0.92em;
    line-height: 1.55;
    margin-bottom: 10px;
}
.fmm-style-modern .fmm-card-meta {
    color: #888;
    font-size: 0.85em;
    margin-bottom: 8px;
}
.fmm-style-modern .fmm-card-price {
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 12px;
    color: #222;
}
.fmm-style-modern .fmm-card-price span {
    font-weight: 400;
    font-size: 0.85em;
    color: #777;
}
.fmm-style-modern .badge-custom {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.78em;
    font-weight: 600;
}
.fmm-style-modern .fmm-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.fmm-style-modern .fmm-card-contacts {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* ===== Glossy (Apple-inspired) style ===== */
.fmm-style-glossy .fmm-area-card {
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #f5f7fa 50%, #e8ecf1 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}
.fmm-style-glossy .fmm-area-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-4px);
}
.fmm-style-glossy .fmm-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.fmm-style-glossy .fmm-card-img {
    border-radius: 0;
}
.fmm-style-glossy .fmm-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}
.fmm-style-glossy .fmm-card-placeholder {
    background: linear-gradient(165deg, #f0f2f5 0%, #e3e6ea 100%);
    color: #b0b8c1;
}
.fmm-style-glossy .card-body {
    padding: 12px 20px 20px;
}
.fmm-style-glossy .card-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}
.fmm-style-glossy .fmm-card-desc {
    color: #555;
    font-size: 0.92em;
    line-height: 1.5;
    margin-bottom: 10px;
}
.fmm-style-glossy .fmm-card-meta {
    color: #888;
    font-size: 0.85em;
    margin-bottom: 8px;
}
.fmm-style-glossy .fmm-card-price {
    font-weight: 700;
    margin-bottom: 12px;
}
.fmm-style-glossy .fmm-card-price span {
    font-weight: 400;
    font-size: 0.85em;
    color: #777;
}
.fmm-style-glossy .fmm-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.fmm-style-glossy .fmm-card-contacts {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.fmm-style-glossy .badge-custom {
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.fmm-style-glossy .badge-Vacant {
    background: linear-gradient(135deg, #d4edda 0%, #b7dfbf 100%);
    color: #155724;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.fmm-style-glossy .badge-Rented {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.fmm-style-glossy .badge-Furnished {
    background: linear-gradient(135deg, #cce5ff 0%, #a8d4ff 100%);
    color: #004085;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.fmm-style-glossy .badge-Unfurnished {
    background: linear-gradient(135deg, #e9ecef 0%, #d6d9dc 100%);
    color: #383d41;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.fmm-style-glossy .icon-btn {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
}
.fmm-style-glossy .icon-call {
    background: linear-gradient(180deg, #3d8bfd 0%, #0d6efd 100%);
}
.fmm-style-glossy .icon-whatsapp {
    background: linear-gradient(180deg, #34eb7a 0%, #25d366 100%);
}
.fmm-style-glossy .icon-email {
    background: linear-gradient(180deg, #8c959d 0%, #6c757d 100%);
}
