/* ==========================================================================
   ONE DEAL, ON ITS OWN PAGE
   Scoped with `dl-` so nothing here can reach into the search page or the
   header. Built to sit inside the existing site rather than replace its look:
   the green stays the brand, the type matches, and the page scrolls as one
   thing — which the modal notably did not.
   ========================================================================== */

.dl-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 72px;
}

.dl-back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}
.dl-back:hover { color: #14181f; }

/* ---- gallery ------------------------------------------------------------
   ⚠️ The proportions divide properly: the thumbnail column is exactly as tall
   as the hero, so every edge lines up. Four postage stamps beside a billboard
   is what it looks like when they do not. */
.dl-gallery {
    display: grid;
    grid-template-columns: 62fr 38fr;
    gap: 6px;
    margin-bottom: 28px;
}
.dl-hero {
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef0f4;
    cursor: zoom-in;
}
.dl-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dl-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    height: 440px;
}
.dl-thumb {
    position: relative;
    padding: 0; border: 0; overflow: hidden;
    border-radius: 10px; cursor: pointer; background: #eef0f4;
}
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-thumb:hover img { opacity: .88; }
.dl-more {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20,24,31,.55); color: #fff;
    font-size: 1.2rem; font-weight: 700;
}

/* ---- two columns -------------------------------------------------------- */
.dl-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
}

.dl-head h1 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 720;
    letter-spacing: -.02em;
    color: #14181f;
    line-height: 1.2;
}
.dl-locked {
    margin: 0 0 18px;
    font-size: 13.5px; color: #6b7280;
}
.dl-locked a { color: #0a8f47; font-weight: 650; }

/* The four numbers everyone checks first. */
.dl-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 20px 0 32px;
    background: #e2e5ea;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
}
.dl-facts > div {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px; background: #fff;
}
.dl-facts b {
    font-size: 19px; font-weight: 700; color: #14181f;
    font-variant-numeric: tabular-nums;
}
.dl-facts span {
    font-size: 11px; font-weight: 650; letter-spacing: .05em;
    text-transform: uppercase; color: #9ca3af;
}

