/* Scoped directory styles. Colours are resolved from each site's settings/theme. */
.cml-places { --cml-primary:#176550; --cml-primary-text:#fff; --cml-accent:#ffcc00; --cml-accent-text:#111827; --cml-hero:#0a3025; --cml-hero-accent:#ffe376; box-sizing:border-box; container:cml-directory / inline-size; color:#263b34; font-family:inherit; font-size:15px; line-height:1.5; width:100%; max-width:1440px; margin:24px auto; padding:24px; background:#f5f7fb; border-radius:22px; }
.cml-places *, .cml-places *::before, .cml-places *::after { box-sizing:border-box; }
.cml-places [hidden] { display:none !important; }
.cml-places h2, .cml-places h3, .cml-places p { margin:0; }
.cml-places button, .cml-places input, .cml-places select { font:inherit; letter-spacing:normal; text-transform:none; }
.cml-places button { cursor:pointer; margin:0; box-shadow:none; line-height:1.4; }
.cml-places button:hover { filter:brightness(.96); }
.cml-places :is(button,input,select,a):focus-visible { outline:3px solid var(--cml-accent); outline-offset:3px; }
.cml-places .cml-visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
/* Protect component colour states from broad theme button/field rules. */
.cml-places-hero { background:var(--cml-hero) !important; color:#fff !important; border-radius:22px; padding:28px; box-shadow:0 6px 18px #142c2312; }
.cml-places-hero__badge { display:inline-flex; padding:9px 16px; border-radius:9px; background:var(--cml-accent) !important; color:var(--cml-accent-text) !important; font-size:13px; font-weight:750; }
.cml-places-hero__intro { display:flex; justify-content:space-between; align-items:center; gap:28px; margin:24px 0; padding-bottom:24px; border-bottom:1px solid #ffffff26; }
.cml-places-hero h2 { color:#fff !important; font-family:inherit; font-size:clamp(28px,3.6vw,44px); font-weight:750; line-height:1.1; letter-spacing:-.025em; margin-bottom:14px; }
.cml-places-hero h2 span { color:var(--cml-hero-accent) !important; }
.cml-places-hero p { color:#e1ebe7 !important; font-size:14px; max-width:680px; }
.cml-places-hero__total { flex:0 0 150px; border:1px solid #ffffff36 !important; border-radius:14px; text-align:center; padding:20px 14px; background:#00000012 !important; }
.cml-places-hero__total strong { display:block; color:var(--cml-hero-accent) !important; font-size:38px; font-weight:800; line-height:1.2; }
.cml-places-hero__total span { font-size:11px; text-transform:uppercase; font-weight:700; }
.cml-places-search { display:flex; align-items:center; gap:12px; background:#fff !important; border:2px solid var(--cml-accent) !important; border-radius:14px; padding:7px 8px 7px 18px; margin:0; }
.cml-places-search svg { flex:0 0 20px; width:20px; height:20px; fill:none; stroke:#23352d; stroke-width:1.6; }
.cml-places .cml-places-search__input { flex:1 1 auto; width:100%; max-width:none; min-width:0; min-height:42px; padding:8px 0; border:0 !important; border-radius:0; background:#fff !important; color:#263b34 !important; box-shadow:none; }
.cml-places-search button { flex-shrink:0; border:0 !important; border-radius:10px; padding:14px 20px; font-size:13px; font-weight:750; background:var(--cml-accent) !important; color:var(--cml-accent-text) !important; }
.cml-places-layout { display:grid; grid-template-columns:minmax(240px,30%) minmax(0,1fr); gap:20px; margin-top:24px; align-items:start; }
.cml-places-filters { border:1px solid #e4e9e6 !important; border-radius:14px; background:#fff !important; padding:18px 16px; }
.cml-places-filters h3 { font-size:13px; text-transform:uppercase; font-weight:750; padding-bottom:10px; border-bottom:1px solid #e4e9e6; }
.cml-places-groups { margin:5px 0 20px; }
.cml-places-groups button { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 8px; width:100%; color:#243d32 !important; background:transparent !important; border:1px solid transparent !important; border-radius:4px; text-align:left; font-size:13px; }
.cml-places-groups button.is-active { border-color:var(--cml-primary) !important; background:#f0f5f2 !important; font-weight:750; }
.cml-places-groups button span:last-child { font-size:12px; }
.cml-places-filters label { display:block; font-size:12px; font-weight:700; margin-bottom:6px; }
.cml-places-filters select { width:100%; max-width:none; min-width:0; padding:9px; min-height:42px; color:#263b34 !important; background:#fff !important; border:1px solid #d7e0db !important; border-radius:7px; font-size:13px; }
.cml-places-category { margin-top:18px; }
.cml-places .cml-clear-filters { margin-top:20px; padding:8px 12px; border:1px solid #d7e0db !important; border-radius:7px; background:#fff !important; color:#263b34 !important; font-size:12px; font-weight:700; }
.cml-places-main { min-width:0; }
.cml-places-topbar { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:18px; background:#fff !important; border:1px solid #e4e9e6 !important; border-radius:16px; }
.cml-places .cml-places-count { font-size:23px; line-height:1.2; color:#172b26 !important; font-weight:700; }
.cml-places-count::before { content:''; display:inline-block; width:10px; height:10px; background:var(--cml-primary) !important; border-radius:50%; margin-right:10px; }
.cml-places-controls { display:flex; flex-direction:column; align-items:flex-end; gap:9px; }
.cml-places-sort, .cml-places-views { display:flex; align-items:center; gap:6px; margin:0; }
.cml-places-sort label, .cml-places-views > span { font-size:11px; padding-right:3px; color:#52625e !important; }
.cml-places-sort select { color:#263b34 !important; background:#fff !important; border:1px solid #e4e9e6 !important; border-radius:6px; min-height:34px; padding:5px 8px; width:auto; font-size:12px; }
.cml-places-sort button { border:0 !important; border-radius:6px; padding:8px 12px; background:#172b26 !important; color:#fff !important; font-size:12px; font-weight:700; }
.cml-places-views button { border:1px solid #e4e9e6 !important; border-radius:7px; padding:9px 14px; background:#fff !important; color:#263b34 !important; font-size:13px; }
.cml-places-views button[aria-pressed=true] { background:var(--cml-primary) !important; border-color:var(--cml-primary) !important; color:var(--cml-primary-text) !important; }
.cml-places-alphabet { display:flex; justify-content:space-between; flex-wrap:wrap; gap:3px; padding:9px; margin:16px 0; background:#fff !important; border:1px solid #e4e9e6 !important; border-radius:9px; }
.cml-places-alphabet button { flex:1 0 24px; border:0 !important; border-radius:4px; padding:5px 2px; background:#fff !important; color:#364e44 !important; font-size:11px; }
.cml-places-alphabet button[aria-pressed=true] { background:var(--cml-primary) !important; color:var(--cml-primary-text) !important; }
.cml-places-map-card { background:#fff !important; border:1px solid #e4e9e6 !important; border-radius:16px; padding:16px; margin-bottom:16px; }
.cml-places-map-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; font-size:12px; }
.cml-places-map-tools button { background:var(--cml-primary) !important; color:var(--cml-primary-text) !important; border:0 !important; border-radius:7px; padding:9px 13px; font-size:12px; font-weight:700; }
.cml-places-map-wrap { position:relative; border-radius:10px; overflow:hidden; height:var(--cml-places-height,640px); background:#e7eeeb !important; }
.cml-places-map { position:relative; z-index:1; height:100%; width:100%; background:#e7eeeb !important; }
.cml-places-map > p { padding:24px; color:#435e52 !important; }
.cml-places .cml-map-fullscreen { position:absolute; top:10px; right:10px; z-index:600; padding:10px 12px; border:1px solid #d7e0db !important; border-radius:7px; background:#fff !important; color:#263b34 !important; font-size:12px; font-weight:700; }
.cml-places-map-wrap:fullscreen { width:100vw; height:100vh; border-radius:0; }
.cml-places-map-notice { position:absolute; bottom:30px; left:10px; right:10px; z-index:600; padding:10px; font-size:12px; background:#fffffff0 !important; color:#573b29 !important; border-radius:6px; }
.cml-places-results { display:grid; grid-template-columns:1fr; align-items:start; gap:24px; }
.cml-place-card { container:cml-place-card / inline-size; background:#fff !important; border:1px solid #e4e9e6 !important; border-radius:12px; overflow:hidden; min-width:0; }
.cml-place-card.is-selected { border-color:var(--cml-primary) !important; box-shadow:inset 4px 0 0 var(--cml-primary); }
.cml-places .cml-place-card__select { display:flex; gap:16px; width:100%; align-items:center; text-align:left; border:0 !important; border-radius:0; background:transparent !important; color:inherit !important; padding:16px; }
.cml-place-card__photo { display:block; width:120px; height:90px; flex:0 0 120px; border-radius:7px; object-fit:contain; background:#f3f6f5 !important; }
.cml-place-card__heading { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.cml-place-card__marker { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border:1px solid #cbdad1 !important; border-radius:50%; color:var(--cml-primary) !important; background:#fff !important; }
.cml-place-card__marker svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cml-place-card__marker img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.cml-place-card__summary { display:flex; flex-direction:column; gap:3px; min-width:0; overflow-wrap:anywhere; }
.cml-place-card__summary strong { font-size:16px; color:#172b26 !important; line-height:1.3; }
.cml-place-card__meta, .cml-place-card__address { color:#52625e !important; font-size:12px; }
.cml-place-card__details { padding:0 18px 18px; font-size:13px; overflow-wrap:anywhere; }
.cml-place-card__details p { margin:0 0 10px; }
.cml-place-card__links { display:flex; flex-wrap:wrap; gap:12px; }
.cml-place-card__links a { color:#172b26 !important; font-weight:700; text-decoration:underline; }
.cml-places-empty { padding:24px; text-align:center; background:#fff !important; border:1px solid #e4e9e6 !important; border-radius:12px; }
.cml-places[data-view=grid] .cml-places-results { grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); }
/* Enhancement keeps Grid's columns and reading order, packing variable card heights. */
.cml-places[data-view=grid] .cml-places-results.is-masonry { grid-auto-rows:1px; row-gap:0; margin-bottom:-24px; }
.cml-places .cml-place-card { border-color:#e5edf5 !important; border-radius:16px; box-shadow:0 10px 24px #1635500b; }
.cml-places:not([data-view=grid]) .cml-place-card__select { align-items:flex-start; padding:20px; }
.cml-places:not([data-view=grid]) .cml-place-card__heading { flex:1; }
.cml-places:not([data-view=grid]) .cml-place-card__marker { display:none; }
.cml-places:not([data-view=grid]) .cml-place-card__summary { width:100%; gap:8px; }
.cml-places:not([data-view=grid]) .cml-place-card__summary strong { font-size:22px; font-weight:800; line-height:1.2; letter-spacing:-.02em; color:var(--cml-hero) !important; }
.cml-places[data-view=grid] .cml-place-card__select { flex-direction:column; align-items:stretch; gap:0; padding:0; }
.cml-places[data-view=grid] .cml-place-card__heading { padding:28px 26px 0; }
.cml-places:not(.is-enhanced)[data-view=grid] .cml-place-card__heading { padding-bottom:24px; }
.cml-places[data-view=grid] .cml-place-card__marker { display:none; }
.cml-places[data-view=grid] .cml-place-card__summary { width:100%; gap:10px; }
.cml-places[data-view=grid] .cml-place-card__summary strong { font-size:26px; font-weight:800; line-height:1.15; letter-spacing:-.025em; color:var(--cml-hero) !important; }
.cml-places .cml-place-card__meta { order:-1; align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid #eaf0f6; border-radius:5px; background:#f1f5f9; color:var(--cml-primary) !important; text-transform:uppercase; font-size:10px; line-height:1.4; letter-spacing:.055em; }
.cml-places .cml-place-card__meta::before { content:''; width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:var(--cml-primary); }
.cml-places .cml-place-card__address { display:flex; align-items:center; gap:10px; margin-top:8px; padding-top:6px; border-top:1px solid #f1f5f9; color:var(--cml-hero) !important; line-height:1.45; }
.cml-places .cml-place-card__address-icon, .cml-places .cml-place-card__contact-icon { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border:1px solid #edf2f7; border-radius:8px; background:#f8fafc; color:var(--cml-primary); }
.cml-place-card__address-icon svg, .cml-place-card__contact-icon svg { display:block; width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cml-place-card__contact-label { min-width:0; overflow-wrap:anywhere; }
.cml-place-card__phone .cml-place-card__contact-label, .cml-place-card__directions .cml-place-card__contact-label { white-space:nowrap; overflow-wrap:normal; }
.cml-places .cml-place-card__approximate { margin-top:0; padding-top:0; border:0; }
.cml-places .cml-place-card__phone { display:block; width:fit-content; margin:0 16px 16px; color:var(--cml-primary) !important; font-size:14px; font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.cml-places .cml-place-card__phone:hover { text-decoration:underline; }
.cml-places .cml-place-card__contacts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:8px; margin:0 20px 20px; }
.cml-places .cml-place-card__contacts .cml-place-card__phone { margin:0; }
.cml-places .cml-place-card__email { flex-basis:100%; min-width:0; max-width:100%; color:var(--cml-primary) !important; font-size:13px; font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.cml-places .cml-place-card__email:hover { text-decoration:underline; }
.cml-places .cml-place-card__subtitle { font-size:14px; font-weight:400; line-height:1.5; overflow-wrap:anywhere; }
.cml-places[data-view=grid] .cml-place-card__contacts { margin:18px 26px 0; }
.cml-places .cml-place-card__contacts a { display:flex; align-items:center; gap:6px; width:auto; min-width:0; min-height:44px; margin:0; padding:8px; border:1px solid #e2ebf5; border-radius:10px; background:#f8fafc; color:var(--cml-primary) !important; font-size:13px; line-height:1.4; text-decoration:none; }
.cml-places .cml-place-card__contacts a:hover { border-color:var(--cml-primary); background:#f1f5f9; }
.cml-places .cml-place-card__contacts :is(.cml-place-card__extra-phone,.cml-place-card__email) { grid-column:1/-1; }
.cml-places .cml-place-card__contacts .cml-place-card__directions:first-child { grid-column:1/-1; }
.cml-places .cml-place-card__contacts .cml-place-card__directions { font-weight:500; }
.cml-places .cml-place-card__contact-icon { width:28px; height:28px; flex:0 0 28px; border-radius:7px; background:#fff; }
.cml-place-card__contact-icon svg { width:16px; height:16px; }
.cml-places .cml-place-card__directions { color:var(--cml-primary) !important; font-size:13px; font-weight:700; text-decoration:none; }
.cml-places .cml-place-card__directions:hover { text-decoration:underline; }
.cml-places .cml-place-card__more { display:none; border:0 !important; padding:0; background:transparent !important; color:var(--cml-primary) !important; text-align:left; }
.cml-places.is-enhanced[data-view=grid] .cml-place-card__more { display:block; width:calc(100% - 52px); margin:20px 26px 26px; padding-top:16px; border-top:1px solid #f1f5f9 !important; color:var(--cml-primary) !important; font-size:13px; font-weight:500; }
.cml-places[data-view=grid] .cml-place-card__details { padding:0 26px 26px; }
.cml-places[data-view=grid] .cml-place-card__photo { width:100%; max-width:none; height:auto; max-height:360px; flex-basis:auto; border-radius:0; object-fit:contain; background:#fff !important; }
.cml-places[data-view=grid] .cml-places-map-card, .cml-places[data-view=list] .cml-places-map-card { display:none; }
/* Map view gives the results and map their own panes, sharing the filters above. */
.cml-places[data-view=map] .cml-places-layout { grid-template-columns:1fr; }
.cml-places[data-view=map] .cml-places-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; }
.cml-places[data-view=map] .cml-places-filters h3, .cml-places[data-view=map] .cml-places-groups { grid-column:1/-1; }
.cml-places[data-view=map] .cml-places-groups { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.cml-places[data-view=map] .cml-places-groups button { width:auto; max-width:100%; gap:12px; }
.cml-places[data-view=map] .cml-places-category { margin:0; }
.cml-places[data-view=map] .cml-clear-filters { grid-column:1/-1; margin:0; justify-self:start; }
.cml-places[data-view=map] .cml-places-browse { display:grid; grid-template-columns:minmax(280px,35%) minmax(0,1fr); gap:16px; height:var(--cml-places-height,640px); }
.cml-places[data-view=map] .cml-places-panel { min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:12px; border:1px solid #e5edf5; border-radius:16px; background:#fff; }
.cml-places[data-view=map] .cml-places-results { gap:12px; }
.cml-places[data-view=map] .cml-places-map-card { display:flex; flex-direction:column; min-width:0; min-height:0; margin:0; padding:12px; }
.cml-places[data-view=map] .cml-places-map-wrap { flex:1; min-height:0; height:auto; }
.cml-places[data-view=map] .cml-place-card__photo { width:80px; height:80px; flex-basis:80px; }
.cml-places[data-view=map] .cml-place-card__select { padding:16px; gap:12px; }
.cml-places[data-view=map] .cml-place-card__summary strong { font-size:20px; }
.cml-places[data-view=map] .cml-place-card__contacts { margin:0 16px 16px; }
@container cml-place-card (max-width:340px) {
.cml-places[data-view] .cml-place-card__contacts { margin-left:12px; margin-right:12px; gap:6px; }
.cml-places .cml-place-card__contacts a { gap:4px; padding:6px 4px; font-size:12px; }
.cml-places .cml-place-card__contact-icon { width:24px; height:24px; flex-basis:24px; }
.cml-place-card__contact-icon svg { width:14px; height:14px; }
}
@container cml-place-card (max-width:280px) {
.cml-places[data-view] .cml-place-card__contacts { margin-left:6px; margin-right:6px; }
}
@container cml-directory (max-width:900px) {
.cml-places[data-view=map] .cml-places-browse { grid-template-columns:1fr; height:auto; }
.cml-places[data-view=map] .cml-places-map-card { grid-row:1; }
.cml-places[data-view=map] .cml-places-map-wrap { flex:auto; height:360px; }
.cml-places[data-view=map] .cml-places-panel { max-height:480px; }
}
@media (max-width:900px) {
.cml-places[data-view=map] .cml-places-browse { grid-template-columns:1fr; height:auto; }
.cml-places[data-view=map] .cml-places-map-card { grid-row:1; }
.cml-places[data-view=map] .cml-places-map-wrap { flex:auto; height:360px; }
.cml-places[data-view=map] .cml-places-panel { max-height:480px; }
}
.cml-places-fullscreen-filters { display:none; }
.cml-places[data-view=map] .cml-places-browse:fullscreen { width:100vw; height:100vh; display:grid; grid-template-columns:minmax(280px,32%) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); gap:12px; padding:12px; background:#f5f7fb; }
.cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-fullscreen-filters { display:grid; grid-column:1/-1; grid-row:1; grid-template-columns:repeat(2,minmax(0,240px)); gap:12px; padding:12px; border:1px solid #e5edf5; border-radius:12px; background:#fff; }
.cml-places-fullscreen-filters label { display:block; margin-bottom:5px; font-size:12px; font-weight:700; color:var(--cml-hero); }
.cml-places-fullscreen-filters select { width:100%; max-width:none; min-width:0; min-height:40px; padding:8px; border:1px solid #d7e0db !important; border-radius:7px; background:#fff !important; color:#263b34 !important; font-size:14px; }
.cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-panel { height:100%; max-height:none; }
.cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-map-card, .cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-panel { grid-row:2; }
.cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-map-wrap { flex:1; height:auto; }
@media (max-width:700px) {
.cml-places[data-view=map] .cml-places-browse:fullscreen { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1.1fr) minmax(0,1fr); gap:8px; padding:8px; }
.cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-map-card { grid-row:2; }
.cml-places[data-view=map] .cml-places-browse:fullscreen .cml-places-panel { grid-row:3; }
}
.cml-places:not(.is-enhanced) :is(.cml-places-filters,.cml-places-controls,.cml-places-alphabet,.cml-places-search,.cml-places-map-tools,.cml-map-fullscreen) { display:none; }
.cml-places:not(.is-enhanced) .cml-places-layout { grid-template-columns:1fr; }
.cml-place-marker-icon {
	border: 0;
	background: transparent;
}

.cml-place-map-pin {
	position: relative;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 8px;
	background: var(--cml-primary);
	box-shadow: 0 3px 10px rgba(20, 61, 52, 0.35);
	color: var(--cml-primary-text);
	transform: rotate(-45deg);
	transition: background-color 160ms ease, transform 160ms ease;
}

.cml-place-map-pin svg,
.cml-place-map-pin img {
	width: 24px;
	height: 24px;
	transform: rotate(45deg);
}

.cml-place-map-pin svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.cml-place-map-pin img {
	border-radius: 50%;
	object-fit: cover;
}

.cml-place-map-pin.is-custom {
	overflow: hidden;
	background: #fff;
}

.cml-place-map-pin.is-custom img {
	width: 36px;
	height: 36px;
}

.cml-place-marker-icon.is-selected .cml-place-map-pin {
	background: var(--cml-accent);
	color: var(--cml-accent-text);
	transform: rotate(-45deg) scale(1.13);
}

.cml-place-popup {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-family: inherit;
}

.cml-place-popup__name {
	color: #172b26;
	font-size: 0.98rem;
}

.cml-place-popup__photo {
	display: block;
	width: 100%;
	height: 120px;
	border-radius: 6px;
	background: #f3f6f5;
	object-fit: contain;
}

.cml-place-popup__subtitle,
.cml-place-popup__meta,
.cml-place-popup__address {
	color: #52625e;
	font-size: 0.82rem;
}
.cml-place-popup__subtitle, .cml-place-popup__email, .cml-place-popup__extra-phone { overflow-wrap:anywhere; }


@media (max-width:980px) { .cml-places-layout { grid-template-columns:190px minmax(0,1fr); gap:14px; } .cml-places-topbar { flex-direction:column; align-items:stretch; } .cml-places-controls { flex-direction:row; flex-wrap:wrap; justify-content:space-between; } }
@container cml-directory (max-width:980px) { .cml-places-layout { grid-template-columns:190px minmax(0,1fr); gap:14px; } .cml-places-topbar { flex-direction:column; align-items:stretch; } .cml-places-controls { flex-direction:row; flex-wrap:wrap; justify-content:space-between; } }
@media (max-width:700px) {
.cml-places { margin:16px auto; padding:12px; font-size:14px; }
.cml-places-hero { padding:20px; border-radius:16px; }
.cml-places-hero__intro { margin:18px 0; gap:16px; }
.cml-places-hero__total { flex-basis:95px; padding:14px 8px; }
.cml-places-hero__total strong { font-size:28px; }
.cml-places-hero__total span { font-size:9px; }
.cml-places-layout { grid-template-columns:1fr; gap:14px; margin-top:16px; }
.cml-places-groups { display:block; margin-bottom:14px; }
.cml-places-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:14px; }
.cml-places-filters h3, .cml-places-groups { grid-column:1/-1; }
.cml-places-category { margin:0; } .cml-places .cml-clear-filters { margin:0; justify-self:start; }
.cml-places-map-wrap { height:360px; }
.cml-places-map-card { padding:10px; }
.cml-places-controls { flex-direction:column; align-items:stretch; }
.cml-places-sort, .cml-places-views { justify-content:flex-end; }
.cml-places .cml-places-count { font-size:20px; }
.cml-places-search { flex-wrap:wrap; gap:8px; padding:8px 10px; }
.cml-places .cml-places-search__input { flex:1 1 0%; width:0; } .cml-places-search button { width:100%; padding:10px; }
.cml-places-hero__intro { flex-direction:column; align-items:flex-start; }
.cml-places-hero__total { display:flex; align-items:center; gap:12px; flex-basis:auto; width:auto; padding:8px 14px; }
.cml-place-card__photo { width:85px; height:75px; flex-basis:85px; }
.cml-places .cml-place-card__select { gap:10px; padding:12px; }
.cml-place-card__marker { width:30px; height:30px; flex-basis:30px; }
.cml-place-card__marker img { width:26px; height:26px; }
.cml-place-card__summary strong { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) { .cml-place-map-pin { transition:none; } }

@container cml-directory (max-width:700px) {
.cml-places { margin:16px auto; padding:12px; font-size:14px; }
.cml-places-hero { padding:20px; border-radius:16px; }
.cml-places-hero__intro { margin:18px 0; gap:16px; }
.cml-places-hero__total { flex-basis:95px; padding:14px 8px; }
.cml-places-hero__total strong { font-size:28px; }
.cml-places-hero__total span { font-size:9px; }
.cml-places-layout { grid-template-columns:1fr; gap:14px; margin-top:16px; }
.cml-places-groups { display:block; margin-bottom:14px; }
.cml-places-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:14px; }
.cml-places-filters h3, .cml-places-groups { grid-column:1/-1; }
.cml-places-category { margin:0; } .cml-places .cml-clear-filters { margin:0; justify-self:start; }
.cml-places-map-wrap { height:360px; }
.cml-places-map-card { padding:10px; }
.cml-places-controls { flex-direction:column; align-items:stretch; }
.cml-places-sort, .cml-places-views { justify-content:flex-end; }
.cml-places .cml-places-count { font-size:20px; }
.cml-places-search { flex-wrap:wrap; gap:8px; padding:8px 10px; }
.cml-places .cml-places-search__input { flex:1 1 0%; width:0; } .cml-places-search button { width:100%; padding:10px; }
.cml-places-hero__intro { flex-direction:column; align-items:flex-start; }
.cml-places-hero__total { display:flex; align-items:center; gap:12px; flex-basis:auto; width:auto; padding:8px 14px; }
.cml-place-card__photo { width:85px; height:75px; flex-basis:85px; }
.cml-places .cml-place-card__select { gap:10px; padding:12px; }
.cml-place-card__marker { width:30px; height:30px; flex-basis:30px; }
.cml-place-card__marker img { width:26px; height:26px; }
.cml-place-card__summary strong { font-size:14px; }
}

/* Pagination follows the full filtered directory; map markers remain complete. */
.cml-places-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; padding:16px; background:#fff; border:1px solid #e4e9e6; border-radius:12px; font-size:13px; }
.cml-places-page-controls, .cml-places-page-numbers { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.cml-places .cml-places-pagination button { padding:8px 11px; border:1px solid #d7e0db !important; border-radius:6px; background:#fff !important; color:#263b34 !important; font-size:13px; }
.cml-places .cml-places-pagination button[aria-current=page] { background:var(--cml-primary) !important; color:var(--cml-primary-text) !important; border-color:var(--cml-primary) !important; }
.cml-places .cml-places-pagination button:disabled { opacity:.5; cursor:default; }
.cml-places-groups button:disabled { cursor:default; }
.cml-places-groups button span:first-child { overflow-wrap:anywhere; }

/* Shared compact controls for Grid, List and Map. */
.cml-places[data-view] .cml-places-layout { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:16px; }
.cml-places[data-view] .cml-places-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:10px 12px; padding:14px; border-color:#e5edf5 !important; border-radius:16px; box-shadow:0 1px 3px #16355008; }
.cml-places[data-view] .cml-places-filters h3 { grid-column:1; grid-row:1; align-self:center; width:max-content; padding:0; border:0; color:var(--cml-primary); font-size:11px; font-weight:700; letter-spacing:.1em; }
.cml-places[data-view] .cml-places-filters::before { content:''; grid-column:1/-1; grid-row:2; height:1px; background:#edf2f7; }
.cml-places[data-view] .cml-places-groups { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; grid-column:1/-1; grid-row:1; gap:4px; margin:0 0 0 130px; }
.cml-places[data-view] .cml-places-groups button { display:inline-flex; align-items:center; justify-content:center; width:auto; max-width:100%; min-height:32px; gap:6px; padding:5px 9px; border-radius:9px; font-size:11px; line-height:1.4; color:var(--cml-primary) !important; }
.cml-places[data-view] .cml-places-groups button span:last-child { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:50px; background:#f1f5f9; color:var(--cml-primary); font-size:10px; }
.cml-places[data-view] .cml-places-groups button.is-active { background:var(--cml-primary) !important; color:var(--cml-primary-text) !important; border-color:var(--cml-primary) !important; }
.cml-places[data-view] .cml-places-groups button.is-active span:last-child { background:#0002; color:inherit; }
.cml-places[data-view] .cml-places-type { grid-column:1; grid-row:3; min-width:0; }
.cml-places[data-view] .cml-places-category { grid-column:2; grid-row:3; min-width:0; margin:0; }
.cml-places[data-view] .cml-places-filters label { margin-bottom:5px; color:var(--cml-hero); font-size:10px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; }
.cml-places[data-view] .cml-places-filters select { min-height:36px; height:36px; padding:5px 28px 5px 10px; border-color:#e2ebf5 !important; border-radius:8px; font-size:12px; }
.cml-places[data-view] .cml-clear-filters { grid-column:3; grid-row:3; align-self:end; justify-self:stretch; min-height:36px; margin:0; padding:6px 12px; border-color:#e2ebf5 !important; border-radius:8px; background:#f1f5f9 !important; color:var(--cml-primary) !important; font-size:11px; font-weight:500; white-space:nowrap; }
.cml-places[data-view] .cml-places-topbar { flex-direction:row; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 14px; border-color:#e5edf5 !important; border-radius:16px; box-shadow:0 1px 3px #16355008; }
.cml-places[data-view] .cml-places-count { font-size:15px; font-weight:750; color:var(--cml-hero) !important; }
.cml-places[data-view] .cml-places-count::before { width:7px; height:7px; margin-right:7px; }
.cml-places[data-view] .cml-places-controls { flex-direction:row; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:14px; margin-left:auto; }
.cml-places[data-view] .cml-places-sort { gap:8px; }
.cml-places[data-view] .cml-places-sort label, .cml-places[data-view] .cml-places-views > span { color:var(--cml-primary) !important; font-size:11px; }
.cml-places[data-view] .cml-places-sort select { min-height:34px; padding:5px 26px 5px 9px; border-color:#e2ebf5 !important; background:#f8fafc !important; border-radius:8px; font-size:12px; }
.cml-places[data-view] .cml-places-sort button { min-height:34px; padding:6px 12px; background:var(--cml-hero) !important; color:#fff !important; border-radius:8px; font-size:12px; }
.cml-places[data-view] .cml-places-views { gap:3px; padding-left:14px; border-left:1px solid #e5edf5; }
.cml-places[data-view] .cml-places-views button { display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:5px 9px; border-color:transparent !important; background:#f1f5f9 !important; color:var(--cml-primary) !important; border-radius:8px; font-size:12px; }
.cml-places[data-view] .cml-places-views button[aria-pressed=true] { background:var(--cml-primary) !important; color:var(--cml-primary-text) !important; }
.cml-places[data-view] .cml-places-alphabet { gap:2px; margin:12px 0; padding:5px 8px; border-color:#e5edf5 !important; border-radius:14px; }
.cml-places[data-view] .cml-places-alphabet button { min-height:30px; padding:4px 2px; border-radius:8px; font-size:11px; }
.cml-places-filters h3 svg, .cml-places-views button svg, .cml-clear-filters svg { width:14px; height:14px; flex:0 0 14px; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.cml-places-filters h3 svg { margin-right:6px; }
.cml-clear-filters svg { margin-right:4px; }
@container cml-directory (max-width:700px) {
.cml-places[data-view] .cml-places-filters h3 { grid-column:1/-1; grid-row:1; }
.cml-places[data-view] .cml-places-groups { grid-row:2; justify-content:flex-start; margin:0; }
.cml-places[data-view] .cml-places-filters::before { grid-row:3; }
.cml-places[data-view] .cml-places-type, .cml-places[data-view] .cml-places-category, .cml-places[data-view] .cml-clear-filters { grid-row:4; }
.cml-places[data-view] .cml-places-controls { gap:8px; }
}
@container cml-directory (max-width:480px) {
.cml-places[data-view] .cml-places-filters { grid-template-columns:minmax(0,1fr); gap:10px; padding:12px; }
.cml-places[data-view] .cml-places-type { grid-row:4; grid-column:1; }
.cml-places[data-view] .cml-places-category { grid-row:5; grid-column:1; }
.cml-places[data-view] .cml-clear-filters { grid-row:6; grid-column:1; justify-self:start; }
.cml-places[data-view] .cml-places-filters select, .cml-places[data-view] .cml-clear-filters { min-height:44px; height:auto; }
.cml-places[data-view] .cml-places-groups button { min-height:40px; }
.cml-places[data-view] .cml-places-controls { width:100%; margin-left:0; justify-content:flex-start; }
.cml-places[data-view] .cml-places-sort { flex-wrap:wrap; justify-content:flex-start; }
.cml-places[data-view] .cml-places-views { border-left:0; padding-left:0; justify-content:flex-start; }
.cml-places[data-view] .cml-places-views button { min-height:40px; }
}

.cml-places:not(.is-enhanced)[data-view] :is(.cml-places-filters,.cml-places-controls,.cml-places-alphabet) { display:none; }

/* Grid/List use a vertical filter sidebar; Map keeps the compact top panel. */
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-layout { grid-template-columns:240px minmax(0,1fr); gap:18px; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-filters { display:flex; flex-direction:column; gap:14px; min-width:0; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-filters::before { display:none; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-filters h3 { align-self:stretch; width:auto; padding-bottom:10px; border-bottom:1px solid #edf2f7; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-groups { flex-direction:column; align-items:stretch; gap:4px; margin:0; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-groups button { justify-content:space-between; width:100%; min-height:36px; text-align:left; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-clear-filters { align-self:stretch; }
@container cml-directory (max-width:760px) {
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
.cml-places:is([data-view=grid],[data-view=list]) .cml-places-groups button { min-height:44px; }
}
.cml-places:not(.is-enhanced):is([data-view=grid],[data-view=list]) .cml-places-filters { display:none; }
.cml-places:not(.is-enhanced):is([data-view=grid],[data-view=list]) .cml-places-layout { grid-template-columns:minmax(0,1fr); }
