/* ==========================================================================
   Strony miast /oferty/{usługa}-{miasto}/ (ładowane tylko na tych stronach).
   ========================================================================== */

.sch-city-section > .sch-section-title { margin-bottom: 0.5rem; }
.sch-city-section > .has-text-align-center:not(.sch-section-title) { max-width: 760px; margin-inline: auto; }

/* Opis miasta + mapa */
.sch-city-about { gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-start; margin-top: 2rem; }
.sch-city-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid #e3e3e3; }
.sch-city-facts li { padding: 0.6rem 0; border-bottom: 1px solid #e3e3e3; font-size: 0.9375rem; }
.sch-city-source { margin-top: 0.75rem !important; color: var(--sch-muted); font-size: 0.8125rem; }
.sch-city-map { margin: 0; }
.sch-city-map iframe { display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: var(--sch-radius); background: var(--sch-light); box-shadow: var(--sch-shadow); }
.sch-city-map figcaption { margin-top: 0.5rem; color: var(--sch-muted); font-size: 0.8125rem; }

/* Siatki kart */
.sch-city-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.sch-city-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.sch-city-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sch-city-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.sch-city-grid > * { margin: 0 !important; }

.sch-city-card,
.sch-city-step {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid #e3e3e3;
	border-radius: var(--sch-radius);
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.sch-city-card { display: flex; flex-direction: column; border-top: 4px solid var(--sch-yellow); }
.sch-city-card > *, .sch-city-step > * { margin-block: 0 0.75rem; }
.sch-city-card > :last-child, .sch-city-step > :last-child { margin-bottom: 0; }
.sch-city-card__title { font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.sch-city-card__title a { color: inherit; text-decoration: none; }
.sch-city-card__title a:hover { text-decoration: underline; text-decoration-color: var(--sch-yellow); text-decoration-thickness: 3px; }
.sch-city-card__more { margin-top: auto !important; font-weight: 700; }
.sch-city-card__more a { color: inherit; text-decoration-color: var(--sch-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.sch-city-step__no {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--sch-yellow);
	font-size: 1.25rem;
	font-weight: 900;
}

/* Realizacje */
.sch-city-work { overflow: hidden; border-radius: var(--sch-radius); background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); transition: transform 0.2s ease; }
.sch-city-work:hover { transform: translateY(-4px); }
.sch-city-work > * { margin: 0 !important; }
.sch-city-work img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sch-city-work__body { padding: 1rem 1.25rem 1.25rem; }
.sch-city-section .wp-block-buttons { margin-top: 2rem; }

/* Rabat + formularz */
.sch-city-section--promo { scroll-margin-top: 6rem; }
.sch-city-promo { gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.sch-city-promo__badge {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.25rem 1rem;
	background: var(--sch-yellow);
	color: var(--sch-black);
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 900;
	line-height: 1.1;
	transform: rotate(-3deg);
}
.sch-city-promo__title { margin-top: 0.5rem; color: #fff; }
.sch-city-promo .is-style-checks li { border-color: var(--sch-yellow); }
.sch-city-section--promo { color: #fff; }
.sch-city-promo .sch-form { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--sch-radius); background: #fff; color: var(--sch-black); }
.sch-city-promo .sch-form *, .sch-city-promo .sch-form *::before, .sch-city-promo .sch-form *::after { box-sizing: border-box; }
.sch-city-promo .sch-form .sch-form__field label { color: var(--sch-black); }

/* FAQ */
.sch-city-faqs { max-width: 860px; margin: 2rem auto 0; }
.sch-city-faq { margin: 0 0 0.75rem; border: 1px solid #e3e3e3; border-radius: var(--sch-radius); background: #fff; }
.sch-city-faq summary { padding: 1rem 3rem 1rem 1.25rem; position: relative; cursor: pointer; font-weight: 700; list-style: none; }
.sch-city-faq summary::-webkit-details-marker { display: none; }
.sch-city-faq summary::after { content: "+"; position: absolute; top: 50%; right: 1.25rem; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.sch-city-faq[open] summary::after { content: "–"; }
.sch-city-faq > p { margin: 0; padding: 0 1.25rem 1.25rem; }

/* Okolice */
.sch-city-nearby { line-height: 2.2; }
.sch-city-nearby a { white-space: nowrap; color: inherit; font-weight: 700; text-decoration-color: var(--sch-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Linki: miejscowości w pobliżu + inne usługi w mieście (inc/oferty-links.php) */
.sch-oferty-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.sch-oferty-links__grid > * { margin: 0 !important; }
.sch-oferty-links__col > :first-child { margin-top: 0; }
.sch-oferty-links__list { margin: 1rem 0 0; padding: 0; list-style: none; }
.sch-oferty-links__list--cols { columns: 2 14rem; column-gap: 2rem; }
.sch-oferty-links__list li { break-inside: avoid; padding: 0.35rem 0; }
.sch-oferty-links__list a { color: inherit; font-weight: 700; text-decoration-color: var(--sch-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sch-oferty-links__km { margin-left: 0.25rem; color: var(--sch-muted); font-size: 0.8125rem; white-space: nowrap; }

@media (max-width: 781px) {
	.sch-city-map iframe { aspect-ratio: 4 / 3; }
}
