/* ODI — sekcja Okolica / POI (shortcode [odi_okolica], panel, edytor) */

.odi-okolica-container {
	--odi-red: #D3212B;
	--odi-dark: #2B2F33;
	--odi-slate: #555D61;
	--odi-gray: #E5E8EB;
	--odi-soft: #F8F9FA;

	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 0;
	color: var(--odi-dark);
}

.odi-okolica-container * {
	box-sizing: border-box;
}

.odi-poi-section {
	background: #fff;
	border: 1px solid var(--odi-gray);
	border-radius: 8px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(43, 47, 51, 0.04);
}

.odi-poi-section-title {
	font-size: 12px;
	font-weight: 800;
	color: var(--odi-dark);
	margin: 0;
	padding: 10px 14px;
	background: var(--odi-soft);
	border-bottom: 1px solid var(--odi-gray);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: left;
}

.odi-poi-section-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.odi-poi-section-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: var(--odi-dark);
	fill: currentColor;
}

.odi-poi-section-text {
	min-width: 0;
	line-height: 1.3;
}

/* —— elegancka lista —— */
.odi-poi-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.odi-poi-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 14px;
	border-bottom: 1px solid #eef1f4;
}

.odi-poi-item:last-child {
	border-bottom: none;
}

.odi-poi-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.odi-poi-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--odi-dark);
	line-height: 1.35;
}

.odi-poi-name {
	font-size: 11px;
	font-weight: 500;
	color: var(--odi-slate);
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.odi-poi-dist {
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 800;
	color: var(--odi-red);
	background: #fff8f8;
	border: 1px solid #ffcdd2;
	padding: 3px 8px;
	border-radius: 4px;
	white-space: nowrap;
	line-height: 1.3;
}

.odi-poi-item--warning {
	background: #fff7f7;
}

.odi-poi-warning-badge {
	font-size: 10px;
	font-weight: 700;
	color: #dc2626;
}

.odi-poi-dist--warning {
	color: #dc2626;
	background: #fef2f2;
	border-color: #fecaca;
}

.odi-poi-empty {
	color: var(--odi-slate);
	font-size: 13px;
}

.odi-poi-pending {
	padding: 12px 14px;
	border: 1px dashed #E5E8EB;
	border-radius: 8px;
	background: #F8F9FA;
}

.odi-poi-pending .odi-poi-empty {
	margin: 0;
}

/* —— stary cache (grid/card) → ten sam wygląd listy —— */
.odi-poi-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}

.odi-poi-card {
	background: transparent;
	border: none;
	border-bottom: 1px solid #eef1f4;
	border-radius: 0;
	padding: 9px 14px;
	min-height: unset;
	box-shadow: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.odi-poi-card:last-child {
	border-bottom: none;
}

.odi-poi-card-header {
	flex: 1;
	min-width: 0;
	gap: 1px;
}

.odi-poi-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--odi-dark);
	line-height: 1.35;
}

.odi-poi-title::before {
	content: none;
}

.odi-poi-sub {
	font-size: 11px;
	color: var(--odi-slate);
	font-weight: 500;
}

.odi-poi-card .odi-poi-dist {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

@media (max-width: 640px) {
	.odi-poi-item,
	.odi-poi-card {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.odi-poi-dist {
		margin-left: auto;
	}
}

/* Rozkład pomieszczeń / listy tekstowe */
.odi-rozklad-pomieszczen .odi-rozklad-level {
	margin: 15px 0 5px;
	font-weight: 700;
}

.odi-list-bullets {
	list-style-type: disc;
	margin: 0 0 15px 20px;
	padding: 0;
}

.odi-list-single {
	margin: 0 0 15px;
	padding: 0;
}
