/* The reference card uses the same gallery, metadata grid and social row for both providers. */
:is(.home-page,.explorer-page) :is(#results-grid,#live-places) .explorer-venue .place-gallery {
  position: relative;
  background: #edf3f2;
}
:is(.home-page,.explorer-page) :is(#results-grid,#live-places):not(.list-view) .explorer-venue .place-gallery {
  aspect-ratio: 1.82 !important;
  height: auto !important;
  min-height: 0 !important;
}
.explorer-venue .gallery-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #627a80; background: #edf3f2;
}
.explorer-venue .gallery-empty svg {width: 2.5em; height: 2.5em;}
.explorer-venue .gallery-photo-link > img {width:100%;height:100%;object-fit:cover;}
.explorer-venue .provider-badge img {display:block;object-fit:contain;}
.explorer-venue .provider-badge.ozapay-provider img {width:100%;height:100%;border-radius:50%;}
:is(#results-grid,#live-places) .explorer-venue .venue-facts {
  grid-column:1/-1;grid-row:5;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0;
  font-size:.72rem;line-height:1.4;color:#50676d;
}
.venue-rating {display:inline-flex;align-items:center;gap:.3em;color:inherit;}
.venue-rating svg {width:1.15em;height:1.15em;}
.venue-photo-by .live-photo-credit {font:inherit;color:inherit;}
.venue-photo-by a {text-decoration:underline;}
:is(#results-grid,#live-places) .explorer-venue .venue-actions {
  display:grid;grid-column:1/-1;grid-row:6;grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;gap:2px;margin-top:3px;padding-top:8px;border-top:1px solid #dfe6e7;
}
:is(#results-grid,#live-places) .venue-actions button {
  display:grid;grid-template-columns:auto auto;grid-template-rows:24px auto;
  justify-content:center;align-items:center;column-gap:5px;row-gap:2px;
  min-width:0;min-height:46px;background:transparent;color:#292d33;border:0;border-radius:10px;
  padding:4px;cursor:pointer;
  font-family:inherit;font-size:clamp(11px,.78rem,14px);font-weight:600;line-height:1.15;
}
:is(#results-grid,#live-places) .venue-actions button:hover {background:#ecf4f4;}
:is(#results-grid,#live-places) .venue-actions button:focus-visible {outline:2px solid #087d8b;}
:is(#results-grid,#live-places) .venue-actions .icon {width:21px;height:21px;justify-self:end;}
:is(#results-grid,#live-places) .venue-actions [data-venue-heart] svg {stroke:#d43178;}
:is(#results-grid,#live-places) .venue-actions [data-venue-heart][aria-pressed="true"] svg {fill:#d43178;}
:is(#results-grid,#live-places) .venue-actions button > :last-child {grid-column:1/-1;}
:is(#results-grid,#live-places) .venue-action-value {font-variant-numeric:tabular-nums;justify-self:start;}
.venue-discussion {grid-column:1/-1;grid-row:7;min-width:0;border-top:1px solid #dfe6e7;padding-top:10px;}
.venue-discussion-head {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.venue-discussion .venue-discussion-head h3 {margin:0;font-size:1rem;line-height:1.3;}
.venue-discussion-head button {border:0;border-radius:50%;min-width:36px;min-height:36px;background:#eff5f5;color:#24363b;cursor:pointer;font-size:1.25rem;}
.venue-discussion .community-panel {min-width:0;margin:0;padding:6px 0 0;border:0;box-shadow:none;}
.venue-discussion .community-thread {min-width:0;margin:0;border:0;}
.venue-discussion [data-community-list] {max-height:45vh;overflow:auto;overflow-wrap:anywhere;}
.venue-discussion :is(.community-composer-box,.community-form,textarea,.community-author) {min-width:0;max-width:100%;}
.venue-discussion .community-replies {margin-inline-start:min(2%,8px);}
.explorer-venue .gallery-photo-link {touch-action:pan-y;}
.explorer-venue .gallery-bottom {pointer-events:none;}
.explorer-venue .gallery-dots button, .explorer-venue button.gallery-arrow {touch-action:manipulation;}

:is(#results-grid,#live-places) .explorer-venue .gallery-arrow:not([hidden]) {
  display:grid; place-items:center; background:transparent; color:#fff;
}
:is(#results-grid,#live-places) .explorer-venue .gallery-arrow svg {display:none;}
:is(#results-grid,#live-places) .explorer-venue .gallery-arrow::before {display:none;}
:is(#results-grid,#live-places) .explorer-venue .gallery-arrow::after {
  content:""; display:block; width:13px; height:13px; border:solid currentColor;
  border-width:0 2px 2px 0; background:none; filter:drop-shadow(0 1px 2px #0005);
  position:static; transform:rotate(-45deg);
}
:is(#results-grid,#live-places) .explorer-venue .gallery-prev::after {transform:rotate(135deg);}
:is(#results-grid,#live-places) .explorer-venue [hidden] {display:none !important;}
