/* HomeList Map Search */
.hlms {
	--hlms-accent: #fdb45e;      /* price pins + address pin */
	--hlms-pin-text: #1a1a1a;
	--hlms-ink: #111214;         /* selected pin, active nav, buttons */
	--hlms-card: #ffffff;
	--hlms-soft: #f1f2f4;
	--hlms-badge: #cfeec2;
	--hlms-muted: #8b8f97;
	--hlms-radius: 26px;
	--hlms-dock-w: 440px;
	--hlms-dock: 260px;
	--hlms-font: "Urbanist", "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative; width: 100%; height: var(--hlms-h, 780px); overflow: hidden; isolation: isolate;
	background: #e8ebee; border-radius: 0; font-family: var(--hlms-font); color: var(--hlms-ink); line-height: 1.3;
	-webkit-font-smoothing: antialiased; container: hlms / inline-size;
}
.hlms *, .hlms *::before, .hlms *::after { box-sizing: border-box; }
.hlms button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: inherit; }
.hlms a { color: inherit; text-decoration: none; box-shadow: none; }
.hlms ul { list-style: none; margin: 0; padding: 0; }
.hlms h3, .hlms h4, .hlms p { margin: 0; padding: 0; font-family: inherit; color: inherit; text-transform: none; }
.hlms [hidden] { display: none !important; }
.hlms .hlms-i { width: 20px; height: 20px; display: block; flex: none; }
.hlms button:focus-visible, .hlms a:focus-visible, .hlms input:focus-visible { outline: 2px solid var(--hlms-ink); outline-offset: 2px; }

