/* Подборки: the hub /minsk/ (V-m-collections), a landing and a season (V-p-collection). On a computer the same parts
   at the guidebook's sizes: CollectionTile 4 in a row, the cover across the page, VenueCardPhoto 4 in a row. */

/* ---- the photo tile of a collection (CollectionTile) */
.ct { position: relative; display: block; min-width: 0; aspect-ratio: 300 / 280; border-radius: var(--radius-m); overflow: hidden; color: var(--cream-fixed); text-decoration: none; background: #29241f; box-shadow: var(--shadow-float); isolation: isolate; }
.ct:hover { color: var(--cream-fixed); }
.ct-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease-enter, ease); }
.ct:hover .ct-img { transform: scale(1.03); }
.ct::before, .ct::after, .lp-cover::before, .lp-cover::after { content: ''; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.ct::before, .lp-cover::before { top: 0; height: 26%; background: linear-gradient(180deg, rgba(29, 26, 24, .25), rgba(29, 26, 24, 0)); }
.ct::after { bottom: 0; height: 62%; background: linear-gradient(180deg, rgba(29, 26, 24, 0), rgba(29, 26, 24, .9)); }
.ct-top { position: absolute; z-index: 2; left: 14px; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; }
.ct-glass { height: 28px; box-sizing: border-box; padding: 0 12px; border-radius: var(--radius-xs); display: inline-flex; align-items: center; background: rgba(29, 26, 24, .34); border: 1px solid rgba(255, 251, 248, .22); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); font: 600 13px/1 var(--font-text); color: var(--cream-fixed); white-space: nowrap; }
.ct-faces { display: flex; margin-right: 4px; }
.ct-faces img { width: 36px; height: 36px; border-radius: var(--radius-round); object-fit: cover; border: 2px solid var(--cream-fixed); box-sizing: border-box; background: #29241f; }
.ct-faces img + img { margin-left: -10px; }
.ct-copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.ct-hand { font: 400 24px/1.05 var(--font-hand); color: #ffb59c; display: inline-block; transform: rotate(-3deg); transform-origin: left center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 10px rgba(29, 26, 24, .6); }
.ct-title { font: 400 30px/34px var(--font-display); overflow-wrap: break-word; hyphens: auto; }

/* no photo: the dish on the paper, the words in ink */
.ct.ct-no-photo, .lp-cover.lp-no-photo { background: var(--paper); color: var(--ink); }
.ct-no-photo:hover { color: var(--ink); }
.ct-no-photo::before, .ct-no-photo::after, .lp-no-photo::before, .lp-no-photo::after { display: none; }
.ct-art { position: absolute; inset: 0 0 34% 0; display: grid; place-items: center; }
.ct-art img { width: 46%; max-width: 180px; height: auto; }
.ct-no-photo .ct-glass, .lp-no-photo .ct-glass { background: var(--cream); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ct-no-photo .ct-hand, .lp-no-photo .ct-hand { color: var(--orange-deep); text-shadow: none; }

/* ---- the hub */
.hub, .lp { padding-bottom: var(--space-64); }
.lp-bar { display: none; }
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hub-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hub-h1 { display: flex; align-items: flex-start; gap: 4px; }
.hub-h1 h1 { margin: 0; font: 400 64px/72px var(--font-display); color: var(--orange); }
.hub-sticker { width: 72px; height: 72px; margin: -18px 0 0 4px; flex-shrink: 0; transform: rotate(6deg); overflow: visible; }
.hub-sub { margin: 0; font: 400 15px/22px var(--font-text); color: var(--graphite); }
.lp-btn { width: 56px; height: 40px; box-sizing: border-box; flex-shrink: 0; border-radius: var(--radius-m); border: 1.5px solid var(--grey); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; }
.lp-btn:hover { color: var(--orange-deep); border-color: var(--orange-deep); }
.lp-btn .ico, .lp-btn svg { width: 22px; height: 22px; }
.hub-find { display: none; }
.hub-lead { max-width: 720px; margin: 16px 0 0; font: 400 17px/26px var(--font-text); color: var(--graphite); }

.hub-chips { display: flex; gap: 8px; margin-top: 32px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.hub-chips::-webkit-scrollbar { display: none; }
.hub-chips input { position: absolute; opacity: 0; pointer-events: none; }
.hub-chips label { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: var(--radius-s); border: 1.5px solid var(--grey); color: var(--ink); font: 400 15px/1 var(--font-text); white-space: nowrap; cursor: pointer; user-select: none; }
.hub-chips label:hover { border-color: var(--orange-deep); }
.hub-chips input:checked + label { background: var(--orange-strong); border-color: var(--orange-strong); color: #fff; font-weight: 600; }
.hub-chips input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }

.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
/* the first tile big, 2×2, as the home's «место вечера» (owner, 14.10); only on «Все», a chip shows an even grid */
.hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child, .hub:not(:has(.hub-chips)) .hub-grid > .ct:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: var(--fx-radius-card, var(--radius-m)); }
.hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-title { font-size: 56px; line-height: 60px; }
.hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-hand { font-size: 32px; }
.hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-copy { left: 32px; right: 32px; bottom: 28px; }
.hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-top { left: 20px; top: 20px; }
.hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-art img { width: 40%; max-width: 300px; }
.hub:has(#hub-g-occasion:checked) .ct:not([data-group="occasion"]),
.hub:has(#hub-g-time:checked) .ct:not([data-group="time"]),
.hub:has(#hub-g-kitchen:checked) .ct:not([data-group="kitchen"]),
.hub:has(#hub-g-district:checked) .ct:not([data-group="district"]) { display: none; }

/* ---- a landing and a season */
.lp-cover { position: relative; margin-top: 24px; height: 440px; border-radius: var(--radius-m); overflow: hidden; color: var(--cream-fixed); background: #29241f; box-shadow: 0 22px 44px -26px rgba(29, 26, 24, .75), 0 4px 10px -6px rgba(29, 26, 24, .35); isolation: isolate; }
.lp-cover::after { bottom: 0; height: 64%; background: linear-gradient(180deg, rgba(29, 26, 24, 0), rgba(29, 26, 24, .9)); }
.lp-cover .ct-top { left: 24px; top: 24px; }
.lp-cover .ct-art { inset: 0 0 0 50%; }
.lp-cover .ct-art img { width: 60%; max-width: 280px; }
.lp-copy { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 36px; display: flex; flex-direction: column; gap: 8px; }
.lp-copy .ct-hand { font-size: 32px; }
.lp-copy h1 { margin: 0; max-width: 960px; font: 400 64px/70px var(--font-display); color: inherit; overflow-wrap: anywhere; }
.lp-no-photo .lp-copy { right: 50%; }
.lp-no-photo .lp-copy h1 { color: var(--orange); }
.lp-lead { max-width: 760px; margin: 24px 0 0; font: 400 19px/28px var(--font-text); color: var(--graphite); }
.lp-crit { max-width: 760px; margin: 12px 0 0; font: 400 15px/22px var(--font-text); color: var(--graphite); }
.lp-places { margin-top: 32px; }
.lp .pager { margin-top: 32px; }
.lp-how { margin-top: var(--space-48); max-width: 760px; }

.lp-more { margin-top: var(--space-64); }
.lp-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lp-more-head h2 { margin: 0; font: 400 32px/38px var(--font-display); color: var(--ink); }
.lp-more-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.lp-more-row .ct-title { font-size: 24px; line-height: 28px; }
.lp-more-row .ct-hand { font-size: 20px; }

@media (max-width: 1199px) {
  .hub-grid, .lp-more-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-title { font-size: 24px; line-height: 28px; }
  .lp-copy h1 { font-size: 48px; line-height: 54px; }
}

@media (max-width: 1023px) {
  .ct-title, .lp-more-row .ct-title { font-size: 20px; line-height: 24px; }
  .ct-copy { left: 16px; right: 14px; bottom: 14px; }
  .ct-hand, .lp-more-row .ct-hand { font-size: 20px; }
  .lp-copy h1 { font-size: 40px; line-height: 46px; }
}

/* ---- phones: V-m-collections and V-p-collection */
@media (max-width: 767px) {
  .hub, .lp { padding-inline: 24px; padding-bottom: var(--space-64); }
  .hub > .crumbs, .lp > .crumbs { display: none; }
  .lp-bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding-top: 16px; }
  .lp-bar-empty { min-height: 40px; }
  .hub-head { margin-top: 24px; gap: 12px; }
  .hub-titles { gap: 2px; }
  .hub-h1 h1 { font-size: 40px; line-height: 44px; }
  .hub-sticker { width: 52px; height: 52px; margin: -14px 0 0 2px; }
  .hub-sub { font-size: 13px; line-height: 18px; }
  .hub-find { display: inline-flex; }
  .hub-lead { display: none; }
  .hub-chips { margin: 24px -24px 0; padding: 0 24px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child { grid-row: auto; aspect-ratio: 342 / 376; }
  .hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-title { font-size: 30px; line-height: 34px; }
  .hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-hand { font-size: 24px; }
  .hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-copy { left: 20px; right: 20px; bottom: 20px; }
  .hub:has(#hub-g-all:checked) .hub-grid > .ct:first-child .ct-top { left: 14px; top: 14px; }
  .hub .ct { aspect-ratio: 166 / 214; border-radius: var(--radius-m); box-shadow: 0 22px 44px -26px rgba(29, 26, 24, .75), 0 4px 10px -6px rgba(29, 26, 24, .35); }
  .ct-faces { display: none; }
  .ct-top { left: 8px; top: 8px; right: 8px; }
  .ct .ct-glass { height: 24px; padding: 0 9px; border-radius: var(--radius-xs); font-size: 12px; }
  .ct-copy { left: 12px; right: 10px; bottom: 12px; gap: 2px; }
  .ct-hand, .lp-more-row .ct-hand { font-size: 17px; }
  .ct-title, .lp-more-row .ct-title { font-size: 16px; line-height: 19px; }
  .ct-art { bottom: 40%; }

  .lp-cover { margin-top: 24px; height: 300px; }
  .lp-cover .ct-top { left: 14px; top: 14px; }
  .lp-cover .ct-art { inset: 0 0 38% 0; }
  .lp-cover .ct-art img { width: 46%; }
  .lp-copy, .lp-no-photo .lp-copy { left: 20px; right: 20px; bottom: 20px; gap: 6px; }
  .lp-copy .ct-hand { font-size: 24px; }
  .lp-copy h1 { font-size: 32px; line-height: 36px; }
  .lp-lead { margin-top: 24px; font-size: 17px; line-height: 24px; }
  .lp-places { margin-top: 24px; }
  .lp-how { margin-top: 40px; }
  .lp-more { margin-top: 48px; }
  .lp-more-head h2 { font-size: 22px; line-height: 26px; }
  .lp-more-row { display: flex; gap: 12px; margin: 16px -24px 0; padding: 0 24px 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
  .lp-more-row::-webkit-scrollbar { display: none; }
  .lp-more-row .ct { flex: 0 0 148px; height: 196px; aspect-ratio: auto; border-radius: var(--radius-m); scroll-snap-align: start; }
}
@media (max-width: 374px) {
  .hub, .lp { padding-inline: 16px; }
  .hub-chips, .lp-more-row { margin-inline: -16px; padding-inline: 16px; }
  .lp-copy h1 { font-size: 28px; line-height: 32px; }
}

/* a place without a photo on a landing: its dish drawn, as on the catalogue's cards */
.wow-photo-art { position: absolute; inset: 0 0 30% 0; display: grid; place-items: center; }
.wow-photo-art img { width: 50%; max-width: 170px; height: auto; }

/* Блюда в поиске используют общие плоские карточки, подпись места под ценой. */
.fd-tiles .dc { width: 184px; }
.fd-tiles .dc-ph { height: auto; aspect-ratio: 4 / 3; }
.fd-tiles .fd-p { font-size: 12px; line-height: 16px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .fd-tiles .dc { width: 148px; } }

/* found places: the tiles keep the gap of the results */
.frows-tiles { margin-top: 16px; }

/* nothing found (V-p-nothing): the line by hand under the title */
.fnone-hand { margin-top: -10px; font: 400 22px/1.1 var(--font-hand); color: var(--orange-deep); transform: rotate(-3deg); }

/* ---- «Рядом» (V-p-near) */
.nr { padding-bottom: var(--space-64); }
.nr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 24px; }
.nr-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nr-h1 { margin: 0; font: 400 64px/72px var(--font-display); color: var(--orange); }
.nr-sub { margin: 0; max-width: 560px; font: 400 15px/22px var(--font-text); color: var(--graphite); }
.nr-dice-box { position: relative; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nr-hand { font: 400 24px/1 var(--font-hand); color: var(--orange-deep); transform: rotate(-4deg); white-space: nowrap; }
.nr-dice { width: 56px; height: 40px; border-radius: var(--radius-s); display: grid; place-items: center; background: var(--ink); color: var(--orange); }
.nr-dice svg { width: 28px; height: 28px; }
.nr-before { display: flex; align-items: center; gap: 48px; margin-top: 32px; flex-wrap: wrap; }
.nr-before[hidden] { display: none; }
.nr-art { position: relative; max-width: 360px; }
.nr-art .hand { position: absolute; left: 0; top: -8px; font: 400 24px/1 var(--font-hand); color: var(--orange-deep); }
.nr-art img { width: 100%; height: auto; }
.nr-list { margin-top: 24px; }
.nr-map { margin-top: 32px; }
@media (max-width: 767px) {
  .nr { padding-inline: 24px; padding-bottom: var(--space-64); }
  .nr > .crumbs { display: none; }
  .nr-head { align-items: flex-end; gap: 12px; }
  .nr-h1 { font-size: 40px; line-height: 44px; }
  .nr-sub { font-size: 13px; line-height: 18px; }
  .nr-hand { font-size: 20px; }
  .nr-before { gap: 24px; margin-top: 24px; }
  .nr-before .bbtn { width: 100%; justify-content: center; }
}
@media (max-width: 374px) { .nr { padding-inline: 16px; } }

/* ---- «на карте» (V-p-map): «Списком» over the map, the place's photo tile at the bottom */
.mapx-box { position: relative; margin-top: 24px; }
.mapx-box .map-full { margin-top: 0; }
.mapx-list { position: absolute; z-index: 3; left: 16px; top: 16px; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: var(--radius-s); background: var(--cream); border: 1.5px solid var(--grey); color: var(--ink); font: 600 15px/1 var(--font-text); text-decoration: none; box-shadow: var(--shadow-float); }
.mapx-list .ico, .mapx-list svg { width: 18px; height: 18px; }
.mapx-card { position: absolute; z-index: 3; left: 16px; bottom: 16px; width: 360px; }
.mapx-card[hidden] { display: none; }
.mapx-card .mapx-tile { aspect-ratio: 366 / 196; grid-column: auto; grid-row: auto; border-radius: var(--radius-m); }
.mapx-card .wow-photo-copy { padding: 0 16px 14px; }
.mapx-card h2 { font: 400 22px/26px var(--font-display); margin: 0 0 2px; }
.mapx-card .wow-meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapx-x { position: absolute; z-index: 4; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; border-radius: var(--radius-round); background: rgba(29, 26, 24, .34); color: var(--cream-fixed); font: 400 22px/1 var(--font-text); cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mapx-card .wow-no-photo ~ .mapx-x { background: var(--surface); color: var(--ink); }
@media (max-width: 767px) {
  .mapx > .crumbs, .mapx .hero { display: none; }
  .mapx .map-bar { margin: 12px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .mapx .map-bar::-webkit-scrollbar { display: none; }
  .mapx .map-bar .chip { flex-shrink: 0; }
  .mapx-box { margin: 12px calc(-1 * var(--gut)) 0; }
  .mapx-box .map-full { height: calc(100dvh - 210px); min-height: 420px; border-radius: 0; border-left: 0; border-right: 0; }
  .mapx-list { left: auto; right: 12px; top: 12px; }
  .mapx-card { left: 12px; right: 12px; width: auto; bottom: 96px; }
}
@media (max-width: 767px) { .mapx .maplibregl-ctrl-top-right { display: none; } }

/* ---- «Где ищем» (V-p-district): the district menu as a bottom sheet */
.geo-dim { display: none; }
.geo[open] .geo-dim { display: block; position: fixed; inset: 0; z-index: 60; background: var(--scrim, rgba(29, 26, 24, .4)); }
.ph .geo-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 61; width: auto; max-height: 86dvh; padding: 10px 24px calc(24px + env(safe-area-inset-bottom)); gap: 0; border: 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; background: var(--cream); box-shadow: 0 -12px 40px rgba(29, 26, 24, .25); }
.geo-grab { align-self: center; width: 40px; height: 4px; border-radius: var(--radius-xs); background: var(--grey); opacity: .6; margin-bottom: 14px; }
.geo-head { display: flex; align-items: center; gap: 8px; }
.geo-h { font: 400 30px/36px var(--font-display); color: var(--orange); }
.geo-sticker { width: 42px; height: 42px; transform: rotate(-8deg); }
.geo-x { margin-left: auto; width: 48px; height: 32px; border-radius: var(--radius-m); border: 1.5px solid var(--grey); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.geo-x .ico, .geo-x svg { width: 18px; height: 18px; }
.geo-find { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 16px; padding: 0 16px; border: 1.5px solid var(--grey); border-radius: var(--radius-m); }
.geo-find .ico, .geo-find svg { width: 22px; height: 22px; color: var(--ink); }
.geo-find input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 17px/24px var(--font-text); color: var(--ink); outline: none; }
.ph .geo-menu .geo-near { display: flex; align-items: center; gap: 14px; min-height: 60px; margin: 16px 0 0; padding: 0 16px; border: 0; border-radius: var(--radius-m); background: var(--orange-soft); color: var(--orange-deep); }
.geo-near-i { width: 36px; height: 36px; border-radius: var(--radius-round); display: grid; place-items: center; background: var(--orange); color: #fff; flex-shrink: 0; }
.geo-near-i .ico, .geo-near-i svg { width: 20px; height: 20px; }
.geo-near-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.geo-near-t b { font: 600 17px/22px var(--font-text); color: var(--orange-deep); }
.geo-near-t small { font: 400 13px/18px var(--font-text); color: var(--graphite); }
.geo-l { margin-top: 20px; font: 400 13px/18px var(--font-text); color: var(--graphite); }
.ph .geo-menu .geo-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font: 400 17px/24px var(--font-text); color: var(--ink); }
.ph .geo-menu .geo-row:last-child { border-bottom: 0; }
.ph .geo-menu .geo-row:hover { background: transparent; color: var(--orange-deep); }
.geo-row > span:first-child { flex: 1; }
.ph .geo-menu > * { flex-shrink: 0; }
.geo-row small { font: 400 13px/18px var(--font-text); color: var(--graphite); }
.geo-row .ico, .geo-row svg { width: 20px; height: 20px; color: var(--orange-deep); }
.ph .geo-menu a.on::after { display: none; }
.ph .geo-menu .geo-row.on { font-weight: 600; color: var(--ink); }

/* Dishes without a photo (none on the site since 24.10) read as lines of a menu, not empty tiles. */
.fd-tiles:not(:has(.dc-ph)) { display: flex; flex-direction: column; gap: 0; }
.fd-tiles .dc-text { display: block; padding: var(--space-12) 0; border-bottom: var(--border-rule) solid var(--line); background: none; box-shadow: none; border-radius: 0; }
.fd-tiles .dc-text .dish-card-body { padding: 0; }
.fd-tiles .dc.dc-text { width: auto; }
