/* Directory: grouped tiles, jump chips, category sheet, search results */

/* The tiles are buttons now (they open the sheet). Same look as before. */
.tile {
  display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 6px 6px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: center;
  cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.tile:active { transform: scale(.97); }
.tile:hover, .tile:focus-visible { border-color: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.12); outline: none; }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tile img, .tile .ph { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; display: block; }
.tile img { object-fit: cover; background: var(--bg); }
.tile > span { display: block; padding: 0 2px; }

/* Placeholder until the artwork exists: emoji on brand yellow */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--black); font-size: 4.6rem; line-height: 1.35; padding-top: .5em;
  overflow: hidden;
}

/* Group headings */
.group { margin-bottom: 22px; scroll-margin-top: 10px; }
.group h3 {
  margin: 0 0 10px; padding-left: 10px; font-size: 1.05rem; letter-spacing: .1px;
  border-left: 6px solid var(--yellow);
}

/* Row of chips that jump to a group */
.jump {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 14px; padding: 2px 14px 6px;
  scroll-snap-type: x proximity; scroll-padding-left: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump[hidden], #groups[hidden], .results[hidden] { display: none; }
.jump-chip {
  flex: none; scroll-snap-align: start; min-height: 40px; display: flex; align-items: center;
  padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line);
  color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.jump-chip:hover, .jump-chip:focus-visible { border-color: var(--ink); outline: none; }
.jump-chip:active { background: var(--yellow); color: var(--black); border-color: var(--black); }

/* Search results */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.results a {
  display: flex; flex-direction: column; gap: 2px; min-height: var(--tap); padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none;
}
.results a:hover, .results a:focus-visible { border-color: var(--ink); outline: none; }
.results .path { color: var(--muted); font-size: .85rem; }

/* Category sheet: slides up from the bottom on phones, centred card on larger screens */
#cat-dialog {
  border: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--card);
  width: 100%; max-width: 100%; max-height: 82vh; max-height: 82dvh; overflow-y: auto;
  margin: auto 0 0; border-radius: 20px 20px 0 0;
}
#cat-dialog::backdrop { background: rgba(0,0,0,.55); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.icon-btn {
  flex: none; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--bg); color: inherit; font-size: 1.1rem; cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { border-color: var(--ink); outline: none; }
#cat-dialog .hint { margin: 0 0 12px; }
#cat-all { margin-bottom: 14px; }
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.sub-list a {
  display: flex; align-items: center; min-height: var(--tap); padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600;
}
.sub-list a:hover, .sub-list a:focus-visible { border-color: var(--ink); background: var(--bg); outline: none; }
.sub-list a:active { background: var(--yellow); color: var(--black); border-color: var(--black); }

@media (min-width: 600px) {
  .jump { margin: 0 0 14px; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  #cat-dialog { width: min(560px, calc(100vw - 32px)); margin: auto; border-radius: var(--radius); border: 1px solid var(--line); }
  .sub-list { grid-template-columns: 1fr 1fr; }
  .ph { font-size: 5rem; }
}

#browse { scroll-margin-top: 8px; }

/* ---------- Tourists button (home page) + Tourists page ---------- */
.tourist-btn {
  display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 12px 14px;
  background: var(--yellow); color: #111; text-decoration: none; border-radius: 16px;
  border: 3px solid #111; box-shadow: 0 4px 0 #111; min-height: 88px;
}
.tourist-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #111; }
.tourist-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tourist-btn img { width: 72px; height: 72px; flex: none; display: block; }
.tb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-text strong { font-size: 1.7rem; font-weight: 900; line-height: 1.05; }
.tb-text small { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.tb-go { font-size: 2.6rem; font-weight: 900; line-height: 1; flex: none; }
.crumb { margin: 4px 0 10px; }
.crumb a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--ink); }
.tourist-head { display: flex; align-items: center; gap: 14px; background: var(--yellow); color: #111; border: 3px solid #111; border-radius: 16px; padding: 12px 14px; margin-bottom: 18px; }
.tourist-head img { width: 64px; height: 64px; flex: none; }
.tourist-head h1 { margin: 0; font-size: 1.8rem; font-weight: 900; }
.tourist-head p { margin: 2px 0 0; font-weight: 600; }

/* ---------- request + leads pages ---------- */
.pg-title { font-size: 1.5rem; margin: 4px 0 8px; }
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }
.card-box[hidden], #rq-mine[hidden] { display: none; }
.card-box label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.card-box input[type=text], .card-box input[type=email], .card-box input[type=tel], .card-box textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.card-box fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.card-box legend { font-weight: 700; margin-bottom: 4px; }
.card-box .opt { flex-direction: row; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 600; }
.card-box .opt input { width: 22px; height: 22px; }
.sm { font-size: 1rem; margin: 18px 0 6px; }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ld-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ld-row a, .ld-row select { min-height: 44px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }

