/* =========================================================
   EXPLORE MAP PAGE
========================================================= */

body:has(.explore-map-page) {
	overflow: hidden;
}

.explore-map-page {
	height: calc(100vh - var(--iw-header-height));
	display: grid;
	grid-template-columns: 430px 1fr;
	background: #f8fafc;
	overflow: hidden;
}

/* =========================================================
   SIDEBAR
========================================================= */

.explore-map-sidebar {
	height: calc(100vh - var(--iw-header-height));
	background: #fff;
	border-right: 1px solid var(--iw-border);
	padding: 14px 16px 18px;
	overflow: hidden;
}

.explore-map-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.explore-kicker {
	color: var(--iw-coral);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.explore-back-link {
	white-space: nowrap;
	font-weight: 800;
	color: var(--iw-muted);
}

/* =========================================================
   COMPACT CONTROLS
========================================================= */

.explore-compact-controls,
.explore-filter-open {
	background: #fff;
	border: 1px solid var(--iw-border);
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.explore-compact-controls {
	padding: 10px 12px;
	margin-bottom: 9px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.explore-compact-location span,
.explore-filter-open span {
	display: block;
	font-size: 0.7rem;
	color: var(--iw-muted);
	font-weight: 700;
}

.explore-compact-location strong {
	display: block;
	font-size: 0.95rem;
	color: var(--iw-text);
	font-weight: 900;
}

.explore-compact-actions {
	display: flex;
	gap: 7px;
	flex-shrink: 0;
}

.explore-compact-btn {
	width: 35px;
	height: 35px;
	border: 1px solid var(--iw-border);
	border-radius: 999px;
	background: #f8fbff;
	color: var(--iw-muted-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.explore-compact-btn:hover,
.explore-compact-btn.is-primary {
	background: var(--iw-coral);
	border-color: var(--iw-coral);
	color: #fff;
}

.explore-mini-panel {
	margin-bottom: 9px;
	position: relative;
}

.explore-location-btn,
.explore-reset-btn {
	border: 0;
	border-radius: 999px;
	background: var(--iw-gradient-coral);
	color: #fff;
	font-weight: 800;
	padding: 9px 13px;
	font-size: 0.78rem;
}

.explore-search-card {
	height: 46px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--iw-border);
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.explore-search-card i {
	color: var(--iw-coral);
}

.explore-search-card input {
	border: 0;
	outline: 0;
	width: 100%;
	font-size: 0.92rem;
}

/* =========================================================
   SEARCH RESULTS
========================================================= */

.explore-search-results {
	margin-top: 8px;
	background: #fff;
	border: 1px solid var(--iw-border);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 280px;
	-webkit-overflow-scrolling: touch;
}

.explore-search-results::-webkit-scrollbar {
	width: 7px;
}

.explore-search-results::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.5);
	border-radius: 999px;
}

.explore-search-result-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 11px 13px;
	color: var(--iw-text);
	text-decoration: none;
	border-bottom: 1px solid #eef2f7;
}

.explore-search-result-item:last-child {
	border-bottom: 0;
}

.explore-search-result-item:hover {
	background: #f8fafc;
	color: var(--iw-coral);
}

.explore-search-result-item i {
	width: 18px;
	margin-top: 3px;
	color: var(--iw-coral);
	flex-shrink: 0;
}

.explore-search-result-item div {
	min-width: 0;
}

.explore-search-result-item strong {
	display: block;
	font-size: 0.86rem;
	font-weight: 900;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.explore-search-result-item span {
	display: block;
	font-size: 0.72rem;
	color: var(--iw-muted);
	margin-top: 2px;
}

/* =========================================================
   FILTER SUMMARY
========================================================= */

.explore-filter-summary {
	margin-bottom: 10px;
}

.explore-filter-open {
	width: 100%;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
}

.explore-filter-open strong,
#exploreFilterSummaryText {
	display: block;
	max-width: 290px;
	margin-top: 3px;
	color: var(--iw-text);
	font-size: 0.94rem;
	font-weight: 900;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.explore-filter-open i {
	color: var(--iw-coral);
	font-size: 1.05rem;
}

/* =========================================================
   RESULTS
========================================================= */

.explore-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 12px 0 10px;
}

.explore-results-header span {
	font-size: 1.25rem;
	font-weight: 900;
}

.explore-results-header small {
	color: var(--iw-muted);
}

.explore-listing {
	display: block;
	height: calc(100vh - 255px);
	max-height: none;
	overflow-y: auto;
	padding-right: 6px;
}

.explore-listing::-webkit-scrollbar,
.explore-chip-list::-webkit-scrollbar,
.explore-filter-panel::-webkit-scrollbar {
	width: 7px;
}

.explore-listing::-webkit-scrollbar-thumb,
.explore-chip-list::-webkit-scrollbar-thumb,
.explore-filter-panel::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.5);
	border-radius: 999px;
}

