:root {
	--map-ink: #071d30;
	--map-coral: #ef5b43;
	--map-paper: #f7f6f2;
	--map-line: #e1e1dc;
}

body.ec-directory-map-open { overflow: hidden; }

.directory-list__tools { align-items: flex-end; display: flex; flex-direction: column; gap: 14px; }
.directory-map-open { align-items: center; background: var(--map-ink); border: 0; border-radius: 12px; color: #fff; cursor: pointer; display: inline-flex; font-family: inherit; font-size: 13px; font-weight: 800; gap: 9px; min-height: 48px; padding: 0 10px 0 17px; }
.directory-map-open[hidden] { display: none !important; }
.directory-map-open i { color: #ff806a; font-size: 16px; }
.directory-map-open small { background: rgba(255, 255, 255, .1); border-radius: 8px; color: #cfdae2; font-size: 9px; padding: 7px 9px; }
.directory-map-open:focus-visible,
.directory-map-view button:focus-visible,
.directory-map-view a:focus-visible { outline: 3px solid rgba(239, 91, 67, .48); outline-offset: 3px; }

.directory-map-view { background: var(--map-paper); color: var(--map-ink); inset: 0; position: fixed; z-index: 5000; }
.directory-map-view[hidden] { display: none !important; }
.directory-map-bar { align-items: center; background: rgba(247, 246, 242, .98); border-bottom: 1px solid var(--map-line); display: grid; gap: 22px; grid-template-columns: 190px minmax(0, 1fr) auto; height: 76px; padding: 0 22px; position: relative; z-index: 5100; }
.directory-map-brand { align-items: baseline; color: var(--map-ink) !important; display: inline-flex; letter-spacing: -.05em; line-height: 1; width: fit-content; }
.directory-map-brand strong { font-size: 20px; font-weight: 800; }
.directory-map-brand span { color: var(--map-coral); font-size: 10px; font-weight: 800; margin-left: 3px; }
.directory-map-bar__title { min-width: 0; }
.directory-map-bar__title small { color: var(--map-coral); display: block; font-size: 9px; font-weight: 800; letter-spacing: .1em; margin-bottom: 3px; text-transform: uppercase; }
.directory-map-bar__title h2 { color: var(--map-ink); font-size: 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-map-bar__actions { align-items: center; display: flex; gap: 8px; }
.directory-map-bar__actions button { align-items: center; border: 0; border-radius: 11px; cursor: pointer; display: inline-flex; font-family: inherit; font-size: 11px; font-weight: 800; gap: 8px; min-height: 42px; padding: 0 15px; }
.directory-map-results-toggle { background: #ebeae6; color: var(--map-ink); display: none !important; }
.directory-map-close { background: var(--map-ink); color: #fff; }
.directory-map-close__mobile { display: none; }

.directory-map-layout { display: grid; grid-template-columns: 390px minmax(0, 1fr); height: calc(100vh - 76px); height: calc(100dvh - 76px); position: relative; }
.directory-map-sidebar { background: var(--map-paper); border-right: 1px solid var(--map-line); display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 5050; }
.directory-map-sidebar__head { background: #fff; border-bottom: 1px solid var(--map-line); padding: 18px; }
.directory-map-sidebar-close { display: none; }
.directory-map-search { align-items: center; background: #f2f1ed; border: 1px solid transparent; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: 18px minmax(0, 1fr) 30px; min-height: 50px; padding: 0 10px 0 15px; }
.directory-map-search:focus-within { background: #fff; border-color: rgba(7, 29, 48, .28); box-shadow: 0 0 0 4px rgba(7, 29, 48, .06); }
.directory-map-search > i { color: #6f7c84; font-size: 14px; }
.directory-map-search input { background: transparent; border: 0; color: var(--map-ink); font-family: inherit; font-size: 13px; font-weight: 600; min-width: 0; outline: 0; width: 100%; }
.directory-map-search input::placeholder { color: #8a9195; }
.directory-map-search button { align-items: center; background: #deddd8; border: 0; border-radius: 8px; color: var(--map-ink); cursor: pointer; display: flex; height: 30px; justify-content: center; padding: 0; width: 30px; }
.directory-map-summary { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; margin-top: 13px; }
.directory-map-summary strong { font-size: 12px; font-weight: 800; }
.directory-map-summary span { color: #788188; font-size: 9px; font-weight: 700; text-align: right; }
.directory-map-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 7px 10px 20px; scrollbar-color: #c5c5c0 transparent; scrollbar-width: thin; }

.directory-map-result { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 13px; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 78px minmax(0, 1fr) 28px; margin: 3px 0; padding: 8px; text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; width: 100%; }
.directory-map-result:hover { background: #fff; border-color: var(--map-line); transform: translateY(-1px); }
.directory-map-result.is-active { background: #fff; border-color: rgba(239, 91, 67, .42); box-shadow: 0 8px 22px rgba(7, 29, 48, .08); }
.directory-map-result__image { background: #e5e5df; border-radius: 10px; height: 68px; object-fit: cover; width: 78px; }
.directory-map-result__copy { min-width: 0; }
.directory-map-result__meta { color: var(--map-coral); display: block; font-size: 8px; font-weight: 800; letter-spacing: .06em; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.directory-map-result__copy strong { color: var(--map-ink); display: block; font-size: 14px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-map-result__copy small { color: #68747c; display: block; font-size: 10px; line-height: 1.35; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-map-result__arrow { align-items: center; background: #ecebe7; border-radius: 50%; color: var(--map-ink); display: flex; height: 28px; justify-content: center; width: 28px; }
.directory-map-result.is-pending { cursor: default; opacity: .64; }
.directory-map-result.is-pending:hover { transform: none; }
.directory-map-result.is-pending .directory-map-result__meta { color: #7c8387; }

.directory-map-stage { min-width: 0; overflow: hidden; position: relative; }
.directory-map-canvas { background: #dbe3e4; height: 100%; width: 100%; z-index: 1; }
.directory-map-canvas .leaflet-control-attribution { background: rgba(255, 255, 255, .9); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 9px; padding: 3px 7px; }
.directory-map-canvas .leaflet-control-attribution a { color: #31546b; }
.directory-map-canvas .leaflet-control-zoom { border: 0; box-shadow: 0 8px 22px rgba(7, 29, 48, .16); margin-left: 18px; margin-top: 18px; }
.directory-map-canvas .leaflet-control-zoom a { align-items: center; border: 0; color: var(--map-ink); display: flex; font-family: 'Plus Jakarta Sans', sans-serif; height: 38px; justify-content: center; line-height: 1; width: 38px; }
.directory-map-controls { display: flex; gap: 8px; position: absolute; right: 18px; top: 18px; z-index: 800; }
.directory-map-controls button { align-items: center; background: rgba(255, 255, 255, .96); border: 1px solid rgba(7, 29, 48, .1); border-radius: 11px; box-shadow: 0 7px 22px rgba(7, 29, 48, .13); color: var(--map-ink); cursor: pointer; display: inline-flex; font-family: inherit; font-size: 10px; font-weight: 800; gap: 7px; min-height: 42px; padding: 0 13px; }
.directory-map-controls button:hover { background: #fff; }

.ec-map-marker { align-items: center; background: var(--map-ink); border: 3px solid #fff; border-radius: 50% 50% 50% 12%; box-shadow: 0 6px 18px rgba(7, 29, 48, .3); color: #fff; display: flex; height: 38px; justify-content: center; transform: rotate(-45deg); transition: transform .16s ease, background .16s ease; width: 38px; }
.ec-map-marker i { font-size: 12px; transform: rotate(45deg); }
.ec-map-marker.is-elixir { background: #a87925; }
.ec-map-marker.is-pro { background: #14724d; }
.ec-map-marker.is-active { background: var(--map-coral); transform: rotate(-45deg) scale(1.18); }
.leaflet-marker-icon:focus .ec-map-marker { outline: 3px solid rgba(239, 91, 67, .5); outline-offset: 3px; }
.ec-map-user-marker { background: #2878d0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 8px rgba(40, 120, 208, .18); height: 18px; width: 18px; }

.directory-map-preview { background: #fff; border: 1px solid rgba(7, 29, 48, .1); border-radius: 17px; bottom: 22px; box-shadow: 0 18px 55px rgba(7, 29, 48, .22); display: grid; gap: 15px; grid-template-columns: 118px minmax(0, 1fr); left: 50%; max-width: 520px; overflow: hidden; padding: 10px; position: absolute; transform: translateX(-50%); width: calc(100% - 44px); z-index: 900; }
.directory-map-preview[hidden] { display: none; }
.directory-map-preview__image { border-radius: 12px; height: 132px; object-fit: cover; width: 118px; }
.directory-map-preview__body { align-content: center; display: grid; min-width: 0; padding: 5px 7px 5px 0; }
.directory-map-preview__meta { color: var(--map-coral); font-size: 9px; font-weight: 800; letter-spacing: .07em; margin: 0 0 5px; text-transform: uppercase; }
.directory-map-preview h3 { color: var(--map-ink); font-size: 20px; font-weight: 800; letter-spacing: -.04em; line-height: 1.08; margin: 0; }
.directory-map-preview__address { color: #60707a; font-size: 10px; line-height: 1.45; margin: 7px 0 11px; }
.directory-map-preview__actions { display: flex; gap: 7px; }
.directory-map-preview__actions a { align-items: center; border-radius: 9px; display: inline-flex; font-size: 10px; font-weight: 800; gap: 6px; justify-content: center; min-height: 36px; padding: 0 12px; }
.directory-map-preview__profile { background: var(--map-coral); color: #fff !important; }
.directory-map-preview__directions { background: #ecebe7; color: var(--map-ink) !important; }
.directory-map-preview__close { align-items: center; background: rgba(7, 29, 48, .76); border: 0; border-radius: 50%; color: #fff; cursor: pointer; display: flex; height: 27px; justify-content: center; padding: 0; position: absolute; right: 8px; top: 8px; width: 27px; }
.directory-map-empty { align-items: center; background: rgba(255, 255, 255, .95); border-radius: 16px; box-shadow: 0 16px 45px rgba(7, 29, 48, .16); display: flex; flex-direction: column; left: 50%; max-width: 330px; padding: 26px; position: absolute; text-align: center; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 40px); z-index: 700; }
.directory-map-empty[hidden] { display: none; }
.directory-map-empty i { color: var(--map-coral); font-size: 24px; margin-bottom: 13px; }
.directory-map-empty strong { font-size: 15px; }
.directory-map-empty span { color: #6e7a82; font-size: 11px; line-height: 1.5; margin-top: 7px; }
.directory-map-mobile-count { display: none; }

@media (max-width: 900px) {
	.directory-map-layout { grid-template-columns: 330px minmax(0, 1fr); }
	.directory-map-bar { grid-template-columns: 155px minmax(0, 1fr) auto; }
}

@media (max-width: 767px) {
	.directory-list__head { gap: 18px; }
	.directory-list__tools { align-items: stretch; width: 100%; }
	.directory-map-open { justify-content: center; width: 100%; }
	.directory-map-bar { gap: 10px; grid-template-columns: minmax(0, 1fr) auto; height: 68px; padding: 0 12px 0 16px; }
	.directory-map-brand { display: none; }
	.directory-map-bar__title small { display: none; }
	.directory-map-bar__title h2 { font-size: 17px; }
	.directory-map-bar__actions { gap: 6px; }
	.directory-map-bar__actions button { height: 42px; min-height: 42px; padding: 0 12px; }
	.directory-map-results-toggle { display: none !important; }
	.directory-map-close { flex: 0 0 auto; justify-content: center; min-width: 70px; padding: 0 12px !important; }
	.directory-map-close__desktop { display: none; }
	.directory-map-close__mobile { display: inline; }
	.directory-map-layout { display: block; height: calc(100vh - 68px); height: calc(100dvh - 68px); }
	.directory-map-stage { height: 100%; }
	.directory-map-sidebar { border-right: 0; bottom: 0; box-shadow: 0 -18px 55px rgba(7, 29, 48, .22); left: 0; position: absolute; right: 0; top: 0; transform: translateY(105%); transition: transform .24s ease; z-index: 1200; }
	.directory-map-view.is-results-open .directory-map-sidebar { transform: translateY(0); }
	.directory-map-sidebar__head { padding: 14px 16px; }
	.directory-map-sidebar-close { align-items: center; background: transparent; border: 0; color: var(--map-coral); cursor: pointer; display: inline-flex; font-family: inherit; font-size: 10px; font-weight: 800; gap: 7px; margin: 0 0 10px; padding: 0; }
	.directory-map-summary { margin-top: 10px; }
	.directory-map-results { padding: 6px 8px 90px; }
	.directory-map-result { grid-template-columns: 72px minmax(0, 1fr) 28px; }
	.directory-map-result__image { height: 62px; width: 72px; }
	.directory-map-canvas .leaflet-control-zoom { margin-left: 12px; margin-top: 74px; }
	.directory-map-controls { right: 12px; top: 12px; }
	.directory-map-controls button { min-height: 40px; padding: 0; width: 40px; }
	.directory-map-controls button span { display: none; }
	.directory-map-preview { bottom: 78px; gap: 11px; grid-template-columns: 90px minmax(0, 1fr); left: 12px; padding: 8px; transform: none; width: calc(100% - 24px); }
	.directory-map-preview__image { height: 112px; width: 90px; }
	.directory-map-preview__body { padding-right: 2px; }
	.directory-map-preview h3 { font-size: 17px; }
	.directory-map-preview__address { margin: 5px 0 8px; }
	.directory-map-preview__actions a { min-height: 34px; padding: 0 9px; }
	.directory-map-preview__directions span { display: none; }
	.directory-map-mobile-count { align-items: center; background: var(--map-ink); border: 0; border-radius: 12px; bottom: 18px; box-shadow: 0 12px 30px rgba(7, 29, 48, .28); color: #fff; cursor: pointer; display: inline-flex; font-family: inherit; font-size: 11px; font-weight: 800; gap: 8px; left: 50%; min-height: 44px; padding: 0 17px; position: absolute; transform: translateX(-50%); width: auto; z-index: 1000; }
	.directory-map-view.is-results-open .directory-map-mobile-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.directory-map-sidebar,
	.directory-map-result,
	.ec-map-marker { transition: none; }
}