.claim-btn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: -6px 0 16px; padding: 12px 16px; min-height: 52px;
  background: #111; color: var(--yellow); border-radius: 14px; text-decoration: none; font-size: 1.05rem; border: 3px solid #111; }
.claim-btn span { font-weight: 900; }
.claim-btn:active { transform: scale(.98); }
.claim-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .claim-btn { border-color: var(--yellow); } }

.staff-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.staff-bar .btn { flex: 1 1 140px; }

/* ---------- sorting page ---------- */
.tabs { display: flex; gap: 8px; margin: 8px 0; }
.tr-grid { list-style: none; margin: 0 0 90px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-grid li { position: relative; }
.tr-tile { display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: 12px; background: var(--card); overflow: hidden; cursor: pointer; font: inherit; color: inherit; }
.tr-tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.tr-tile img, .tr-tile .nopic { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #888; }
.tr-tile .nopic { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.tr-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 3px 6px; font-size: .75rem; min-height: 28px; }
.tr-pin { color: var(--ink); text-decoration: none; font-size: 1.1rem; min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.tr-kind { position: absolute; top: 6px; left: 6px; background: #111; color: #ff0; font-size: .7rem; font-weight: 800; padding: 2px 6px; border-radius: 8px; pointer-events: none; }
.tr-check { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 900; display: none; align-items: center; justify-content: center; pointer-events: none; }
.tr-tile[aria-pressed="true"] ~ .tr-check { display: flex; }
.tr-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 3px solid var(--yellow); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
.tr-bar[hidden] { display: none; }
.tr-count { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-actions .btn { flex: 1 1 130px; min-height: 48px; padding: 6px 10px; }
#tr-dialog { width: min(92vw, 520px); border: 0; border-radius: 16px; padding: 16px; background: var(--card); color: var(--ink); }
#tr-dialog::backdrop { background: rgba(0,0,0,.55); }
#tr-dialog label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 10px 0; }
#tr-dialog input[type=search], #tr-dialog input[type=text], #tr-dialog textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
#tr-dialog .opt { flex-direction: row; align-items: center; gap: 10px; min-height: var(--tap); }
#trd-results li { cursor: pointer; }
.tc-card .tc-thumbs { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0; }
.tc-card .tc-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.tc-card label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 8px 0; }
.tc-card input, .tc-card select, .tc-card textarea { width: 100%; min-height: var(--tap); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.tc-card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tc-card .row .btn { flex: 1 1 140px; }

@media (min-width: 700px) { .tr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tr-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .tr-actions .btn { flex: 0 1 220px; } }

.tr-summary { font-weight: 700; margin: 6px 0; }
.tr-tools { margin: 4px 0 10px; }
.tr-agent { position: absolute; bottom: 34px; left: 6px; background: var(--yellow); color: #111; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; pointer-events: none; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-noloc { color: var(--muted); font-size: .7rem; }
#tr-dialog select { width: 100%; min-height: var(--tap); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
#tr-dialog .btn { width: 100%; margin: 6px 0; }

.tabs { flex-wrap: wrap; }
.tc-card .hours-edit { margin: 10px 0; }
.tc-card .hours-edit .row { align-items: center; }
.tc-card .hours-edit input[type=time] { width: auto; flex: 1 1 110px; }
.tc-card .chips { margin: 6px 0; }

/* ---------- business search results ---------- */
.biz-h { margin: 14px 0 8px; font-size: 1.05rem; border-left: 6px solid var(--yellow); padding-left: 10px; }
.biz-results a { display: flex; align-items: center; gap: 12px; }
.biz-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg); }
.biz-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.biz-tags { font-size: .82rem; color: var(--muted); }

/* ---------- business page ---------- */
.bz h1 { margin: 6px 0 2px; font-size: 1.7rem; }
.bz-local { margin: 0 0 6px; font-weight: 600; }
.bz .acts { margin: 12px 0; }
.bz-h { font-size: 1.05rem; margin: 18px 0 6px; border-left: 6px solid var(--yellow); padding-left: 10px; }
.bz-photos { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; align-items: center; }
.bz-photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.bz-photos a { flex: none; }
.bz-photos .photos-link { align-self: center; }
.bz-tags { max-height: none; }

.results.biz-results a { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; gap: 12px; }
.biz-text { flex: 1; align-items: flex-start; }

.lvl-badge { display: inline-block; margin: 6px 0; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 800; font-size: .85rem; }
.lvl-badge .hint { color: #333; font-weight: 600; }
.lvl-hist { margin: 8px 0; display: flex; flex-direction: column; gap: 2px; }
#ld-chips { margin-bottom: 10px; }

/* ---------- map page ---------- */
.map { position: relative; height: calc(100vh - 300px); min-height: 360px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #cfd8dc; touch-action: none; user-select: none; cursor: grab; margin: 8px 0; }
.mp-tiles, .mp-pins { position: absolute; inset: 0; }
.mp-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mp-pin { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; border: 2px solid #111; background: #9aa0a6; color: #111; font: 800 .78rem/22px system-ui, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mp-pin.photo { min-width: 18px; height: 18px; border-radius: 9px; font-size: .65rem; line-height: 14px; background: #ddd; border-width: 1px; }
.mp-pin.target { background: #e53935; color: #fff; }
.mp-pin.drop { background: var(--yellow); min-width: 32px; height: 32px; border-radius: 16px; }
.mp-pin.l1, .mp-pin.l2, .mp-pin.l3 { background: #ffb300; }
.mp-pin.l4, .mp-pin.l5, .mp-pin.l6 { background: #43a047; color: #fff; }
.mp-pin.l7, .mp-pin.l8, .mp-pin.l9, .mp-pin.l10 { background: #1e88e5; color: #fff; }
.mp-pin.me { background: #1565c0; border-color: #fff; min-width: 16px; height: 16px; padding: 0; }
.mp-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.mp-zoom button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #111; background: #fff; color: #111; font-size: 1.5rem; font-weight: 800; cursor: pointer; }
.mp-attr { position: absolute; right: 4px; bottom: 2px; background: rgba(255,255,255,.8); color: #333; font-size: .7rem; padding: 0 4px; border-radius: 4px; }

.rv-top { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 12px 0; display: grid; gap: 10px; }
.rv-top select { width: 100%; min-height: 44px; }
.rv-bh { margin: 8px 0 0; font-size: 1rem; }
.lq-img { display: block; position: relative; width: 100%; aspect-ratio: 1; background: #ddd; border-radius: 8px; overflow: hidden; text-align: center; line-height: 90px; }
.lq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lq-tag { position: absolute; left: 4px; bottom: 4px; background: #111; color: #ff0; font-size: .7rem; padding: 1px 6px; border-radius: 6px; line-height: 1.4; }
.lister-need { background: #fff7c2; border: 2px solid #111; border-radius: 12px; padding: 10px; margin: 10px 0; }
.lister-need ul { margin: 6px 0 0 18px; padding: 0; }
.lister-need li.ok { color: #1a6b1a; }
.lister-need li.no { color: #a00; font-weight: 700; }

.vs-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 10px 0; }
.vs-stat { background: #111; color: #ffeb00; border-radius: 12px; padding: 8px; text-align: center; }
.vs-stat strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.vs-stat span { font-size: .8rem; }
.vs-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0; }
.vs-top { display: flex; gap: 10px; align-items: center; }
.vs-th { width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; background: #ddd; display: grid; place-items: center; }
.vs-th img { width: 100%; height: 100%; object-fit: cover; }
.vs-badge { display: inline-block; font-size: .85rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #eee; margin: 2px 0; }
.vs-badge.follow { background: #fff1b8; border: 1px solid #111; }
.vs-badge.claimed { background: #cdeccd; }
.vs-badge.live { background: #111; color: #ffeb00; }
.vs-card select, .vs-card input[type=text] { width: 100%; min-height: 44px; }

/* Visits page: bigger text for use outdoors */
.vs-card { font-size: 1.15rem; }
.vs-card strong { font-size: 1.3rem; }
.vs-card .hint, .vs-card small, .vs-card .vs-log { font-size: 1rem; }
.vs-card select, .vs-card input[type=text] { font-size: 1.15rem; min-height: 52px; }
.vs-card .btn, .vs-card button { font-size: 1.15rem; min-height: 52px; }
.vs-badge { font-size: 1.05rem; }
.vs-th { width: 84px; height: 84px; }
.vs-stat strong { font-size: 2rem; }
.vs-stat span { font-size: 1rem; }
#vs-chips button { font-size: 1.1rem; min-height: 48px; }
.vs-card .code-now { background: #ffeb00; border: 3px solid #111; border-radius: 14px; padding: 10px; margin: 10px 0; text-align: center; font-weight: 800; font-size: 1.2rem; }
.vs-card .code-now strong { display: block; font-size: 3rem; letter-spacing: .2em; line-height: 1.2; }

/* Favorites */
.star { background: none; border: 0; font-size: 2rem; line-height: 1; min-width: 48px; min-height: 48px; cursor: pointer; color: #555; padding: 0; }
.star.on { color: #e0a800; text-shadow: 0 0 0 #111; }
.grid > li { position: relative; }
.tile-star { position: absolute; top: 2px; right: 2px; min-width: 44px; min-height: 44px; font-size: 1.7rem; background: rgba(255,255,255,.85); border-radius: 50%; }
.sub-row { display: flex; align-items: center; gap: 6px; }
.sub-row > a { flex: 1; }
.fav-bar { margin: 8px 0; }
.favs { background: #fff8c2; border: 2px solid #111; border-radius: 14px; padding: 8px 12px; margin: 10px 0; }
.favs-head { display: flex; justify-content: space-between; align-items: center; }
.favs-head h3 { margin: 0; }
.fav-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.fav-list a { display: block; padding: 12px; border: 1px solid #111; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; font-weight: 700; }
.mover { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.fav-list .mover { margin: 0; }
.mv { min-width: 48px; min-height: 48px; font-size: 1.2rem; border: 2px solid #111; background: #fff; border-radius: 10px; cursor: pointer; }
.mv:disabled { opacity: .3; }
.mv.x { color: #b00020; border-color: #b00020; }
.az-letter { margin: 14px 0 4px; background: #111; color: #ffeb00; padding: 2px 10px; border-radius: 8px; position: sticky; top: 0; }
#az-dialog .path { font-weight: 400; color: var(--muted); }
#bz-star { vertical-align: middle; }

/* How-it-works page */
.ht { margin: 18px 0; }
.ht h2 { background: #111; color: #ffeb00; padding: 6px 12px; border-radius: 10px; }
.ht h3 { margin: 18px 0 4px; border-left: 6px solid #ffeb00; padding-left: 8px; }
.ht li { margin: 6px 0; }
.ht details { border: 2px solid #111; border-radius: 12px; margin: 8px 0; background: #fff; }
.ht summary { padding: 12px; font-weight: 800; cursor: pointer; }
.ht details p { margin: 0; padding: 0 12px 12px; }

/* Admin menu: wide buttons in one column */
.ad-menu { display: grid; gap: 12px; margin: 14px 0; }
.ad-btn { display: block; width: 100%; box-sizing: border-box; text-align: left; font-size: 1.2rem; padding: 18px 16px; min-height: 64px; }

/* A-Z list: fit the screen, stars always visible on the right */
#az-dialog { width: min(560px, calc(100vw - 24px)); max-height: 90vh; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; padding: 12px; border: 3px solid #111; border-radius: 14px; background: var(--card); color: var(--ink); }
#az-dialog::backdrop { background: rgba(0,0,0,.55); }
#az-dialog .sub-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
#az-dialog .sub-row > a { flex: 1 1 0; min-width: 0; display: block; overflow-wrap: anywhere; }
#az-dialog .sub-row > a .path { display: block; font-size: .85rem; }
#az-dialog .star, .sub-row .star { flex: 0 0 56px; width: 56px; min-width: 56px; min-height: 56px; font-size: 2.2rem; border: 2px solid #111; border-radius: 12px; background: #fff; color: #111; }
#az-dialog .star.on, .sub-row .star.on { background: #ffeb00; color: #111; }

/* A-Z list: title, close button and letters stay pinned at the top; only the list scrolls */
#az-dialog[open] { display: flex; flex-direction: column; height: 90vh; height: 90dvh; overflow: hidden; }
#az-dialog .sheet-head, #az-dialog .hint, #az-dialog #az-jump { flex: none; }
#az-dialog #az-jump { overflow-x: auto; margin: 4px 0 8px; }
#az-dialog #az-list { flex: 1 1 auto; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
#az-dialog #az-list .az-letter { top: 0; z-index: 1; }
.az-sticky { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0; }
.fav-bar.ad-menu { margin: 12px 0; }
/* A-Z page: Home button and letters stay pinned at the top while the list scrolls */
.az-top { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 2px solid #111; margin: 0 -14px; padding: 8px 14px 4px; }
.az-top .az-home { min-height: 52px; padding: 10px 16px; margin-bottom: 6px; text-align: center; }
.az-top .jump { margin: 0 -14px; }
.az-sticky { position: static; }
#az-page .az-letter { position: static; scroll-margin-top: 150px; }
html { scroll-padding-top: 150px; }
#az-page .sub-list a { display: block; }
#az-page .sub-list .path { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }

/* Home: Favorites and A-Z side by side, small */
.fav-bar.ad-menu { grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.fav-bar .ad-btn { min-height: 48px; padding: 8px 6px; text-align: center; font-size: 1rem; }
#empty { margin: 8px 0; font-size: 1rem; font-weight: 800; color: #c00; }
.az-nav { display: flex; gap: 10px; margin: 16px 0 40px; }
.az-nav .btn { flex: 1; min-height: 56px; font-size: 1.3rem; }
.az-nav [hidden] { display: none; }
button.jump-chip { font: inherit; cursor: pointer; }
/* A-Z whole list: compact rows, one line each where possible */
.az-compact { gap: 4px; }
#az-page .az-compact a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 44px; padding: 6px 12px; border-radius: 8px; font-size: 1rem; }
#az-page .az-compact .path { display: inline; font-size: .8rem; }
#az-page .az-letter { margin: 14px 0 6px; padding: 2px 12px; font-size: 1.2rem; }
.az-mode { width: 100%; margin: 8px 0; min-height: 44px; }

/* Narrow or zoomed screens (for example Firefox on Android): nothing may spill out */
.tb-text strong { font-size: clamp(1.05rem, 6.2vw, 1.7rem); overflow-wrap: break-word; }
.tb-text small { overflow-wrap: anywhere; }
.mainnav a { overflow-wrap: anywhere; }
.claim-btn { margin: 8px 0; padding: 8px 16px; min-height: 44px; justify-content: center; }

/* Home page: smaller banners so the categories show sooner */
.tourist-btn { gap: 10px; margin: 2px 0 8px; padding: 6px 10px; min-height: 56px; border-radius: 12px; border-width: 2px; box-shadow: 0 2px 0 #111; }
.tourist-btn img { width: 44px; height: 44px; }
.tb-text strong { font-size: clamp(1rem, 5vw, 1.3rem); }
.tb-text small { font-size: .8rem; line-height: 1.15; }
.tb-go { font-size: 1.7rem; }
.hero { padding: 10px 12px !important; margin: 6px 0 !important; }
.hero h1 { font-size: 1rem !important; margin: 0 0 4px; }
.hero p { font-size: .85rem; margin: 0 0 6px; }
.hero .cta { display: flex; gap: 8px; }
.hero .cta .btn { flex: 1; min-height: 40px; padding: 6px 8px; font-size: .95rem; }
.fav-bar .ad-btn { min-height: 44px; }
.location, .loc, #location-buttons { margin-top: 0; margin-bottom: 4px; }
.hero #hero-text { display: none; }
.hero h1 { font-size: .9rem !important; line-height: 1.25; }
.hero .cta .btn { font-size: .85rem; min-height: 38px; }
.topbar-inner { padding-top: 4px; padding-bottom: 4px; }
.brand img.banner { height: 34px; }
.hero .cta { flex-direction: row !important; flex-wrap: nowrap; }
.fav-bar .ad-btn { font-size: .85rem; min-height: 40px; padding: 4px; }
.tourist-btn { min-height: 48px; }
.tb-text strong { font-size: 1.3rem; }

.card-box .ok { color: #070; font-weight: 900; font-size: 1.1rem; margin: 8px 0; }

/* Plans page: sample free, $5 and $10 ads */
.pl { margin: 18px 0; }
.pl > h2 { background: #111; color: #ffeb00; padding: 6px 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.pl > h2 small { font-size: .8rem; font-weight: 600; }
.pl-ad { background: #fff; border: 2px solid #111; border-radius: 14px; padding: 12px; margin-top: 8px; }
.pl-ad h3 { margin: 6px 0 0; font-size: 1.3rem; }
.pl-meta { color: var(--muted); margin: 0 0 6px; }
.pl-ph { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.pl-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pl-gallery img, .pl-gallery span { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: #ddd; font-weight: 800; }
.pl-vid { background: #111; color: #ffeb00; text-align: center; padding: 10px; border-radius: 10px; margin: 6px 0; font-weight: 800; }
.pl-lock { list-style: none; margin: 8px 0 0; padding: 8px; background: #f0f0ea; border-radius: 10px; color: #777; display: grid; gap: 4px; }
.pl-yes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-weight: 700; }
.pl-badge { display: inline-block; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #ffeb00; border: 1px solid #111; vertical-align: middle; }
.pl-badge.hot { background: #ff5a3c; color: #fff; border-color: #ff5a3c; }
.pl-tags span { display: inline-block; background: #fff8c2; border: 1px solid #111; border-radius: 99px; padding: 2px 10px; margin: 2px 4px 2px 0; font-size: .85rem; }
.pl-promo { background: #ff5a3c; color: #fff; font-weight: 900; padding: 10px; border-radius: 10px; margin-bottom: 8px; text-align: center; font-size: 1.1rem; }
.pl-featured { border-width: 4px; border-color: #ff5a3c; }
.pl-results { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.pl-results li { background: #fff; border: 1.5px solid #ccc; border-radius: 10px; padding: 10px; }
.pl-results .r10 { border: 3px solid #ff5a3c; background: #fff4f1; }
.pl-results .r5 { border: 2px solid #111; background: #fffbe0; }
.pl-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl-visit-box { background: #fff8c2; border: 3px solid #111; border-radius: 12px; padding: 12px; font-weight: 800; font-size: 1.1rem; line-height: 1.6; margin: 8px 0; }
.pl-promo-btn { width: 100%; margin: 8px 0 4px; background: #ff5a3c; color: #fff; border-color: #ff5a3c; font-weight: 900; min-height: 52px; }
.pl-promo-text { background: #fff8c2; border: 2px solid #111; border-radius: 10px; padding: 10px; font-weight: 800; }
.pl-promo-text[hidden] { display: none; }
.pl-coupon { background: #ffe5e0; border-color: #c00; color: #c00; }

/* Searching: only the search box, the count, Cancel and the results show */
.search-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.search-status strong { font-size: 1rem; }
.search-status .btn { min-height: 44px; }
.search-status[hidden] { display: none; }
body.searching .tourist-btn, body.searching .claim-btn, body.searching .fav-bar, body.searching .hero, body.searching #staff-bar,
body.searching .location, body.searching .greeting-line, body.searching #jump, body.searching #groups { display: none !important; }
/* the logo: bigger, but not too big */
.brand img.banner { height: 52px; }
@media (min-width: 430px) { .brand img.banner { height: 58px; } }
@media (min-width: 900px) { .brand img.banner { height: 66px; } }

.pl-visit-line { margin: 4px 0 8px; font-weight: 700; }
.pl-visit-line.no { color: #b00020; }
.pl-visit-line.yes { color: #1b5e20; }
.code-expired { color: #b00020; font-weight: 700; }

/* choose your area */
.loc-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.loc-link .loc-badge { margin: 0; }
.loc-change { font-weight: 700; text-decoration: underline; }
.pk h2 { margin: .5rem 0; }
.pk-prov { border: 2px solid #ddd; border-radius: 12px; margin: 6px 0; padding: 4px 12px; }
.pk-prov.live { border-color: #f5c400; background: #fffbe6; }
.pk-prov summary { font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pk-tag { font-size: .8rem; font-weight: 700; color: #777; }
.pk-prov.live .pk-tag { color: #1b5e20; }
.pk-town { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; min-height: 44px; }
.pk-town small { color: #777; }
/* the logo: big, but the header must never wrap on a phone */
.topbar-inner { flex-wrap: nowrap; }
.brand { min-width: 0; flex: 0 0 auto; }
.brand img.banner { height: clamp(30px, 9.5vw, 52px); width: auto; max-width: none; flex: 0 0 auto; }
@media (max-width: 429px) { #lang-btn { padding-left: 10px; padding-right: 10px; } .topbar-right .actions { gap: 4px; } .topbar .link-btn, .topbar .pill-btn, #lang-btn { font-size: .82rem; padding-left: 8px; padding-right: 8px; } .topbar-right { gap: 6px; } }
@media (min-width: 430px) { .brand img.banner { height: 58px; } }
@media (min-width: 900px) { .brand img.banner { height: 66px; } }
.topbar-right { flex: 0 0 auto; }

/* Advertise page v2: four clear plan cards */
.pp-open { background: #fff8c2; border: 2px solid #111; border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-weight: 700; }
.pp-open p { margin: 0 0 6px; }
.pp-bar { height: 12px; background: #fff; border: 2px solid #111; border-radius: 99px; overflow: hidden; }
.pp-bar i { display: block; height: 100%; width: 0; background: #111; }
.pp { background: #fff; border: 3px solid #111; border-radius: 16px; margin: 16px 0; padding: 0 0 14px; overflow: hidden; }
.pp > *:not(header) { margin-left: 14px; margin-right: 14px; }
.pp header { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #111; color: #ffeb00; padding: 10px 14px; }
.pp header h2 { margin: 0; font-size: 1.15rem; }
.pp header p { margin: 2px 0 0; color: #fff; font-size: .9rem; }
.pp-price { text-align: right; white-space: nowrap; } .pp-price b { font-size: 1.8rem; display: block; line-height: 1; } .pp-price small { font-size: .75rem; color: #fff; }
.pp-5 header { background: #ffeb00; color: #111; } .pp-5 header p, .pp-5 .pp-price small { color: #111; }
.pp-10 { border-color: #ff5a3c; } .pp-10 header { background: #ff5a3c; color: #fff; }
.pp-25 { border-color: #888; } .pp-25 header { background: #555; color: #ffeb00; } .pp.soon { opacity: .92; }
.pp-list { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 6px; }
.pp-list li::before { content: "✓ "; font-weight: 900; color: #1b5e20; }
.pp-plus { font-weight: 800; margin-top: 10px; margin-bottom: 0; }
.pp-visit { font-weight: 700; margin-top: 10px; margin-bottom: 0; } .pp-visit.no { color: #b00020; } .pp-visit.yes { color: #1b5e20; }
.pp-soon { font-weight: 800; color: #555; margin-top: 10px; }
.pp-coupon { background: #ffe5e0; border: 2px solid #c00; color: #c00; border-radius: 10px; padding: 10px; font-weight: 700; }
.pp-ex { margin-top: 10px; } .pp-ex summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; text-decoration: underline; cursor: pointer; }
.pp .btn { margin-top: 8px; width: calc(100% - 28px); text-align: center; }
.pp-info { margin: 16px 0; } .pp-info summary { font-weight: 800; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.pp-pre { white-space: pre-line; background: #fff8c2; border: 2px solid #111; border-radius: 12px; padding: 12px; font-weight: 700; }
.pp .pl-promo-btn { font-size: 1rem; min-height: 48px; }

.pp .pp-ex-btn { font-size: 1rem; min-height: 48px; }
.pp-dlg { width: min(94vw, 30rem); max-height: 90vh; overflow: auto; border: 3px solid #111; border-radius: 16px; padding: 14px; }
.pp-dlg::backdrop { background: rgba(0,0,0,.6); }
.pp-dlg-h { margin: 0 0 8px; font-weight: 800; }
.pp-dlg .pl-ad { margin-top: 0; }
.pp-dlg .btn { width: 100%; margin-top: 12px; }
.pl-en { margin: 0; color: var(--muted); font-size: .9rem; }

.chk { list-style: none; margin: 0 0 10px; padding: 10px; border: 2px solid #111; border-radius: 12px; display: grid; gap: 4px; font-weight: 700; }
.chk li.no { color: #c00; } .chk li.ok { color: #1b5e20; }
input.bad, select.bad, textarea.bad { border: 3px solid #c00 !important; background: #fff0ee; }

.who-btn { font: inherit; font-weight: 800; background: #fff; color: #111; border: 2px solid #111; border-radius: 99px; padding: 6px 14px; min-height: 40px; cursor: pointer; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.greeting-line { display: none; }
.loc-link .loc-badge strong { text-decoration: underline; }

.of-card { border: 1px solid #ccc; border-radius: 10px; padding: 8px; margin: 8px 0; }
.of-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .of-row label { display: grid; gap: 2px; font-weight: 700; font-size: .85rem; }

/* Door log: counts are plain numbers, not buttons. Buttons are filled; links are underlined blue. */
.vs-stat { background: #fff; color: #111; border: 2px dashed #999; }
.vs-stat strong { color: #111; }
.vs-card a { color: #0645ad; text-decoration: underline; }
.vs-card .vs-gps { display: block; margin: 6px 0; min-height: 44px; }
.vs-th { cursor: zoom-in; border: 0; padding: 0; }
#vs-lb img, #vs-lb video { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; }
#vs-lb { width: min(96vw, 50rem); border: 3px solid #111; border-radius: 14px; padding: 10px; }
#vs-lb::backdrop { background: rgba(0,0,0,.75); }
.vs-card label { display: block; margin-top: 8px; }
.vs-card .vs-gps { font-weight: 700; display: flex; align-items: center; }
.vs-pick { display: block; margin: 8px 0; font-weight: 700; } .vs-pick select { width: 100%; min-height: 52px; font-size: 1.15rem; }

.vs-namerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .vs-crm { min-height: 40px !important; font-size: .95rem !important; padding: 2px 12px; }
#vs-crm { width: min(96vw, 36rem); max-height: 90vh; overflow: auto; border: 3px solid #111; border-radius: 14px; padding: 12px; } #vs-crm::backdrop { background: rgba(0,0,0,.7); }
.bz-supporter { display: inline-block; background: #fff8c2; border: 2px solid #111; border-radius: 99px; padding: 2px 12px; font-weight: 800; margin: 4px 0; }
.badge-note { background: #fff8c2; border: 2px solid #111; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
#pv { width: min(96vw, 32rem); max-height: 90vh; overflow: auto; }
.ph-box { border: 2px solid #111; border-radius: 12px; padding: 10px; margin-bottom: 10px; } .ph-box img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 8px; } .ph-btn { display: block; text-align: center; cursor: pointer; }
.bz-supporter.no { background: #eee; font-weight: 600; color: #444; }
.help-fab { position: fixed; right: 12px; bottom: 12px; z-index: 20; background: #fff8c2; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

.vis { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 8px 0; flex-wrap: wrap; }
.vis i { display: inline-block; width: 22px; height: 12px; border: 2px solid #111; border-radius: 3px; background: #fff; }
.vis i.on { background: #ffe600; }
.vis.l1 b { color: #b00020; } .vis.l2 b { color: #8a5a00; } .vis.l3 b { color: #1b5e20; } .vis.l4 b { color: #0b3d91; }
.first-box { background: #e8f5e9; border: 2px solid #1b5e20; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-weight: 700; }

/* Header: the message icon, the name and the language globe are plain (no bubble) and large enough to see easily. */
.who-btn, #msg-link { background: none; border: 0; border-radius: 0; padding: 4px 8px; min-height: 0; font-size: 1.1rem; font-weight: 800; max-width: 8rem; }
#msg-link svg { width: 30px; height: 30px; }
#lang-btn { background: none !important; border: 0 !important; padding: 4px 8px !important; min-height: 0; display: inline-flex; align-items: center; box-shadow: none; }
#lang-btn svg { width: 30px; height: 30px; }
.topbar-right { gap: 4px; min-width: 0; }
@media (max-width: 429px) { .topbar-right .who-btn { font-size: 1rem; max-width: 6.5rem; } .topbar .brand img { max-width: 120px; height: auto; } }

/* Tighter: no wasted space between the message icon, the name and the globe. */
.topbar-right { gap: 0 !important; }
.topbar-right .actions { gap: 0 !important; margin: 0; }
#msg-link, #btn-logout.who-btn, .topbar .link-btn.who-btn { padding: 4px 3px !important; margin: 0 !important; }
#msg-n:empty { display: none; }
#lang-btn { padding: 4px 3px !important; margin: 0 !important; }
.lang { margin: 0; }

/* The view drop-down on home: a dark pill with the current choice and an arrow. */
.view-pick { margin: 8px 0; }
.view-pick select { width: 100%; min-height: 48px; font: inherit; font-weight: 800; font-size: 1rem; color: #ffeb00; background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23ffeb00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; border: 0; border-radius: 14px; padding: 8px 44px 8px 16px; appearance: none; -webkit-appearance: none; }
.view-pick select option { color: #111; background: #fff; }

/* The country next to the place name is full color, not gray. */
.loc-badge .loc-sub, .loc-link .loc-sub { color: inherit !important; opacity: 1 !important; }

/* Search icon inside the search box, on the left, easy to see. */
#filter { padding-left: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat 14px center; background-size: 26px 26px; }

/* Country name is bold like the place; the search box is the full width on large screens too. */
.loc-badge .loc-sub { font-weight: 800; }
.cat-head { flex-direction: column !important; align-items: stretch !important; }
#filter { width: 100%; box-sizing: border-box; max-width: none; }

/* No "Browse categories" heading on screen (still there for screen readers). */
#cat-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Benefits for finishing the free ad within 3 days. */
.benefits .bh { font-size: 1.2rem; font-weight: 800; margin: 0 0 6px; }
.benefits ul { list-style: none; margin: 0 0 8px; padding: 0; }
.benefits li { margin: 6px 0; font-weight: 700; line-height: 1.35; }

/* New this week */
.new-week { margin: 10px 0; }
.new-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; margin: 6px 0; }
.new-all { font-size: 1rem; font-weight: 800; color: inherit; }
.new-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.new-card { display: block; background: #fff; border: 2px solid #111; border-left: 8px solid #ffeb00; border-radius: 12px; padding: 10px 12px; color: inherit; text-decoration: none; }
.new-card strong { display: block; font-size: 1.05rem; }
.new-cat { display: block; font-weight: 700; font-size: .9rem; margin: 2px 0; }
.new-desc { display: block; font-size: .95rem; line-height: 1.35; }

/* How customers find you (bottom of the plans page) */
.pp-find { margin: 22px 0 10px; }
.pp-find ul { list-style: none; margin: 0; padding: 0; }
.pp-find li { background: #fff; border: 2px solid #111; border-left: 8px solid #ffeb00; border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-weight: 700; line-height: 1.35; }