.explore-empty-state {
	background: #fff;
	border: 1px dashed var(--iw-border);
	border-radius: 20px;
	padding: 26px 18px;
	text-align: center;
	color: var(--iw-muted);
}

.explore-empty-state i {
	font-size: 1.8rem;
	color: var(--iw-coral);
	margin-bottom: 10px;
}

.explore-empty-state h3 {
	color: var(--iw-text);
	margin-bottom: 8px;
}

/* =========================================================
   MAP
========================================================= */

.explore-map-main {
	position: relative;
	height: calc(100vh - var(--iw-header-height));
	min-height: 100%;
	overflow: hidden;
}

.explore-map-canvas {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.explore-map-floating-card {
	position: absolute;
	left: 24px;
	top: 24px;
	z-index: 5;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 20px;
	padding: 14px 18px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(12px);
}

.explore-map-floating-card span {
	display: block;
	font-size: 0.78rem;
	color: var(--iw-muted);
	font-weight: 700;
}

.explore-map-floating-card strong {
	display: block;
	color: var(--iw-text);
	font-size: 1rem;
}

/* =========================================================
   FILTER MODAL
========================================================= */

.explore-filter-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.explore-filter-modal.is-open {
	display: block;
}

.explore-filter-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(6px);
}

.explore-filter-panel {
	position: absolute;
	left: 24px;
	top: 96px;
	width: 420px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	background: #fff;
	border-radius: 28px;
	padding: 22px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.explore-filter-panel-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.explore-filter-panel-head h3 {
	margin: 6px 0 0;
	font-size: 1.35rem;
	font-weight: 900;
}

.explore-filter-close {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: #f8fbff;
	color: var(--iw-text);
}

.explore-filter-block {
	background: #fff;
	border: 1px solid var(--iw-border);
	border-radius: 18px;
	padding: 16px;
	margin-bottom: 14px;
}

.explore-filter-block h3 {
	font-size: 0.98rem;
	font-weight: 800;
	margin: 0 0 12px;
}

.explore-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	max-height: 220px;
	overflow-y: auto;
	padding-right: 4px;
}

.explore-chip {
	border: 1px solid var(--iw-border);
	background: #f8fbff;
	color: var(--iw-text);
	border-radius: 999px;
	padding: 9px 13px;
	font-size: 0.83rem;
	font-weight: 800;
	transition: 0.2s ease;
}

.explore-chip:hover,
.explore-chip.active,
.explore-chip.is-active {
	background: var(--iw-coral);
	border-color: var(--iw-coral);
	color: #fff;
}

.explore-empty-text {
	color: var(--iw-muted);
	font-size: 0.88rem;
	margin: 0;
}

/* =========================================================
   MERCHANT CARDS
========================================================= */

.explore-place-card {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 14px;
	background: #ffffff;
	border: 1px solid #e7edf5;
	border-radius: 20px;
	overflow: hidden;
	color: var(--iw-text);
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.explore-place-card:hover,
.explore-place-card.is-active {
	color: var(--iw-text);
	transform: translateY(-3px);
	border-color: rgba(252, 91, 98, 0.35);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.explore-place-row {
	display: grid;
	grid-template-columns: 86px 1fr;
	gap: 14px;
	align-items: flex-start;
}

.explore-place-logo {
	position: relative;
	width: 86px;
	height: 86px;
	border-radius: 999px;
	overflow: visible;
	background: #fff;
	border: 1px solid var(--iw-border);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.explore-place-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 9px;
	border-radius: 999px;
}

.explore-promo-dot {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--iw-coral);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	box-shadow: 0 8px 18px rgba(252, 91, 98, 0.35);
}

.explore-place-image {
	display: none;
}

.explore-place-body {
	display: block;
	padding: 0;
	background: #fff;
	min-width: 0;
}

.explore-place-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

.explore-place-top h3 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.35;
	color: var(--iw-text);
}

