/* Cool Web Directory: styles for the dynamic (WordPress) output. */

/* Website screenshot / initials */
.cw-initials { display: grid; place-items: center; width: 100%; height: 100%; background: var(--color-navy); color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .02em; text-transform: uppercase; }
.listing-card__media img.cw-shot { object-position: top; }
.listing-hero__logo.cw-hero-shot { padding: 0; overflow: hidden; }
.listing-hero__logo.cw-hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.listing-hero__title a, .listing-row__title a, .listing-card__title a { color: inherit; }

/* Category thumbnails (photos, never icons) */
.cat-index__letter.cw-cat-thumb { overflow: hidden; padding: 0; }
.cat-index__letter.cw-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cw-count { margin-left: 6px; font-size: .8em; color: var(--color-muted); font-weight: 500; }
.widget-links a span { margin-left: auto; color: var(--color-muted); font-size: .85em; }
.search-tags a { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--color-line); color: var(--color-ink); font-size: .9rem; text-decoration: none; transition: border-color .2s, color .2s; }
.search-tags a:hover { border-color: var(--color-blue); color: var(--color-blue); }

/* Detail page */
.cw-content > * + * { margin-top: 1em; }
.cw-content img { max-width: 100%; height: auto; }
.cw-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cw-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface); }
.cw-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cw-gallery a:hover img { transform: scale(1.05); }
.cw-video iframe { width: 100%; height: 100%; border: 0; }
.cw-reviews { display: grid; gap: 14px; margin-top: 22px; }
.cw-review { padding: 20px 22px; background: var(--color-surface); border: 1px solid var(--color-line); }
.cw-review header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--color-ink); }
.cw-review time { color: var(--color-muted); font-size: .88rem; }
.cw-review .stars { display: inline-flex; gap: 2px; margin: 6px 0; color: #f5b301; }
.cw-review .stars .icon { width: 16px; height: 16px; }
.cw-star-off { opacity: .25; }
.cw-review p { margin: 0; }
.cw-card-actions { display: grid; gap: 10px; margin-top: 22px; }
.cw-social-text { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.cw-social-text a { color: var(--color-blue); text-decoration: underline; }
.hours__list li.is-today { font-weight: 700; color: var(--color-ink); }

/* Blog */
.cw-post-faq { margin-top: 40px; }
.cw-post-faq h2 { margin-bottom: 18px; }
.cw-empty { padding: 30px 0; color: var(--color-text); }
.cw-empty a { color: var(--color-blue); text-decoration: underline; }
@media (max-width: 640px) { .cw-gallery { grid-template-columns: repeat(2, 1fr); } }
