/**
 * Flooring Calculator — Zone-First Wizard Styles
 * Sage & Cream editorial theme — matches countertop-wizard.css design language
 */

/* ─────────────────────────────────────────────────────────────── *
 *  Zone Cards                                                      *
 * ─────────────────────────────────────────────────────────────── */
.flr-zones-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.flr-zone-card {
    background: var(--ct-surface, #fff);
    border: 2px solid var(--ct-border, #e7e5e0);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.flr-zone-card:hover {
    border-color: var(--ct-primary-light, #a8c5a5);
    box-shadow: 0 4px 16px rgba(88, 129, 87, 0.10);
}

.flr-zone-card.flr-zone-selected {
    border-color: var(--ct-primary, #588157) !important;
    box-shadow: 0 6px 20px rgba(88, 129, 87, 0.16) !important;
}

/* ── Zone header ────────────────────────────────────────────── */
.flr-zone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--ct-bg, #fafaf8);
    border-bottom: 1px solid var(--ct-border, #e7e5e0);
    gap: 12px;
}

.flr-zone-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.flr-zone-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ct-primary, #588157);
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

.flr-zone-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--ct-text, #1c1917);
}

.flr-zone-meta-detail {
    font-size: 13px;
    color: var(--ct-muted, #78716c);
    white-space: nowrap;
}

.flr-zone-price-badge {
    font-size: 15px;
    font-weight: 700;
    color: var(--ct-primary, #588157);
    white-space: nowrap;
    background: var(--ct-primary-tint, #eff4ee);
    padding: 4px 12px;
    border-radius: 20px;
}

.flr-zone-price-badge.flr-price-pending {
    color: var(--ct-muted, #78716c);
    background: transparent;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Category Pills                                                  *
 * ─────────────────────────────────────────────────────────────── */
.flr-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ct-border, #e7e5e0);
}

.flr-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--ct-border, #e7e5e0);
    background: var(--ct-surface, #fff);
    color: var(--ct-text, #1c1917);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1;
}

.flr-pill:hover {
    border-color: var(--ct-primary, #588157);
    color: var(--ct-primary, #588157);
}

/* Smart-default hint: soft tint to suggest but not commit */
.flr-pill.flr-pill-hint {
    border-color: var(--ct-primary-light, #a8c5a5);
    background: var(--ct-primary-tint, #eff4ee);
    color: var(--ct-primary, #588157);
}

/* Active: fully selected */
.flr-pill.flr-pill-active {
    border-color: var(--ct-primary, #588157) !important;
    background: var(--ct-primary, #588157) !important;
    color: #fff !important;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Item Grid                                                       *
 * ─────────────────────────────────────────────────────────────── */
.flr-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ct-border, #e7e5e0);
}

.flr-item-grid.flr-item-grid-hidden {
    display: none;
}

.flr-item-card {
    display: flex;
    flex-direction: column;
    background: var(--ct-surface, #fff);
    border: 1.5px solid var(--ct-border, #e7e5e0);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}

.flr-item-card:hover {
    border-color: var(--ct-primary-light, #a8c5a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(88, 129, 87, 0.14);
}

.flr-item-card.flr-item-selected {
    border: 3px solid var(--ct-primary, #588157) !important;
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.25), 0 6px 20px rgba(88, 129, 87, 0.28) !important;
    transform: translateY(-2px);
}

.flr-item-card.flr-item-selected .flr-item-info {
    background: var(--ct-primary, #588157);
}

.flr-item-card.flr-item-selected .flr-item-name {
    color: #fff;
}

.flr-item-card.flr-item-selected .flr-item-price {
    color: rgba(255, 255, 255, 0.85);
}

.flr-item-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--ct-bg, #fafaf8);
}

.flr-item-img-placeholder {
    background: linear-gradient(135deg, var(--ct-primary-tint, #eff4ee) 0%, var(--ct-border, #e7e5e0) 100%);
}

.flr-item-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flr-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-text, #1c1917);
    line-height: 1.3;
}

.flr-item-price {
    font-size: 12px;
    color: var(--ct-primary, #588157);
    font-weight: 600;
}

.flr-item-empty {
    font-size: 13px;
    color: var(--ct-muted, #78716c);
    font-style: italic;
    padding: 4px 0;
    grid-column: 1 / -1;
}

.flr-item-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.flr-item-wrap .flr-item-card {
    flex: 1;
}

.flr-zoom-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
    z-index: 2;
}

.flr-item-wrap:hover .flr-zoom-btn,
.flr-zoom-btn:focus-visible {
    opacity: 1;
}

.flr-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* Always visible on touch devices */
@media (hover: none) {
    .flr-zoom-btn {
        opacity: 1;
    }
}

/* ─────────────────────────────────────────────────────────────── *
 *  Finish Zoom Lightbox                                            *
 * ─────────────────────────────────────────────────────────────── */
#flr-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#flr-lightbox.flr-lightbox-open {
    display: flex;
}

#flr-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

#flr-lightbox-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

#flr-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}

#flr-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

#flr-lightbox-img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    background: var(--ct-bg, #fafaf8);
    display: block;
}

#flr-lightbox-footer {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--ct-border, #e7e5e0);
    flex-shrink: 0;
}

#flr-lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

#flr-lightbox-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ct-text, #1c1917);
    line-height: 1.3;
}

#flr-lightbox-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-primary, #588157);
}

#flr-lightbox-select {
    flex-shrink: 0;
    background: var(--ct-primary, #588157);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

#flr-lightbox-select:hover {
    background: var(--ct-primary-dark, #3e5e3a);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────── *
 *  Override Accordion                                              *
 * ─────────────────────────────────────────────────────────────── */
.flr-override-details {
    border-top: 1px solid var(--ct-border, #e7e5e0);
}

.flr-override-summary {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--ct-muted, #78716c);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.flr-override-summary::marker,
.flr-override-summary::-webkit-details-marker {
    display: none;
}

.flr-override-summary::before {
    content: '▸';
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}

.flr-override-details[open] .flr-override-summary::before {
    transform: rotate(90deg);
}

.flr-override-summary:hover {
    color: var(--ct-text, #1c1917);
}

.flr-override-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--ct-gold, #c9a84c);
    color: #fff;
}

.flr-override-rooms {
    padding: 8px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Room Override Cards                                             *
 * ─────────────────────────────────────────────────────────────── */
.flr-room-override-card {
    background: var(--ct-bg, #fafaf8);
    border: 1px solid var(--ct-border, #e7e5e0);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s;
}

.flr-room-override-card.flr-room-overridden {
    border-color: var(--ct-gold, #c9a84c);
    background: #fffdf5;
}

.flr-room-override-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.flr-room-name {
    flex: 1;
    min-width: 110px;
    padding: 6px 10px;
    border: 1px solid var(--ct-border, #e7e5e0);
    border-radius: 6px;
    font-size: 13px;
    background: var(--ct-surface, #fff);
    color: var(--ct-text, #1c1917);
}

.flr-room-dims {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.flr-room-dims input[type="number"] {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid var(--ct-border, #e7e5e0);
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: var(--ct-surface, #fff);
    color: var(--ct-text, #1c1917);
}

.flr-dims-x {
    font-size: 14px;
    color: var(--ct-muted, #78716c);
}

.flr-room-sqft-display {
    font-size: 12px;
    color: var(--ct-muted, #78716c);
    white-space: nowrap;
    min-width: 64px;
}

.flr-room-remove-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ct-muted, #78716c);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.flr-room-remove-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.flr-room-override-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.flr-override-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--ct-muted, #78716c);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    min-width: 160px;
}

.flr-override-label select {
    padding: 6px 10px;
    border: 1px solid var(--ct-border, #e7e5e0);
    border-radius: 6px;
    font-size: 13px;
    background: var(--ct-surface, #fff);
    color: var(--ct-text, #1c1917);
}

.flr-room-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.flr-room-extra-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ct-text, #1c1917);
    cursor: pointer;
}

.flr-extra-cost {
    font-size: 12px;
    color: var(--ct-muted, #78716c);
}

.flr-room-customize-btn {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--ct-primary, #588157);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.flr-room-customize-btn:hover {
    color: var(--ct-primary-dark, #3e5e3a);
}

/* ─────────────────────────────────────────────────────────────── *
 *  Add Room Button                                                 *
 * ─────────────────────────────────────────────────────────────── */
.flr-add-room-wrap {
    text-align: center;
    margin: 8px 0 24px;
}

.flr-btn-add-room {
    background: var(--ct-primary-tint, #eff4ee);
    border: 1.5px dashed var(--ct-primary, #588157);
    color: var(--ct-primary, #588157);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-style 0.2s, transform 0.15s;
}

.flr-btn-add-room:hover {
    background: #deeddc;
    border-style: solid;
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────── *
 *  Empty State                                                     *
 * ─────────────────────────────────────────────────────────────── */
.flr-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ct-muted, #78716c);
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Loading State                                                   *
 * ─────────────────────────────────────────────────────────────── */
.flr-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--ct-muted, #78716c);
    font-size: 14px;
}

.flr-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--ct-border, #e7e5e0);
    border-top-color: var(--ct-primary, #588157);
    border-radius: 50%;
    animation: flr-spin 0.7s linear infinite;
}

@keyframes flr-spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────── *
 *  Step 2 — Demo & Baseboard                                       *
 * ─────────────────────────────────────────────────────────────── */
.flr-demo-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.flr-demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flr-demo-label {
    min-width: 130px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-text, #1c1917);
}

.flr-demo-select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1.5px solid var(--ct-border, #e7e5e0);
    border-radius: 8px;
    font-size: 14px;
    background: var(--ct-surface, #fff);
    color: var(--ct-text, #1c1917);
}

.flr-baseboard-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ct-border, #e7e5e0);
}

.flr-baseboard-section h4 {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--ct-text, #1c1917);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Step 3 — Summary                                                *
 * ─────────────────────────────────────────────────────────────── */
.flr-estimate-breakdown {
    background: var(--ct-bg, #fafaf8);
    border: 1px solid var(--ct-border, #e7e5e0);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.flr-estimate-breakdown h4 {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--ct-text, #1c1917);
    font-weight: 700;
}

.flr-line-items {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 240px;
    overflow-y: auto;
}

.flr-li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ct-muted, #78716c);
    padding: 3px 0;
    gap: 12px;
}

.flr-li-desc {
    flex: 1;
}

.flr-li-amount {
    font-weight: 600;
    color: var(--ct-text, #1c1917);
    white-space: nowrap;
}

.flr-breakdown-totals {
    border-top: 1px solid var(--ct-border, #e7e5e0);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flr-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ct-text, #1c1917);
}

.flr-breakdown-row span:last-child {
    font-weight: 600;
}

.flr-breakdown-total {
    border-top: 2px solid var(--ct-primary, #588157);
    padding-top: 8px;
    margin-top: 4px;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ct-primary, #588157) !important;
}

.flr-breakdown-total span { color: var(--ct-primary, #588157) !important; }

/* ─────────────────────────────────────────────────────────────── *
 *  Sticky Price Bar                                                *
 * ─────────────────────────────────────────────────────────────── */
.flr-price-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 2px solid var(--ct-border, #e7e5e0);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
    pointer-events: none;
}

.flr-price-bar.flr-price-bar-nonzero {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    border-top-color: var(--ct-primary, #588157);
}

.flr-price-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-muted, #78716c);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flr-price-bar-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--ct-primary, #588157);
}

/* ─────────────────────────────────────────────────────────────── *
 *  Validation Error Banner                                         *
 * ─────────────────────────────────────────────────────────────── */
.flr-validation-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Step intro                                                      *
 * ─────────────────────────────────────────────────────────────── */
.flr-step-intro {
    margin-bottom: 20px;
}

.flr-step-intro h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--ct-text, #1c1917);
    font-weight: 700;
}

.flr-step-intro p {
    margin: 0;
    font-size: 14px;
    color: var(--ct-muted, #78716c);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Nav buttons                                                     *
 * ─────────────────────────────────────────────────────────────── */
.flr-btn-next,
.flr-btn-back {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: none;
}

.flr-btn-next {
    background: var(--ct-primary, #588157);
    color: #fff;
}

.flr-btn-next:hover {
    background: var(--ct-primary-dark, #3e5e3a);
    transform: translateY(-1px);
}

.flr-btn-back {
    background: transparent;
    color: var(--ct-muted, #78716c);
    border: 1.5px solid var(--ct-border, #e7e5e0);
}

.flr-btn-back:hover {
    background: var(--ct-bg, #fafaf8);
    color: var(--ct-text, #1c1917);
}

/* ─────────────────────────────────────────────────────────────── *
 *  Responsive                                                      *
 * ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .flr-zone-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 14px;
    }

    .flr-category-pills {
        padding: 10px 14px;
        gap: 6px;
        /* Single scrollable row — no wrapping on mobile */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .flr-category-pills::-webkit-scrollbar {
        display: none;
    }
    /* Pills stay full size and don't shrink */
    .flr-category-pills .flr-pill {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 13px;
    }

    .flr-item-grid {
        /* Hard 2-column grid — consistent, no single orphan cards */
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 14px;
        gap: 10px;
    }

    .flr-override-rooms {
        padding: 8px 14px 12px;
    }

    .flr-room-override-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .flr-room-name {
        width: 100%;
    }

    .flr-price-bar-total {
        font-size: 18px;
    }

    .flr-mode-btn-group {
        flex-direction: column;
    }
}

/* ─────────────────────────────────────────────────────────────── *
 *  Model Home Cards Grid                                          *
 * ─────────────────────────────────────────────────────────────── */
.flr-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}

.flr-model-card {
    border: 2px solid var(--ct-border, #e7e5e0);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--ct-surface, #fff);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    display: flex;
    flex-direction: column;
}

.flr-model-card:hover {
    border-color: var(--ct-primary-light, #a8c5a5);
    box-shadow: 0 4px 16px rgba(88, 129, 87, 0.12);
    transform: translateY(-2px);
}

.flr-model-card.flr-model-selected {
    border-color: var(--ct-primary, #588157) !important;
    box-shadow: 0 4px 20px rgba(88, 129, 87, 0.22) !important;
}

.flr-mc-hidden {
    display: none !important;
}

/* Image */
.flr-mc-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--ct-bg, #fafaf8);
}

.flr-mc-img-wrap img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.flr-mc-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--ct-primary-tint, #eff4ee) 0%, var(--ct-border, #e7e5e0) 100%);
}

.flr-mc-zoom-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flr-mc-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* Card body */
.flr-mc-body {
    padding: 11px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.flr-mc-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ct-text, #1c1917);
    line-height: 1.3;
}

.flr-mc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.flr-mc-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--ct-bg, #fafaf8);
    border: 1px solid var(--ct-border, #e7e5e0);
    color: var(--ct-muted, #78716c);
    white-space: nowrap;
}

.flr-mc-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--ct-primary, #588157);
    margin-top: auto;
}

/* See More button */
.flr-see-more-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 0;
    background: transparent;
    border: 1.5px dashed var(--ct-border, #e7e5e0);
    border-radius: 8px;
    color: var(--ct-muted, #78716c);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.flr-see-more-btn:hover {
    border-color: var(--ct-primary, #588157);
    color: var(--ct-primary, #588157);
    background: var(--ct-primary-tint, #eff4ee);
    border-style: solid;
}

@media (max-width: 680px) {
    .flr-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .flr-model-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────── *
 *  Model Home Selector (embedded in Step 1)                       *
 * ─────────────────────────────────────────────────────────────── */
.flr-model-selector-inline {
    margin-bottom: 24px;
}

.flr-model-selector-inner {
    background: var(--ct-bg, #fafaf8);
    border: 1px solid var(--ct-border, #e7e5e0);
    border-radius: 12px;
    padding: 20px 24px;
}

.flr-model-selector-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.flr-model-selector-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ct-text, #1c1917);
}

.flr-model-selector-hint {
    font-size: 12px;
    color: var(--ct-muted, #78716c);
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Mode Toggle                                                     *
 * ─────────────────────────────────────────────────────────────── */
.flr-mode-toggle {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ct-border, #e7e5e0);
}

.flr-mode-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-text, #1c1917);
    margin: 0 0 8px;
}

.flr-mode-btn-group {
    display: flex;
    gap: 10px;
}

.flr-mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--ct-border, #e7e5e0);
    border-radius: 10px;
    background: var(--ct-surface, #fff);
    color: var(--ct-muted, #78716c);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.flr-mode-btn:hover {
    border-color: var(--ct-primary-light, #a8c5a5);
    color: var(--ct-text, #1c1917);
}

.flr-mode-btn.flr-mode-active {
    border-color: var(--ct-primary, #588157);
    background: var(--ct-primary-tint, #eff4ee);
    color: var(--ct-primary-dark, #3e5e3a);
}

/* ─────────────────────────────────────────────────────────────── *
 *  Model Banner (pre-filled confirmation)                         *
 * ─────────────────────────────────────────────────────────────── */
.flr-model-banner {
    margin-top: 12px;
    padding: 8px 14px;
    background: var(--ct-primary-tint, #eff4ee);
    border: 1px solid var(--ct-primary-light, #a8c5a5);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ct-primary-dark, #3e5e3a);
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Whole-House Picker                                              *
 * ─────────────────────────────────────────────────────────────── */
.flr-whole-house-picker {
    margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────── *
 *  Zone Collapse — selected state hides picker                    *
 * ─────────────────────────────────────────────────────────────── */
.flr-zone-collapsed .flr-zone-picker {
    display: none;
}

/* ── Summary bar (shown when collapsed) ────────────────────── */
.flr-zone-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    background: var(--ct-primary-tint, #eff4ee);
    border-top: 1px solid var(--ct-border, #e7e5e0);
}

.flr-summary-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.flr-summary-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-text, #1c1917);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flr-summary-price {
    font-size: 13px;
    color: var(--ct-primary, #588157);
    font-weight: 600;
    white-space: nowrap;
}

.flr-change-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--ct-primary, #588157);
    background: #fff;
    color: var(--ct-primary, #588157);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.flr-change-btn:hover {
    background: var(--ct-primary, #588157);
    color: #fff;
}

.flr-apply-all-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--ct-border, #e7e5e0);
    background: #fff;
    color: var(--ct-muted, #78716c);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}

.flr-apply-all-btn:hover {
    border-color: var(--ct-primary, #588157);
    color: var(--ct-primary, #588157);
}

/* ── Zone progress bar ──────────────────────────────────────── */
.flr-zones-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.flr-zones-progress-track {
    flex: 1;
    height: 6px;
    background: var(--ct-border, #e7e5e0);
    border-radius: 3px;
    overflow: hidden;
}

.flr-zones-progress-fill {
    height: 100%;
    background: var(--ct-primary, #588157);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.flr-zones-progress-label {
    font-size: 12px;
    color: var(--ct-muted, #78716c);
    white-space: nowrap;
    font-weight: 500;
}

@media (max-width: 600px) {
    .flr-zone-summary-bar {
        padding: 10px 14px;
    }
    .flr-apply-all-btn {
        display: none;
    }
}
