/* Waypost locator. Design tokens first; logical properties so right-to-left languages mirror. */
.wyp-locator {
	--wyp-accent: #0b5cad;
	--wyp-accent-fg: #fff;
	--wyp-bg: #fff;
	--wyp-fg: #1b1f23;
	--wyp-muted: #4a5560;
	--wyp-border: #c4cbd2;
	--wyp-surface: #f4f6f8;
	--wyp-open: #17692f;
	--wyp-closed: #8a2a1b;
	--wyp-radius: 8px;
	--wyp-focus: #0b5cad;
	--wyp-h: 540px;
	color: var(--wyp-fg);
	font-size: 1rem;
	line-height: 1.5;
	box-sizing: border-box;
}
.wyp-locator *, .wyp-locator *::before, .wyp-locator *::after { box-sizing: inherit; }

.wyp-scheme-dark, .wyp-scheme-dark.wyp-locator {
	--wyp-accent: #7ab7ff; --wyp-accent-fg: #07131f; --wyp-bg: #14181c; --wyp-fg: #eef1f4; --wyp-muted: #b4bdc6;
	--wyp-border: #3a444e; --wyp-surface: #1c2227; --wyp-open: #6fd48c; --wyp-closed: #ff9d8c; --wyp-focus: #9ccbff;
}
@media (prefers-color-scheme: dark) {
	.wyp-scheme-auto.wyp-locator {
		--wyp-accent: #7ab7ff; --wyp-accent-fg: #07131f; --wyp-bg: #14181c; --wyp-fg: #eef1f4; --wyp-muted: #b4bdc6;
		--wyp-border: #3a444e; --wyp-surface: #1c2227; --wyp-open: #6fd48c; --wyp-closed: #ff9d8c; --wyp-focus: #9ccbff;
	}
}
.wyp-locator { background: var(--wyp-bg); }

