/* Zarządzaj Gabinetem — front (fallback, dziedziczy fonty/kolory motywu gdzie się da) */

.zg-zespol { display: grid; gap: 24px; }
.zg-cols-1 { grid-template-columns: 1fr; }
.zg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.zg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.zg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.zg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.zg-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) { .zg-zespol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zg-zespol { grid-template-columns: 1fr; } }

.zg-card-person {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	text-decoration: none; color: inherit;
}
.zg-card-photo { width: 100%; }
.zg-card-img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block;
}
.zg-card-name { font-weight: 600; margin-top: 12px; }
.zg-card-rola { font-size: .9em; opacity: .75; margin-top: 2px; }

.zg-zdjecie--placeholder {
	display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
	background: #eef0f2 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23b6bcc4' stroke-width='1.5'><circle cx='12' cy='8' r='4'/><path d='M4 20c0-4 4-6 8-6s8 2 8 6'/></svg>") center/40% no-repeat;
}

/* Strona pojedynczego pracownika */
.zg-single-inner { max-width: 900px; margin: 0 auto; padding: 32px 16px; }
.zg-single-head { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.zg-single-head .zg-zdjecie-img,
.zg-single-head .zg-zdjecie--placeholder {
	width: 240px; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px;
}
.zg-single-name { margin: 0 0 2px; }
.zg-single-rola { font-size: 1.1em; opacity: .8; margin: 6px 0 4px; }
.zg-single-section { margin-top: 32px; }
.zg-single-section h2 { margin-bottom: 12px; }

/* Skrót tytułu naukowego pod imieniem (np. „dr n. wet.”) */
.zg-single-tytul { margin: 0 0 6px; }
.zg-tytul { color: #1e7e34; font-weight: 400; }

/* Role jako zielone tagi (front) */
.zg-role-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.zg-role-tag {
	display: inline-block;
	background: #fff; color: rgba(10, 52, 49, 1); border: none;
	border-radius: 999px; padding: 6px 16px; font-size: .85em; line-height: 1.6;
	box-shadow: 0 1px 3px rgba(10, 52, 49, .18);
}

.zg-kursy, .zg-doswiadczenie { padding-left: 20px; }
.zg-kursy li, .zg-doswiadczenie li { margin: 4px 0; }
.zg-dosw-zakres { color: #646970; font-size: .9em; }

.zg-galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .zg-galeria { grid-template-columns: repeat(2, 1fr); } }
.zg-galeria-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }

/* Godziny pracy — tabliczka (dziedziczy font/kolor motywu, w pełni płynna) */
.zg-hours { --zg-accent: #1e7e34; width: 100%; max-width: 460px; font-size: var( --zg-fs ); }
.zg-hours-list { list-style: none; margin: 0; padding: 0; }
.zg-hours-list li { margin: 0; }
.zg-hours-row {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 9px 10px; border-bottom: 1px solid rgba( 0, 0, 0, 0.10 );
}
.zg-hours-row:last-child { border-bottom: 0; }

/* Status „otwarte / nieczynne teraz” */
.zg-hours-status {
	display: inline-flex; align-items: center; gap: 7px;
	font-weight: 500; font-size: .9em; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.zg-hours-status .zg-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.zg-hours-status.is-open { background: #e6f4ea; color: #155d27; }
.zg-hours-status.is-open .zg-status-dot { background: var( --zg-accent ); }
.zg-hours-status.is-closed { background: #fceaea; color: #a3211f; }
.zg-hours-status.is-closed .zg-status-dot { background: #d63638; }
.zg-status-until { font-weight: 400; opacity: .85; }
/* Dzień: lekko wyróżniony; zielony gdy otwarte, czerwony gdy nieczynne */
.zg-hours-day { text-align: left; font-weight: 600; }
.zg-hours-row.is-open .zg-hours-day { color: var( --zg-accent ); }
.zg-hours-row.is-closed .zg-hours-day { color: #d63638; }
.zg-hours-holiday { font-weight: 400; opacity: .8; font-size: .9em; }
/* Godziny: bez pogrubienia */
.zg-hours-time { text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zg-hours-closed { color: #d63638; }
/* Dzisiejszy dzień: pełne tło od kreski do kreski (bez zaokrągleń, na całą szerokość) */
.zg-hours-row.is-today { background: rgba( 0, 0, 0, 0.06 ); }
.zg-hours-break { margin: 12px 0 0; font-size: .9em; opacity: .85; text-align: center; }
/* Informacje dodatkowe: wyśrodkowane, cienką czcionką */
.zg-hours-note { margin: 12px 0 0; font-size: .9em; font-weight: 300; text-align: center; opacity: .85; }
/* Zielone monity: subtelne, ale wyraźne — delikatne tło, cienka ramka, zaokrąglone */
.zg-hours-holiday-note,
.zg-hours-msg--call {
	margin: 12px 0 0; padding: 11px 14px; font-size: .9em;
	color: #1e5b34; background: #f1f8f3;
	border: 1px solid #d2e7d9; border-radius: 10px;
}
.zg-hours-holiday-note { text-align: center; }
.zg-hours-msg { margin: 12px 0 0; font-size: .92em; }
.zg-hours-phone { color: #155d27; font-weight: 600; }
/* Komunikat klikalny — całe zielone pole jest linkiem (tel / strona), w jednej linii */
.zg-hours-msg-link {
	display: flex; align-items: center; gap: 10px;
	color: #1e5b34 !important; text-decoration: none; cursor: pointer;
}
.zg-hours-msg-link:hover { background: #e7f3ec; }
.zg-hours-msg-text { flex: 1 1 auto; }
/* Na desktopie (mysz) link „zadzwoń” nie ma sensu — wyłącz klikalność */
@media (pointer: fine) {
	.zg-hours-msg-link.zg-tel { pointer-events: none; cursor: default; }
}
/* Okrągła ikona (telefon / globus) */
.zg-hours-ic {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
	background: var( --zg-accent ); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.zg-hours-ic svg { display: block; }
/* Mobile: lekkie zejście z rozmiaru, by duże ustawienie nie psuło wąskich ekranów */
@media (max-width: 480px) {
	.zg-hours { font-size: calc( var( --zg-fs, 1rem ) * 0.9 ); }
	.zg-hours-row { gap: 10px; }
}

/* Komunikat awaryjny — popup */
.zg-alert-overlay {
	position: fixed; inset: 0; z-index: 99999; padding: 20px;
	display: flex; align-items: center; justify-content: center;
	background: rgba( 0, 0, 0, 0.55 ); opacity: 0; transition: opacity .25s ease;
	-webkit-backdrop-filter: blur( 4px ); backdrop-filter: blur( 4px );
	pointer-events: none;
}
/* Schowany lub zamknięty nie może blokować klikania strony */
.zg-alert-overlay[hidden] { display: none !important; }
.zg-alert-overlay.is-open { opacity: 1; pointer-events: auto; }
.zg-alert-overlay { --zg-ic-from: #34d27f; --zg-ic-to: var( --zg-accent, #1e7e34 ); }
.zg-alert-box {
	position: relative; background: #fff; color: #1d2327;
	width: 100%; max-width: 520px; border-radius: 14px; padding: 30px 30px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.30 ); text-align: left;
	transform: translateY( 10px ); transition: transform .25s ease;
}
.zg-alert-overlay.is-open .zg-alert-box { transform: none; }
.zg-alert-close {
	position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
	font-size: 26px; line-height: 1; color: #8c8f94; cursor: pointer;
}
.zg-alert-close:hover { color: #1d2327; }
/* Układ: duża zielona ikona z lewej + treść z prawej */
.zg-alert-inner { display: flex; align-items: center; gap: 22px; }
.zg-alert-ic { flex: 0 0 auto; line-height: 0; align-self: stretch; display: flex; align-items: center; }
.zg-ic-svg { width: clamp( 84px, 20vw, 124px ); height: auto; display: block; }
.zg-alert-content { flex: 1 1 auto; min-width: 0; }
.zg-alert-title { margin: 0 0 10px; font-size: 1.5em; line-height: 1.25; color: var( --zg-accent, #1e7e34 ); }
.zg-alert-text { margin: 0 0 18px; opacity: .85; line-height: 1.7; letter-spacing: .012em; }
.zg-alert-text p { margin: 0 0 8px; }
.zg-alert-text p:last-child { margin-bottom: 0; }
/* Przycisk: outline, zaokrąglony, nieinwazyjny */
.zg-alert-btn {
	display: inline-block; background: transparent; color: var( --zg-accent, #1e7e34 ) !important;
	border: 1.5px solid currentColor; text-decoration: none; cursor: pointer;
	padding: 8px 18px; border-radius: 999px; font-weight: 600; font: inherit;
}
.zg-alert-btn:hover { background: rgba( 30, 126, 52, 0.08 ); }
.zg-alert-btn.zg-alert-dismiss { font: inherit; }
/* Chip statusu jako samodzielny shortcode [godziny_status] */
.zg-hours-statusonly { display: inline-block; width: auto; max-width: none; }
/* Mobile: popup jako dolny arkusz, pełna szerokość, mniejszy padding */
@media (max-width: 480px) {
	.zg-alert-overlay { padding: 0; align-items: flex-end; }
	.zg-alert-box { max-width: 100%; border-radius: 16px 16px 0 0; padding: 24px 18px 26px; transform: translateY( 100% ); }
	.zg-alert-overlay.is-open .zg-alert-box { transform: none; }
	.zg-alert-inner { gap: 16px; }
	.zg-ic-svg { width: 64px; }
	.zg-alert-title { font-size: 1.3em; }
	.zg-alert-btn { display: block; }
}

/* Archiwum */
.zg-archive-inner { max-width: 1100px; margin: 0 auto; padding: 40px 16px; }
.zg-archive-group { margin-top: 40px; }
.zg-archive-group-title { margin-bottom: 20px; }

/* Kategoria — obraz, ikona, chip-link (reszta wyglądu w Breakdance) */
.zg-kat-zdjecie img, .zg-kat-zdjecie2 img, .zg-kat-ikona img { max-width: 100%; height: auto; }
/* Wariant ciemny chipsa: [pracownik_specjalizacje klasa="ciemny"] */
.zg-role-tags.zg-chips-ciemny .zg-role-tag { background: rgb(21, 77, 69); color: #fff; box-shadow: none; }
.zg-role-tags.zg-chips-ciemny .zg-role-tag--link:hover { background: rgb(16, 60, 54); }
.zg-role-tag--link { text-decoration: none; }
.zg-role-tag--link:hover { background: #d6ecdd; }

/* Artykuł — okruszek do kategorii */
.zg-art-breadcrumb { margin: 0 0 12px; font-size: .92em; }
.zg-art-breadcrumb a { text-decoration: none; color: #1e7e34; }

/* Tabliczka godzin — pełna szerokość na mobile (v2.5) */
@media (max-width: 480px) {
	.zg-hours { max-width: 100%; box-sizing: border-box; }
	.zg-hours-row { gap: 8px; }
	.zg-hours-day, .zg-hours-time { min-width: 0; }
	.zg-hours-time { white-space: normal; }
}

/* v2.6 — chipsy kategorii: czarna czcionka */
.zg-role-tag { color: rgba(10, 52, 49, 1); }

/* v3.0 — tabliczka godzin wyśrodkowana (spójnie: front i podglądy w panelu) */
.zg-hours { margin-left: auto; margin-right: auto; }

/* v3.3 — kafelki usług/lekarzy na stronie kategorii */
.zg-kat-uslugi, .zg-kat-lekarze { display: grid; gap: 16px; }
.zg-kat-usluga, .zg-kat-lekarz { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e3e6e8; border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s, border-color .15s; }
.zg-kat-usluga:hover, .zg-kat-lekarz:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-2px); border-color: #b7e0c2; }
.zg-kat-usluga-img, .zg-kat-lekarz-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.zg-kat-usluga-nazwa, .zg-kat-lekarz-nazwa { font-weight: 600; color: #1d2327; padding: 12px 14px 0; }
.zg-kat-usluga-opis { padding: 4px 14px 14px; color: #50575e; font-size: .92em; line-height: 1.5; }
.zg-kat-lekarz-nazwa { padding-bottom: 12px; }
