/*
 * Katalogi z dodatku Directories Pro (skarbce /en/gold-silver-storage/, dealerzy /en/bullion-dealers/)
 * w stylu motywu — tylko style, bez zmian w dodatku i danych (2026-10-02).
 */

/* Lista stanów (wiersz Kadence z nagłówkami-linkami) → małe przyciski */
.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; grid-template-columns: none !important; }
.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) > .wp-block-kadence-column { flex: none; width: auto !important; margin: 0 !important; }
.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) .kt-inside-inner-col { padding: 0 !important; }
.mrf-content .wp-block-kadence-column h3.wp-block-heading:has(> a) { margin: 0; font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: 0; }
.mrf-content .wp-block-kadence-column h3.wp-block-heading > a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.mrf-content .wp-block-kadence-column h3.wp-block-heading > a:hover { border-color: var(--up); color: var(--up-deep, var(--up)); }

/* Równa siatka stanów (2026-10-03): zamiast wyśrodkowanych chipów różnej szerokości (na telefonie rzędy się rozjeżdżały)
   wszystkie przyciski tej samej szerokości. Kadence dzieli listę na wiersze po 6, więc 6 / 3 / 2 kolumny dają pełne rzędy. */
.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px; padding: 0 !important; margin-bottom: 8px; }
.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) > .wp-block-kadence-column { width: auto !important; min-width: 0; }
.mrf-content .wp-block-kadence-column h3.wp-block-heading > a { display: block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px 8px; }
@media (max-width: 900px) {
	.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
	.mrf-content .kt-row-column-wrap:has(> .wp-block-kadence-column h3 > a) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* Adres WWW firmy jako zwykły tekst (inc/storage-directory.php) */
.mrf-content .mrf-site-plain { color: var(--ink); font-weight: 600; word-break: break-all; }

/* Pasek nad listą: liczba wyników, widok, sortowanie */
.mrf-content .drts .drts-view-entities-header { margin-bottom: 14px !important; }
.mrf-content .drts .drts-view-nav-item-name-num { font-size: 14px; font-weight: 600; color: var(--muted); }
.mrf-content .drts .drts-bs-btn-outline-secondary { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: none; }
.mrf-content .drts .drts-bs-btn-outline-secondary:hover, .mrf-content .drts .drts-bs-btn-outline-secondary.drts-bs-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Lista + mapa: mapa przypięta przy przewijaniu */
@media (min-width: 576px) {
	.mrf-content .drts-location-entities-with-map > .drts-bs-col-sm-4 { position: sticky; top: 80px; align-self: flex-start; }
}
.mrf-content .drts-location-entities-with-map .drts-location-map-container-container { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }

/* Pozycja katalogu → karta */
.mrf-content .drts-view-entities-list-row > .drts-view-entity-container,
.mrf-content .drts-view-entities-list-row .drts-entity.drts-display--summary { margin-bottom: 12px; }
.mrf-content .drts-entity.drts-display--summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s; }
.mrf-content .drts-entity.drts-display--summary:hover { border-color: var(--up); }
.mrf-content .drts-entity .directory-listing-photo { min-height: 150px; height: 100%; background-size: cover; background-position: center; }
.mrf-content .drts-entity .drts-display-element-column-4 { padding: 16px 18px !important; }
.mrf-content .drts-entity .drts-display-element-column-5 { padding: 16px 18px !important; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mrf-content .drts-entity .directory-listing-title { font-size: 17px !important; font-weight: 800; line-height: 1.3; }
.mrf-content .drts-entity .directory-listing-title a { color: var(--ink); text-decoration: none; }
.mrf-content .drts-entity .directory-listing-title a:hover { color: var(--up-deep, var(--up)); }
.mrf-content .drts-entity .directory-listing-contact-info, .mrf-content .drts-entity .drts-location-address { font-size: 13.5px !important; color: var(--muted); }
.mrf-content .drts-entity .drts-bs-list-group-item { padding-top: 2px !important; padding-bottom: 2px !important; background: transparent; }
.mrf-content .drts-entity a[href^="tel:"] { color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
/* „View Storage” / „View Dealer” jak przyciski motywu */
.mrf-content .drts .drts-bs-btn-warning { background: var(--up); border: 0; color: #fff; border-radius: 10px; font-weight: 700; font-size: 13.5px; padding: 8px 14px; box-shadow: none; }
.mrf-content .drts .drts-bs-btn-warning:hover { background: var(--up-deep, var(--up)); color: #fff; }

/* Stronicowanie */
.mrf-content .drts .drts-bs-pagination .drts-bs-page-link { border: 1px solid var(--line); color: var(--ink); border-radius: 8px; margin: 0 3px; }
.mrf-content .drts .drts-bs-pagination .drts-bs-active .drts-bs-page-link { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 640px) {
	/* telefon: karta pionowo — zdjęcie, nazwa i adres, przycisk z telefonem */
	.mrf-content .drts-entity.drts-display--summary .drts-row { flex-direction: column; }
	.mrf-content .drts-entity.drts-display--summary .drts-row > [class*="drts-col-"] { flex: none; max-width: 100%; width: 100%; }
	.mrf-content .drts-entity .directory-listing-photo { min-height: 170px; }
	.mrf-content .drts-entity .drts-display-element-column-4 { padding-bottom: 6px !important; text-align: left; }
	.mrf-content .drts-entity .drts-display-element-column-4 * { text-align: left !important; }
	.mrf-content .drts-entity .drts-display-element-column-5 { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 0 !important; }
}
