:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f5f5f5;
  --muted: #9a9a9a;
  --gold: #d0b787;
  --gold-deep: #8f7033;
  --font: "Manrope", sans-serif;
  --display: "Suez One", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }

.mark {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold);
}

.home {
  width: min(420px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
}

.home__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.btn-here {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 0;
  background: var(--gold);
  color: #111;
  font: 800 1.28rem/1 var(--font);
  letter-spacing: -0.03em;
  border-radius: 16px;
  padding: 1.35rem 1.1rem;
  cursor: pointer;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 28px rgba(208, 183, 135, .28);
}
.btn-here svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}
.btn-here:active { filter: brightness(0.92); transform: translateY(1px); }

.places {
  display: grid;
  gap: .4rem;
}

.place {
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  text-align: left;
  border: 1px solid rgba(208, 183, 135, .32);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 10px;
  padding: .7rem .85rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: .75rem;
  row-gap: .1rem;
  align-items: center;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.place:hover,
.place:focus-visible {
  border-color: var(--gold);
  background: var(--bg-3);
  outline: none;
}
.place:active { filter: brightness(1.08); }
.place strong {
  grid-column: 1;
  grid-row: 1;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.place span {
  grid-column: 1;
  grid-row: 2;
  font-size: .75rem;
  color: var(--muted);
}
.place::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: .42rem;
  height: .42rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  justify-self: end;
}

.linkish {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: 650 .85rem/1 var(--font);
  cursor: pointer;
  padding: .45rem 0;
}
.linkish--block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem;
}

.loc-status {
  min-height: 1em;
  margin: .45rem 0 0;
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}
.loc-status:empty { display: none; }

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.appbar {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: .4rem;
  padding: .55rem .75rem .25rem;
}
.appbar__place {
  margin: 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 650;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iconbtn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--gold);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 auto;
}
.iconbtn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.iconbtn:disabled { opacity: .55; cursor: default; }
.iconbtn.is-busy svg { animation: spin .8s linear infinite; }
.iconbtn.iconbtn--labeled {
  width: auto;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .7rem 0 .55rem;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .4rem;
  font: 650 .78rem/1 var(--font);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.iconbtn--labeled svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.home__top .iconbtn {
  border-color: rgba(208, 183, 135, .35);
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.2rem 7rem;
  gap: .3rem;
  padding: .25rem .75rem .45rem;
}
.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 8px;
  padding: .45rem .5rem;
  font: 600 .78rem/1.2 var(--font);
}
.filters option { background: #111; color: #fff; }

.meta, .foot, .empty {
  margin: 0 .75rem;
  color: var(--muted);
  font-size: .72rem;
}
.meta { margin-bottom: .35rem; }
.foot { margin-top: .7rem; }
.empty { margin-top: .8rem; }

.table-wrap {
  margin: 0 .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table th,
.table td {
  padding: .5rem .35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: .78rem;
  text-align: left;
}
.table th {
  background: #141414;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.table th[aria-sort="ascending"]::after { content: " ▲"; color: var(--gold); }
.table th[aria-sort="descending"]::after { content: " ▼"; color: var(--gold); }

.table th:nth-child(1), .table td:nth-child(1) { width: 46%; }
.table th:nth-child(2), .table td:nth-child(2) { width: 12%; }
.table th:nth-child(3), .table td:nth-child(3) { width: 14%; }
.table th:nth-child(4), .table td:nth-child(4) { width: 10%; text-align: center; }
.table th:nth-child(5), .table td:nth-child(5) { width: 18%; text-align: right; }

.table tbody tr { cursor: pointer; }
.table tbody tr:active { background: rgba(208, 183, 135, 0.08); }

.biz {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  min-width: 0;
}
.biz__text {
  min-width: 0;
  display: grid;
  gap: .08rem;
}
.biz__icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .08rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(208, 183, 135, 0.12);
  color: var(--gold);
}
.biz__icon svg { width: .85rem; height: .85rem; }
.biz__name {
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.benefit { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); }
.biz__pay {
  font-size: .68rem;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tope, .dist { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; color: var(--muted); }

.maps {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  background: #222;
  color: var(--gold);
  text-decoration: none;
}
.maps svg { width: .9rem; height: .9rem; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: .7rem .9rem;
  font: 700 .85rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn--gold { background: var(--gold); color: #111; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.sheet {
  border: 0;
  padding: 0;
  max-width: min(400px, calc(100vw - 1rem));
  background: transparent;
  color: var(--ink);
}
.sheet::backdrop { background: rgba(0,0,0,.72); }
.sheet__card {
  margin: 0;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  position: relative;
}
.sheet__close {
  position: absolute;
  right: .55rem;
  top: .45rem;
  appearance: none;
  border: 1px solid var(--line);
  background: #1a1a1a;
  color: var(--ink);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
}
.sheet__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(208,183,135,.12);
  color: var(--gold);
  margin-bottom: .45rem;
}
.sheet__icon svg { width: 1.1rem; height: 1.1rem; }
.sheet h2 {
  margin: 0 0 .3rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  padding-right: 1.4rem;
}
.sheet__benefit {
  margin: 0 0 .35rem;
  color: var(--gold);
  font-weight: 700;
  font-size: .9rem;
}
.sheet__pay {
  margin: 0 0 .65rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.sheet__notes {
  margin: 0 0 .7rem;
  padding-left: 1rem;
  font-size: .85rem;
  line-height: 1.35;
  color: #ddd;
}
.sheet__notes li { margin: .2rem 0; }
.sheet__fine {
  border-top: 1px solid var(--line);
  padding-top: .45rem;
  margin-bottom: .8rem;
}
.sheet__fine summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.sheet__fine p {
  margin: .45rem 0 0;
  font-size: .72rem;
  line-height: 1.4;
  color: var(--muted);
  max-height: 9rem;
  overflow: auto;
}
.sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}
.sheet__actions .btn { width: 100%; }

@media (max-width: 560px) {
  .filters { grid-template-columns: minmax(0, 1fr) 7.2rem 6.1rem; }
}
