/* ═══ Catalog card, desktop refinement (2026-11-26) ═══
   Nine cards on a screen read as nine green buttons; the card itself is the
   link. On wide screens the action row is light and every card's bottom row
   sits on the same line whatever the text above it. Phones (≤760px) keep
   their own row layout untouched. */
@media (min-width: 761px) {
  html body .place-card .card-body:not(#kc-a):not(#kc-b) { display: flex !important; flex-direction: column !important; }
  html body .place-card .card-body > .catalog-card-info:not(#kc-a) { display: flex !important; flex-direction: column !important; gap: inherit; flex: 1 1 auto !important; }
  html body .place-card .card-action-stack:not(#kc-a):not(#kc-b) { margin-top: auto !important; padding-top: 10px !important; }
  html body .place-card .card-description:not(#kc-a):not(#kc-b) { min-height: calc(2 * 1.45em) !important; }

  html body .place-card .card-go-btn:not(#kc-a):not(#kc-b) {
    height: 40px !important; border-radius: 12px !important;
    background: #eff7f1 !important; color: #136f38 !important; box-shadow: inset 0 0 0 1px #d3eadb !important;
    font-size: 14px !important; font-weight: 750 !important;
  }
  html body .place-card .card-go-btn:not(#kc-a):not(#kc-b):hover {
    background: #136f38 !important; color: #fff !important; box-shadow: none !important;
  }
  html body .place-card .card-bottom-row > :is(a, button):not(.card-go-btn):not(#kc-a):not(#kc-b),
  html body .place-card .card-bottom-row > :not(.card-go-btn):not(#kc-a) :is(a, button) { height: 40px !important; }

  @media (hover: hover) {
    html body .place-card:not(#kc-a):hover .card-go-btn { background: #136f38 !important; color: #fff !important; box-shadow: none !important; }
  }
}

/* The base ticket and its interaction styles are shared with the nearby rail. */
body#top .place-card:not(#kc-a):not(#kc-b) {
  --pc-paper: #f3f8f4;
  --pc-perf: #cddbd1;
}
body#top .place-card .card-price-pill:not(#kc-a):not(#kc-b) { display: none !important; }
body#top .place-card .card-stub-price { pointer-events: none; }
body#top .place-card .card-contact-toggle:not(#kc-a):not(#kc-b),
body#top .place-card .card-bottom-row .card-contact-toggle:not(#kc-a):not(#kc-b):not(#kc-r) {
  box-shadow: inset 0 0 0 1px #d9e5dc !important;
}
@media (hover: hover) {
  body#top .place-card:not(#kc-a):hover .card-action-stack {
    border-top-color: #b4c9ba !important;
    background-color: #e9f2ec !important;
  }
}

/* ═══ Calm stub + the whole card is a link (2026-11-27) ═══
   - no warm paper: a cool white-green stub under a thin dashed line
   - the "open" button says what it does (label + arrow), the phone stays round
   - a click anywhere on the card opens it: the title link is stretched over the
     card, the real controls (heart, phone, open, links) sit above it */
body#top .place-card:not(#kc-a):not(#kc-b) { position: relative !important; cursor: pointer; overflow: clip !important; overflow-clip-margin: border-box; }
body#top .place-card .card-title a:not(#kc-a)::after { content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; }
body#top .place-card :is(.like-form, .card-bottom-row > a, .card-bottom-row > button, .card-bottom-row > .km-phone-group, .card-organization a, .card-offer-link, .card-category-overlay):not(#kc-a):not(#kc-b) { position: relative; z-index: 3; }
body#top .place-card .like-form:not(#kc-a):not(#kc-b) { position: absolute !important; }
body#top .place-card .card-category-overlay:not(#kc-a):not(#kc-b) { position: absolute !important; pointer-events: none; }

body#top .place-card .card-action-stack:not(#kc-a):not(#kc-b) {
  container-type: inline-size; container-name: stub;
  padding: 12px var(--pc-pad) 14px !important;
}
@media (min-width: 821px) {
  body#top.page-place_list .grid .place-card .card-body .card-action-stack:not(#kc-a):not(#kc-b) {
    margin-inline: calc(-1 * var(--pc-pad)) !important;
    align-self: stretch !important;
    width: auto !important;
  }
}
body#top .place-card .card-bottom-row:not(#kc-a):not(#kc-b) { gap: 10px !important; min-height: 44px; }
body#top .place-card .card-bottom-row > .card-stub-price:not(#kc-a):not(#kc-b):not(#kc-r) {
  font-size: 1.05rem !important; font-weight: 800 !important; line-height: 1.2 !important;
}
body#top .place-card .card-go-btn:not(#kc-a):not(#kc-b):not(#kc-r) {
  width: auto !important; height: 44px !important; padding: 0 16px 0 18px !important; gap: 8px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 999px !important; font: 700 .92rem/1 var(--font-display, inherit) !important; white-space: nowrap !important;
}
body#top .place-card .card-go-btn .card-go-label:not(#kc-a):not(#kc-b) {
  position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important;
}
body#top .place-card .card-bottom-row > :not(.card-go-btn):not(.card-stub-price):not(#kc-a) :is(a, button),
body#top .place-card .card-bottom-row .card-contact-toggle:not(#kc-a):not(#kc-b):not(#kc-r) {
  width: 44px !important; height: 44px !important;
}
/* a narrow stub: the open button becomes a round arrow again */
@container stub (max-width: 255px) {
  body#top .place-card .card-go-btn:not(#kc-a):not(#kc-b):not(#kc-r) { width: 44px !important; padding: 0 !important; }
  body#top .place-card .card-go-btn .card-go-label:not(#kc-a):not(#kc-b) {
    position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important;
  }
}
@media (hover: hover) {
  body#top .place-card:not(#kc-a):not(#kc-b):hover .card-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgb(19 111 56 / 45%); }
}
