/* Branches locator — Connexus-style layout */
#branches-locator { display: grid; grid-template-columns: minmax(320px, 30%) 1fr; gap: 0 24px; position: relative; }
#branches-locator.map-first .bl-mapwrap { order: -1; }

/* Search row */
#branches-locator .bl-search-row { display: flex; gap: 10px; align-items: stretch; }
#branches-locator .bl-geolocate { display: flex; align-items: center; gap: 6px; border: 0; background: #eef1f4; color: #1f2937; border-radius: 8px; padding: 0 12px; height: 48px; cursor: pointer; font-size: 15px; order: 3; }
#branches-locator .bl-geolocate:hover { background: #e2e8f0; }
#branches-locator .bl-input-wrap { position: relative; flex: 1; display: flex; }
#branches-locator .bl-search-input { width: 100%; height: 48px; padding: 0 40px 0 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f4f6f8; font-size: 16px; }
#branches-locator .bl-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 22px; line-height: 1; color: #64748b; cursor: pointer; padding: 4px; }
#branches-locator .bl-search-form { display: flex; gap: 10px; flex: 1; }
#branches-locator .bl-search-btn { height: 48px; width: 52px; border: 0; border-radius: 8px; background: var(--bl-btn, var(--e-global-color-accent, #1c7bc7)); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#branches-locator .bl-search-btn:hover { background: var(--bl-btn-hover, #00559a); }

#branches-locator .bl-filters { display: flex; gap: 16px; margin: 10px 0 4px; }
#branches-locator .bl-filters label { display: flex; align-items: center; gap: 5px; font-size: 15px; }
#branches-locator .bl-status { min-height: 1.1em; font-size: 13px; color: #475569; }
#branches-locator .bl-count-row { margin: 4px 0 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }

/* Results list: flat rows with dividers */
#branches-locator .bl-listwrap { padding-right: 18px; scrollbar-gutter: stable; }
#branches-locator .bl-list { list-style: none; margin: 0; padding: 0; }
#branches-locator .bl-item { display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid #e2e8f0; cursor: pointer; }
#branches-locator .bl-item:hover, #branches-locator .bl-item:focus { background: #f8fafc; outline: none; }
#branches-locator .bl-dist { flex: 0 0 52px; font-size: 15px; color: #1f2937; }
#branches-locator:not(.bl-has-distance) .bl-dist { display: none; }
#branches-locator .bl-loc { flex: 1; display: flex; flex-direction: column; gap: 1px; }
#branches-locator .bl-name { font-weight: 700; color: #00335c; }
#branches-locator .bl-addr1, #branches-locator .bl-addr2 { font-size: 16px; color: #1f2937; }
#branches-locator .bl-services { font-size: 13px; color: #64748b; }
#branches-locator .bl-rowicon { flex: 0 0 auto; max-height: 34px; max-width: 72px; object-fit: contain; }

