/* Jalan ShopMoreMore — mall street */

:root {
  --cream: #FBF5EA;
  --ink: #2A211B;
  --muted: #7A6A5C;
  --terracotta: #B5552F;
  --teal: #2F6B57;
  --gold: #E9C46A;
  --line: rgba(42, 33, 27, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--terracotta); color: #fff; font-family: var(--serif); font-size: 20px;
}
.brand-name { font-size: 18px; }
.top-link {
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink);
}
.top-link:hover { background: var(--ink); color: var(--cream); }

/* ---------- intro + finder ---------- */
.intro { padding: 8px clamp(16px, 4vw, 40px) 18px; max-width: 900px; }
.intro h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.01em;
}
.intro h1 em { font-style: normal; color: var(--terracotta); }
.intro > p { margin-top: 10px; color: var(--muted); max-width: 60ch; }

.finder { margin-top: 18px; }
.search {
  display: flex; align-items: center; gap: 8px; max-width: 420px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.search:focus-within { border-color: var(--teal); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; width: 100%; color: var(--ink); }
.chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1.5px solid var(--line);
}
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.found { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 1.5em; }

/* ---------- the street ---------- */
.street {
  --H: clamp(260px, min(56svh, 96vw), 470px);
  --pave: 46px;
  --road: 34px;
  position: relative;
  height: calc(var(--H) + var(--pave) + var(--road));
  overflow: hidden;
  user-select: none;
}
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #CFE7F2 0%, #EAF3EE 55%, #FBEBD3 100%);
  transition: background 0.6s;
}
.far {
  position: absolute; left: 0; bottom: calc(var(--pave) + var(--road) + var(--H) * 0.32);
  width: 3600px; height: calc(var(--H) * 0.42);
  display: flex; will-change: transform;
}
.far svg { width: 1200px; height: 100%; flex: none; }
.hill-back { fill: #B9D6C6; }
.hill-front { fill: #A3C7B4; }
.roofs { fill: #C9B7A3; opacity: .55; }

.row {
  position: absolute; inset: 0 0 var(--road) 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  outline: none;
}
.row::-webkit-scrollbar { display: none; }
.track {
  position: relative;
  display: flex; align-items: flex-end;
  height: 100%; width: max-content;
  padding: 0 40vw 0 clamp(16px, 4vw, 40px);
  /* pavement */
  background:
    linear-gradient(180deg, #D9CBB0 0, #D9CBB0 4px, transparent 4px) 0 calc(100% - var(--pave)) / 100% var(--pave) no-repeat,
    repeating-linear-gradient(90deg, #E6DAC2 0 38px, #DCCFB4 38px 40px) 0 100% / 100% var(--pave) no-repeat;
}
.track > * { margin-bottom: var(--pave); flex: none; }

/* road below */
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--road);
  background:
    linear-gradient(180deg, #8C8F8A 0 5px, #4A4E52 5px) ,
    #4A4E52;
}
.road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 3px;
  background: repeating-linear-gradient(90deg, #E9E3D3 0 26px, transparent 26px 52px);
  opacity: 0.8;
}

/* shop lots */
.lot {
  position: relative; display: block; height: var(--H);
  text-decoration: none; color: inherit;
  transition: transform 0.25s ease, filter 0.3s, opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.lot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lot:hover, .lot:focus-visible { transform: translateY(-4px); }
.lot:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.lot.dim { opacity: 0.35; filter: grayscale(0.8); }
.lot .fan { fill: #F3E6C0; }
.lot .board { fill: #1E1712; }
.lot .interior { fill: #4A3424; }
.lot .door { fill: #E8B972; transition: fill 0.25s; }
.lot:hover .door, .lot:focus-visible .door { fill: #F7CF8A; }

.sign {
  position: absolute; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--gold);
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
  pointer-events: none;
}
.vacant .sign { color: #F1E6CF; letter-spacing: 0.06em; }

.plaque {
  position: absolute; left: 50%; transform: translate(-50%, 0);
  width: calc(var(--H) * 0.14); height: calc(var(--H) * 0.14);
  border-radius: 50%; overflow: hidden;
  background: #FBF6EC; border: 3px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  display: grid; place-items: center; pointer-events: none;
}
.plaque img { width: 100%; height: 100%; object-fit: cover; }
.plaque .letter { font-family: var(--serif); font-weight: 700; color: var(--terracotta); font-size: calc(var(--H) * 0.07); }
.plaque.note {
  border-radius: 4px; width: calc(var(--H) * 0.17); height: auto; padding: 6px 4px;
  background: #fff; border: 2px solid #C0392B; color: #C0392B;
  font-weight: 800; font-size: calc(var(--H) * 0.03); line-height: 1.15; text-transform: uppercase; text-align: center;
  transform: translate(-50%, 0) rotate(-3deg);
}

.caption {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px;
  text-align: center; font-size: 12px; font-weight: 600; color: #5C4B3D;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px;
  pointer-events: none;
}
.vacant .caption { color: var(--terracotta); }
.vacant { cursor: pointer; }
.vacant:hover .plaque.note { transform: translate(-50%, -3px) rotate(-3deg); }

/* lamps & signs */
.lamp { height: var(--H); width: calc(var(--H) * 0.09); }
.lamp svg { width: 100%; height: 100%; display: block; }
.lamp .bulb { fill: #FFF4CF; }

.roadsign { height: var(--H); width: calc(var(--H) * 0.62); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; margin-right: 12px; }
.roadsign .plate {
  background: #1F4E9C; color: #fff; border: 3px solid #fff; outline: 2px solid #1F4E9C;
  border-radius: 6px; padding: 8px 12px; text-align: center; box-shadow: 0 6px 14px rgba(0,0,0,.2);
  max-width: 100%;
}
.roadsign b { display: block; font-size: calc(var(--H) * 0.03); letter-spacing: 0.06em; white-space: nowrap; }
.roadsign small { display: block; font-size: calc(var(--H) * 0.026); opacity: 0.85; }
.roadsign .post { width: 6px; height: calc(var(--H) * 0.5); background: #8C9196; }

/* walker */
.walker {
  position: absolute; left: 24%; bottom: calc(var(--road) + 6px);
  width: calc(var(--H) * 0.12); height: calc(var(--H) * 0.24);
  transform: translateX(-50%); z-index: 3; pointer-events: none;
}
.walker svg { width: 100%; height: 100%; overflow: visible; }
.walker.left svg { transform: scaleX(-1); }
.walker .leg path, .walker .arm path { stroke: #2A211B; stroke-width: 7; stroke-linecap: round; fill: none; }
.walker .leg-back path, .walker .arm-back path { stroke: #4B3A2E; }
.walker .body { fill: var(--teal); }
.walker .head { fill: #C98E63; }
.walker .hat { fill: #E9C46A; }
.walker .bag { fill: var(--terracotta); }
.walker .leg, .walker .arm { transform-origin: 30px 70px; }
.walker .arm { transform-origin: 30px 40px; }
.walker.walking svg { animation: bob 0.36s ease-in-out infinite; }
.walker.walking .leg-front, .walker.walking .arm-back { animation: swing 0.36s ease-in-out infinite alternate; }
.walker.walking .leg-back, .walker.walking .arm-front { animation: swing 0.36s ease-in-out infinite alternate-reverse; }
.walker.left.walking svg { animation-name: bob-left; }
@keyframes swing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes bob-left { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-3px); } }

/* nav + hint */
.nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(251, 245, 234, 0.92); box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font-size: 28px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
}
.nav.prev { left: 12px; }
.nav.next { right: 12px; }
.nav:disabled { opacity: 0; pointer-events: none; }
.hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4;
  background: rgba(42,33,27,.78); color: #fff; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: opacity .4s;
}
.hint.gone { opacity: 0; }
@media (hover: none) { .nav { display: none; } }

/* evening */
.night .sky { background: linear-gradient(180deg, #1B2340 0%, #3B3557 60%, #7A4E52 100%); }
.night .hill-back { fill: #3A4060; }
.night .hill-front { fill: #4A4868; }
.night .roofs { fill: #2E3350; }
.night .lot svg { filter: brightness(0.82); }
.night .lot .fan { fill: #FFC966; }
.night .lot .door { fill: #FFC46B; }
.night .lot .interior { fill: #6B4220; }
.night .lantern { filter: drop-shadow(0 0 6px #FF5A3C); }
.night .lamp .bulb { fill: #FFE7A0; filter: drop-shadow(0 0 8px #FFD36B); }

/* ---------- directory ---------- */
.directory { padding: 36px clamp(16px, 4vw, 40px) 8px; max-width: 900px; }
.directory h2, .open h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.15; }
.dir-list { list-style: none; margin-top: 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dir-list a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.dir-list a:hover { border-color: var(--teal); }
.d-letter {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 2px solid var(--gold); color: var(--terracotta); font-family: var(--serif); font-weight: 700;
}
.d-letter img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.d-letter { overflow: hidden; }
.dir-list b { display: block; }
.dir-list small { display: block; color: var(--muted); font-size: 13px; }
.d-go { margin-left: auto; color: var(--muted); }
.dir-list .empty { color: var(--muted); }

/* ---------- open your shop ---------- */
.open { padding: 40px clamp(16px, 4vw, 40px) 48px; }
.open-inner {
  max-width: 900px; background: #fff; border: 1.5px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 4vw, 40px);
  background-image: linear-gradient(90deg, var(--terracotta) 0 25%, var(--gold) 25% 50%, var(--teal) 50% 75%, #C2533A 75%);
  background-size: 100% 6px; background-repeat: no-repeat;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); }
.open h2 { margin-top: 6px; }
.open-sub { margin-top: 8px; color: var(--muted); }
.perks { list-style: none; margin-top: 22px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.perks li { padding-left: 14px; border-left: 3px solid var(--gold); }
.perks strong { display: block; }
.perks span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.open-cta { margin-top: 26px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--teal); color: #fff; padding: 13px 22px; border-radius: 12px;
}
.btn:hover { background: #24574A; }
.soon { color: var(--muted); font-weight: 600; }
.soon[hidden], .btn[hidden] { display: none; }

.foot { padding: 20px clamp(16px, 4vw, 40px) 36px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lot, .hint { transition: none; }
}
