/* Stayly Map — Luxury Veyra Search Toolbar + Split List/Map View */

.stayly-map-wrap {
	--stayly-map-height: 540px;
	--stayly-map-brand: #E8A33D;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stayly-map-wrap * { box-sizing: border-box; }

.stayly-map__unavailable {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 320px;
	background: #1E293B;
	border-radius: 16px;
	color: #94A3B8;
	font-size: 15px;
	text-align: center;
	padding: 24px;
	border: 1px solid #334155;
}
.stayly-map__unavailable span { font-size: 42px; }

/* Luxury Toolbar */
.stayly-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}
.stayly-map__search {
	display: flex;
	flex: 1;
	min-width: 260px;
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 999px;
	padding: 5px 6px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	transition: all 0.2s;
}
.stayly-map__search:focus-within {
	border-color: #E8A33D;
	box-shadow: 0 0 0 2px rgba(232,163,61,0.25);
}
.stayly-map__search-input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 8px 16px;
	font-size: 14px;
	color: #fff;
	outline: none;
	min-width: 0;
}
.stayly-map__search-input::placeholder {
	color: #94A3B8;
}
.stayly-map__search .stayly-button {
	background: #E8A33D;
	color: #0F172A;
	font-weight: 700;
	border-radius: 999px;
	padding: 8px 20px;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}
.stayly-map__search .stayly-button:hover {
	background: #F59E0B;
}

.stayly-map__locate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 13.5px;
	font-weight: 600;
	color: #F8FAFC;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stayly-map__locate:hover { 
	background: #334155; 
	border-color: #E8A33D;
	color: #E8A33D;
}

.stayly-map__status {
	min-height: 20px;
	font-size: 13.5px;
	font-weight: 600;
	color: #E8A33D;
	margin: 0 0 12px;
}

/* Split View: List on left, Map on right */
.stayly-map__split {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 16px;
	height: var(--stayly-map-height);
	background: #0F172A;
	border-radius: 18px;
	padding: 10px;
	border: 1px solid #1E293B;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.stayly-map__list {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-right: 6px;
}
.stayly-map__list::-webkit-scrollbar {
	width: 6px;
}
.stayly-map__list::-webkit-scrollbar-thumb {
	background: #334155;
	border-radius: 4px;
}

.stayly-map__canvas {
	border-radius: 14px;
	overflow: hidden;
	background: #1E293B;
	min-height: 280px;
	width: 100%;
	height: 100%;
}

.stayly-map__empty {
	color: #94A3B8;
	font-size: 14px;
	padding: 40px 20px;
	text-align: center;
	background: #1E293B;
	border-radius: 12px;
	border: 1px dashed #334155;
}

/* Luxury Property Card in Map List */
.stayly-map__card {
	display: flex;
	gap: 12px;
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 14px;
	padding: 10px;
	text-decoration: none;
	color: #fff;
	transition: all 0.2s ease;
}
.stayly-map__card:hover {
	background: #273549;
	border-color: #E8A33D;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.stayly-map__card--active {
	background: #273549 !important;
	border-color: #E8A33D !important;
	box-shadow: 0 6px 18px rgba(232, 163, 61, 0.25) !important;
}
.stayly-map__card-media {
	width: 95px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #0F172A;
}
.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: 24px;
	background: #334155;
}
.stayly-map__card-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	justify-content: center;
	flex-grow: 1;
}
.stayly-map__card-title {
	font-size: 14px;
	font-weight: 700;
	color: #F8FAFC;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stayly-map__card-loc {
	font-size: 12px;
	color: #94A3B8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stayly-map__card-foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
	font-size: 13px;
	margin-top: 4px;
}
.stayly-map__card-foot strong { 
	color: #E8A33D; 
	font-weight: 800;
}
.stayly-map__card-foot small { 
	color: #94A3B8; 
	font-size: 11px; 
}
.stayly-map__card-rating { 
	font-size: 12px; 
	color: #F8FAFC; 
	font-weight: 600;
}

