.sd-widget {
	--sd-accent: #f4d01d;
	--sd-border: #eee;
	--sd-radius: 4px;
	display: grid;
	grid-template-columns: minmax(260px, 2fr) 3fr;
	gap: 48px;
	align-items: start;
	margin: 1.5em 0;
}

.sd-panel { min-width: 0; }

.sd-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.sd-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sd-field label {
	font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 15px;
}

.sd-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 20px;
	border: 3px solid var(--sd-border);
	border-radius: var(--sd-radius);
	font: inherit;
}

.sd-field input:focus {
	outline: 2px solid var(--sd-accent);
	outline-offset: -1px;
}

.sd-field--miejscowosc { position: relative; }

.sd-lista {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1001;
	max-height: 260px;
	overflow-y: auto;
	margin: 2px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.sd-lista[hidden] { display: none; }

.sd-lista li {
	margin: 0;
	padding: 8px 12px;
	cursor: pointer;
}

.sd-lista li:hover,
.sd-lista li.is-active { background: #eef5ee; }

.sd-lista small {
	color: #66707a;
	font-size: 0.85em;
}

.sd-btn {
	padding: 14px 30px;
	text-decoration: none;
	border: 2px solid var(--sd-accent);
	border-radius: var(--sd-radius);
	background: var(--sd-accent);
	color: #000;
	font: inherit;
	line-height: 24px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 15px;
}

.sd-btn:hover {
    background-color: #fff;
    color: #000;
}

/* ---------- komunikat / wynik ---------- */

.sd-wynik:empty { display: none; }

.sd-wynik {
	margin-top: 32px;
	margin-bottom: 16px;
}

.sd-wynik p { margin: 0 0 6px; }
.sd-wynik p:last-child { margin-bottom: 0; }

.sd-wynik small {
	color: #66707a;
	font-size: 0.85em;
}

.sd-wynik  .sd-wynik__naglowek {
	font-weight: 700;
    font-size: 20px;
    margin: 0 0 15px;
}

.sd-wynik .sd-godziny__tytul {
    margin: 0 0 10px;
    font-size: 16px;
}

.sd-godziny {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.sd-godziny li {
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--sd-accent);
	font-weight: 600;
}

.sd-wynik .sd-caption {
    margin-top: 15px;
}

/* ---------- kafelki miejscowości ---------- */

.sd-kafelki {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
}

.sd-kafelki[hidden] { display: none; }

.sd-kafelek {
	padding: 10px 12px;
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.sd-kafelek small {
	display: block;
	color: #66707a;
	font-size: 0.8em;
}

.sd-kafelek:hover { border-color: var(--sd-accent); }

/* ---------- mapa ---------- */

.sd-mapa {
	position: sticky;
	top: 100px;
	width: 100%;
	min-height: 300px;
	border-radius: var(--sd-radius);
	z-index: 0;
}

@media (max-width: 782px) {
	.sd-widget { grid-template-columns: 1fr; }
	.sd-mapa { position: relative; top: 0; }
}
