/* Ad detail: gallery-first, sticky contact sidebar */
.ad-page { padding-top: 28px; padding-bottom: 80px; }
.ad-title { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; margin: 8px 0 12px; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.84rem; color: var(--muted); }
.ad-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ad-meta svg { opacity: 0.7; flex-shrink: 0; }
.ad-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.ad-main, .ad-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ad-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.gallery__main { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark3); border: 1px solid var(--border-subtle); }
.gallery__main img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gallery__backdrop { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) brightness(0.45); }
.gallery__count { position: absolute; bottom: 12px; right: 12px; padding: 4px 10px; font-size: 0.798rem; letter-spacing: 0.1em; color: var(--white); background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.gallery__thumbs button { aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 1px solid var(--border-subtle); opacity: 0.6; transition: all var(--ease); }
.gallery__thumbs button:hover, .gallery__thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.facts dt { font-size: 0.766rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted2); margin-bottom: 3px; }
.facts dd { font-size: 0.913rem; color: var(--white); font-weight: 400; }
.desc { font-size: 0.908rem; color: var(--text-soft); line-height: 1.95; }
.desc p { margin-bottom: 12px; }
.desc-tags { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.seller { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.seller__name { display: block; font-size: 1.05rem; font-weight: 500; margin-bottom: 4px; color: var(--white); }
.seller__name:hover { color: var(--gold); }
.msg-box .textarea { min-height: 96px; background: var(--dark3); resize: none; }
.actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.actions button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border: 1px solid var(--border-subtle); background: var(--dark3); color: var(--muted); font-size: 0.777rem; letter-spacing: 0.12em; text-transform: uppercase; transition: all var(--ease); }
.actions button:hover { color: var(--gold); border-color: var(--border); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.modal-grid .callout { padding: 20px; }
.modal-grid .full { grid-column: 1 / -1; }
.modal-grid h4 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; color: var(--white); margin: 6px 0 14px; }
.eyebrow--danger { color: #ef5350; }
.eyebrow--safe { color: #66bb6a; }
.modal-grid li { font-size: 0.871rem; color: var(--text-soft); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; line-height: 1.5; }
.modal-grid li:last-child { border-bottom: none; }
.modal-grid li::before { flex-shrink: 0; font-size: 0.829rem; }
.callout--gold li::before { content: '⚠'; color: var(--gold); }
.callout--danger li::before { content: '🚩'; }
.callout--safe li::before { content: '✓'; color: #66bb6a; font-weight: 600; }
.callout--safe ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 960px) {
  .ad-layout { grid-template-columns: 1fr; }
  .ad-side { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .modal-grid, .callout--safe ul { grid-template-columns: 1fr; }
}

.ad-page__header { margin-bottom: 24px; }
.contact-card__price { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 300; color: var(--gold-light); line-height: 1; margin-bottom: 16px; }

/* Share / Save / Report */
.actions .dropdown { flex: 1; display: flex; }
.actions .dropdown > button { flex: 1; }
.actions button.is-saved, .actions button[aria-expanded="true"] { color: var(--gold); border-color: var(--border); }
.actions button.is-saved svg { fill: var(--gold); }
.dropdown { position: relative; }
.contact-card { overflow: visible; }
.dropdown__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; z-index: 500; background: var(--dark2); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,0.6); display: none; }
.dropdown__menu.is-open { display: block; }
.dropdown__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; font-size: 0.861rem; color: var(--muted); transition: all var(--ease); white-space: nowrap; }
.dropdown__item:hover { color: var(--gold); background: rgba(255,255,255,0.03); }
.dropdown__item svg { opacity: 0.75; flex-shrink: 0; }
.modal--sm { max-width: 460px; }
.report-reasons { display: flex; flex-direction: column; gap: 4px; }
.report-reasons .check { padding: 8px 10px; border: 1px solid var(--border-subtle); background: var(--dark3); align-items: center; transition: border-color var(--ease); }
.report-reasons .check:has(input:checked) { border-color: var(--gold); background: var(--gold-10); color: var(--white); }
.report-reasons .check input { margin-top: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); z-index: 1100; padding: 12px 18px; background: var(--dark2); border: 1px solid var(--border); color: var(--white); font-size: 0.871rem; box-shadow: 0 12px 32px rgba(0,0,0,0.6); opacity: 0; transition: opacity 0.25s, transform 0.25s; white-space: nowrap; }
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }
.toast a { margin-left: 10px; font-size: 0.819rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Video */
.gallery__video { position: absolute; inset: 0; background: #000; }
.gallery__video iframe, .video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery__thumb--video { position: relative; }
.play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,0.35); }
.play-badge svg { filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8)); }
.gallery__thumb--video.is-active .play-badge { background: rgba(201,168,76,0.35); }
.desc-video { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.video-embed { aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--border-subtle); overflow: hidden; }

/* Real ads */
.ad-sold-note { margin-bottom: 20px; }
.contact-card__price small { font-family: var(--font-sans); margin-left: 6px; }
.seller .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.desc-video .video-embed + .video-embed { margin-top: 12px; }
