.city-page:has(.cm-page)>.container{width:min(1480px,calc(100% - 48px));max-width:1480px}.cm-page{padding:28px 0 40px;color:#26312d}.cm-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.cm-heading h1{font-size:clamp(25px,3vw,36px);line-height:1.2;margin:7px 0 0;letter-spacing:-.025em}.cm-heading>a{font-size:13px;white-space:nowrap;color:var(--brand,#c9202c)}.cm-test-label{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#6a756e}.cm-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr auto 42px;gap:12px;align-items:end;padding:18px;background:#fff;border:1px solid #dde3df;border-radius:18px}.cm-filters label{display:block;min-width:0}.cm-filters label>span{display:block;font-size:11px;font-weight:600;color:#647069;margin:0 0 7px}.cm-filters input,.cm-filters select{box-sizing:border-box;display:block;width:100%;min-width:0;margin:0;border:1px solid #dce1e6;border-radius:10px;background:#f5f5f5;padding:11px 12px;font:inherit;font-size:13px;color:#27322e;height:43px}.cm-filters .button{height:43px;margin:0;font-size:13px;white-space:nowrap}.cm-reset{height:43px;display:grid;place-items:center;border:1px solid #dce1e6;border-radius:10px;font-size:23px;color:var(--brand,#c9202c)}.cm-summary{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:22px 0 15px;font-size:13px}.cm-summary>span{color:#68756d}.cm-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:24px;align-items:start}.cm-list{grid-column:1;grid-row:1;min-width:0}.cm-map-panel{grid-column:2;grid-row:1;position:sticky;top:18px;min-width:0;border:1px solid #d8e0da;border-radius:18px;background:#fff;overflow:hidden;isolation:isolate}.cm-layout>:not(.cm-list):not(.cm-map-panel){grid-column:1/-1}#cm-map{height:calc(100vh - 145px);height:calc(100svh - 145px);min-height:400px;max-height:800px;background:#e8eee7;z-index:0}.cm-map-note{font-size:11px;line-height:1.6;color:#68756d;margin:0;padding:12px 16px}.cm-item{margin-bottom:16px;border:1px solid transparent;border-radius:14px;transition:border-color .15s}.cm-item.is-selected{border-color:var(--brand,#c9202c)}.cm-page .restaurant-card{margin-bottom:0}.cm-page .restaurant-card-link{grid-template-columns:145px minmax(0,1fr);min-height:160px}.cm-page .card-photo{width:145px;min-height:160px}.cm-page .card-title{font-size:20px;margin:0 18px 10px}.cm-page .card-content{padding:0 18px;gap:9px}.cm-pin{border:0;background:none}.cm-pin>span{display:grid;place-items:center;width:34px;height:34px;box-sizing:border-box;border-radius:50% 50% 50% 3px;background:#c9202c;color:#fff;border:2px solid #fff;box-shadow:0 2px 8px #0004;font:bold 13px Arial;transform:rotate(-45deg)}.cm-pin>span>b{transform:rotate(45deg)}.cm-pin.is-highlighted>span{background:#30493b;box-shadow:0 0 0 4px #30493b44}.cm-popup a{display:block;margin:9px 0;color:#b51c28!important;font-weight:600}.cm-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin-top:20px;font-size:13px}.cm-pagination .button{font-size:12px}.cm-empty{padding:30px;background:#fff;border-radius:15px}.cm-page :focus-visible{outline:2px solid var(--brand,#c9202c);outline-offset:3px}
@media(max-width:1050px){.cm-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.cm-filters .button{grid-column:1/4}.cm-layout{gap:16px}.cm-page .restaurant-card-link{grid-template-columns:110px minmax(0,1fr)}.cm-page .card-photo{width:110px}.cm-page .card-title{font-size:17px;margin-inline:12px}.cm-page .card-content{padding-inline:12px}}
@media(max-width:760px){.city-page:has(.cm-page)>.container{width:calc(100% - 24px)}.cm-page{padding-top:20px}.cm-heading{align-items:flex-start;gap:12px}.cm-heading>a{font-size:11px}.cm-filters{grid-template-columns:1fr 1fr;padding:14px;gap:10px}.cm-filters .button{grid-column:auto}.cm-filters input,.cm-filters select{font-size:16px}.cm-layout{display:flex;flex-direction:column}.cm-map-panel{position:relative;top:auto;width:100%;order:-1}.cm-list{width:100%}#cm-map{height:400px;min-height:300px;max-height:70svh}.cm-page .restaurant-card-link{grid-template-columns:116px minmax(0,1fr);min-height:140px}.cm-page .card-photo{width:116px;height:130px;min-height:130px}.cm-page .card-title{margin:0;font-size:18px}.cm-page .card-content{padding:0;gap:7px}.cm-summary{font-size:12px}.cm-heading h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.cm-item{transition:none}}

.cm-map-note[hidden]{display:none}

/* Override earlier height limits, including the former mobile rules. */
.cm-page #cm-map{height:90vh;min-height:0;max-height:none}
@media(max-width:760px){.cm-page #cm-map{height:80vh}}

/* Give the main image room and retain the full photo or logo. */
.cm-page .restaurant-card-link{grid-template-columns:34% minmax(0,1fr)}
.cm-page .card-photo{width:100%;height:auto;background:#fff}
.cm-page .card-photo img{object-fit:contain;object-position:center;box-sizing:border-box;padding:8px;background:#fff}
@media(max-width:760px){.cm-page .card-photo{height:auto;min-height:130px}.cm-page .card-photo img{padding:5px}}

/* Keep the heading close to its details and give opening hours bottom space. */
.cm-page .restaurant-card-link{grid-template-areas:"photo title" "photo details";grid-template-rows:auto 1fr;row-gap:8px;align-content:start}
.cm-page .card-title{margin:16px 18px 0;align-self:start}
.cm-page .card-content{padding:0 18px 20px;gap:8px;align-self:start;justify-content:flex-start}
@media(max-width:760px){
.cm-page .restaurant-card-link{row-gap:6px}
.cm-page .card-title{margin:4px 0 0}
.cm-page .card-content{padding:0 0 12px;gap:7px}
}

/* Compact vertical rhythm; the content sets the card height. */
.cm-page .cm-item{margin-bottom:10px}
.cm-page .restaurant-card-link{min-height:0;row-gap:4px;grid-template-rows:auto auto}
.cm-page .card-photo{min-height:0}
.cm-page .card-title{margin:12px 18px 0;line-height:1.2}
.cm-page .card-content{padding:0 18px 12px;gap:5px}
.cm-page .card-content p{line-height:1.35;margin-block:0}
@media(max-width:760px){
.cm-page .restaurant-card-link{row-gap:4px}
.cm-page .card-title{margin:2px 0 0}
.cm-page .card-content{padding:0 0 8px;gap:4px}
}

/* Equal-height cards based on the tallest content, without clipping text. */
.cm-page .cm-items{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:10px}
.cm-page .cm-items>.cm-item{margin:0;min-width:0;box-sizing:border-box}
.cm-page .cm-items>.cm-item>.restaurant-card{height:100%;box-sizing:border-box}
.cm-page .cm-items .restaurant-card-link{height:100%;box-sizing:border-box;grid-template-rows:auto 1fr}

/* Desktop minimum; the image follows the shared card height. */
@media(min-width:761px){
.cm-page .cm-items .restaurant-card-link{min-height:186px}
.cm-page .cm-items .card-photo{position:relative;align-self:stretch;height:auto;min-height:0;width:100%}
.cm-page .cm-items .card-photo img{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;object-position:center;padding:8px;box-sizing:border-box}
}

/* Compact aligned filters; keep the mobile viewport free for results. */
.cm-page .cm-filters{gap:8px;padding:10px 12px;border-radius:14px;align-items:end;margin:0}
.cm-page .cm-filters label{margin:0;padding:0;min-width:0;align-self:end}
.cm-page .cm-filters label>span{font-size:10px;line-height:1.2;margin:0 0 4px}
.cm-page .cm-filters input:not([type=hidden]),.cm-page .cm-filters select{height:38px;min-height:0;padding:8px 10px;font-size:13px;line-height:1.2;border-radius:8px;margin:0}
.cm-page .cm-filters .button,.cm-page .cm-filters .cm-reset{box-sizing:border-box;height:38px;min-height:0;margin:0;align-self:end;display:flex;align-items:center;justify-content:center;border-radius:8px;line-height:1;padding:0 12px}
.cm-page .cm-filters .button{font-size:12px;grid-column:auto}
.cm-page .cm-filters .cm-reset{padding:0;font-size:22px}
.cm-page .cm-summary{margin:14px 0 10px}
@media(min-width:761px){
.cm-page .cm-filters{grid-template-columns:minmax(110px,1.3fr) repeat(3,minmax(0,1fr)) auto 36px;position:sticky;top:8px;z-index:20;background:#fff;box-shadow:0 4px 16px #26312d12}
.cm-page .cm-map-panel{top:96px}
}
@media(max-width:760px){
.cm-page .cm-filters{grid-template-columns:1fr 1fr;position:static;padding:10px;gap:8px}
.cm-page .cm-filters input:not([type=hidden]),.cm-page .cm-filters select{font-size:16px;height:40px}
.cm-page .cm-filters .button,.cm-page .cm-filters .cm-reset{height:40px}
}

/* Filters are opened on demand instead of sticking over the results. */
.cm-page .cm-filters{position:static;top:auto;z-index:auto;box-shadow:none}
.cm-page .cm-map-panel{top:18px}
.cm-page .cm-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.cm-page .cm-filter-actions>span{color:#68756d;font-size:12px}
.cm-filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;background:var(--brand,#c9202c);color:#fff;font:inherit;font-size:13px;font-weight:600;padding:10px 14px;min-height:40px;cursor:pointer}
.cm-filter-trigger[hidden],[data-cm-filter-inline][hidden]{display:none}
.cm-filter-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.cm-filter-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:20px;background:#fff;color:var(--brand,#c9202c);font-size:11px;box-sizing:border-box}
.cm-filter-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,100%);max-width:100%;height:100vh;height:100dvh;max-height:100%;padding:0;border:0;border-radius:18px 0 0 18px;background:#fff;color:#26312d;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;box-shadow:-8px 0 36px #0002}
.cm-filter-drawer::backdrop{background:#111a20a6}
.cm-filter-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e4e8e5}
.cm-filter-drawer-heading h2{font:inherit;font-weight:700;font-size:18px;margin:0}
.cm-filter-drawer-heading button{display:grid;place-items:center;flex:none;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:9px;background:#f1f4f0;color:#26312d;font-size:28px;line-height:1;cursor:pointer}
.cm-page .cm-filter-drawer .cm-filters{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:16px 10px;padding:20px;border:0;border-radius:0;background:#fff;position:static}
.cm-page .cm-filter-drawer .cm-filters label{grid-column:1/-1;align-self:auto}
.cm-page .cm-filter-drawer .cm-filters label>span{font-size:12px;margin-bottom:6px}
.cm-page .cm-filter-drawer .cm-filters input:not([type=hidden]),.cm-page .cm-filter-drawer .cm-filters select{height:44px;font-size:16px}
.cm-page .cm-filter-drawer .cm-filters .button,.cm-page .cm-filter-drawer .cm-filters .cm-reset{height:44px;margin-top:4px}
body.cm-filters-open{overflow:hidden}
.cm-page .cm-pagination{gap:7px;margin-top:18px}
.cm-page .cm-pagination .cm-page-badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:36px;min-height:36px;padding:6px 10px;border:1px solid #dce2dd;border-radius:10px;background:#fff;color:#30493b;font-size:13px;font-weight:600;line-height:1;text-decoration:none}
.cm-page .cm-pagination a.cm-page-badge:hover{border-color:var(--brand,#c9202c);color:var(--brand,#c9202c)}
.cm-page .cm-pagination .is-current{background:var(--brand,#c9202c);border-color:var(--brand,#c9202c);color:#fff}
.cm-page .cm-page-dots{padding:0 2px;color:#68756d}
@media(max-width:760px){.cm-page .cm-map-panel{top:auto}.cm-filter-drawer{border-radius:0}.cm-page .cm-filter-actions{gap:8px}.cm-page .cm-filter-actions>span{font-size:11px}.cm-page .cm-pagination{gap:5px}.cm-page .cm-pagination .cm-page-badge{min-width:36px;min-height:40px;padding:6px 9px}}

/* Restaurant details in the marker popup. */
.cm-popup{max-height:55vh;overflow-y:auto;overscroll-behavior:contain}
.cm-popup .cm-popup-item{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:4px 0}
.cm-popup .cm-popup-item+.cm-popup-item{border-top:1px solid #e3e7e4;margin-top:10px;padding-top:12px}
.cm-popup .cm-popup-item>a{margin:0;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.cm-popup .cm-popup-item>p{margin:0;font-size:12px;line-height:1.45;color:#536158;overflow-wrap:anywhere}
.cm-popup .cm-popup-item>.cm-popup-specialty{background:#fff0f1;color:#b51c28;padding:2px 6px;border-radius:5px;font-size:11px;font-weight:600}
.cm-popup .cm-popup-item>.cm-popup-hours{font-weight:600;color:#30493b}

/* One native link covers the full restaurant popup block. */
.cm-popup a.cm-popup-item{display:flex;align-items:stretch;margin:0;padding:8px 4px;text-decoration:none;color:inherit!important;cursor:pointer;border-radius:6px}
.cm-popup a.cm-popup-item:hover{background:#f5f7f4}
.cm-popup a.cm-popup-item:focus-visible{outline:2px solid #c9202c;outline-offset:-2px}
.cm-popup .cm-popup-name{display:block;color:#b51c28;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.cm-popup .cm-popup-item>span{display:block;font-size:12px;font-weight:400;line-height:1.45;color:#536158;overflow-wrap:anywhere}
.cm-popup .cm-popup-item>.cm-popup-hours{font-weight:600;color:#30493b}

/* Bound popup content even when Leaflet applies an inline width. */
.cm-page .cm-restaurant-popup .leaflet-popup-content{min-width:0;max-width:calc(100vw - 88px);white-space:normal;overflow-wrap:anywhere}
.cm-popup .cm-popup-name,.cm-popup .cm-popup-item>span{white-space:normal;overflow-wrap:anywhere;word-break:normal}
.cm-popup-external{display:inline-block;width:13px;height:13px;margin-inline-start:5px;vertical-align:-1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
.cm-page .cm-restaurant-popup .leaflet-popup-content{max-width:min(300px,calc(100vw - 88px));margin:12px 16px}
.cm-page .cm-items{grid-auto-rows:auto}
.cm-page .cm-items>.cm-item>.restaurant-card{height:auto;min-height:0}
.cm-page .cm-items .restaurant-card-link{height:auto;min-height:0;grid-template-rows:auto 1fr}
.cm-page .cm-items .card-photo{height:auto;min-height:0;align-self:start;aspect-ratio:1}
.cm-page .cm-items .card-photo img{position:static;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;box-sizing:border-box}
}

/* Restaurant names replace numeric markers. The tip stays at the actual coordinates. */
.cm-name-pin{width:0;height:0;border:0;background:none}
.cm-name-pin>span{position:absolute;left:0;bottom:7px;transform:translateX(-50%);display:block;width:max-content;max-width:170px;box-sizing:border-box;padding:6px 10px;border:2px solid #fff;border-radius:15px;background:#c9202c;color:#fff;box-shadow:0 2px 8px #0004;font:600 12px/1.25 Arial,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere}
.cm-name-pin>span::after{content:"";position:absolute;bottom:-6px;left:calc(50% - 5px);width:8px;height:8px;transform:rotate(45deg);background:inherit;border-right:2px solid #fff;border-bottom:2px solid #fff}
.cm-name-pin.is-highlighted>span{background:#30493b;box-shadow:0 0 0 3px #30493b44}
@media(max-width:760px){.cm-name-pin>span{max-width:145px;font-size:11px;padding:5px 8px}}

/* Exact content width requested for desktop (Leaflet otherwise adds its own width). */
@media(min-width:761px){.cm-page .cm-restaurant-popup .leaflet-popup-content{width:200px!important;min-width:0;max-width:200px}}

/* Pre-production: horizontal filters, then a floating icon after they leave the viewport. */
.cm-page [data-cm-filter-inline]>.cm-filters{display:grid;grid-template-columns:minmax(140px,1.3fr) repeat(3,minmax(100px,1fr)) auto 38px;position:static}
.cm-page .cm-filter-trigger{position:fixed;left:20px;bottom:24px;z-index:1100;width:48px;height:48px;min-height:48px;padding:0;border-radius:14px;box-shadow:0 4px 18px #0003}
.cm-page .cm-filter-trigger[hidden]{display:none}
.cm-page .cm-filter-trigger svg{width:22px;height:22px}
.cm-page .cm-filter-count{position:absolute;right:-5px;top:-5px;border:1px solid #c9202c}
.cm-page .cm-filter-drawer{inset:0 auto 0 0;border-radius:0 18px 18px 0;box-shadow:8px 0 36px #0002}
.cm-page .cm-filter-drawer[open]{animation:cm-drawer-enter .22s ease-out}
@keyframes cm-drawer-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(max-width:1050px) and (min-width:761px){.cm-page [data-cm-filter-inline]>.cm-filters{grid-template-columns:minmax(110px,1.2fr) repeat(3,minmax(80px,1fr)) auto 36px}}
@media(max-width:760px){
.cm-page [data-cm-filter-inline]>.cm-filters{grid-template-columns:1fr 1fr}
.cm-page .cm-filter-trigger{left:12px;bottom:max(18px,env(safe-area-inset-bottom))}
.cm-page .cm-filter-drawer{border-radius:0}
}
@media(prefers-reduced-motion:reduce){.cm-page .cm-filter-drawer[open]{animation:none}}

/* A city archive already defines its city: three visible filter fields. */
@media(min-width:761px){.cm-page.cm-city-archive [data-cm-filter-inline]>.cm-filters{grid-template-columns:minmax(140px,1.3fr) repeat(2,minmax(100px,1fr)) auto 38px}}