/* ==========================================================================
   Maskan Map: Compact Airbnb-Style Price Pins & Interactive Popups
   ========================================================================== */
.stayly-map-badge {
	position: absolute;
	transform: translate(-50%, -100%);
	cursor: pointer;
	z-index: 50;
	transition: z-index 0.1s ease;
	user-select: none;
	-webkit-user-select: none;
	pointer-events: auto;
}

.stayly-map-badge:hover,
.stayly-map-badge--highlight {
	z-index: 999999 !important;
}

/* 1. Small Compact Pin (Airbnb Style - Takes almost NO space) */
.stayly-map-pin {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #0F172A;
	border: 1.5px solid #E8A33D;
	border-radius: 999px;
	padding: 4px 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
	color: #F8FAFC;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, border-color 0.15s ease;
}

.stayly-map-pin__icon {
	font-size: 11px;
	line-height: 1;
}

.stayly-map-pin__price {
	color: #E8A33D;
	font-weight: 800;
	font-size: 11.5px;
}

.stayly-map-pin__stem {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #E8A33D;
	margin: 0 auto;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

.stayly-map-badge:hover .stayly-map-pin,
.stayly-map-badge--highlight .stayly-map-pin {
	background: #E8A33D;
	border-color: #F59E0B;
	transform: scale(1.15);
	box-shadow: 0 6px 20px rgba(232, 163, 61, 0.55);
}

.stayly-map-badge:hover .stayly-map-pin__price,
.stayly-map-badge--highlight .stayly-map-pin__price {
	color: #0F172A;
}

.stayly-map-badge:hover .stayly-map-pin__stem,
.stayly-map-badge--highlight .stayly-map-pin__stem {
	border-top-color: #F59E0B;
}

/* 2. Floating Luxury Popup Card (Opens on hover, click, or list sync) */
.stayly-map-popup {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	background: #0F172A;
	border: 1.5px solid #E8A33D;
	border-radius: 14px;
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(232, 163, 61, 0.35);
	overflow: hidden;
	z-index: 999999;
	pointer-events: auto;
}

.stayly-map-badge:hover .stayly-map-popup,
.stayly-map-badge--highlight .stayly-map-popup {
	display: block;
	animation: staylyPopupIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes staylyPopupIn {
	from {
		opacity: 0;
		transform: translate(-50%, 6px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0) scale(1);
	}
}

.stayly-map-popup__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.stayly-map-popup__media {
	width: 100%;
	height: 110px;
	background: #1E293B;
	overflow: hidden;
	position: relative;
}

.stayly-map-popup__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.stayly-map-popup:hover .stayly-map-popup__media img {
	transform: scale(1.05);
}

.stayly-map-popup__thumb-ph {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	background: #1E293B;
}

.stayly-map-popup__body {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}

.stayly-map-popup__title {
	font-size: 12.5px;
	font-weight: 700;
	color: #F8FAFC;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}

.stayly-map-popup__loc {
	font-size: 11px;
	color: #94A3B8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stayly-map-popup__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #1E293B;
}

.stayly-map-popup__price {
	font-size: 12px;
	font-weight: 800;
	color: #E8A33D;
}

.stayly-map-popup__price small {
	font-size: 9.5px;
	color: #94A3B8;
	font-weight: 500;
}

.stayly-map-popup__btn {
	background: #E8A33D;
	color: #0F172A;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	transition: background 0.15s;
}

.stayly-map-popup__btn:hover {
	background: #F59E0B;
}

@media (max-width: 860px) {
	.stayly-map__split {
		grid-template-columns: 1fr;
		grid-template-rows: 320px 280px;
		height: auto;
	}
	.stayly-map__list { 
		max-height: 320px; 
	}
	.stayly-map__toolbar { 
		flex-direction: column; 
		align-items: stretch; 
	}
	.stayly-map__locate { 
		justify-content: center; 
	}
}
