/* Dynamic additions for the WordPress build. */

/* Website screenshots + initials fallback */
.dl-shot { position: relative; display: grid; place-items: center; background: var(--light); }
.dl-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dl-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--theme), var(--theme-bright));
}
.dl-name-link { color: inherit; }
.dl-name-link:hover { color: var(--theme); }

/* Category photo badges (in place of the design's icons) */
.dl-cat-badge { overflow: hidden; padding: 4px; }
.dl-cat-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.widget-list .dl-thumb { width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; object-fit: cover; vertical-align: middle; }

/* Category archive rows: screenshot thumbnail in the badge slot */
.listing-row.dl-row { grid-template-columns: 150px 1fr auto; }
.listing-row.dl-row .listing-row__icon { width: 150px; height: 96px; border-radius: var(--radius-md); overflow: hidden; }
.listing-row.dl-row .dl-initials { font-size: 30px; }

/* Pagination (WordPress markup) */
.pagination { flex-wrap: wrap; }
.pagination span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-weight: 600;
    background-color: var(--light);
}
.pagination span.page-numbers.is-active { color: var(--white); background-color: var(--theme); }
.pagination .prev, .pagination .next { width: auto; padding: 0 20px; }

.dl-empty { grid-column: 1 / -1; padding: 30px; background: var(--light); border-radius: var(--radius-md); }
.search-tags a {
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--theme);
    background-color: var(--theme-tint);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.search-tags a:hover { color: var(--white); background-color: var(--theme); }

/* Listing detail */
.dl-crumbs { justify-content: flex-start; margin: 0 0 14px; }
.listing-hero__label { display: inline-block; }
.listing-hero__rating > span + span { margin-left: 4px; }
.detail-block > p + p { margin-top: 14px; }
.dl-note { margin-top: 14px; font-size: 14px; color: var(--pera); }
.dl-dir { margin-top: 20px; }
.contact-list a { word-break: break-word; }

/* Blog post FAQ */
.dl-post-faq { margin: 40px 0 10px; }
.dl-post-faq h2 { margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 32px); }
.dl-post-faq .faq-item { border: 1px solid var(--border); }

/* Sitemap long lists */
.sitemap-card--wide ul { columns: 3 220px; column-gap: 30px; }
.sitemap-card--wide li { break-inside: avoid; }
.policy-content section + section { margin-top: 10px; }

@media (max-width: 767px) {
    .listing-row.dl-row { grid-template-columns: 1fr; }
    .listing-row.dl-row .listing-row__icon { width: 100%; height: 180px; }
}
.widget-list a > span:first-child { display: flex; align-items: center; gap: 8px; }
.widget-list .dl-thumb { flex-shrink: 0; margin-right: 0; }
