/* Full-screen "site inactive / for sale" layer (components/ForSaleBar.tsx).
   The page behind remains scrollable but not clickable.
   Lives outside /assets/css/ on purpose: the landing pages disable that folder's stylesheets. */
:root {
    --fsl-red: #d11a1a; /* legacy brand red */
    --fsl-ink: #1f2328;
    --fsl-muted: #5b6168;
}

/* The business is inactive: hide the legacy floating call buttons (they sit above any z-index) */
html:has(#for-sale-layer) #clicktocall,
html:has(#for-sale-layer) #mobile-button {
    display: none !important;
}

#for-sale-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483647; /* max: above every legacy fixed element (navbar, lightbox) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* Light veil: the site behind stays readable, but clearly "switched off".
       The layer is fixed and not scrollable itself, so wheel/touch scrolling
       passes through to the page behind (clicks do not). */
    background: rgba(20, 22, 26, .28);
    -webkit-backdrop-filter: blur(1.5px) grayscale(.45);
    backdrop-filter: blur(1.5px) grayscale(.45);
    font-family: "Assistant", Arial, sans-serif;
    animation: fsl-fade .35s ease-out both;
}

#for-sale-layer .fsl-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    color: var(--fsl-ink);
    border-radius: 10px;
    border-top: 6px solid var(--fsl-red);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 32px 32px 26px;
    text-align: center;
    animation: fsl-rise .4s cubic-bezier(.2, .8, .2, 1) .05s both;
}

#for-sale-layer .fsl-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--fsl-muted);
    font-size: 14px;
    font-weight: 700;
}
#for-sale-layer .fsl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa0a6;
}

#for-sale-layer .fsl-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--fsl-ink);
}
#for-sale-layer .fsl-title span { unicode-bidi: isolate; white-space: nowrap; }

#for-sale-layer .fsl-text {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--fsl-muted);
}

#for-sale-layer .fsl-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    background: var(--fsl-red);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .15s ease, transform .1s ease;
}
#for-sale-layer .fsl-btn:hover { background: #b01515; color: #fff; text-decoration: none; }
#for-sale-layer .fsl-btn:active { transform: scale(.97); }

#for-sale-layer .fsl-addr {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--fsl-muted);
}
#for-sale-layer .fsl-addr a {
    color: var(--fsl-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    unicode-bidi: isolate;
}

#for-sale-layer a:focus-visible {
    outline: 3px solid #f5b5b5;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    #for-sale-layer .fsl-card { padding: 26px 20px 22px; }
    #for-sale-layer .fsl-title { font-size: 23px; }
    #for-sale-layer .fsl-text { font-size: 16px; }
    #for-sale-layer .fsl-btn { display: block; }
}

@keyframes fsl-fade { from { opacity: 0; } }
@keyframes fsl-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
    #for-sale-layer, #for-sale-layer .fsl-card { animation: none; }
}
@media print { #for-sale-layer { display: none; } }
