/* ===========================================================================
   16 — Business Directory
   Copy on one side, a listing as the customer sees it on the other: open or
   shut, which snooker tables are free, the rate, call and directions. Free
   and busy use the app's own received-green and udhaar-red.
   =========================================================================== */

.dir-in{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(28px,5vw,64px);align-items:center}
.dir-copy h2{font-size:clamp(26px,3.6vw,40px);font-weight:700;margin-top:12px}
.dir-copy > p{margin-top:18px;color:var(--ink-2);font-size:16.3px;max-width:58ch}

/* .ticks is drawn for the dark offline band; here it sits on the light page. */
.dir-ticks li{color:var(--ink)}

.dir-note{
  margin-top:22px;font-size:14px;font-weight:600;color:var(--accent-text);
  background:var(--cream);
  background:color-mix(in srgb,var(--cream) 55%,transparent);
  padding:12px 16px;border-radius:var(--r-md);max-width:58ch;
}
:root[data-theme="dark"] .dir-note{background:rgba(252,128,69,.12)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .dir-note{background:rgba(252,128,69,.12)}}

.dir-art{display:flex;justify-content:center}
.listing{
  width:min(340px,100%);background:var(--surface);border:1px solid var(--rule);
  border-radius:var(--r-xl);padding:20px;box-shadow:var(--sh-3);
}
.lst-top{display:flex;align-items:center;gap:12px}
.lst-av{
  width:42px;height:42px;border-radius:12px;flex:none;display:grid;place-items:center;
  background:var(--cobalt);color:#fff;font-family:var(--ff-display);font-weight:700;font-size:18px;
}
.lst-top > div{flex:1;min-width:0}
.lst-name{font-family:var(--ff-display);font-weight:700;font-size:16px;line-height:1.25}
.lst-sub{font-size:12.5px;color:var(--ink-3);margin-top:2px}
.lst-open{
  font-size:12px;font-weight:700;color:var(--paid);flex:none;
  background:rgba(22,163,74,.12);padding:5px 10px;border-radius:999px;
}

.lst-tables{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lst-t{border-radius:var(--r-md);padding:11px 12px;border:1px solid var(--rule);display:flex;flex-direction:column;gap:3px}
.lst-t b{font-size:13.5px;font-weight:650}
.lst-t span{font-size:12px;font-weight:700}
.lst-t.free{background:rgba(22,163,74,.08);border-color:rgba(22,163,74,.28)}
.lst-t.free span{color:var(--paid)}
.lst-t.busy{background:rgba(220,38,38,.07);border-color:rgba(220,38,38,.24)}
.lst-t.busy span{color:var(--udhaar)}

.lst-rate{margin-top:14px;font-size:13px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.lst-act{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lst-act span{
  text-align:center;font-size:13.5px;font-weight:650;color:var(--brand-text);
  padding:10px;border-radius:var(--r-md);box-shadow:inset 0 0 0 1.4px var(--rule-2);
}

@media (max-width:1000px){
  .dir-in{grid-template-columns:1fr}
  .dir-copy{text-align:center}
  .dir-copy > p,.dir-note{margin-inline:auto}
  .dir-ticks{max-width:520px;margin-inline:auto;text-align:start}
}
