/* Demo scope tier bar — basic / standard / advanced inclusions */

.demo-scope-bar {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 0.85rem 1rem 1rem;
    font-size: 0.82rem;
}

.demo-scope-bar__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.demo-scope-bar__title {
    font-weight: 800;
    color: #1e293b;
    font-size: 0.88rem;
    margin: 0 0 0.2rem;
}

.demo-scope-bar__hint {
    color: #64748b;
    margin: 0;
    max-width: 520px;
    line-height: 1.45;
}

.demo-scope-price {
    text-align: right;
    flex-shrink: 0;
}

.demo-scope-price .band {
    font-size: 1.15rem;
    font-weight: 800;
    color: #7c3aed;
}

.demo-scope-price .note {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.demo-scope-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.demo-scope-toggle {
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.demo-scope-toggle:hover {
    border-color: #c4b5fd;
    color: #5b21b6;
}

.demo-scope-toggle.active {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff;
}

.demo-scope-toggle .sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 0.05rem;
}

.demo-scope-includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
}

.demo-scope-includes ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
    line-height: 1.5;
}

.demo-scope-includes li {
    margin-bottom: 0.15rem;
}

.demo-scope-includes li.demo-tier-more {
    color: #7c3aed;
    font-weight: 600;
    list-style: none;
    padding-left: 0;
    margin-left: -1.1rem;
}

.demo-scope-upgrade {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    color: #92400e;
    line-height: 1.45;
    grid-column: 1 / -1;
}

.demo-scope-upgrade strong {
    color: #78350f;
}

/* Tier-gated demo regions */
[data-tier-min] {
    transition: opacity 0.2s;
}

[data-tier-min].demo-tier-hidden {
    display: none !important;
}

.demo-dual-grid:has(.demo-admin-column.demo-tier-hidden),
.cdf-dual-grid:has(.cdf-admin-column.demo-tier-hidden) {
    grid-template-columns: 1fr !important;
}

.demo-tier-teaser {
    background: #f5f3ff;
    border: 1px dashed #c4b5fd;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: #5b21b6;
    margin: 0.65rem 0;
    text-align: center;
}

.demo-tier-teaser button {
    margin-left: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: none;
    background: #7c3aed;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    border-radius: 10px;
    display: block;
}

.map-embed.map-embed--live {
    background: #e2e8f0;
    padding: 0;
}

.map-open-maps {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.45rem 0.85rem;
    background: #ea580c;
    color: #fff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.map-open-maps:hover {
    background: #c2410c;
    color: #fff;
}

.map-locator {
    margin-bottom: 1rem;
}

.map-locator input {
    width: 100%;
    max-width: 360px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.88rem;
}

@media (max-width: 700px) {
    .demo-scope-includes {
        grid-template-columns: 1fr;
    }

    .demo-scope-price {
        text-align: left;
        width: 100%;
    }
}