.explore-place-top span {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(252, 91, 98, 0.1);
	color: var(--iw-coral);
	font-size: 0.74rem;
	font-weight: 900;
}

.explore-place-actions {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}

.explore-heart-btn {
	width: 28px;
	height: 28px;
	border: 1px solid var(--iw-border);
	border-radius: 999px;
	background: #fff;
	color: var(--iw-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.explore-heart-btn:hover,
.explore-heart-btn.is-liked {
	color: var(--iw-coral);
	border-color: rgba(252, 91, 98, 0.35);
	background: rgba(252, 91, 98, 0.08);
}

.explore-video-indicator {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--iw-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
}

.explore-place-info,
.explore-place-city,
.explore-place-desc {
	margin: 8px 0 0;
	color: var(--iw-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

.explore-place-info i,
.explore-place-city i {
	width: 16px;
	color: var(--iw-coral);
	margin-right: 5px;
}

.explore-place-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.explore-place-tags span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 5px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: var(--iw-muted-dark);
	font-size: 0.72rem;
	font-weight: 800;
}

.explore-place-tags.is-rec span {
	background: rgba(245, 158, 11, 0.12);
	color: #b45309;
}

/* =========================================================
   PROMOTION STRIP
========================================================= */

.explore-promo-strip {
	display: flex;
	gap: 10px;
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 2px 28px 8px 0;
}

.explore-promo-strip.is-single {
	padding-right: 0;
}

.explore-promo-strip.is-single .explore-promo-slide {
	min-width: 100%;
	flex-basis: 100%;
}

.explore-promo-strip::-webkit-scrollbar {
	height: 5px;
}

.explore-promo-strip::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.45);
	border-radius: 999px;
}

.explore-promo-slide {
	min-width: 86%;
	flex: 0 0 86%;
	scroll-snap-align: start;
	display: flex;
	gap: 10px;
	padding: 10px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(252, 91, 98, 0.1), rgba(245, 158, 11, 0.1));
	border: 1px solid rgba(252, 91, 98, 0.16);
}

.explore-promo-slide img,
.explore-promo-icon {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	object-fit: cover;
	flex: 0 0 54px;
}

.explore-promo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(252, 91, 98, 0.14);
	color: var(--iw-coral);
}

.explore-promo-slide span {
	display: block;
	font-size: 0.68rem;
	font-weight: 900;
	color: var(--iw-coral);
	text-transform: uppercase;
}

.explore-promo-slide strong {
	display: block;
	font-size: 0.82rem;
	font-weight: 900;
	line-height: 1.25;
	color: var(--iw-text);
}

.explore-promo-slide p {
	margin: 4px 0 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--iw-muted);
}

/* =========================================================
   MAP MARKERS / POPUP
========================================================= */

.explore-map-marker {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(252, 91, 98, 0.16);
	border: 2px solid #ffffff;
	box-shadow: 0 12px 24px rgba(252, 91, 98, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.explore-map-marker span {
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--iw-coral);
}

.explore-map-marker:hover,
.explore-map-marker.is-active {
	transform: scale(1.25);
	box-shadow: 0 16px 34px rgba(252, 91, 98, 0.38);
}

.mapboxgl-popup {
	max-width: calc(100vw - 32px) !important;
}

.mapboxgl-popup-content {
	padding: 0 !important;
	border-radius: 22px !important;
	overflow: hidden !important;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
}

.explore-map-popup {
	width: 280px;
	max-width: 280px;
	padding: 14px;
	background: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

.explore-map-popup * {
	box-sizing: border-box;
}

.explore-map-popup-head {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px;
	max-width: 100%;
}

.explore-map-popup-head div {
	min-width: 0;
}

.explore-map-popup-head img {
	width: 58px;
	height: 58px;
	border-radius: 999px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--iw-border);
	padding: 6px;
	margin: 0;
	flex-shrink: 0;
}

.explore-map-popup-head h4 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 900;
	line-height: 1.25;
	color: var(--iw-text);
	word-break: break-word;
}

.explore-map-popup-head span {
	display: inline-flex;
	margin-top: 5px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(252, 91, 98, 0.1);
	color: var(--iw-coral);
	font-size: 0.72rem;
	font-weight: 900;
}

