/* Store locator (see inc/store-locator.php) */
.cpap-locator { font-family: 'Poppins', sans-serif; color: #043146; max-width: 1240px; margin: 0 auto; padding: 40px 0 60px; box-sizing: border-box; }
.cpap-locator *, .cpap-locator *::before, .cpap-locator *::after { box-sizing: border-box; }

.cpap-locator__hero { padding-bottom: 24px; }
.cpap-locator__eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #043146; opacity: .8; }
.cpap-locator__hero h1 { margin: 8px 0 14px; font-size: 40px; line-height: 1.15; font-weight: 700; color: #043146; }
.cpap-locator__hero p { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.6; }
.cpap-locator__stats { display: flex; gap: 40px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.cpap-locator__stats div { display: flex; flex-direction: column; }
.cpap-locator__stats strong { font-size: 22px; line-height: 1.2; }
.cpap-locator__stats span { font-size: 12px; color: #6b7280; }

.cpap-locator__tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.cpap-locator__search { display: flex; gap: 12px; flex-wrap: wrap; }
.cpap-locator__search input { flex: 1 1 320px; max-width: 440px; height: 48px; padding: 0 20px; border: 1px solid #d6d6d6; border-radius: 999px; font: inherit; font-size: 14px; color: inherit; background: #fff; }
.cpap-locator__search input:focus { outline: 2px solid #feb62c; outline-offset: 1px; border-color: transparent; }
.cpap-locator__nearest { height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: #043146; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.cpap-locator__nearest:hover { background: #0a4a69; }
.cpap-locator__nearest:disabled { opacity: .6; cursor: wait; }

.cpap-locator__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cpap-locator__chips button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid #d6d6d6; border-radius: 999px; background: #fff; color: #043146; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.cpap-locator__chips button:hover { border-color: #043146; }
.cpap-locator__chips button.is-active { background: #043146; border-color: #043146; color: #fff; }
.cpap-locator__chips i { width: 10px; height: 10px; border-radius: 50%; }
.cpap-locator__chips b { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(4, 49, 70, .1); }
.cpap-locator__chips button.is-active b { background: rgba(255, 255, 255, .2); }
.cpap-locator__msg { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fff4e0; font-size: 13px; }

/* Two columns: list on the left, map stays in view on the right while the list scrolls */
.cpap-locator__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.cpap-locator__map-wrap { position: sticky; top: 24px; height: calc(100vh - 48px); min-height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid #e5e5e5; }
.cpap-locator__map { width: 100%; height: 100%; background: #e8eef2; z-index: 0; }
.cpap-pin span { display: block; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px rgba(0, 0, 0, .4); }

.cpap-locator__list-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.cpap-locator__list-head strong { font-size: 18px; }
.cpap-locator__list-head span { font-size: 13px; color: #6b7280; }

.cpap-locator__list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cpap-locator__state { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #043146; }
.cpap-locator__state i { flex: 1; height: 1px; background: #d6d6d6; }
.cpap-locator__state b { font-size: 12px; color: #6b7280; }
.cpap-locator__empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: #6b7280; }

.cpap-card { position: relative; padding: 24px 28px 24px 32px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.cpap-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 12px 0 0 12px; background: #043146; }
.cpap-card.is-retail::before { background: #feb62c; }
.cpap-card.is-collect::before { background: #2b7bb9; }
.cpap-card.is-warehouse::before { background: #6b7280; }
.cpap-card:hover, .cpap-card.is-focus { box-shadow: 0 6px 20px rgba(4, 49, 70, .12); }
.cpap-card.is-focus { border-color: #feb62c; }
.cpap-card__badge { display: block; width: fit-content; margin-bottom: 8px; padding: 3px 10px; border-radius: 4px; background: #e6edf1; color: #043146; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cpap-card.is-retail .cpap-card__badge { background: #feb62c; }
.cpap-card.is-collect .cpap-card__badge { background: #dcebf6; color: #1f5f93; }
.cpap-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 600; color: #043146; }
.cpap-card p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; }
.cpap-card__host { color: #6b7280; }
.cpap-card__row a { color: inherit; font-weight: 600; text-decoration: none; }
.cpap-card__row a:hover { color: #b86e00; }
.cpap-card__dist { font-weight: 600; color: #1f5f93; }
.cpap-card__note { margin-top: 8px !important; padding: 6px 10px; border: 1px dashed #9cc4e4; border-radius: 6px; background: #eef6fc; font-size: 12px !important; }
.cpap-card__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.cpap-card__btn { padding: 7px 16px; border: 1px solid #043146; border-radius: 999px; color: #043146; font-size: 12px; font-weight: 600; text-decoration: none; transition: all .2s; }
.cpap-card__btn:hover { background: #043146; color: #fff; }
.cpap-card__link { font-size: 12px; font-weight: 600; color: #043146; text-decoration: underline; }

@media (max-width: 991px) {
	.cpap-locator__body { grid-template-columns: 1fr; }
	.cpap-locator__map-wrap { position: relative; top: auto; height: 380px; min-height: 0; order: -1; }
}

@media (max-width: 767px) {
	.cpap-locator { padding: 24px 0 40px; }
	.cpap-locator__hero h1 { font-size: 28px; }
	.cpap-locator__stats { gap: 20px; flex-wrap: wrap; }
	.cpap-locator__body { grid-template-columns: 1fr; }
	.cpap-locator__map-wrap { position: relative; top: auto; height: 340px; min-height: 0; order: -1; }
	.cpap-locator__search input { max-width: none; }
}
