/* Stayly Map — search toolbar + split list/map view */

.stayly-map-wrap {
	--stayly-map-height: 520px;
	--stayly-map-brand: #0f766e;
	width: 100%;
	box-sizing: border-box;
}
.stayly-map-wrap * { box-sizing: border-box; }

.stayly-map__unavailable {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: min(var(--stayly-map-height), 320px);
	background: #f3f4f6;
	border-radius: 14px;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
	padding: 24px;
}
.stayly-map__unavailable span { font-size: 40px; }

.stayly-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
}
.stayly-map__search {
	display: flex;
	flex: 1;
	min-width: 240px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 4px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.stayly-map__search-input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 10px 16px;
	font-size: 14px;
	outline: none;
	min-width: 0;
}
.stayly-map__search .stayly-button {
	border-radius: 999px;
}
.stayly-map__locate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease;
}
.stayly-map__locate:hover { background: #f3f4f6; border-color: #d1d5db; }

.stayly-map__status {
	min-height: 18px;
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 10px;
}

.stayly-map__split {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 16px;
	height: var(--stayly-map-height);
}
.stayly-map__list {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 4px;
}
.stayly-map__canvas {
	border-radius: 14px;
	overflow: hidden;
	background: #e5e7eb;
	min-height: 240px;
}

.stayly-map__empty {
	color: #6b7280;
	font-size: 14px;
	padding: 20px;
	text-align: center;
}

.stayly-map__card {
	display: flex;
	gap: 10px;
	background: #fff;
	border: 1px solid #eef0f2;
	border-radius: 12px;
	padding: 8px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.stayly-map__card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	border-color: #e5e7eb;
}
.stayly-map__card-media {
	width: 84px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
}
.stayly-map__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stayly-map__card-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px;
}
.stayly-map__card-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	justify-content: center;
}
.stayly-map__card-title {
	font-size: 13.5px;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stayly-map__card-loc {
	font-size: 12px;
	color: #6b7280;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stayly-map__card-foot {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	margin-top: 2px;
}
.stayly-map__card-foot strong { color: var(--stayly-map-brand); }
.stayly-map__card-foot small { color: #9ca3af; font-size: 11px; }
.stayly-map__card-rating { margin-left: auto; font-size: 12px; color: #111827; }

/* Google InfoWindow content */
.stayly-map__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 180px;
	font-family: inherit;
}
.stayly-map__info img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 4px;
}
.stayly-map__info strong { font-size: 13.5px; color: #111827; }
.stayly-map__info span { font-size: 12px; color: #6b7280; }
.stayly-map__info-price { color: var(--stayly-map-brand) !important; font-weight: 700; font-size: 13px !important; }
.stayly-map__info .stayly-button { margin-top: 6px; text-align: center; }

@media (max-width: 782px) {
	.stayly-map__split {
		grid-template-columns: 1fr;
		grid-template-rows: min(45vw, 320px) 1fr;
		height: auto;
		max-height: calc(var(--stayly-map-height) + 260px);
	}
	.stayly-map__list { max-height: 340px; }
	.stayly-map__toolbar { flex-direction: column; align-items: stretch; }
	.stayly-map__locate { justify-content: center; }
}
