/* "Restaurants in Buchs" directory – mobile first, same dark theme. */
[hidden] { display: none !important; }
.dir-page main { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 6px 0 0; }
.open-only { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.open-only input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.loc { font-size: 12px; margin: 0 0 6px; }
.dir-list { display: grid; gap: 12px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.ptop { display: flex; gap: 12px; align-items: flex-start; }
.ptile { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.phead { min-width: 0; display: grid; gap: 4px; }
.pname { margin: 0; font-size: 18px; line-height: 1.15; }
.psub { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.price b { color: #fff; letter-spacing: 1px; }
.price i { font-style: normal; opacity: .3; letter-spacing: 1px; }
.badge { justify-self: start; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.badge.open { color: #4ade80; background: rgba(74,222,128,.12); }
.badge.closingSoon, .badge.opensLater { color: #ffc857; background: rgba(255,200,87,.12); }
.badge.closedToday, .badge.closedNow { color: #ff6b81; background: rgba(255,107,129,.12); }
.paddr { margin: 10px 0 0; font-size: 14px; color: #fff; }
.paddr .ico { margin-right: 4px; }
.paddr .dist { color: var(--accent); font-weight: 800; }
.pnote { margin: 4px 0 0; color: #ffc857; font-size: 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.act { text-decoration: none; color: #fff; font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); white-space: nowrap; }
.act.primary { background: var(--accent); color: #0c0c12; border-color: var(--accent); }
.pinfo { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.pinfo summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; }
.hours th { text-align: left; font-weight: 600; color: var(--muted); width: 56px; padding: 3px 0; }
.hours td { padding: 3px 0; }
.hours tr.today th, .hours tr.today td { color: #fff; font-weight: 900; }
.dir-foot { max-width: 640px; margin: 24px auto 40px; padding: 0 16px; color: var(--muted); font-size: 12px; text-align: center; }
.dir-foot a { color: var(--accent); }
.dir-foot .osm-attr { font-size: 10px; opacity: .7; }
.dir-foot .osm-attr a { color: inherit; }

/* Responsive (standing requirement): ≥44 px touch targets, multi-column on tablet/desktop. */
.act { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.open-only { min-height: 44px; margin: 0; cursor: pointer; }
.open-only input { width: 22px; height: 22px; }
.pinfo summary { min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; }
.pinfo summary::-webkit-details-marker { display: none; }
.pinfo summary::before { content: "▸"; transition: transform .15s; }
.pinfo[open] summary::before { transform: rotate(90deg); }
@media (min-width: 760px) {
  .dir-page main { max-width: 980px; }
  .dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .dir-foot { max-width: 980px; }
}
@media (min-width: 1200px) {
  .dir-page main { max-width: 1320px; }
  .dir-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-foot { max-width: 1320px; }
}

/* v1.7.0 favourites + who's there now */
.ptop { position: relative; }
.star { all: unset; box-sizing: border-box; position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 22px; color: var(--muted); cursor: pointer; border-radius: 50%; }
.star.on { color: #ffd166; }
.star:focus-visible { outline: 2px solid var(--accent); }
.phead { padding-right: 34px; }
.fav-hint { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
.fav-hint[hidden] { display: none; }
.nowhere { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 14px;
  background: rgba(200,255,61,.08); border: 1px solid rgba(200,255,61,.35); font-size: 13px; font-weight: 800; }
.nowhere .nh-more { color: var(--muted); }
