/* Site for sale — popup panel and details page. See incs/for_sale.php. */

.vlx-sale-lock { overflow: hidden; }

/* ---------- Popup: fills the screen below the fixed header ---------- */
.vlx-sale-backdrop {
    position: fixed;
    top: var(--vlx-top, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10, 10, 24, 0.55);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.vlx-sale-backdrop.is-open { opacity: 1; }

.vlx-sale {
    position: fixed;
    top: calc(var(--vlx-top, 0px) + 10px);
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10001;
    background: #fff;
    color: var(--txt-color, #333);
    border-radius: 16px;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.vlx-sale.is-open { opacity: 1; transform: none; }
.vlx-sale:focus { outline: none; }

.vlx-sale-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--txt-faded, #555);
    cursor: pointer;
}
.vlx-sale-close:hover { background: rgba(0, 0, 0, 0.06); }

.vlx-sale-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-top: 1.75rem;
}

.vlx-sale-badge {
    display: inline-block;
    background: rgba(103, 61, 230, 0.1);
    color: var(--primary-color, #673de6);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.vlx-sale-title {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.7rem;
    line-height: 1.2;
    color: #16124d;
}
.vlx-sale-intro {
    margin: 0 0 1rem;
    color: var(--txt-faded, #555);
    line-height: 1.6;
}
.vlx-sale-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.vlx-sale-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.45;
}
.vlx-sale-check { color: #0f7b3f; flex: none; margin-top: 1px; display: inline-flex; }

.vlx-sale-cta {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-self: start;
}
.vlx-sale-price {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--title-color, #111);
}

.vlx-sale-local {
    margin: -0.3rem 0 0.4rem;
    font-size: 0.9rem;
    color: var(--txt-faded, #555);
}
.vlx-sale-local[hidden] { display: none; }
.vlx-sale-credit {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--txt-faded, #555);
}

/* ---------- Buttons (popup + details page) ---------- */
.vlx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}
.vlx-btn-icon { display: inline-flex; }
.vlx-btn-wa,
.vlx-btn-wa * { color: #fff !important; }
.vlx-btn-wa { background: #0f7b3f; }
.vlx-btn-wa:hover { background: #0b6633; }
.vlx-btn-tg,
.vlx-btn-tg * { color: #fff !important; }
.vlx-btn-tg { background: #1a78ad; }
.vlx-btn-tg:hover { background: #146394; }
.vlx-btn-mail,
.vlx-btn-mail * { color: #16124d; }
.vlx-btn-mail { background: #fff; border-color: rgba(22, 18, 77, 0.3); }
.vlx-btn-mail:hover { background: #f3f3f3; }

.vlx-sale-details {
    text-align: center;
    padding: 0.6rem;
    color: var(--primary-color, #673de6);
    font-weight: 600;
    text-decoration: underline;
}
.vlx-sale-later {
    background: transparent;
    border: 0;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--txt-faded, #555);
    cursor: pointer;
}

@media (min-width: 900px) {
    .vlx-sale {
        left: 0;
        right: 0;
        margin-inline: auto;
        width: min(980px, calc(100% - 3rem));
        padding: 2rem 2.25rem;
    }
    .vlx-sale-body {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 2.5rem;
        padding-top: 1rem;
    }
    .vlx-sale-title { font-size: 2.2rem; }
    .vlx-sale-cta {
        padding: 1.5rem;
        border: 1px solid var(--bd-color, rgba(103, 61, 230, 0.2));
        border-radius: 14px;
        background: var(--bg-color, #fcfcfc);
        margin-top: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vlx-sale, .vlx-sale-backdrop { transition: none; transform: none; }
}

/* ---------- Details page (/for-sale/) ---------- */
/* The theme sets a text colour on every element, so colours below are set on
   the elements themselves, not just on their parents. */
.vlx-sale-page {
    --vlx-navy: #16124d;
    --vlx-purple: #673de6;
    --vlx-blue: #2f5bff;
    max-width: 1000px;
    margin-inline: auto;
    padding-block: 1rem 3rem;
}
.vlx-sale-page ul, .vlx-sale-page ol { list-style: none; }

/* Hero */
.vlx-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #16124d 0%, #4a2fc2 55%, #673de6 100%);
}
.vlx-hero::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 91, 255, 0.55), transparent 70%);
    pointer-events: none;
}
.vlx-hero-text, .vlx-hero-card { position: relative; }
.vlx-hero-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.vlx-sale-page .vlx-hero h1 {
    margin: 0.9rem 0 0.6rem;
    font-size: clamp(1.9rem, 7vw, 2.9rem);
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    overflow-wrap: anywhere;
}
.vlx-hero-lead { color: rgba(255, 255, 255, 0.88); line-height: 1.65; }

.vlx-hero-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 14px 40px rgba(10, 8, 40, 0.35);
}
.vlx-hero-price, .vlx-cta-price {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--vlx-navy);
}
.vlx-hero-card .vlx-hero-price { margin-bottom: 0.2rem; }
.vlx-local {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: var(--txt-faded, #555);
}
.vlx-local[hidden] { display: none; }
.vlx-local a { display: block; margin-top: 0.15rem; font-size: 0.72rem; color: inherit; text-decoration: underline; }
.vlx-sale-page .vlx-sale-actions { display: grid; gap: 0.7rem; margin-top: 0.8rem; }

/* Highlights */
.vlx-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}
.vlx-highlight {
    background: #fff;
    border: 1px solid var(--bd-color, rgba(103, 61, 230, 0.2));
    border-radius: 14px;
    padding: 1rem;
}
.vlx-highlight strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--vlx-blue), var(--vlx-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--vlx-purple);
}
.vlx-highlight span { display: block; margin-top: 0.3rem; font-size: 0.85rem; line-height: 1.4; color: var(--txt-faded, #555); }

/* Headings */
.vlx-sale-page h2.vlx-h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vlx-navy);
}
.vlx-sale-page h2.vlx-h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--vlx-blue), var(--vlx-purple));
}
.vlx-sale-page h3.vlx-h3 { margin: 1.5rem 0 0.7rem; font-size: 1rem; font-weight: 500; color: var(--txt-faded, #555); }
.vlx-sub { color: var(--txt-faded, #555); line-height: 1.6; }

/* What you get */
.vlx-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
.vlx-card {
    background: #fff;
    border: 1px solid var(--bd-color, rgba(103, 61, 230, 0.2));
    border-radius: 16px;
    padding: 1.15rem;
}
.vlx-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(103, 61, 230, 0.1);
    margin-bottom: 0.7rem;
}
.vlx-card-icon svg, .vlx-card-icon svg * { stroke: var(--vlx-purple); color: var(--vlx-purple); }
.vlx-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--vlx-navy); }
.vlx-card p { font-size: 0.92rem; line-height: 1.6; color: var(--txt-faded, #555); }

/* Numbers */
.vlx-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.vlx-metric {
    background: #fff;
    border: 1px solid var(--bd-color, rgba(103, 61, 230, 0.2));
    border-left: 4px solid var(--vlx-purple);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
.vlx-metric strong { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--vlx-navy); }
.vlx-metric span { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: var(--txt-faded, #555); }
.vlx-metric em { display: block; margin-top: 0.2rem; font-style: normal; font-weight: 600; font-size: 0.8rem; color: #0f7b3f; }
.vlx-note {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--secondary-color, orange);
    background: #fffaf0;
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* How the sale works: numbered steps */
.vlx-steps { display: grid; gap: 0; }
.vlx-steps li { position: relative; display: flex; gap: 1rem; padding-bottom: 1.5rem; }
.vlx-steps li:last-child { padding-bottom: 0; }
.vlx-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 2.6rem;
    bottom: 0.2rem;
    width: 2px;
    background: linear-gradient(var(--vlx-purple), rgba(103, 61, 230, 0.12));
}
.vlx-step-num {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vlx-blue), var(--vlx-purple));
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}
.vlx-steps h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--vlx-navy); }
.vlx-steps p { font-size: 0.92rem; line-height: 1.6; color: var(--txt-faded, #555); }

/* Closing call to action */
.vlx-cta {
    margin-top: 2.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(135deg, #16124d 0%, #4a2fc2 55%, #673de6 100%);
}
.vlx-sale-page .vlx-cta h2 { color: #fff; font-size: 1.6rem; font-weight: 600; margin-bottom: 0.6rem; }
.vlx-cta .vlx-cta-price { color: #fff; }
.vlx-cta .vlx-local, .vlx-cta .vlx-local a { color: rgba(255, 255, 255, 0.85); }
.vlx-cta .vlx-sale-actions { max-width: 420px; margin-inline: auto; margin-top: 1rem; }

@media (min-width: 700px) {
    .vlx-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: 2.5rem 2.25rem; gap: 2rem; }
    .vlx-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vlx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vlx-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .vlx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