.wyp-sr { position: absolute !important; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wyp-skip { position: absolute; inset-inline-start: -9999px; }
.wyp-skip:focus { position: static; display: inline-block; margin-block-end: 8px; padding: 8px 12px; background: var(--wyp-accent); color: var(--wyp-accent-fg); }

.wyp-locator a { color: var(--wyp-accent); text-underline-offset: 2px; }
.wyp-locator :focus-visible { outline: 3px solid var(--wyp-focus); outline-offset: 2px; }

/* Search form */
.wyp-search { margin-block-end: 12px; }
.wyp-search__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.wyp-field { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.wyp-field > label { font-weight: 600; font-size: .9rem; }
.wyp-field--q { flex: 1 1 280px; }
.wyp-field--check { flex-direction: row; align-items: center; gap: 8px; min-block-size: 44px; }
.wyp-field--check > label { font-weight: 400; font-size: 1rem; }
.wyp-field--check input { inline-size: 22px; block-size: 22px; }
.wyp-field--actions { flex-direction: row; gap: 8px; }
.wyp-locator input[type="search"], .wyp-locator select {
	min-block-size: 44px; padding: 8px 12px; border: 1px solid var(--wyp-border); border-radius: var(--wyp-radius);
	background: var(--wyp-bg); color: var(--wyp-fg); font: inherit; inline-size: 100%;
}
.wyp-btn {
	display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; padding: 8px 16px; border-radius: var(--wyp-radius);
	border: 1px solid var(--wyp-accent); background: var(--wyp-bg); color: var(--wyp-accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.wyp-btn:hover { background: var(--wyp-surface); }
.wyp-btn--primary { background: var(--wyp-accent); color: var(--wyp-accent-fg) !important; }
.wyp-btn--primary:hover { background: var(--wyp-accent); filter: brightness(1.08); }
.wyp-combo { position: relative; }
.wyp-suggest { position: absolute; inset-inline: 0; z-index: 1200; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--wyp-bg); border: 1px solid var(--wyp-border); border-radius: var(--wyp-radius); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); max-block-size: 260px; overflow: auto; }
.wyp-suggest[hidden] { display: none; }
.wyp-suggest__item { padding: 10px 12px; cursor: pointer; }
.wyp-suggest__item.is-active, .wyp-suggest__item:hover { background: var(--wyp-accent); color: var(--wyp-accent-fg); }

.wyp-status { min-block-size: 1.5em; margin-block: 0 8px; color: var(--wyp-muted); }

/* Layout */
.wyp-body { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.wyp-layout-split .wyp-body { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); align-items: start; }
	.wyp-layout-split .wyp-list-wrap { max-block-size: var(--wyp-h); overflow: auto; }
}
.wyp-map-wrap { position: relative; min-block-size: 280px; background: var(--wyp-surface); border: 1px solid var(--wyp-border); border-radius: var(--wyp-radius); overflow: hidden; }
.wyp-map { block-size: var(--wyp-h); max-block-size: 80vh; inline-size: 100%; direction: ltr; z-index: 0; }
.wyp-map[hidden] { display: none; }
.wyp-consent { padding: 24px; max-inline-size: 560px; margin-inline: auto; }
.wyp-consent[hidden] { display: none; }
.wyp-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wyp-map-hint { position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 600; text-align: center; padding: 16px; pointer-events: none; }
.wyp-map-hint[hidden] { display: none; }

/* List */
.wyp-list-title { font-size: 1.15rem; margin-block: 0 8px; }
.wyp-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wyp-card { border: 1px solid var(--wyp-border); border-radius: var(--wyp-radius); padding: 12px 14px; background: var(--wyp-bg); }
.wyp-card.is-active { border-color: var(--wyp-accent); box-shadow: 0 0 0 2px var(--wyp-accent); }
.wyp-card__title { margin: 0 0 4px; font-size: 1.05rem; }
.wyp-card__meta { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--wyp-muted); }
.wyp-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; font-size: .85rem; font-weight: 600; }
.wyp-badge--open { color: var(--wyp-open); }
.wyp-badge--closed { color: var(--wyp-closed); }
.wyp-card__cats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; font-size: .85rem; }
.wyp-card__cats li { background: var(--wyp-surface); border-radius: 999px; padding: 1px 10px; }
.wyp-card__addr { font-style: normal; margin-block: 0 4px; }
.wyp-card__contact { margin-block: 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.wyp-card__extra { margin: 0 0 6px; font-size: .9rem; display: grid; gap: 2px; }
.wyp-card__extra div { display: flex; gap: 6px; flex-wrap: wrap; }
.wyp-card__extra dt { font-weight: 600; }
.wyp-card__extra dt::after { content: ":"; }
.wyp-card__extra dd { margin: 0; }
.wyp-card__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wyp-more { margin-block-start: 10px; }
.wyp-empty { padding: 12px; background: var(--wyp-surface); border-radius: var(--wyp-radius); }

/* Pins and clusters (CSS-drawn, no image requests) */
.wyp-pin-wrap { background: none; border: 0; }
.wyp-pin { position: relative; display: block; inline-size: 28px; block-size: 28px; margin: 2px; background: var(--wyp-pin, #0b5cad); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 5px rgba(0, 0, 0, .45); }
.wyp-pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.wyp-pin-wrap:focus-visible .wyp-pin, .wyp-pin-wrap:focus .wyp-pin { outline: 3px solid #ffbf00; outline-offset: 3px; }
.wyp-cluster-wrap { background: none; border: 0; }
.wyp-cluster { display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: #0b5cad; color: #fff; border: 3px solid #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.wyp-cluster-wrap:focus .wyp-cluster { outline: 3px solid #ffbf00; outline-offset: 2px; }
.wyp-dark-tiles .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }
path.wyp-center { stroke: #fff; fill: #d12c1f; stroke-width: 3; }
.wyp-popup a { display: inline-block; margin-block-start: 6px; }

/* Single-location shortcodes */
.wyp-hours__table { border-collapse: collapse; }
.wyp-hours__table th { text-align: start; padding-inline-end: 16px; font-weight: 600; }
.wyp-directions { padding-inline-start: 1.2em; }

@media (prefers-reduced-motion: reduce) { .wyp-locator * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) {
	.wyp-pin { forced-color-adjust: none; }
	.wyp-card.is-active { outline: 3px solid Highlight; }
}

/* Forms (messages, suggestions) */
.wyp-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.wyp-form{display:grid;gap:.75rem;max-width:36rem}
.wyp-form label{display:block;font-weight:600}
.wyp-form input:not([type=checkbox]),.wyp-form textarea,.wyp-form select{display:block;width:100%;box-sizing:border-box;padding:.5rem;border:1px solid #767676;border-radius:4px;font:inherit}
.wyp-form input:focus-visible,.wyp-form textarea:focus-visible,.wyp-form button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.wyp-form .wyp-check{font-weight:400}
.wyp-notice{padding:.75rem 1rem;border-left:4px solid;border-radius:2px}
.wyp-notice--ok{border-color:#007017;background:#edfaef}
.wyp-notice--error{border-color:#b32d2e;background:#fcf0f1}

/* Floor plans */
.wyp-plan__canvas{position:relative;display:inline-block;max-width:100%}
.wyp-plan__canvas img{display:block;max-width:100%;height:auto}
.wyp-plan__pin{position:absolute;transform:translate(-50%,-50%)}
.wyp-plan__pin summary{list-style:none;display:grid;place-items:center;min-width:28px;min-height:28px;border-radius:50%;background:var(--wyp-accent,#0b5cad);color:var(--wyp-accent-fg,#fff);font-weight:700;cursor:pointer;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.wyp-plan__pin summary::-webkit-details-marker{display:none}
.wyp-plan__pin summary:focus-visible{outline:3px solid var(--wyp-focus,#0b5cad);outline-offset:2px}
.wyp-plan__pop{position:absolute;z-index:2;inset-block-start:110%;inset-inline-start:50%;transform:translateX(-50%);min-width:12rem;max-width:18rem;padding:.5rem .75rem;background:#fff;color:#1b1f23;border:1px solid #767676;border-radius:var(--wyp-radius,8px)}
.wyp-plan__list{margin-block-start:.75rem}
.wyp-plan .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Print view (FE-007): the list prints in full with addresses and hours; the map is left out. */
.wyp-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
@media print {
	.wyp-locator .wyp-search, .wyp-locator .wyp-map-wrap, .wyp-locator .wyp-consent, .wyp-locator .wyp-print,
	.wyp-locator .wyp-geolocate, .wyp-locator .wyp-show-map, .wyp-locator .wyp-card__actions, .wyp-locator button { display: none !important; }
	.wyp-locator .wyp-list-wrap { max-block-size: none !important; overflow: visible !important; }
	.wyp-locator .wyp-layout, .wyp-locator .wyp-body { display: block !important; }
	.wyp-locator .wyp-results > li { break-inside: avoid; }
	.wyp-locator details { display: block; }
	.wyp-locator details > *:not(summary) { display: block !important; }
	.wyp-locator a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
	html.wyp-printing body * { visibility: hidden; }
	html.wyp-printing .wyp-print-target, html.wyp-printing .wyp-print-target * { visibility: visible; }
	html.wyp-printing .wyp-print-target { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 100%; }
}

/* Inline directions (Suite routers) */
.wyp-route { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--wyp-border, #c3c4c7); border-radius: var(--wyp-radius, 6px); background: var(--wyp-surface, #fff); }
.wyp-route__title { margin: 0 0 6px; font-size: 1rem; }
.wyp-route__title:focus { outline: 2px solid var(--wyp-focus, #2271b1); outline-offset: 2px; }
.wyp-route__mode { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; font-size: .9rem; }
.wyp-route__mode select { min-height: 32px; }
.wyp-route__sum { font-weight: 600; margin: 0 0 6px; }
.wyp-route__steps { margin: 0 0 8px 1.2em; padding: 0; max-height: 260px; overflow: auto; font-size: .9rem; }
.wyp-route__steps li { margin: 0 0 4px; }
.wyp-route__d, .wyp-route__attr { color: var(--wyp-muted, #50575e); font-size: .85rem; }
.wyp-route__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-size: .9rem; }
.wyp-route-line { stroke: var(--wyp-accent, #2271b1); }
@media (forced-colors: active) { .wyp-route-line { stroke: Highlight; } }
@media print { .wyp-route__close, .wyp-route-btn { display: none; } }

/* Location gallery */
.wyp-gallery { margin: 1.5em 0; }
.wyp-gallery__logo { display: block; max-width: 160px; height: auto; margin: 0 0 12px; }
.wyp-gallery__grid, .wyp-gallery__videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(160px, 45%), 1fr)); }
.wyp-gallery__videos { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.wyp-gallery__item { margin: 0; }
.wyp-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wyp-radius, 6px); }
.wyp-gallery__item figcaption { font-size: .85rem; color: var(--wyp-muted, #50575e); margin-top: 4px; }
.wyp-gallery__link { display: block; border-radius: var(--wyp-radius, 6px); }
.wyp-gallery__link:focus-visible { outline: 3px solid var(--wyp-focus, #2271b1); outline-offset: 2px; }
.wyp-video { position: relative; aspect-ratio: 16 / 9; background: #1d2327; border-radius: var(--wyp-radius, 6px); overflow: hidden; }
.wyp-video__play { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; color: #fff; text-align: center; font-weight: 600; }
.wyp-video__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.wyp-video__icon { font-size: 2rem; line-height: 1; }
.wyp-video__note { font-weight: 400; font-size: .8rem; }
.wyp-video__media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wyp-lightbox { border: 0; padding: 0; max-width: 96vw; max-height: 96vh; background: #111; color: #fff; }
.wyp-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.wyp-lightbox__fig { margin: 0; padding: 48px 56px 8px; text-align: center; }
.wyp-lightbox__img { max-width: 100%; max-height: 78vh; height: auto; }
.wyp-lightbox__cap, .wyp-lightbox__count { margin: 6px 0; text-align: center; padding: 0 12px; }
.wyp-lightbox button { position: absolute; min-width: 44px; min-height: 44px; background: #fff; color: #111; border: 0; border-radius: 4px; padding: 6px 10px; cursor: pointer; }
.wyp-lightbox button:focus-visible { outline: 3px solid var(--wyp-accent, #0b5cad); outline-offset: 2px; }
.wyp-lightbox__close { top: 8px; inset-inline-end: 8px; }
.wyp-lightbox__prev { top: 50%; inset-inline-start: 6px; }
.wyp-lightbox__next { top: 50%; inset-inline-end: 6px; }
@media (prefers-reduced-motion: reduce) { .wyp-lightbox { animation: none; } }

/* "Search this area" (FE-036) and layers control (FE-035) */
.wyp-area-btn { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); white-space: nowrap; }
.wyp-area-btn[hidden] { display: none; }
.wyp-locator .leaflet-control-layers label { display: flex; gap: 6px; align-items: center; margin: 2px 0; }
.wyp-locator .leaflet-control-layers-toggle:focus-visible { outline: 3px solid var(--wyp-focus); outline-offset: 2px; }
