.atab-afk-map-wrapper {
	width: 100%;
	margin: 1.5rem 0;
}

.atab-afk-map-wrapper--full-width {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 0;
	padding-right: 0;
}

.atab-afk-layout {
	display: flex;
	align-items: stretch;
	gap: 0;
	height: var(--atab-afk-height, 500px);
	max-height: var(--atab-afk-height, 500px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	background: #fff;
}

.atab-afk-map-wrapper--full-width .atab-afk-layout {
	border-radius: 0;
	border-left: 0;
	border-right: 0;
}

.atab-afk-list {
	flex: 0 0 320px;
	max-width: 320px;
	min-height: 0;
	height: 100%;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	background: #fafafa;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.atab-afk-list__search {
	flex: 0 0 auto;
	padding: 0.85rem 0.9rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

.atab-afk-list__search-field {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
}

.atab-afk-list__search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
}

.atab-afk-list__search-clear {
	flex: 0 0 auto;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	white-space: nowrap;
}

.atab-afk-list__search-clear:hover,
.atab-afk-list__search-clear:focus {
	background: #f0f0f0;
	outline: none;
}

.atab-afk-list__search-clear:focus-visible {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
	border-color: #2271b1;
}

.atab-afk-list__search-clear[hidden] {
	display: none;
}

.atab-afk-list__search-input:focus {
	border-color: #2271b1;
	outline: 2px solid rgba(34, 113, 177, 0.15);
	outline-offset: 0;
}

.atab-afk-list__no-results {
	flex: 0 0 auto;
	margin: 0;
	padding: 1rem 1.1rem;
	font-size: 14px;
	color: #555;
}

.atab-afk-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.atab-afk-list__item.is-hidden {
	display: none;
}

.atab-afk-list__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.atab-afk-list__item:last-child {
	border-bottom: 0;
}

.atab-afk-list__button {
	display: block;
	width: 100%;
	padding: 1rem 1.1rem;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: background-color 0.15s ease;
}

.atab-afk-list__button:hover,
.atab-afk-list__button:focus {
	background: #f0f0f0;
	outline: none;
}

.atab-afk-list__button:focus-visible {
	box-shadow: inset 0 0 0 2px #2271b1;
}

.atab-afk-list__item.is-active .atab-afk-list__button {
	background: #e8f0fe;
}

.atab-afk-list__name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.2rem;
}

.atab-afk-list__city {
	display: block;
	font-size: 14px;
	color: #555;
	margin-bottom: 0.35rem;
}

.atab-afk-list__contact {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 13px;
	color: #444;
}

.atab-afk-map-wrapper--full-width .atab-afk-no-markers {
	margin: 0 0 1rem;
	padding-left: max(1rem, calc(50vw - 50%));
	padding-right: max(1rem, calc(50vw - 50%));
}

.atab-afk-map {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	height: 100%;
	z-index: 1;
}

.atab-afk-no-markers {
	padding: 1rem 1.25rem;
	margin: 0 0 1rem;
	background: #fff8e5;
	border: 1px solid #f0d58c;
	border-radius: 6px;
	color: #6b4f00;
}

.atab-afk-popup-wrapper .leaflet-popup-content-wrapper {
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 0;
}

.atab-afk-popup-wrapper .leaflet-popup-content {
	margin: 0;
	padding: 1.1rem 1.25rem;
	line-height: 1.5;
}

.atab-afk-popup {
	min-width: 240px;
	max-width: 300px;
	font-size: 14px;
	line-height: 1.5;
	padding: 0;
}

.atab-afk-popup__logo {
	margin: 0 0 0.75rem;
	text-align: center;
}

.atab-afk-popup__logo img {
	display: inline-block;
	max-width: 140px;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.atab-afk-popup-wrapper .leaflet-popup-content .atab-afk-popup__title {
	margin: 0 0 0.85rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

@media (min-width: 769px) {
	.atab-afk-popup-wrapper .leaflet-popup-content .atab-afk-popup__title {
		font-size: 18px;
	}
}

.atab-afk-popup__details {
	margin: 0;
}

.atab-afk-popup__row {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.65rem;
}

.atab-afk-popup__row:last-child {
	margin-bottom: 0;
}

.atab-afk-popup__label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
}

.atab-afk-popup__value {
	margin: 0;
	font-size: 14px;
	color: #222;
	word-break: break-word;
}

.atab-afk-popup__value a {
	color: #1a5fb4;
	text-decoration: none;
}

.atab-afk-popup__value a:hover,
.atab-afk-popup__value a:focus {
	text-decoration: underline;
}

.atab-afk-popup__description {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.atab-afk-popup__description .atab-afk-popup__label {
	margin-bottom: 0.35rem;
}

.atab-afk-popup__description-text {
	font-size: 13px;
	color: #444;
}

.atab-afk-popup__description-text p {
	margin: 0 0 0.5rem;
}

.atab-afk-popup__description-text p:last-child {
	margin-bottom: 0;
}

.leaflet-container {
	font-family: inherit;
}

.atab-afk-marker {
	background: transparent;
	border: 0;
}

.atab-afk-marker svg {
	display: block;
	width: 28px;
	height: 42px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
	.atab-afk-layout {
		flex-direction: column;
		height: var(--atab-afk-height, 500px);
		max-height: var(--atab-afk-height, 500px);
	}

	.atab-afk-list {
		flex: 1 1 45%;
		max-width: none;
		max-height: none;
		min-height: 0;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	}

	.atab-afk-map {
		flex: 1 1 55%;
		min-height: 0;
		height: auto;
	}
}
