/* ==========================================================================
   Store Locator Page
   ========================================================================== */

.store-locator-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
}

.store-locator-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.store-locator-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.5rem;
}

.store-locator-description {
	color: #555;
	max-width: 680px;
	margin: 0 auto;
}

/* Nearby Stores — location bar
   ========================================================================== */

.store-locator-nearby {
	background: #f5f5f5;
	border-radius: 0px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.store-locator-nearby__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.35rem;
}

.store-locator-nearby__desc {
	font-size: 0.9rem;
	color: #555;
	margin: 0 0 1.25rem;
}

.store-locator-nearby__controls {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

/* USE MY LOCATION button */
.store-locator-nearby__locate-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.5rem;
	background: var(--cardis-blue, #115497);
	color: #fff;
	border: none;
	border-radius: 0px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s;
}

.store-locator-nearby__locate-btn:hover {
	background: #0d3f73;
}

.store-locator-nearby__locate-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.store-locator-nearby__locate-btn svg {
	flex-shrink: 0;
}

/* OR divider */
.store-locator-nearby__or {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 80px;
}

.store-locator-nearby__or-line {
	flex: 1;
	height: 1px;
	background: #ccc;
}

.store-locator-nearby__or-text {
	font-size: 0.85rem;
	font-weight: 600;
	color: #888;
	white-space: nowrap;
}

/* Zip code input + search */
.store-locator-nearby__zip {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.store-locator-nearby__zip-input {
	width: 120px;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 0px;
	font-size: 0.9rem;
}

.store-locator-nearby__zip-input:focus {
	outline: none;
	border-color: var(--cardis-blue, #115497);
}

.store-locator-nearby__search-btn {
	padding: 0.6rem 1.25rem;
	background: #fff;
	color: #333;
	border: 1px solid #333;
	border-radius: 0px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s;
}

.store-locator-nearby__search-btn:hover {
	background: #f0f0f0;
}

.store-locator-nearby__search-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

@media (max-width: 639px) {
	.store-locator-nearby__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.store-locator-nearby__locate-btn {
		justify-content: center;
	}

	.store-locator-nearby__or {
		justify-content: center;
		min-width: 0;
	}

	.store-locator-nearby__zip {
		justify-content: center;
	}

	.store-locator-nearby__zip-input {
		flex: 1;
	}
}

/* Grid
   ========================================================================== */

.store-locator-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.store-locator-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.store-locator-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Card
   ========================================================================== */

.store-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0px;
	overflow: hidden;
}

.store-card__info {
	flex: 1;
	padding: 1.25rem 1.25rem 1rem;
}

/* Header */

.store-card__header {
	margin-bottom: 0.75rem;
}

.store-card__name {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.15rem;
	line-height: 1.3;
}

.store-card__type {
	font-size: 1rem;
	color: #8b6914;
	margin: 0;
	line-height: 1.4;
}

/* Address */

.store-card__address-block {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.store-card__address {
	font-style: normal;
}

.store-card__street,
.store-card__locality {
	display: block;
	color: #333;
	font-size: 0.9rem;
	line-height: 1.5;
}

.store-card__map-pin {
	flex-shrink: 0;
	margin-left: 0.75rem;
	color: #333;
}

.store-card__pin-icon {
	width: 22px;
	height: 22px;
}

.store-card__distance {
	display: block;
	font-size: 0.8rem;
	color: var(--cardis-blue, #115497);
	text-align: center;
	margin-top: 0.2rem;
}

/* Hours */

.store-card__hours-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.35rem;
}

.store-card__hours-row {
	display: flex;
	justify-content: flex-start;
	font-size: 0.85rem;
	color: #444;
	line-height: 1.6;
}

.store-card__hours-day {
	flex-shrink: 0;
	min-width: 5.5rem;
	margin-right: 1rem;
}

.store-card__hours-title + .store-card__hours-row {
	/* first row after title */
}

.store-card__hours-row + .store-card__hours-title {
	margin-top: 1rem;
}

/* Buttons
   ========================================================================== */

.store-card__buttons {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem 1.25rem;
}

.store-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	border-radius: 0px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

/* Phone button — dark fill */
.store-card__btn--phone,
.store-card__btn--phone:visited {
	background: #444;
	color: #fff;
	border: 1px solid #444;
}

.store-card__btn--phone:hover {
	background: #333;
	color: #fff;
}

.store-card__phone-icon {
	flex-shrink: 0;
}

/* View Details — outlined */
.store-card__btn--details,
.store-card__btn--details:visited {
	background: #fff;
	color: #333;
	border: 1px solid #ccc;
	letter-spacing: 0.04em;
}

.store-card__btn--details:hover {
	background: #f5f5f5;
	color: #333;
}

/* Get Directions — outlined blue */
.store-card__btn--directions,
.store-card__btn--directions:visited {
	background: #fff;
	color: var(--cardis-blue, #115497);
	border: 1px solid var(--cardis-blue, #115497);
	letter-spacing: 0.04em;
}

.store-card__btn--directions:hover {
	background: var(--cardis-blue, #115497);
	color: #fff;
}

/* Empty state */

.store-locator-empty {
	text-align: center;
	color: #777;
	padding: 3rem 1rem;
}


/* ==========================================================================
   Store Detail Page
   ========================================================================== */

.store-detail-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1rem 4rem;
}

/* Breadcrumb */

.store-detail-breadcrumb {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 1.5rem;
}

.store-detail-breadcrumb a,
.store-detail-breadcrumb a:visited {
	color: var(--cardis-blue, #115497);
	text-decoration: none;
}

.store-detail-breadcrumb a:hover {
	text-decoration: underline;
}

.store-detail-breadcrumb__sep {
	margin: 0 0.4rem;
	color: #bbb;
}

.store-detail-breadcrumb__current {
	color: #555;
}

/* Header */

.store-detail-header {
	margin-bottom: 1.5rem;
}

.store-detail-header__name {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.15rem;
	line-height: 1.3;
}

.store-detail-header__type {
	font-size: 1.1rem;
	color: #8b6914;
	margin: 0;
}

/* Two-column layout */

.store-detail-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
}

@media (min-width: 768px) {
	.store-detail-columns {
		grid-template-columns: 1fr 1fr;
	}
}

/* Info column */

.store-detail-address-block {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #eee;
}

.store-detail-address {
	font-style: normal;
}

.store-detail-address__street,
.store-detail-address__locality {
	display: block;
	color: #333;
	font-size: 0.95rem;
	line-height: 1.6;
}

.store-detail-address__pin {
	flex-shrink: 0;
	margin-left: 1rem;
	color: #333;
}

/* Hours */

.store-detail-hours {
	margin-bottom: 1.25rem;
}

.store-detail-hours__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.35rem;
}

.store-detail-hours__row {
	display: flex;
	justify-content: flex-start;
	font-size: 0.9rem;
	color: #444;
	line-height: 1.7;
}

.store-detail-hours__day {
	flex-shrink: 0;
	min-width: 6rem;
	margin-right: 1.5rem;
}

/* Buttons (shared between detail page and nearby cards) */

.store-detail-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.store-detail-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	border-radius: 0px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.store-detail-btn--phone,
.store-detail-btn--phone:visited {
	background: #444;
	color: #fff;
	border: 1px solid #444;
}

.store-detail-btn--phone:hover {
	background: #333;
	color: #fff;
}

.store-detail-btn--directions,
.store-detail-btn--directions:visited {
	background: #fff;
	color: var(--cardis-blue, #115497);
	border: 1px solid var(--cardis-blue, #115497);
	letter-spacing: 0.04em;
}

.store-detail-btn--directions:hover {
	background: var(--cardis-blue, #115497);
	color: #fff;
}

.store-detail-btn--details,
.store-detail-btn--details:visited {
	background: #fff;
	color: #333;
	border: 1px solid #ccc;
	letter-spacing: 0.04em;
}

.store-detail-btn--details:hover {
	background: #f5f5f5;
	color: #333;
}

.store-detail-btn--locations,
.store-detail-btn--locations:visited {
	background: var(--cardis-blue, #115497);
	color: #fff;
	border: 1px solid var(--cardis-blue, #115497);
	letter-spacing: 0.04em;
	max-width: 220px;
}

.store-detail-btn--locations:hover {
	background: #0d3f73;
	color: #fff;
}

.store-detail-btn--sm {
	padding: 0.55rem 0.75rem;
	font-size: 0.85rem;
}

/* Map */

.store-detail-map {
	border-radius: 0px;
	overflow: hidden;
	border: 1px solid #ddd;
}

.store-detail-map__iframe {
	display: block;
	width: 100%;
	min-height: 350px;
}

@media (min-width: 768px) {
	.store-detail-map__iframe {
		min-height: 400px;
		height: 100%;
	}
}

/* Nearby Stores
   ========================================================================== */

.store-detail-nearby {
	border-top: 1px solid #eee;
	padding-top: 2rem;
}

.store-detail-nearby__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.5rem;
}

.store-detail-nearby__desc {
	font-size: 0.9rem;
	color: #555;
	margin: 0 0 1rem;
}

.store-detail-nearby__actions {
	margin-bottom: 2rem;
}

.store-detail-nearby__results-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 1rem;
}

.store-detail-nearby__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Nearby card */

.store-detail-nearby-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid #ddd;
	border-radius: 0px;
	background: #fff;
}

@media (min-width: 640px) {
	.store-detail-nearby-card {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.store-detail-nearby-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.1rem;
}

.store-detail-nearby-card__type {
	font-size: 0.95rem;
	color: #8b6914;
	margin: 0 0 0.35rem;
}

.store-detail-nearby-card__address {
	font-style: normal;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.5;
}

.store-detail-nearby-card__buttons {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.store-detail-nearby-card__buttons {
		flex-direction: row;
		align-items: center;
	}
}
