/* ==========================================================================
   Location Search - Main Search Bar
========================================================================== */

.dash-location-search-form {
	max-width: 600px;
	margin: 0 auto;
}

.dash-search-inner {
	display: flex;
	background: #f3f3f3;
	border-radius: 999px;
	overflow: hidden;
}

.dash-search-inner input {
	flex: 1;
	border: none;
	padding: 16px 20px;
	font-size: 16px;
	background: transparent;
}

.dash-search-inner button {
	background: #208ebe;
	color: #fff;
	border: none;
	padding: 0 20px;
	cursor: pointer;
}


/* ==========================================================================
   Location Modal Layout
========================================================================== */

.dash-location-modal-inner {
	width: 96vw;
	max-width: 1500px;
	height: 88vh;
	padding: 0 !important;
	border-radius: 24px;
	overflow: hidden;
}

.dash-modal-layout {
	display: flex;
	width: 100%;
	height: 88vh;
}

.dash-modal-sidebar {
	width: 40%;
	max-width: 560px;
	min-width: 420px;
	display: flex;
	flex-direction: column;
}

.dash-modal-map-wrap {
	flex: 1;
	min-width: 0;
}

#dash-location-map {
	width: 100%;
	height: 100%;
	min-height: 600px;
}


/* ==========================================================================
   Modal Search Header
========================================================================== */

.dash-modal-search-head {
	padding: 28px 34px 24px;
}

.dash-modal-search-head h2 {
	font-size: 34px;
	line-height: 1;
}

.dash-modal-search-inner {
	height: 48px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
}

.dash-modal-search-inner input {
	flex: 1;
	min-width: 0;
	padding: 0 14px;
	border: none;
	background: transparent;
	color: #080b4f;
	font-weight: 700;
}

.dash-modal-search-inner input:focus {
	outline: none;
}

.dash-modal-search-inner button {
	padding-left: 12px;
	border: none;
	background: transparent;
	color: #080b4f;
	font-size: 18px;
}

.dash-radius {
	margin-left: 8px;
	padding-left: 16px;
	border-left: 1px solid #ddd;
	color: #080b4f;
	font-weight: 800;
	white-space: nowrap;
}


/* ==========================================================================
   Modal Results
========================================================================== */

.dash-modal-results-wrap {
	height: 100%;
	padding: 18px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.dash-location-results-scroll {
	overflow-y: auto;
	padding-right: 4px;
}

.dash-location-card {
	padding: 15px;
	margin-bottom: 1rem;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.dash-location-card.is-selected {
	border-color: #4ad7bf;
}

.dash-location-card h4 {
	margin: 0 0 5px;
}

.dash-location-title {
	color: #080b4f;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.dash-location-address {
	color: #68707d;
	font-size: 13px;
	font-weight: 700;
}

.dash-location-hours {
	color: #080b4f;
	font-size: 12px;
	font-weight: 700;
}

.dash-location-number {
	color: #080b4f;
	font-size: 18px;
}


/* ==========================================================================
   Result Pills
========================================================================== */

.dash-pill {
	display: inline-block;
	margin-right: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
}

.dash-pill-open {
	background: #fff;
	border: 1px solid #080b4f;
	color: #080b4f;
}

.dash-pill-express {
	background: #ff4a1c;
	color: #fff;
}

.dash-pill-distance {
	background: #ddd;
	color: #111;
}


/* ==========================================================================
   Floating Location Bar
========================================================================== */

.dash-floating-location {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: #fff;
	color: var(--color-primary);
	border-bottom-left-radius: 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	font-size: 14px;
	font-weight: 700;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.dash-floating-location.is-hidden-on-scroll {
	opacity: 0;
	transform: translateY(-100%);
	pointer-events: none;
}


/* ==========================================================================
   Legacy/Dropdown Location Selector
========================================================================== */

.dash-select-wrap {
	position: relative;
}

.dash-location-select {
	width: 100%;
	height: 72px;
	padding: 0 60px 0 24px;
	border: none;
	border-radius: 999px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	display: block;
	color: var(--color-primary);
	font-size: 20px;
	font-weight: bold;
	line-height: 72px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dash-location-select:invalid {
	color: #b8bac6;
}

.dash-select-icon {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-primary);
	font-size: 18px;
	pointer-events: none;
}


/* ==========================================================================
   Location Required Visibility Helpers
========================================================================== */

.dash-location-required {
	display: none;
}

body.dash-has-location .dash-location-required {
	display: block;
}

body.dash-has-location a.dash-location-required,
body.dash-has-location .btn.dash-location-required {
	display: inline-flex;
}


/* ==========================================================================
   Responsive
========================================================================== */

@media (max-width: 991px) {
	.dash-location-modal-inner,
	.dash-modal-layout {
		height: 92vh;
	}

	.dash-modal-layout {
		flex-direction: column;
	}

	.dash-modal-sidebar {
		width: 100%;
		max-width: none;
		min-width: 0;
		height: 50%;
	}

	.dash-modal-map-wrap {
		height: 50%;
	}

	#dash-location-map {
		min-height: 320px;
	}
}

@media (max-width: 768px) {
	.dash-floating-location {
		display: none !important;
	}
}