/* map */
.hlms-map { position: absolute; inset: 0; z-index: 0; background: #e8ebee; font-family: var(--hlms-font); }
.hlms .leaflet-container { font-family: var(--hlms-font); background: #e8ebee; }
.hlms .leaflet-bottom.leaflet-right { bottom: calc(var(--hlms-dock) + 20px); right: 0; }
.hlms .leaflet-control-attribution { background: rgba(255, 255, 255, .7); font-size: 10px; border-radius: 8px 0 0 0; padding: 1px 6px; }
.hlms .leaflet-control-attribution a { color: #555; }

/* price pins */
.hlms .hlms-mk { background: none; border: 0; }
.hlms-mk span {
	position: absolute; left: 0; bottom: 8px; transform: translateX(-50%); white-space: nowrap;
	background: var(--hlms-accent); color: var(--hlms-pin-text); font-size: 12px; font-weight: 700; letter-spacing: .01em;
	padding: 6px 10px; border-radius: 11px; box-shadow: 0 4px 12px rgba(16, 24, 40, .18); transition: transform .15s, background .15s, color .15s;
}
.hlms-mk span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hlms-mk:hover span { transform: translateX(-50%) scale(1.06); }
.hlms-mk.is-sel span { background: var(--hlms-ink); color: #fff; transform: translateX(-50%) scale(1.08); }
.hlms .hlms-poly { stroke-linejoin: round; }

/* top bar */
.hlms-top { position: absolute; z-index: 20; top: 14px; left: 14px; right: 14px; display: flex; gap: 10px; align-items: center; max-width: var(--hlms-dock-w); margin: 0 auto; }
.hlms-addr {
	flex: 1; min-width: 0; height: 56px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 10px;
	background: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}
.hlms-pin { width: 38px; height: 38px; border-radius: 50%; background: var(--hlms-accent); color: #fff; display: grid; place-items: center; flex: none; }
.hlms-pin .hlms-i { width: 19px; height: 19px; }
.hlms-addr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; cursor: text; }
.hlms-addr-txt small { font-size: 11px; color: var(--hlms-muted); font-weight: 500; line-height: 1.1; }
.hlms .hlms-addr-txt input {
	width: 100%; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
	font: inherit; font-size: 14px; font-weight: 700; color: var(--hlms-ink); padding: 0 !important; margin: 0; height: auto !important; line-height: 1.25; border-radius: 0 !important;
	text-overflow: ellipsis;
}
.hlms .hlms-addr-txt input:focus-visible { outline: 0; }
.hlms-addr-txt input::placeholder { color: var(--hlms-ink); opacity: 1; font-weight: 700; }
.hlms-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #6b7280; flex: none; }
.hlms .hlms-x:hover { background: var(--hlms-soft); }
.hlms-x .hlms-i { width: 16px; height: 16px; }
.hlms .hlms-bell { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); flex: none; }
.hlms-bell .hlms-dot { position: absolute; top: 15px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--hlms-accent); border: 2px solid #fff; }

.hlms-suggest {
	position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-radius: 22px; padding: 6px; max-height: 300px; overflow: auto;
	box-shadow: 0 16px 48px rgba(16, 24, 40, .2); z-index: 30;
}
.hlms-suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.hlms-suggest li:hover { background: var(--hlms-soft); }
.hlms-suggest li .hlms-i { width: 18px; height: 18px; color: var(--hlms-accent); }
.hlms-suggest li span { display: flex; flex-direction: column; min-width: 0; }
.hlms-suggest li b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlms-suggest li small { font-size: 11.5px; color: var(--hlms-muted); }
.hlms-suggest li.hlms-none { color: var(--hlms-muted); font-size: 13px; cursor: default; }

/* map tools */
.hlms-tools { position: absolute; z-index: 15; right: 14px; bottom: calc(var(--hlms-dock) + 46px); display: flex; flex-direction: column; gap: 10px; }
.hlms .hlms-tool { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(16, 24, 40, .16); transition: background .15s, color .15s, transform .15s; }
.hlms .hlms-tool:hover { transform: scale(1.06); }
.hlms .hlms-tool.is-on { background: var(--hlms-ink); color: #fff; }
.hlms .hlms-tool .hlms-i { width: 21px; height: 21px; }

/* draw layer */
.hlms-draw { position: absolute; inset: 0; z-index: 12; cursor: crosshair; touch-action: none; background: rgba(17, 18, 20, .06); }
.hlms-draw svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.hlms-draw path { fill: rgba(17, 18, 20, .07); stroke: var(--hlms-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hlms-toast {
	position: absolute; z-index: 40; left: 50%; top: 84px; transform: translateX(-50%); max-width: calc(100% - 40px);
	background: var(--hlms-ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); text-align: center;
}

/* dock: status + cards + nav */
.hlms-dock { position: absolute; z-index: 18; left: 14px; right: 14px; bottom: 14px; max-width: var(--hlms-dock-w); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.hlms-status { display: flex; gap: 8px; flex-wrap: wrap; }
.hlms .hlms-count { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #fff; border-radius: 999px; font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 14px rgba(16, 24, 40, .14); }
.hlms-count .hlms-i { width: 16px; height: 16px; }
.hlms .hlms-clear { background: var(--hlms-ink); color: #fff; }
.hlms .hlms-count.is-static { cursor: default; pointer-events: none; }

.hlms-deck { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 2px; }
.hlms-deck::-webkit-scrollbar { display: none; }
.hlms-track { display: flex; gap: 10px; }
.hlms-card { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; background: var(--hlms-card); border-radius: var(--hlms-radius); padding: 10px 10px 14px; box-shadow: 0 14px 40px rgba(16, 24, 40, .18); min-width: 0; }
.hlms-media { position: relative; border-radius: calc(var(--hlms-radius) - 8px); overflow: hidden; aspect-ratio: 2.35 / 1; background: #dfe3e8; }
.hlms-cover { display: block; width: 100%; height: 100%; }
.hlms-media img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; border-radius: 0; }
.hlms-badge { position: absolute; left: 10px; top: 10px; background: var(--hlms-badge); color: #1d3a12; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px; pointer-events: none; }
.hlms-acts { position: absolute; right: 10px; top: 10px; display: flex; gap: 8px; }
.hlms .hlms-rb { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; transition: background .15s; }
.hlms .hlms-rb:hover { background: rgba(255, 255, 255, .85); color: var(--hlms-ink); }
.hlms-rb .hlms-i { width: 18px; height: 18px; }
.hlms .hlms-rb.is-on { background: #fff; color: #ef4444; }
.hlms .hlms-rb.is-on .hlms-i { fill: #ef4444; }
.hlms-ttl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 6px 0; }
.hlms .hlms-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hlms-price { font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.hlms-price em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--hlms-muted); margin-left: 2px; }
.hlms-adr { margin: 8px 6px 0; font-size: 12.5px; color: var(--hlms-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hlms-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 4px 0; }
.hlms-chips span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; background: var(--hlms-soft); border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 0 8px; white-space: nowrap; }
.hlms-chips .hlms-i { width: 18px; height: 18px; }
.hlms-empty { text-align: center; padding: 26px 20px; }
.hlms-empty h4 { font-size: 17px; font-weight: 800; }
.hlms-empty p { margin: 6px 0 14px; font-size: 13px; color: var(--hlms-muted); }
.hlms .hlms-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: 999px; background: var(--hlms-ink); color: #fff; font-size: 14px; font-weight: 700; }
.hlms .hlms-btn:hover { filter: brightness(1.25); }
.hlms .hlms-btn-ghost { background: var(--hlms-soft); color: var(--hlms-ink); }
.hlms .hlms-btn-ghost:hover { filter: brightness(.96); }

.hlms-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #fff; border-radius: 999px; padding: 8px; box-shadow: 0 14px 40px rgba(16, 24, 40, .18); }
.hlms .hlms-nb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--hlms-ink); transition: background .15s, color .15s; flex: none; }
.hlms .hlms-nb:hover { background: var(--hlms-soft); }
.hlms .hlms-nb.is-active, .hlms .hlms-nb.is-active:hover { background: var(--hlms-ink); color: #fff; }
.hlms .hlms-nb[aria-pressed="true"] .hlms-i { fill: currentColor; }
.hlms-nb .hlms-i { width: 23px; height: 23px; }

/* bottom sheet */
.hlms-sheet { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.hlms-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .4); opacity: 0; transition: opacity .2s; }
.hlms-sheet.is-open .hlms-backdrop { opacity: 1; }
.hlms-panel { position: relative; width: 100%; max-width: var(--hlms-dock-w); max-height: 82%; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 18px 22px; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .22s ease; box-shadow: 0 -16px 48px rgba(0, 0, 0, .2); }
.hlms-sheet.is-open .hlms-panel { transform: none; }
.hlms-grab { width: 44px; height: 5px; border-radius: 3px; background: #d9dce1; margin: 0 auto 10px; flex: none; }
.hlms-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex: none; }
.hlms .hlms-panel-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.hlms-panel-body { overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.hlms-note { font-size: 13.5px; color: var(--hlms-muted); padding: 10px 2px; line-height: 1.5; }
.hlms-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 18px; cursor: pointer; }
.hlms-rows li:hover { background: var(--hlms-soft); }
.hlms-rows img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; max-width: none; }
.hlms-rows li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hlms-rows b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlms-rows small { font-size: 12px; color: var(--hlms-muted); }
.hlms-rows strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.hlms-agents li { cursor: default; }
.hlms-agents li em { display: flex; gap: 6px; font-style: normal; }
.hlms-agents .hlms-rb { background: var(--hlms-ink); color: #fff; }
.hlms-agents .hlms-rb:hover { background: #333; color: #fff; }

.hlms-fl { margin-bottom: 16px; }
.hlms-fl > label { display: block; font-size: 12.5px; font-weight: 700; color: #4b5563; margin-bottom: 8px; }
.hlms-segs { display: flex; flex-wrap: wrap; gap: 8px; }
.hlms .hlms-seg { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--hlms-soft); font-size: 13px; font-weight: 700; }
.hlms .hlms-seg.is-on { background: var(--hlms-ink); color: #fff; }
.hlms-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hlms .hlms-two input { height: 44px; border: 0 !important; border-radius: 999px !important; background: var(--hlms-soft) !important; padding: 0 18px !important; font: inherit; font-size: 14px; font-weight: 600; width: 100%; box-shadow: none !important; color: var(--hlms-ink); }
.hlms-fl-act { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 20px 0 0; }

/* loading */
.hlms.is-loading .hlms-track { opacity: .6; transition: opacity .2s; }

/* desktop: app panel beside the map (position set in the plugin settings) */
@container hlms (min-width: 900px) {
	.hlms-top, .hlms-dock { width: var(--hlms-dock-w); left: 20px; right: auto; margin: 0; }
	.hlms-top { top: 20px; }
	.hlms-dock { bottom: 20px; }
	.hlms-tools { right: 20px; bottom: 36px; }
	.hlms .leaflet-bottom.leaflet-right { bottom: 0; }
	.hlms-sheet { justify-content: flex-start; padding-left: 20px; }
	.hlms-panel { border-radius: 28px; margin-bottom: 20px; max-height: 76%; }

	.hlms-pos-center .hlms-top, .hlms-pos-center .hlms-dock { left: 0; right: 0; margin: 0 auto; }
	.hlms-pos-center .hlms-sheet { justify-content: center; padding: 0; }
	.hlms-pos-right .hlms-top, .hlms-pos-right .hlms-dock { left: auto; right: 20px; }
	.hlms-pos-right .hlms-tools { right: auto; left: 20px; }
	.hlms-pos-right .hlms-sheet { justify-content: flex-end; padding: 0 20px 0 0; }
	.hlms-pos-right .leaflet-bottom.leaflet-right { right: auto; left: 0; }
}
@container hlms (max-width: 420px) {
	.hlms-top { top: 10px; left: 10px; right: 10px; gap: 8px; }
	.hlms-addr { height: 52px; }
	.hlms .hlms-bell { width: 52px; height: 52px; }
	.hlms-dock { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
	.hlms-tools { right: 10px; }
	.hlms .hlms-tool { width: 42px; height: 42px; }
	.hlms-zoom { display: none !important; }
	.hlms .hlms-nb { width: 46px; height: 46px; }
	.hlms-price { font-size: 19px; }
	.hlms-chips span { height: 38px; font-size: 12px; }
}
@media (hover: none) { .hlms-zoom { display: none !important; } }
@media (max-width: 720px) { .hlms { --hlms-h: min(100svh, 820px); } }
@media (prefers-reduced-motion: reduce) { .hlms * { transition: none !important; } }
