/* Photos and text-only previews share an exact media slot on every screen size. */
.special-preview-media { width:100%; height:200px; overflow:hidden; border-radius:10px; }
.special-preview-media [data-preview-photo][hidden] { display:none; }
.special-preview-media [data-preview-photo] { display:block; width:100%; height:100%; }
.special-preview-media img { display:block; width:100%; height:100%; object-fit:cover; }
.special-preview-text { box-sizing:border-box; height:100%; width:100%; padding:22px 24px; display:flex; flex-direction:column; justify-content:center; background:linear-gradient(135deg,#eef4fa,#e4ede8); border:1px solid #d9e4e7; border-radius:10px; color:#213c46; }
.special-preview-text[hidden], [data-preview-summary][hidden] { display:none; }
.special-preview-title { font-size:clamp(20px,2.1vw,25px); font-weight:750; line-height:1.2; margin:0 0 12px; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.special-preview-title a { color:inherit; text-decoration:none; }
.special-preview-title a:hover { text-decoration:underline; }
.special-preview-description { font-size:14px; line-height:1.5; margin:0; color:#4a626a; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.special-preview-title a:focus-visible { outline:2px solid currentColor; outline-offset:2px; }

#special-near-me:not([aria-busy="true"]) .near-me-spinner,
#special-near-me[aria-busy="true"] .near-me-pin {
    display: none;
}

/* Keep just the view switch within reach without pinning the full filter panel. */
.special-view-toolbar { position:sticky; top:0; z-index:1020; display:flex; align-items:center; gap:.5rem; padding:.4rem .8rem; background:rgba(255,255,255,.97); border:1px solid #dee2e6; border-top:0; border-radius:0 0 8px 8px; box-shadow:0 3px 12px #0000000d; }
.special-view-toolbar[hidden] { display:none; }
.special-view-toolbar svg { vertical-align:-2px; margin-right:.25rem; }
.special-compact-title { display:none; }
#specials[data-special-view="list"] [data-special-card] { width:100%; }
#specials[data-special-view="list"] [data-listing-special] [data-card-only] { display:none !important; }
#specials[data-special-view="list"] .special-compact-title { display:block; font-size:1rem; line-height:1.4; font-weight:650; margin:0 0 .2rem; overflow-wrap:anywhere; }
.special-compact-title a { color:inherit; text-decoration:none; }
.special-compact-title a:hover { text-decoration:underline; }
.special-compact-title a:focus-visible { outline:2px solid #0d6efd; outline-offset:3px; }
#specials[data-special-view="list"] [data-listing-special] .card-body { padding:.85rem 1rem !important; }
#specials[data-special-view="list"] [data-listing-special] .fw-semibold { font-size:.875rem; color:#5b6269; font-weight:400 !important; }
#specials[data-special-view="list"] .row { --bs-gutter-y:.5rem; }

/* Stretch the existing title link over its compact card, without JavaScript navigation. */
#specials[data-special-view="list"] [data-listing-special] { position:relative; }
#specials[data-special-view="list"] .special-compact-title a::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; }
#specials[data-special-view="list"] [data-listing-special]:hover { background-color:#f3f7fc; }
#specials[data-special-view="list"] .special-compact-title a:focus-visible::after { outline:2px solid #0d6efd; outline-offset:2px; }
