/* Ads (js/ad-slot.js): top banner, side ad and in-results card. Each is labeled "Ad". */
.ad { position: relative; font-family: var(--font); }
.ad-link { display: block; color: inherit; text-decoration: none; }
.ad-label { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255, 255, 255, .95); color: #1b2550; font: 700 .7rem/1 var(--font); letter-spacing: .06em; padding: 4px 6px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(27, 37, 80, .15); }
.ad-report { all: unset; cursor: pointer; font-size: .72rem; color: var(--muted); text-decoration: underline; padding: 4px 0; display: inline-block; }
.ad-report:focus-visible { outline: 2px solid var(--purple); }
.ad-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--ad-c, #1b2550); color: #fff; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.ad-mono { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--ad-c, #1b2550); font-weight: 800; font-size: 1.3rem; flex: none; }
.ad-logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.ad-text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.ad-biz { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ad-biz img { width: 20px; height: 20px; object-fit: contain; }

/* In-results card: the same frame as an offering card. */
.ad-cell { list-style: none; }
.ad-infeed .art.ad-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; margin-bottom: 12px; background: var(--mist); }
.ad-infeed .ad-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-art-fill { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ad-c, #1b2550), color-mix(in srgb, var(--ad-c, #1b2550) 60%, #000)); color: #fff; font-weight: 800; font-size: 1.6rem; text-align: center; padding: 16px; box-sizing: border-box; }
.ad-art-fill img { max-width: 60%; max-height: 60%; object-fit: contain; background: #fff; border-radius: 12px; padding: 10px; }
.ad-infeed .ad-body { display: grid; gap: 6px; justify-items: start; }
.ad-infeed h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.ad-infeed .ad-link:hover h3 { text-decoration: underline; }

/* Top banner */
.ad-leaderboard { width: 100%; max-width: 970px; }
.ad-leaderboard.ad-uploaded { max-width: 728px; }
.ad-leaderboard.ad-uploaded img { width: 100%; height: auto; display: block; border-radius: 4px; }
.ad-leaderboard.ad-built .ad-link { display: flex; align-items: center; gap: 14px; min-height: 90px; box-sizing: border-box; padding: 10px 16px 10px 52px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--ad-c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--ad-c) 30%, #fff); }
.ad-leaderboard.ad-built .ad-mono, .ad-leaderboard.ad-built .ad-logo { background: var(--ad-c); color: #fff; }
.ad-lb-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ad-lb-text strong { font-size: 1.1rem; line-height: 1.2; }
.ad-lb-text span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ad-leaderboard .ad-report { position: absolute; right: 8px; bottom: -22px; }
.ad-slot-top { margin-bottom: 18px; }
@media (max-width: 727px) {
  .ad-leaderboard.ad-built .ad-link { min-height: 100px; padding: 10px 12px 10px 12px; padding-top: 28px; gap: 10px; }
  .ad-leaderboard.ad-built .ad-cta { padding: 0 10px; font-size: .8rem; }
  .ad-leaderboard.ad-built .ad-mono, .ad-leaderboard.ad-built .ad-logo { width: 36px; height: 36px; }
  .ad-leaderboard.ad-uploaded { max-width: 320px; }
}

/* Side ad */
.ad-rail { width: 300px; }
.ad-rail.ad-uploaded img { width: 300px; height: auto; display: block; border-radius: 4px; }
.ad-rail.ad-built .ad-link { border-radius: var(--radius-m); overflow: hidden; background: var(--ad-c); color: #fff; min-height: 420px; display: flex; flex-direction: column; }
.ad-rail-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ad-rail-body { padding: 44px 22px 24px; display: grid; gap: 10px; justify-items: start; flex: 1; align-content: start; }
.ad-rail-body h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.ad-rail .ad-biz, .ad-rail .ad-text { color: rgba(255, 255, 255, .88); }
.ad-rail .ad-text { font-size: 1rem; }
.ad-rail.ad-built .ad-cta { background: #fff; color: var(--ad-c); margin-top: 8px; }

/* ---------- Advertiser portal (advertiser.html) and admin review ---------- */
.adv-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.adv-steps li { counter-increment: st; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 18px; background: var(--mist); }
.adv-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: .8rem; }
.adv-steps li[aria-current="step"] { background: var(--ink); color: #fff; }
.adv-steps li.done::before { content: "✓"; background: #1b6b3a; color: #fff; }
.adv-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.adv-choice label { display: grid; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-m); cursor: pointer; background: #fff; position: relative; }
.adv-choice label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; background: #f4f6fd; }
.adv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.adv-choice label:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.adv-choice strong { font-size: 1rem; }
.adv-choice small { color: var(--muted); }
.adv-choice .price-tag { font-weight: 700; color: var(--blue-deep); font-size: .9rem; }
.adv-choice label.sold { opacity: .55; cursor: not-allowed; }
.adv-preview { display: grid; gap: 20px; padding: 18px; background: var(--mist); border-radius: var(--radius-m); }
.adv-preview h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adv-preview .ad-infeed { max-width: 320px; background: #fff; padding: 12px; border-radius: var(--radius-m); }
.adv-preview .phone-frame { max-width: 340px; background: #fff; border-radius: 22px; border: 8px solid #1b2550; padding: 10px; }
.adv-preview .phone-frame .ad-leaderboard { max-width: 320px; }
.adv-preview .phone-frame .ad-leaderboard.ad-built .ad-link { min-height: 100px; padding: 28px 10px 10px; gap: 8px; }
.adv-preview .phone-frame .ad-leaderboard.ad-built .ad-cta { font-size: .78rem; padding: 0 9px; }
.adv-preview .scroll-x { overflow-x: auto; max-width: 100%; }
.adv-preview .desk-lb { min-width: 728px; }
.adv-preview .ad-report { display: none; }
.drop { display: grid; gap: 6px; padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius-m); background: #fff; }
.drop.ok { border-color: #1b6b3a; border-style: solid; }
.drop.bad { border-color: var(--red-strong); }
.drop img { max-width: 100%; height: auto; border-radius: 4px; }
.drop .spec { font-size: .82rem; color: var(--muted); }
.check-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.check-list li { padding: 8px 12px; border-radius: var(--radius-s); font-size: .92rem; }
.check-list .err { background: #fdecec; color: #8a0f13; }
.check-list .warn { background: #fff6e0; color: #5b4500; }
.check-list .ok { background: #e7f5ec; color: #14532d; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.swatches input[type=color] { width: 40px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.adv-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adv-table th, .adv-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adv-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.adv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adv-table-wrap { overflow-x: auto; }
.adv-thumb { width: 72px; }
.adv-thumb .ad-infeed { pointer-events: none; transform: scale(.25); transform-origin: top left; width: 288px; height: 72px; }
.st-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; background: var(--mist); white-space: nowrap; }
.st-running { background: #e7f5ec; color: #14532d; } .st-review { background: #fff6e0; color: #5b4500; } .st-rejected { background: #fdecec; color: #8a0f13; }
.st-scheduled { background: #e8edfb; color: #2b3f84; } .st-paused, .st-ended, .st-stopped, .st-draft { background: var(--mist); color: var(--muted); }
.adv-areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.adv-rules li { margin-bottom: 8px; }
.adv-spec-table td:first-child { font-weight: 700; white-space: nowrap; }
.review-card { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .review-card { grid-template-columns: minmax(0, 1fr); } }
.review-card .adv-preview { padding: 12px; }
.ad-leaderboard.ad-uploaded.ad-mobile { max-width: 320px; }

/* Map pin (js/search-map.js, js/ad-slot.js pin) */
.ad-pin-wrap { background: none; border: 0; }
.ad-pin { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ad-c, #80287e); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ad-pin > b, .ad-pin > img { transform: rotate(45deg); }
.ad-pin > b { color: #fff; font: 800 15px/1 var(--font); }
.ad-pin > img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; }
.ad-pin > i { position: absolute; top: -8px; right: -10px; transform: rotate(45deg); font: 700 9px/1 var(--font); font-style: normal; background: #fff; color: #1b2550; padding: 2px 4px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(27, 37, 80, .2); }
.ad-pin-popup .leaflet-popup-content { margin: 14px 16px; }
.ad-pin-card { position: relative; padding-top: 18px; font-family: var(--font); }
.ad-pin-card .ad-label { top: 0; left: 0; }
.ad-pin-card h3 { margin: 4px 0; font-size: 1rem; line-height: 1.25; }
.ad-pin-card .ad-link { display: inline-block; margin-top: 8px; }
.ad-pin-card .ad-report { display: block; margin-top: 6px; }
