/* Place pages: country, region, city, city + category.
   Tokens come from the main layout (--red, --text-h, --border…). */
.px { --px-night: #121419; --px-sun: #FFC83D; --px-soft: var(--bg-soft, #F7F7F9); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.px-hero { position: relative; isolation: isolate; overflow: visible; color: #fff; background: var(--px-night); padding: 34px 0 56px; }
.px-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.px-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.px-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 320px at 8% 0%, rgba(232,52,42,.30), transparent 70%),
              linear-gradient(180deg, rgba(18,20,25,.35), rgba(18,20,25,.92) 88%),
              radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.3px) 0 0 / 22px 22px; }
.px-wrap { max-width: var(--max-w, 1260px); margin: 0 auto; padding: 0 24px; }
.px-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; font-size: 13px; }
.px-crumbs li { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.55); }
.px-crumbs li + li::before { content: "\f105"; font: 900 10px 'Font Awesome 5 Free'; color: rgba(255,255,255,.35); }
.px-crumbs a { color: rgba(255,255,255,.72); text-decoration: none; }
.px-crumbs a:hover { color: #fff; }
.px-crumbs [aria-current] { color: #fff; font-weight: 600; }
.px-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 12px 'Open Sans', sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: var(--px-sun); }
.px-eyebrow img { width: 26px; height: auto; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.px-eyebrow i { font-size: 14px; }
.px-h1 { margin: 0; max-width: 860px; font: 800 clamp(2rem, 4.4vw, 3.5rem)/1.06 'Poppins', sans-serif; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.px-h1 em { font-style: normal; color: var(--red); }
.px-lead { margin: 14px 0 0; max-width: 640px; font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,.75); }
.px-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.px-stats li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.8); }
.px-stats b { font: 800 15px 'Poppins', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.px-stats i { color: var(--px-sun); }
.px-search { position: relative; z-index: 30; margin-top: 30px; max-width: 900px; }
.px-search .sb { margin: 0; max-width: none; }

/* ── Sections ─────────────────────────────────────────────────────── */
.px-sec { padding: 64px 0 0; }
.px-sec:last-of-type { padding-bottom: 80px; }
.px-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.px-kicker { margin: 0 0 8px; font: 800 11.5px 'Open Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.px-h2 { margin: 0; font: 800 clamp(1.45rem, 2.6vw, 2.05rem)/1.15 'Poppins', sans-serif; letter-spacing: -.025em; color: var(--text-h); text-wrap: balance; }
.px-sub { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; }
.px-more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px; border: 1.5px solid var(--border);
  font: 700 13.5px 'Poppins', sans-serif; color: var(--text-h); text-decoration: none; background: #fff; transition: border-color .2s, color .2s; }
.px-more:hover { border-color: var(--red); color: var(--red); }

/* ── Category tiles ───────────────────────────────────────────────── */
.px-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.px-cat { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: #fff;
  border: 1px solid var(--border); transition: box-shadow .25s, border-color .25s, transform .25s; }
.px-cat:hover { border-color: transparent; box-shadow: 0 18px 40px rgba(17,24,39,.1); transform: translateY(-3px); }
.px-cat-top { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.px-cat-top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.px-cat-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-light, #FDECEA); color: var(--red); font-size: 18px; transition: background .25s, color .25s; }
.px-cat:hover .px-cat-ic { background: var(--red); color: #fff; }
.px-cat-name { display: block; font: 700 15.5px/1.3 'Poppins', sans-serif; color: var(--text-h); }
.px-cat-n { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.px-cat-subs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.px-cat-subs a { padding: 4px 10px; border-radius: 999px; background: var(--px-soft); color: var(--text-body); font-size: 12px; font-weight: 600; text-decoration: none; }
.px-cat-subs a:hover { background: var(--red-light, #FDECEA); color: var(--red); }
.px-cat-subs a b { color: var(--text-muted); font-weight: 700; margin-left: 3px; }
.px-cat.is-empty { opacity: .75; }

/* ── Chips ────────────────────────────────────────────────────────── */
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.px-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text-body); font: 600 13.5px 'Open Sans', sans-serif; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.px-chip b { font-size: 12px; color: var(--text-muted); }
.px-chip:hover { border-color: var(--red); color: var(--red); }
.px-chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.px-chip.is-on b { color: rgba(255,255,255,.8); }
.px-hero .px-chips { margin-top: 22px; }
.px-hero .px-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.px-hero .px-chip b { color: rgba(255,255,255,.6); }
.px-hero .px-chip:hover { border-color: var(--px-sun); color: var(--px-sun); }
.px-hero .px-chip.is-on { background: #fff; border-color: #fff; color: var(--text-h); }
.px-hero .px-chip.is-on b { color: var(--text-muted); }

/* ── Results layout + toolbar ─────────────────────────────────────── */
.px-results { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.px-results.no-map { grid-template-columns: minmax(0, 1fr); }
.px-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.px-count { font-size: 14px; color: var(--text-muted); }
.px-count b { color: var(--text-h); }
.px-sort { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--px-soft); border: 1px solid var(--border); }
.px-sort a { padding: 7px 12px; border-radius: 9px; font: 700 12.5px 'Open Sans', sans-serif; color: var(--text-muted); text-decoration: none; }
.px-sort a:hover { color: var(--text-h); }
.px-sort a[aria-current] { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(17,24,39,.08); }

/* ── Business card ────────────────────────────────────────────────── */
.px-list { display: grid; gap: 14px; }
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.px-card { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border-radius: 18px;
  background: #fff; border: 1px solid var(--border); transition: box-shadow .25s, border-color .25s; }
.px-card:hover, .px-card.is-hot { border-color: transparent; box-shadow: 0 18px 40px rgba(17,24,39,.1); }
.px-grid .px-card { grid-template-columns: 1fr; }
.px-card-img { position: relative; display: block; min-height: 170px; background: var(--px-soft); overflow: hidden; }
.px-grid .px-card-img { aspect-ratio: 16 / 9; min-height: 0; }
.px-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.px-card:hover .px-card-img img { transform: scale(1.06); }
.px-card-flag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: var(--px-sun); color: var(--text-h); font: 800 10.5px 'Open Sans', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.px-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; min-width: 0; }
.px-card-cat { display: flex; align-items: center; gap: 7px; font: 800 11px 'Open Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.px-card-name { margin: 0; font: 700 17px/1.3 'Poppins', sans-serif; }
.px-card-name a { color: var(--text-h); text-decoration: none; }
.px-card-name a::after { content: ""; position: absolute; inset: 0; }
.px-card-name .fa-check-circle { color: #1D9BF0; font-size: 14px; }
.px-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-muted); }
.px-stars { color: #F5A524; font-size: 12px; letter-spacing: 1px; }
.px-card-meta b { color: var(--text-h); }
.px-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.px-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.px-open.is-open { color: #15803D; }
.px-open.is-closed { color: #B45309; }
.px-card-addr { font-size: 13.5px; color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-card-addr i { color: var(--text-light); margin-right: 5px; }
.px-card-tag { font-size: 13.5px; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The three buttons stay on one row. The row is a size container (the row,
   not the card: a container would capture the card-wide link overlay), so in
   a narrow card the buttons tighten first and then Website and Directions
   show as icons, instead of one button dropping onto a second row. */
.px-card-acts { position: relative; z-index: 1; display: flex; flex-wrap: nowrap; gap: 6px; margin-top: auto; padding-top: 8px; container-type: inline-size; }
.px-act { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-act { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; border: 1.5px solid var(--border);
  font: 700 12.5px 'Open Sans', sans-serif; color: var(--text-h); text-decoration: none; background: #fff; transition: border-color .2s, color .2s, background .2s; }
.px-act:hover { border-color: var(--red); color: var(--red); }
.px-act--main { background: var(--red); border-color: var(--red); color: #fff; }
.px-act--main:hover { background: var(--red-dark, #C4231A); color: #fff; }
@container (max-width: 291px) { .px-act { padding: 8px 10px; gap: 6px; font-size: 12px; } }
@container (max-width: 262px) { .px-act--dir span { display: none; } .px-act--dir { padding: 8px 12px; } }
@container (max-width: 205px) { .px-act--web span { display: none; } .px-act--web { padding: 8px 12px; } }
.px-unclaimed { font-size: 11.5px; color: var(--text-light); }

/* ── Map ──────────────────────────────────────────────────────────── */
.px-mapbox { position: sticky; top: calc(var(--header-h, 68px) + 16px); height: calc(100vh - var(--header-h, 68px) - 32px); min-height: 420px; max-height: 760px;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--px-soft); }
.px-map { width: 100%; height: 100%; }
.px-mapbox .leaflet-popup-content { font: 600 13px 'Open Sans', sans-serif; margin: 10px 14px; }
.px-mapbox .leaflet-popup-content a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ── Places list ──────────────────────────────────────────────────── */
.px-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.px-place { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: #fff; color: var(--text-h); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s; }
.px-place:hover { border-color: var(--red); box-shadow: 0 8px 20px rgba(232,52,42,.1); }
.px-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-place b { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: var(--px-soft); color: var(--text-muted); font-size: 12px; }
.px-place.has-n b { background: var(--red-light, #FDECEA); color: var(--red); }
.px-az { columns: 4 190px; column-gap: 24px; }
.px-az a { display: block; padding: 6px 0; break-inside: avoid; color: var(--text-body); text-decoration: none; font-size: 14px; }
.px-az a:hover { color: var(--red); }
.px-az b { color: var(--text-muted); font-weight: 600; font-size: 12px; margin-left: 4px; }

/* ── FAQ, empty, pager, CTA ───────────────────────────────────────── */
.px-faq { display: grid; gap: 10px; max-width: 860px; }
.px-faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.px-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px;
  font: 700 15px 'Poppins', sans-serif; color: var(--text-h); }
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary::after { content: "\f067"; font: 900 12px 'Font Awesome 5 Free'; color: var(--red); transition: transform .2s; }
.px-faq details[open] summary::after { transform: rotate(45deg); }
.px-faq p { margin: 0; padding: 0 18px 16px; line-height: 1.7; color: var(--text-body); }
.px-empty { padding: 38px; border-radius: 20px; border: 1.5px dashed var(--border-mid, #D6D9DF); background: var(--px-soft); text-align: center; }
/* Only the icon at the top of the panel is large — not the icons inside the chips under it. */
.px-empty > i { font-size: 30px; color: var(--red); }
.px-empty h3 { margin: 14px 0 6px; font: 700 19px 'Poppins', sans-serif; color: var(--text-h); }
.px-empty p { margin: 0 auto 18px; max-width: 460px; color: var(--text-muted); }
.px-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.px-pager a, .px-pager span { min-width: 40px; padding: 9px 13px; border-radius: 10px; border: 1.5px solid var(--border); text-align: center;
  font: 700 13.5px 'Open Sans', sans-serif; color: var(--text-body); text-decoration: none; background: #fff; }
.px-pager a:hover { border-color: var(--red); color: var(--red); }
.px-pager [aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
.px-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 22px;
  background: linear-gradient(120deg, var(--red), #B8211A); color: #fff; }
.px-cta h2 { margin: 0; font: 800 clamp(1.2rem, 2.2vw, 1.6rem)/1.2 'Poppins', sans-serif; color: #fff; }
.px-cta p { margin: 6px 0 0; color: rgba(255,255,255,.8); }
.px-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; background: #fff; color: var(--red);
  font: 700 14.5px 'Poppins', sans-serif; text-decoration: none; }
.px-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--red); color: #fff;
  font: 700 14px 'Poppins', sans-serif; text-decoration: none; }

.px a:focus-visible, .px summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.px-hero a:focus-visible { outline-color: var(--px-sun); }

@media (max-width: 1100px) {
  .px-results { grid-template-columns: minmax(0, 1fr); }
  .px-mapbox { position: relative; top: 0; height: 320px; min-height: 0; order: -1; }
}
@media (max-width: 640px) {
  .px-wrap { padding: 0 16px; }
  .px-hero { padding: 24px 0 40px; }
  .px-sec { padding-top: 48px; }
  .px-card { grid-template-columns: 1fr; }
  .px-card-img { aspect-ratio: 16 / 9; min-height: 0; }
  .px-cta { padding: 22px; }
}

/* A live offer on a card: the highlighter, sitting opposite the Featured flag. */
.px-card-flag.is-offer { left: auto; right: 10px; background: #FFD84D; color: #111827; }