.dl-sec { margin-bottom: 32px; }
.dl-sec h2 {
    margin: 0 0 12px;
    font-size: 17px; font-weight: 700; color: #14181f;
}
.dl-prose {
    font-size: 14.5px; line-height: 1.7; color: #4a5260;
    max-width: 68ch;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px; margin: 0;
    background: #e2e5ea;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
}
.dl-grid > div { padding: 12px 16px; background: #fff; }
.dl-grid dt {
    font-size: 11px; font-weight: 650; letter-spacing: .05em;
    text-transform: uppercase; color: #9ca3af; margin-bottom: 3px;
}
.dl-grid dd { margin: 0; font-size: 14.5px; color: #14181f; }

.dl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dl-tags li {
    padding: 6px 13px; border-radius: 999px;
    background: #f7f8fa; border: 1px solid #e2e5ea;
    font-size: 13px; color: #4a5260;
}

/* ---- the sidebar --------------------------------------------------------
   ⚠️ Sticky, so the numbers stay put while the description scrolls. They are
   what an investor is deciding on; scrolling away from them to read the
   overview and back again is the whole reason spec sheets exist. */
.dl-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }

.dl-card {
    padding: 20px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #fff;
}
.dl-price {
    font-size: 30px; font-weight: 760; letter-spacing: -.025em;
    color: #14181f; font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.dl-price-l {
    margin-bottom: 18px;
    font-size: 11.5px; font-weight: 650; letter-spacing: .05em;
    text-transform: uppercase; color: #9ca3af;
}

.dl-nums { margin: 0 0 18px; }
.dl-nums > div {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding: 9px 0;
    border-bottom: 1px solid #eef0f4;
}
.dl-nums > div:last-child { border-bottom: 0; }
.dl-nums dt { font-size: 13.5px; color: #6b7280; }
.dl-nums dd {
    margin: 0; font-size: 14.5px; font-weight: 650; color: #14181f;
    font-variant-numeric: tabular-nums;
}
/* The margin is the number they came for. */
.dl-margin dd { color: #0a8f47; font-weight: 750; }

.dl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 20px;
    border-radius: 10px; border: 1px solid #cfd4dc;
    background: #fff; color: #14181f;
    font: inherit; font-size: 14.5px; font-weight: 650;
    text-decoration: none; cursor: pointer;
}
.dl-btn:hover { background: #f7f8fa; }
.dl-btn.is-solid { background: #0a8f47; border-color: #0a8f47; color: #fff; }
.dl-btn.is-solid:hover { background: #076b36; }
.dl-btn.dl-block { display: flex; width: 100%; margin-top: 8px; }
.dl-btn:disabled { opacity: .6; cursor: default; }

.dl-seller-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dl-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; background: #eef0f4; flex: none;
}
.dl-avatar-ph {
    display: flex; align-items: center; justify-content: center;
    background: #0a8f47; color: #fff; font-weight: 700; font-size: 17px;
}
.dl-seller-name { font-size: 15px; font-weight: 680; color: #14181f; }
.dl-seller-sub { font-size: 12.5px; color: #9ca3af; }

.dl-empty { text-align: center; padding: 90px 20px; }
.dl-empty h1 { font-size: 24px; font-weight: 720; margin-bottom: 8px; }
.dl-empty p { color: #6b7280; margin-bottom: 22px; }

/* ---- lightbox ----------------------------------------------------------- */
.dl-lightbox {
    position: fixed; inset: 0; z-index: 100000;
    display: none; align-items: center; justify-content: center;
    background: rgba(10,12,16,.94);
    cursor: zoom-out;
}
.dl-lightbox.is-open { display: flex; }
.dl-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

@media (max-width: 900px) {
    .dl-cols { grid-template-columns: 1fr; gap: 28px; }
    /* Not sticky on a phone — a pinned card would eat half the screen. */
    .dl-side { position: static; }
    .dl-gallery { grid-template-columns: 1fr; }
    .dl-hero { height: 260px; }
    .dl-thumbs { grid-template-rows: 1fr; grid-template-columns: repeat(4, 1fr); height: 76px; }
    .dl-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---- what a signed-out visitor sees -------------------------------------
   ⚠️ The locked photos are shown, blurred, rather than removed. Absence tells
   someone nothing; a blurred photo with "6 more" tells them exactly what an
   account is worth, which is the only honest way to ask for one. */
.dl-thumb-locked { position: relative; display: block; }
.dl-thumb-locked img { filter: blur(10px) saturate(.7); transform: scale(1.06); }
.dl-lock {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    background: rgba(20,24,31,.42);
    color: #fff; text-align: center;
}
.dl-lock i { font-size: 20px; margin-bottom: 2px; }
.dl-lock b { font-size: 15px; font-weight: 700; }
.dl-lock em { font-style: normal; font-size: 11.5px; opacity: .85; }

.dl-locked {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 0 0 18px; padding: 12px 14px;
    border-radius: 10px;
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    font-size: 13.5px; line-height: 1.55; color: #4a5260;
}
.dl-locked i { color: #9ca3af; font-size: 16px; margin-top: 1px; flex: none; }
.dl-locked a { color: #0a8f47; font-weight: 650; }

/* How long it has been listed, on the deal page. */
.dl-age {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 0 4px;
    font-size: 13px; color: #6b7280;
}
.dl-age i { font-size: 15px; }
.dl-age.is-new   { color: #0a8f47; font-weight: 650; }
.dl-age.is-stale { color: #9ca3af; }
.dl-age-exact { color: #b6bcc6; }

/* ---- the other product ---------------------------------------------------
   ⚠️ Deliberately quieter than everything above it. This sits below the price,
   the margin and the contact button, and it must not compete with them — an
   investor came here for the deal, not for us. It earns its place by being
   the answer to a question they are already asking, not by shouting.
   Tinted rather than bordered so it reads as a different kind of thing, and
   the button is the outline style, never the solid one. */
.dl-cross {
    background: #f7f8fa;
    border-color: transparent;
}
.dl-cross-tag {
    display: inline-block; margin-bottom: 8px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: #9ca3af;
}
.dl-cross h3 {
    margin: 0 0 8px;
    font-size: 16px; font-weight: 700; color: #14181f;
}
.dl-cross p {
    margin: 0 0 16px;
    font-size: 13.5px; line-height: 1.6; color: #4a5260;
}
.dl-cross .dl-btn { background: #fff; }
.dl-cross-note {
    display: block; margin-top: 10px; text-align: center;
    font-size: 11.5px; color: #9ca3af;
}
