/*
Theme Name: Safewebsitez.Com
*/

/* WordPress-only additions. The design stylesheet is assets/css/main.css (enqueued first). */

/* Listing rows: business image or initials inside the design's mark */
.listing-row__mark { position: relative; overflow: hidden; text-decoration: none; flex: none; }
.listing-row__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ph-initials { display: none; }
.is-empty > .ph-initials { display: grid; place-items: center; position: absolute; inset: 0; }
.listing-row__meta .stars { color: var(--red); letter-spacing: 1px; }
.listing-row__meta .badge { color: var(--red-deep); }
.result-item__mark { position: relative; overflow: hidden; text-decoration: none; }
.result-item__mark img { position: absolute; inset: 0; background: #fff; }
a.result-item__type { text-decoration: none; }
.detail-head__mark { position: relative; overflow: hidden; }
.detail-head__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* Decorative fallback art (logo elements) inside image boxes */
.card__media.is-art { display: grid; place-items: center; }
.card__media.is-art img { width: 46%; height: 46%; object-fit: contain; }
.card:hover .card__media.is-art img { transform: scale(1.08); }

/* Pagination (WordPress paginate_links) styled like the design's .pager */
.pagination { margin-top: var(--sp-6); }
.pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.pagination .page-numbers li { margin: 0; }
.pagination a.page-numbers, .pagination span.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-weight: 700; text-decoration: none; color: var(--ink); transition: background var(--t-fast), color var(--t-fast); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination span.page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination span.page-numbers.dots { border: 0; background: transparent; }

/* Sidebars and filter forms */
.sidebar-card { align-self: start; }
.btn--block { width: 100%; }
.panel .search-form-mini { display: grid; gap: var(--sp-2); }
.panel .search-form-mini input { width: 100%; min-height: 44px; padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filter-panel .field input, .filter-panel .field select { width: 100%; }
.toolbar .select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e141b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.search-bar select { appearance: none; padding-right: 36px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e141b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }

/* Form messages */
.form-status .notice { margin-top: var(--sp-4); }

/* Listing page */
.page-hero__title a { color: inherit; text-decoration: none; }
.page-hero__title a:hover { text-decoration: underline; }
.panel .entry p a, .article__body a { text-decoration: underline; color: var(--red); }
.rating-summary { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; margin-bottom: var(--sp-5); }
.rating-summary__score { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.rating-summary .stars { color: var(--red); font-size: 1.1rem; letter-spacing: 2px; }
.rating-bars { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.rating-bars div { display: grid; grid-template-columns: 56px 1fr 44px; gap: var(--sp-2); align-items: center; font-size: var(--fs-xs); }
.rating-bars i { display: block; height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.rating-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--red); }
.panel blockquote { margin: 0 0 var(--sp-4); padding: var(--sp-4); border-left: 4px solid var(--red); background: var(--cream); border-radius: var(--radius-sm); }
.panel blockquote p { margin: 0 0 var(--sp-2); }
.panel blockquote footer { font-size: var(--fs-xs); font-weight: 700; color: var(--slate); }
.panel blockquote .stars { color: var(--red); margin-left: 6px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-2); }
.feat-grid > div { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.feat-grid img, .feat-grid svg, .feat-grid .ico { width: 22px; height: 22px; max-width: 22px; max-height: 22px; flex: none; object-fit: contain; color: var(--red); }
.feat-grid .ico { display: inline-block; background: var(--red); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.co-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.co-facts > div { display: grid; gap: 4px; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.co-facts svg { color: var(--red); }
.co-facts b { font-family: var(--font-display); font-size: 1.3rem; }
.co-facts small { color: var(--slate); font-size: var(--fs-xs); }
.facts dd svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--red); }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); cursor: zoom-in; }
.gallery a:hover img { transform: scale(1.08); }
.soc-r { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.soc-r a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--red-deep); }
.soc-r a:hover { background: var(--red); color: #fff; }
.soc-r svg { width: 18px; height: 18px; fill: currentColor; }

/* Blog article */
.article--wide { max-width: none; }
.article__body > * + * { margin-top: var(--sp-4); }
.article__body img { border-radius: var(--radius-sm); height: auto; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-weight: 700; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }
.post-navigation a { font-weight: 700; color: var(--red); text-decoration: none; }
.comments { margin-top: var(--sp-7); }
.comment-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.comment-list .comment-body { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.comment-form .submit { display: inline-flex; min-height: 46px; padding: 0 var(--sp-5); border: 0; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.page-content > * + * { margin-top: var(--sp-4); }

/* Footer: back to top */
.footer-bottom .to-top { text-decoration: none; }
