/**
 * Floor Plans — live (1440px): cream band; three cards to a 1152px row,
 * ~32px apart; photo 363 x 196px, white dots over its bottom edge; name
 * Open Sans 22px #333 centred; black "View Floorplan" button centred.
 */
.floorplans { padding: 40px 0 80px; }

.floorplans-heading { margin-bottom: 48px; }

.floorplans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 32px;
    max-width: 1152px;
    margin-inline: auto;
}

.floorplans-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.floorplans-slider,
.floorplans-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 363 / 196;
    overflow: hidden;
}

.floorplans-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.floorplans-slide.is-active { opacity: 1; }

.floorplans-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.floorplans-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.floorplans-dot.is-active { background: #ffffff; }
.floorplans-dot:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.floorplans-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-paragraph, "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--mh-text, #666666);
}

.floorplans-name {
    margin: 4px 0 0;
    font-family: var(--font-paragraph, "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    color: #333333;
}

@media (prefers-reduced-motion: reduce) {
    .floorplans-slide { transition: none; }
}

@media (max-width: 980px) {
    .floorplans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .floorplans-grid { grid-template-columns: 1fr; }
}