/* Map + details overlay */
#branches-locator .bl-mapwrap { position: relative; }
#branches-locator .bl-map { position: absolute; inset: 0; border-radius: 6px; }
#branches-locator .bl-details { position: absolute; inset: 16px auto 16px 16px; width: min(440px, calc(100% - 32px)); background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); overflow-y: auto; z-index: 5; }
#branches-locator .bl-details-inner { padding: 18px 22px 22px; }
#branches-locator .bl-details-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
#branches-locator .bl-details-title { font-size: 22px; margin: 0; flex: 1; }
#branches-locator .bl-details-back { display: none; border: 0; background: none; font-size: 16px; cursor: pointer; color: #00559a; padding: 4px 6px 4px 0; }
#branches-locator .bl-details-close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #1f2937; }
#branches-locator .bl-details-head { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
#branches-locator .bl-d-name { font-weight: 700; font-size: 18px; color: #00335c; }
#branches-locator .bl-details details { border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
#branches-locator .bl-details summary { cursor: pointer; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
#branches-locator .bl-details summary::-webkit-details-marker { display: none; }
#branches-locator .bl-details summary::after { content: "\2304"; font-size: 16px; color: #475569; }
#branches-locator .bl-details details[open] summary::after { content: "\2303"; }
#branches-locator .bl-hours-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 15px; }
#branches-locator .bl-hours-table th { text-align: left; font-weight: 400; padding: 3px 8px 3px 0; }
#branches-locator .bl-hours-table thead th { font-weight: 700; }
#branches-locator .bl-hours-table td { padding: 3px 8px 3px 0; color: #334155; }
#branches-locator .bl-hours-table tr.bl-today th, #branches-locator .bl-hours-table tr.bl-today td { font-weight: 700; color: #111827; }
#branches-locator .bl-holiday-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
#branches-locator .bl-holiday-table th { text-align: left; font-weight: 400; color: #111827; padding: 8px 8px 8px 0; }
#branches-locator .bl-holiday-table td { text-align: right; color: #64748b; padding: 8px 0; white-space: nowrap; }
#branches-locator .bl-btn i { margin-right: 8px; font-size: 15px; }
#branches-locator .bl-d-pagewrap { text-align: center; margin: 16px 0 6px; }
#branches-locator .bl-d-services-list { margin: 10px 0 0 18px; }
#branches-locator .bl-d-actions { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
#branches-locator .bl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 26px; border-radius: 8px; font-size: 16px; text-decoration: none; }
#branches-locator .bl-btn-fill { background: var(--bl-btn, var(--e-global-color-accent, #1c7bc7)); color: #fff; }
#branches-locator .bl-btn-fill:hover { background: var(--bl-btn-hover, #00559a); }
#branches-locator .bl-btn-outline { border: 2px solid var(--bl-btn, var(--e-global-color-accent, #1c7bc7)); color: var(--bl-btn, var(--e-global-color-accent, #1c7bc7)); background: #fff; }
#branches-locator .bl-d-pagewrap { text-align: center; margin: 14px 0 0; }

/* Desktop: map matches the left column height regardless of inline map-style */
@media (min-width: 801px) {
	#branches-locator .bl-mapwrap { height: auto !important; align-self: stretch; min-height: 480px; }
}

/* Directory + holiday sections: 2 columns, stacking on small viewports */
.branches-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; }
.branches-directory-item h3 { margin: 18px 0 6px; }
.branches-directory-addr { margin: 0 0 8px; }
.branches-directory-phone { margin: 8px 0 0; }
.branches-holidays { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; align-items: start; }
.branches-holidays ul { list-style: none; margin: 0; padding: 0; }
.branches-holidays li { margin: 0 0 14px; }
.branches-holiday-name { font-weight: 700; font-style: italic; }
@media (max-width: 800px) {
	.branches-directory, .branches-holidays { grid-template-columns: 1fr; }
}

/* Mobile: stacked — search, map, count, list; full-screen details */
@media (max-width: 800px) {
	#branches-locator { grid-template-columns: 1fr; }
	#branches-locator .bl-left { display: contents; }
	#branches-locator .bl-controls { order: 1; }
	#branches-locator .bl-mapwrap { order: 2; margin-top: 12px; height: 42vh !important; }
	#branches-locator .bl-status { order: 3; }
	#branches-locator .bl-count-row { order: 4; }
	#branches-locator .bl-listwrap { order: 5; height: auto !important; overflow: visible !important; }
	#branches-locator .bl-geolocate { order: 0; padding: 0 12px; }
	#branches-locator .bl-geolabel { display: none; }
	#branches-locator .bl-details { position: fixed; inset: 0; width: auto; border-radius: 0; z-index: 99999; }
	#branches-locator .bl-details-back { display: inline-block; }
	#branches-locator .bl-details-close { display: none; }
	#branches-locator .bl-d-actions { position: sticky; bottom: 0; background: #f8fafc; padding: 12px; margin: 18px -22px -22px; }
	#branches-locator .bl-details-inner { padding-bottom: 8px; }
}
