:root {
  --plum: #2b1b28;        /* aften, ink + header */
  --plum-soft: #5a4655;   /* secondary text */
  --paper: #fbf8f4;       /* page */
  --saffron: #e3a52a;     /* pins, primary action */
  --saffron-deep: #b9800f;
  --pistachio: #dfe5cc;   /* halal tags */
  --pistachio-ink: #3e4a1f;
  --line: #e6ddd3;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--plum);
  background: var(--paper);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--saffron-deep); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  background: var(--plum); color: var(--paper);
}
.wordmark { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.top-link { font-size: .95rem; text-decoration: none; padding: .4rem .9rem; border: 1px solid rgba(251,248,244,.35); border-radius: 999px; }
.top-link:hover { border-color: var(--saffron); }

/* Intro */
.intro { background: var(--plum); color: var(--paper); padding: 1.5rem var(--pad) 2.25rem; }
.intro h1 { font-size: clamp(2rem, 8.4vw, 4.4rem); line-height: 1.06; max-width: 14ch; letter-spacing: -.01em; }
.lede { margin: 1.1rem 0 0; max-width: 46ch; color: #d9ccd5; font-size: 1.05rem; }

/* Map */
.map-wrap { position: relative; }
#map { height: 68svh; min-height: 380px; max-height: 720px; background: #e9e4dc; }
.leaflet-container { font-family: var(--sans); }
.pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--saffron); border: 3px solid var(--plum);
  transition: transform .15s ease;
}
.pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--plum); }
.pin.is-active { background: var(--paper); }
.pin-icon:hover .pin { transform: rotate(-45deg) scale(1.12); }

/* Detail sheet: bottom sheet on phone, side panel on desktop */
.sheet {
  position: absolute; z-index: 500; left: .75rem; right: .75rem; bottom: .75rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem 1.25rem 1.35rem;
  animation: rise .22s ease-out;
}
.sheet[hidden] { display: none; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.sheet-close {
  position: absolute; top: .55rem; right: .6rem; width: 40px; height: 40px;
  border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--plum-soft); cursor: pointer; border-radius: 50%;
}
.sheet-close:hover { background: var(--line); }
.sheet h3 { font-size: 1.55rem; line-height: 1.15; padding-right: 2.5rem; }
.meta { margin: .35rem 0 0; color: var(--plum-soft); font-size: .95rem; }
.sheet .desc { margin: .8rem 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.tag { background: var(--pistachio); color: var(--pistachio-ink); font-size: .85rem; font-weight: 500; padding: .25rem .7rem; border-radius: 999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn-solid { background: var(--saffron); color: var(--plum); }
.btn-solid:hover { background: #eab445; }
.sheet .btn { margin-top: 1.1rem; width: 100%; }

/* List */
.list { padding: 3rem var(--pad) 1rem; max-width: 1200px; margin: 0 auto; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.list h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.count { margin: 0; color: var(--plum-soft); white-space: nowrap; }
.filters { display: grid; gap: .6rem; margin: 1.25rem 0 1.5rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  flex: none; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  font: 500 .93rem var(--sans); color: var(--plum); background: transparent; border: 1px solid #cfc2b6;
}
.chip[aria-pressed="true"] { background: var(--plum); color: var(--paper); border-color: var(--plum); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.card { border-bottom: 1px solid var(--line); }
.card button {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem;
  width: 100%; padding: 1.15rem .25rem; cursor: pointer;
}
.card button:focus-visible { outline: 2px solid var(--saffron-deep); outline-offset: -2px; }
.card h3 { font-size: 1.35rem; line-height: 1.2; grid-column: 1; }
.card .meta { grid-column: 1; margin: 0; }
.card .area { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .92rem; color: var(--plum-soft); }
.card button:hover h3 { color: var(--saffron-deep); }
.card.is-active h3 { color: var(--saffron-deep); }
.empty { padding: 1.5rem 0; color: var(--plum-soft); }

/* Business */
.biz {
  max-width: 1200px; margin: 3rem auto 0; padding: 2.5rem var(--pad) 3.5rem;
}
.biz h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); max-width: 18ch; line-height: 1.15; }
.biz p { max-width: 52ch; margin: 1rem 0 1.5rem; color: var(--plum-soft); }

.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--plum); color: #d9ccd5; font-size: .95rem;
}
.foot span:first-child { font-family: var(--serif); color: var(--paper); }
.foot-links { display: flex; gap: 1.25rem; }

@media (min-width: 900px) {
  .intro { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  #map { height: 70vh; }
  .sheet { left: auto; right: 1.5rem; top: 1.5rem; bottom: auto; width: 380px; }
  .filters { grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
  .cards { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .biz { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; }
  .biz p { margin-top: 0; }
  .biz .btn { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