.explore-map-popup p {
	margin: 8px 0 0;
	color: var(--iw-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.explore-map-popup p i {
	width: 15px;
	color: var(--iw-coral);
	margin-right: 5px;
}

.explore-map-popup-badge,
.explore-map-popup-promo {
	margin-top: 9px;
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 0.76rem;
	font-weight: 800;
	max-width: 100%;
	overflow: hidden;
	word-break: break-word;
}

.explore-map-popup-badge {
	background: rgba(37, 99, 235, 0.1);
	color: var(--iw-blue);
}

.explore-map-popup-promo {
	background: rgba(252, 91, 98, 0.1);
	color: var(--iw-coral);
}

.explore-map-popup-btn {
	display: flex !important;
	width: 100%;
	max-width: 100%;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	margin-top: 12px;
	padding: 11px 14px;
	border-radius: 999px;
	background: var(--iw-coral);
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 900;
	text-decoration: none;
}

.explore-load-more-hint {
	text-align: center;
	color: var(--iw-muted);
	font-size: 0.82rem;
	font-weight: 700;
	padding: 14px 8px 4px;
}

.explore-load-more-hint i {
	color: var(--iw-coral);
	margin-right: 6px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {
	body:has(.explore-map-page) {
		overflow: auto;
	}

	.explore-map-page {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	.explore-map-main {
		order: 1;
		height: 55vh;
		min-height: 420px;
	}

	.explore-map-sidebar {
		order: 2;
		width: 100%;
		height: auto;
		border-right: 0;
		border-bottom: 1px solid var(--iw-border);
		padding: 16px 14px;
		overflow: visible;
	}

	.explore-listing {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.explore-map-canvas {
		height: 100%;
		min-height: 420px;
	}

	.explore-map-floating-card {
		left: 14px;
		top: 14px;
	}

	.explore-place-card:hover,
	.explore-place-card.is-active {
		transform: none;
	}

	.explore-search-results {
		max-height: 260px;
	}

	.explore-map-popup {
		width: 280px;
		max-width: calc(100vw - 40px);
	}
}

@media (max-width: 767px) {
	.explore-filter-panel {
		left: 12px;
		right: 12px;
		top: auto;
		bottom: 12px;
		width: auto;
		max-width: none;
		max-height: 78vh;
		border-radius: 24px;
	}

	.explore-search-results {
		max-height: 240px;
	}
}

/* =========================================================
   EXPLORE LOCATION SELECTOR
========================================================= */

.explore-location-main {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 3px;
	color: var(--iw-text);
	font-size: 0.95rem;
	font-weight: 900;
	line-height: 1.2;
}

.explore-location-main > span {
	display: inline-flex;
	align-items: center;
	color: var(--iw-text);
	font-size: 0.95rem;
	font-weight: 900;
	line-height: 1.2;
}

.explore-location-name {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #e7edf7;
	border-radius: 999px;
	background: rgba(248, 251, 255, 0.9);
	color: var(--iw-text);
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	transition: all 0.22s ease;
}

.explore-location-name i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 999px;
	background: rgba(252, 91, 98, 0.1);
	color: var(--iw-coral);
	font-size: 0.58rem;
	transition: all 0.22s ease;
}

.explore-location-sub {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	color: #64748b !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	white-space: nowrap;
}

.explore-location-name:hover {
	background: #ffffff;
	border-color: rgba(252, 91, 98, 0.28);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.explore-location-name:hover i {
	background: rgba(252, 91, 98, 0.16);
	transform: translateY(1px);
}

.explore-location-name:hover .explore-location-sub {
	color: var(--iw-coral) !important;
}

.explore-coming-soon-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 9999;
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: 0.25s ease;
}

.explore-coming-soon-toast.is-show {
	transform: translate(-50%, 0);
	opacity: 1;
}

.explore-coming-soon-toast > div {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 280px;
	max-width: calc(100vw - 32px);
	padding: 14px 18px;
	border-radius: 18px;
	background: #111827;
	color: #fff;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.explore-coming-soon-toast i {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	border-radius: 50%;
	background: #fff0f1;
	color: #fc5b62;
}

.explore-coming-soon-toast strong {
	display: block;
	font-size: 14px;
	font-weight: 800;
}

.explore-coming-soon-toast span {
	display: block;
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
}
