/* Applebee's Smart Locator — styles for Version A's markup
   (asl-search-card, asl-filters, asl-results-layout, asl-map, etc.)

   IMPORTANT: every interactive element below sets its text color
   explicitly in its normal, :hover, :focus, AND :active states.
   The "text disappears on hover" bug is almost always caused by a
   hover rule that changes the background but forgets to also set
   color, letting it fall back to something invisible. Every rule
   here avoids that by always pairing background + color together.
*/

.asl-locator,
.asl-state-directory {
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	position: relative;
}

/* Floating search card */
.asl-search-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 28px 24px;
	margin: -60px auto 24px;
	position: relative;
	z-index: 2;
}

.asl-search-title {
	margin: 0 0 6px;
	font-size: 22px;
	color: #1a1a1a;
}

.asl-search-subtitle {
	margin: 0 0 18px;
	color: #555;
	font-size: 14px;
}

.asl-search-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.asl-search-form input[type="text"] {
	width: 100%;
	padding: 14px 16px;
	font-size: 16px; /* prevents iOS zoom-on-focus */
	font-family: inherit;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
	color: #1a1a1a;
	background: #fff;
}
.asl-search-form input[type="text"]:focus {
	color: #1a1a1a;
	background: #fff;
	outline: 2px solid #c8102e;
	outline-offset: 1px;
}
.asl-search-form input[type="text"]::placeholder {
	color: #888;
	opacity: 1;
}

.asl-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.asl-btn {
	display: inline-block;
	padding: 14px 20px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	min-height: 48px;
	flex: 1 1 auto;
}

.asl-btn-primary,
.asl-btn-primary:link,
.asl-btn-primary:visited {
	background: #c8102e;
	color: #ffffff;
}
.asl-btn-primary:hover,
.asl-btn-primary:focus,
.asl-btn-primary:active {
	background: #a50d26 !important;
	color: #ffffff !important;
}

.asl-btn-secondary,
.asl-btn-secondary:link,
.asl-btn-secondary:visited {
	background: #ffffff;
	color: #333333;
	border: 1px solid #ccc;
}
.asl-btn-secondary:hover,
.asl-btn-secondary:focus,
.asl-btn-secondary:active {
	background: #f0f0f0 !important;
	color: #333333 !important;
}

.asl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
	align-items: center;
	color: #333;
	margin-top: 14px;
}
.asl-filters label {
	color: #333;
}
.asl-filters select {
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 8px;
	font-family: inherit;
	font-size: inherit;
}

/* Status messages */
.asl-status {
	margin: 16px 0;
	font-size: 15px;
	min-height: 1.4em;
	color: #333;
}
.asl-status-loading { color: #555; }
.asl-status-error { color: #b30000; font-weight: 600; }
.asl-status-empty { color: #666; font-style: italic; }

/* Results + map layout */
.asl-results-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
}

.asl-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1 1 340px;
	min-width: 0;
}

.asl-map {
	order: -1;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	height: 460px !important;
	border-radius: 12px;
	overflow: hidden;
	background: #eee; /* visible while tiles load, never invisible */
}

.asl-result-card {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px 18px;
	background: #ffffff;
	color: #1a1a1a;
}
.asl-result-card:hover,
.asl-result-card:hover * {
	color: #1a1a1a !important;
}
.asl-result-card:hover {
	background: #fafafa;
	border-color: #d5d5d5;
}

.asl-result-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.asl-result-name {
	margin: 0;
	font-size: 18px;
	color: #1a1a1a;
}

.asl-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.asl-badge-open { background: #e6f7ea; color: #1a7a34; }
.asl-badge-closed { background: #fbe9e9; color: #b30000; }

.asl-result-address,
.asl-result-phone,
.asl-result-distance,
.asl-result-hours {
	margin: 4px 0;
	font-size: 14px;
	color: #444444;
}

.asl-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.asl-result-actions .asl-btn {
	flex: 0 1 auto;
	padding: 10px 16px;
	font-size: 14px;
	min-height: 40px;
}

/* State directory */
.asl-state-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.asl-state-btn,
.asl-state-btn:link,
.asl-state-btn:visited {
	padding: 12px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #ffffff;
	color: #1a1a1a;
	cursor: pointer;
	min-height: 44px;
}
.asl-state-btn:hover,
.asl-state-btn:focus,
.asl-state-btn:active {
	background: #f5f5f5 !important;
	color: #1a1a1a !important;
}

.asl-city-block {
	margin-top: 20px;
	color: #1a1a1a;
}
.asl-city-block h4 {
	margin-bottom: 6px;
	color: #1a1a1a;
}
.asl-city-block ul {
	margin: 0;
	padding-left: 18px;
}
.asl-city-block li {
	margin-bottom: 6px;
	font-size: 14px;
	color: #1a1a1a;
}
.asl-city-block li:hover {
	color: #1a1a1a; /* explicit — prevents any inherited hover rule from hiding text */
}

.asl-attribution {
	font-size: 12px;
	color: #999;
	text-align: right;
	margin-top: 10px;
}
.asl-attribution a {
	color: #999;
}
.asl-attribution a:hover {
	color: #666;
}

/* Mobile */
@media (max-width: 780px) {
	.asl-results-layout {
		flex-direction: column;
	}
	.asl-map {
		flex: 0 0 auto !important;
		align-self: stretch;
		width: 100% !important;
		height: 320px !important;
		min-height: 320px;
		display: block !important;
	}
	.asl-results {
		flex: 0 0 auto;
		width: 100%;
	}
	.asl-search-card {
		margin-top: -40px;
	}
}

@media (max-width: 480px) {
	.asl-buttons {
		flex-direction: column;
	}
	.asl-btn {
		width: 100%;
	}
}

/* Custom inline-SVG map pin: strip Leaflet's default div-icon box
   (white background + border) so only our red teardrop shows. */
.asl-map-pin {
	background: transparent !important;
	border: none !important;
}

/* Store clusters keep the whole-country view readable; GPS remains one blue pin. */
.asl-store-cluster {
	background: #d6001c;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
	color: #fff;
	font: 700 10px/22px Arial, sans-serif;
	text-align: center;
}
.asl-store-cluster span {
	display: block;
	width: 100%;
	white-space: nowrap;
}
