/* Hodowle – katalog, karta hodowli, rejestracja i panel. Kolory z motywu Pies dla Ciebie. */
.dph {
	--h-accent: var(--wp--preset--color--zielen, #23395B);
	--h-soft: var(--wp--preset--color--szalwia, #FBEFE6);
	--h-bg2: var(--wp--preset--color--tlo, #F6F7FA);
	--h-line: var(--wp--preset--color--linia, #E3E6EE);
	--h-ph: var(--wp--preset--color--placeholder, #F3D9C6);
	--h-amber: var(--wp--preset--color--bursztyn, #E8A33D);
	--h-ink2: var(--wp--preset--color--tekst-2, #444C5E);
	--h-muted: var(--wp--preset--color--szary, #5B6375);
	--h-display: var(--wp--preset--font-family--bricolage, inherit);
	width: 100%;
}
.dph *, .dph *::before, .dph *::after { box-sizing: border-box; }
.dph-btn { display: inline-block; background: var(--h-accent, #23395B); color: #fff !important; border: 2px solid var(--h-accent, #23395B); border-radius: 999px; padding: .75rem 1.35rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; text-align: center; }
.dph-btn:hover { filter: brightness(1.1); }
.dph-btn--ghost { background: transparent; color: var(--h-accent, #23395B) !important; }
.dph-btn--block { display: block; width: 100%; }
.dph-link-btn { background: none; border: 0; padding: 0; color: #b32d2e; font: inherit; cursor: pointer; text-decoration: underline; }
.dph-small { font-size: .9rem; color: var(--h-muted); }
.dph-ok { background: var(--h-soft); color: var(--h-accent); font-weight: 600; border-radius: 12px; padding: .8rem 1rem; }
.dph-err { background: #fdecec; color: #b32d2e; border-radius: 12px; padding: .8rem 1rem; }
.dph-note { background: #FFF4E2; border-radius: 12px; padding: .8rem 1rem; }
.dph-hp { position: absolute !important; left: -9999px !important; }
.dph-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.dph-badge { display: inline-block; background: var(--h-soft, #FBEFE6); color: var(--h-accent, #23395B); font-weight: 700; font-size: .8rem; padding: .2rem .65rem; border-radius: 99px; vertical-align: middle; }
.dph-badge.is-premium { background: var(--h-amber, #E8A33D); color: #1A2233; }

/* Formularze */
.dph-form { display: flex; flex-direction: column; gap: 1.1rem; }
.dph fieldset { border: 1px solid var(--h-line); border-radius: 16px; padding: 1rem 1.1rem 1.2rem; margin: 0; }
.dph legend { font-weight: 700; padding: 0 .4rem; }
.dph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1.1rem; }
.dph label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.dph input[type=text], .dph input[type=email], .dph input[type=password], .dph input[type=tel], .dph input[type=url], .dph input[type=number], .dph input[type=date], .dph select, .dph textarea { font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid var(--h-ph); border-radius: 12px; background: #fff; width: 100%; min-height: 46px; }
.dph select[multiple] { min-height: 140px; }
.dph .dph-check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; }
.dph .dph-check input { margin-top: .3rem; }
.dph-full { width: 100%; }

/* Katalog */
.dph-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; background: var(--h-soft); padding: 1rem; border-radius: 20px; margin-bottom: 1rem; }
.dph-filters label { flex: 1 1 180px; }
.dph-filters .dph-check { flex: 0 0 auto; align-self: center; font-weight: 600; }
.dph-count { color: var(--h-muted); }
.dph-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
.dph-cards--compact { grid-template-columns: 1fr; }
.dph-card { display: flex; gap: 1.1rem; border: 1px solid var(--h-line); border-radius: 20px; padding: 1rem; background: #fff; }
.dph-card.is-premium { border: 1.5px solid var(--h-amber); }
.dph-card__img { flex: 0 0 128px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--h-ph); display: grid; place-items: center; text-decoration: none; }
.dph-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dph-card__ph { font-family: var(--h-display); font-size: 2.5rem; font-weight: 700; color: var(--h-accent); }
.dph-card__body { min-width: 0; }
.dph-card h3 { margin: .1rem 0 .2rem; font-size: 1.25rem; }
.dph-card h3 a { color: inherit; text-decoration: none; }
.dph-card h3 a:hover { text-decoration: underline; }
.dph-card__meta { margin: 0; color: var(--h-ink2); font-size: .95rem; }
.dph-card__breeds { margin: .2rem 0 0; font-size: .9rem; color: var(--h-muted); }
.dph-card__litter { margin: .5rem 0 0; font-weight: 600; color: var(--h-accent); font-size: .95rem; }
.dph-empty { border: 1px dashed var(--h-ph); border-radius: 20px; padding: 1.5rem; }
.dph-pages { display: flex; gap: .4rem; margin-top: 1.5rem; }
.dph-pages a { border: 1px solid var(--h-line); border-radius: 10px; padding: .4rem .8rem; text-decoration: none; }
.dph-pages a[aria-current] { background: var(--h-accent); color: #fff; border-color: var(--h-accent); }
@media (max-width: 560px) { .dph-card__img { flex-basis: 84px; } }

/* Karta hodowli */
.dph-cover { height: clamp(140px, 22vw, 280px); border-radius: 24px; background: var(--h-ph); overflow: hidden; }
.dph-cover img { width: 100%; height: 100%; object-fit: cover; }
.dph-head { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin-top: -3rem; padding: 0 1.25rem; }
.dph-logo { width: 128px; height: 128px; border-radius: 24px; background: #fff; border: 4px solid #fff; box-shadow: 0 2px 12px rgba(23,33,28,.15); overflow: hidden; display: grid; place-items: center; flex: none; }
.dph-logo img { width: 100%; height: 100%; object-fit: cover; }
.dph-logo span { font-family: var(--h-display); font-size: 3rem; font-weight: 700; color: var(--h-accent); }
.dph-head__text { flex: 1 1 320px; padding-bottom: .3rem; }
.dph-head h1 { font-family: var(--h-display); font-size: clamp(2rem, 4vw, 2.75rem); margin: 0; line-height: 1.05; }
.dph-tabs { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--h-line, #E3E6EE); margin-top: 1.5rem; }
.admin-bar .dph-tabs { top: 32px; }
@media (max-width: 782px) { .admin-bar .dph-tabs { top: 0; } }
.dph-tabs__in { max-width: var(--wp--style--global--wide-size, 1280px); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); display: flex; gap: .25rem; overflow-x: auto; white-space: nowrap; }
.dph-tabs a { padding: 1rem .9rem; font-weight: 600; color: #444C5E; text-decoration: none; border-bottom: 3px solid transparent; }
.dph-tabs a[aria-current] { color: #23395B; border-bottom-color: #23395B; }
.dph-body { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; padding: 2rem 0 3rem; }
.dph-body__main { flex: 999 1 560px; min-width: 0; }
.dph-body__side { flex: 1 1 300px; position: sticky; top: 80px; }
.dph-body section { scroll-margin-top: 90px; margin-bottom: 2.5rem; }
.dph-body h2 { font-family: var(--h-display); margin: 0 0 1rem; }
.dph-dogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.dph-dog { border: 1px solid var(--h-line); border-radius: 18px; overflow: hidden; }
.dph-dog img, .dph-dog__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--h-ph); }
.dph-dog > div { padding: .9rem 1rem; }
.dph-dog h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.dph-dog p { margin: .3rem 0 0; }
.dph-litter { border: 1px solid var(--h-line); border-radius: 18px; padding: 1.1rem; margin-bottom: 1rem; }
.dph-litter h3 { margin: 0 0 .8rem; font-size: 1.2rem; }
.dph-parents { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.dph-parents > div { background: var(--h-bg2); border-radius: 12px; padding: .7rem .9rem; }
.dph-parents span { display: block; font-size: .8rem; color: var(--h-muted); }
.dph-timeline { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--h-line); border-radius: 14px; overflow: hidden; }
.dph-timeline li { padding: .8rem .9rem; border-left: 1px solid var(--h-line); }
.dph-timeline li:first-child { border-left: 0; }
.dph-timeline li.is-done { background: var(--h-accent); color: #fff; border-color: #2F4B75; }
.dph-timeline b, .dph-timeline span { display: block; }
.dph-timeline span { font-size: .9rem; opacity: .9; }
.dph-pups-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dph-pups-list li { border: 1px solid var(--h-line); border-radius: 12px; padding: .5rem .75rem; font-size: .95rem; }
.dph-pups-list li span { display: block; font-weight: 700; color: var(--h-accent); }
.dph-pups-list li:not(.is-wolny) span { color: var(--h-muted); }
.dph-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.dph-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.dph-contact { border: 1.5px solid var(--h-accent); border-radius: 20px; padding: 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.dph-contact h3 { margin: 0; }
.dph-contact form { display: flex; flex-direction: column; gap: .8rem; }
.dph-stars { color: var(--h-amber); letter-spacing: .05em; }
.dph-stars span { color: var(--h-line); }
.dph-review { border-bottom: 1px solid var(--h-line); padding: 1rem 0; }
.dph-review header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dph-review__photos { display: flex; gap: .5rem; }
.dph-review__photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.dph-reply { background: var(--h-bg2); border-radius: 12px; padding: .7rem .9rem; margin-top: .5rem; }
.dph-review-form { margin-top: 1rem; }
.dph-review-form summary { cursor: pointer; font-weight: 700; color: var(--h-accent); }
.dph-review-form form { display: flex; flex-direction: column; gap: .8rem; margin-top: .8rem; }
.dph-rate { display: flex; gap: 1rem; }
.dph-rate label { flex-direction: row; gap: .3rem; }

/* Panel */
.dph-panel { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.dph-panel__nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: .25rem; background: var(--h-bg2); border-radius: 18px; padding: .75rem; }
.dph-panel__nav a { padding: .65rem .9rem; border-radius: 10px; text-decoration: none; color: #1A2233; font-weight: 600; }
.dph-panel__nav a[aria-current] { background: var(--h-accent); color: #fff; }
.dph-panel__main { flex: 999 1 560px; min-width: 0; }
.dph-panel__main h2 { font-family: var(--h-display); margin-top: 0; }
.dph-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.dph-stats > div { border: 1px solid var(--h-line); border-radius: 16px; padding: .9rem 1rem; }
.dph-stats span { display: block; font-size: .85rem; color: var(--h-muted); }
.dph-stats b { display: block; font-size: 1.15rem; margin-top: .2rem; }
.dph-stats small { color: var(--h-muted); }
.dph-stats .is-ok { color: var(--h-accent); }
.dph-stats .is-warn { color: #8A4B0B; }
.dph-todo { list-style: none; padding: 0; }
.dph-todo li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.dph-todo li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--h-ph); border-radius: 50%; }
.dph-todo li.is-done::before { background: var(--h-accent); border-color: var(--h-accent); }
.dph-todo li.is-done { color: var(--h-muted); text-decoration: line-through; }
.dph-table-wrap { overflow-x: auto; border: 1px solid var(--h-line); border-radius: 16px; }
.dph-table { width: 100%; border-collapse: collapse; min-width: 560px; margin: 0; }
.dph-table th, .dph-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--h-line); }
.dph-table th { font-size: .85rem; color: var(--h-muted); font-weight: 600; }
.dph-actions { white-space: nowrap; display: flex; gap: .8rem; align-items: center; }
.dph-inline { display: inline; }
.dph-pup { display: grid; grid-template-columns: 110px 1fr 170px auto; gap: .5rem; align-items: center; margin-bottom: .5rem; }
@media (max-width: 600px) { .dph-pup { grid-template-columns: 1fr 1fr; } }
.dph-gal-edit { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.dph-gal-edit label { font-weight: 400; font-size: .85rem; }
.dph-gal-edit img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.dph-inq { border: 1px solid var(--h-line); border-radius: 16px; padding: 1rem; margin-bottom: .8rem; }

/* Katalog: lokalizacja i sortowanie */
.dph-filters__loc { flex: 1.4 1 240px !important; }
.dph-loc { display: flex; gap: .4rem; }
.dph-loc input { flex: 1 1 auto; min-width: 0; }
.dph-loc__btn { flex: 0 0 48px; height: 48px; border: 1px solid var(--h-line, #E3E6EE); border-radius: 12px; background: #fff; color: var(--h-accent, #2F4B75); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dph-loc__btn:hover { border-color: var(--h-accent, #2F4B75); }
.dph-loc__btn.is-busy { opacity: .5; }
.dph-card__km { font-weight: 700; color: var(--h-accent, #2F4B75); }
.dph-note { background: #fff4e5; border-radius: 12px; padding: .75rem 1rem; }

.dph-ceny { padding-left: 1.2em; }
.dph-ceny li { margin: .3em 0; }

/* 0.5.0: strony hodowli według rasy, poradnik na stronie katalogu */
.dph-seo-intro { margin: 0 0 1.25rem; max-width: 46rem; }
.dph-guide { margin-top: 3rem; max-width: 46rem; }
.dph-guide ol { padding-left: 1.25rem; }
.dph-guide li { margin: .5rem 0; }
