:root{
  --bg: #f6f2ea;
  --ink: #1c1a17;
  --muted: #8a8074;
  --line: rgba(28,26,23,.13);
  --accent: #c0603b;
  --tag-bg: #ece3d3;
  --tag-text: #8a5a3c;
  --dot-filled: var(--accent);
  --dot-empty: #ddd3c0;
}

*{box-sizing:border-box}
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family:'Monospace', sans-serif;
  -webkit-font-smoothing: antialiased;

  transition:
    background-color .5s ease,
    color .5s ease;
}

body.dark-mode{
  --bg:#1c1a17;
  --ink:#f6f2ea;
  --muted:#b7aa9c;
  --line:rgba(255,255,255,.12);
  --tag-bg:#2b2722;
  --tag-text:#e6d5bf;
}
body.dark-mode .toolbar{
  background-color: #1c1a17;
  color: #f6f2ea;
}
body.dark-mode .map-btn{
  --bg:#1c1a17;
  --ink:#f6f2ea;
  --muted:#b7aa9c;
  --line:rgba(255,255,255,.12);
  --tag-bg:#2b2722;
  --tag-text:#e6d5bf;
}

body.dark-mode .map-btn:hover{
  --bg:#1c1a17;
  --ink:#f6f2ea;
  --muted:#b7aa9c;
  --line:rgba(255,255,255,.12);
  --tag-bg:#2b2722;
  --tag-text:#e6d5bf;
}

button {
  margin: 0px;
  padding: 5px 5px;
  cursor: pointer;
}

.content {
  max-width: 100px;
  margin: 0 auto;
}
.theme-btn{
    width:40px;
    height:40px;
    border:none;
    background:transparent;
    cursor:pointer;
    position:relative;
    transition:.3s;
}

.theme-btn::before{
    content:'';
    position:absolute;
    inset:8px;
    border-radius:50%;
    background:
        radial-gradient(circle at 30% 30%,
            #8d6e63 0%,
            #6d4c41 70%,
            #5d4037 100%);
    box-shadow:
        inset -3px -3px 6px rgba(0,0,0,.15),
        inset 2px 2px 4px rgba(255,255,255,.2);
}

.theme-btn::after{
    content:'';
    position:absolute;
    width:6px;
    height:6px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    top:14px;
    left:18px;
    box-shadow:
        8px 5px 0 rgba(255,255,255,.1),
        -6px 10px 0 rgba(255,255,255,.08);
}

.theme-btn:hover{
    transform:scale(1.08) rotate(-8deg);
}

.header-meta{
    display:flex;
    align-items:center;
    gap:12px;
}
body.dark-mode .theme-btn::before{
    background:
        radial-gradient(circle at 30% 30%,
            #fff4b0 0%,
            #ffd54f 60%,
            #ffca28 100%);

    box-shadow:
        0 0 8px rgba(255,213,79,.5),
        0 0 20px rgba(255,213,79,.35),
        inset -3px -3px 6px rgba(0,0,0,.08);
}

body.dark-mode .theme-btn::after{
    background:rgba(255,255,255,.25);
}

h1,h2,h3{ font-family:'Monospace', serif; margin:0; }
em{ font-style: italic; color: var(--accent); font-family:'Monospace', serif; }

.top-bar{ height:4px; background: var(--ink); }

/* ---------- HEADER ---------- */
.site-header{
  display:flex; justify-content:space-between; align-items:center;
  padding: 20px 6vw;
  border-bottom: 1px solid var(--line);
}
.logo{
  font-family:'Monospace', serif;
  font-weight:600;
  font-size:15px;
  letter-spacing:.04em;
  display:flex; align-items:center; gap:8px;
}
.logo-dot{
  width:16px; height:16px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, #d8a892, #7c4a38);
  display:inline-block;
}
.header-meta{ font-size:13px; color: var(--muted); }

/* ---------- HERO ---------- */
.hero{ padding: 4rem 6vw 2.5rem; max-width: 760px; }

.eyebrow{
  display:flex; align-items:center; gap:10px;
  color: var(--accent);
  font-size:13px; font-weight:600;
  margin: 0 0 20px;
}
.eyebrow-line{ width:28px; height:1px; background: var(--accent); display:inline-block; }

.hero-title{
  font-size: clamp(38px, 6vw, 64px);
  line-height:1.15;
  font-weight:600;
  margin-bottom: 22px;
}

.hero-sub{
  color: var(--muted);
  font-size:15.5px;
  line-height:1.75;
  max-width: 520px;
  margin: 0 0 40px;
}

.stats-row{ display:flex; flex-wrap:wrap; gap:44px; }
.stat{ display:flex; flex-direction:column; gap:4px; }
.stat-value{ font-family:'Monospace', serif; font-weight:700; font-size:26px; }
.stat-label{ font-size:12px; color: var(--muted); }

@media (max-width:640px){
  .stats-row{ gap:28px; }
  .hero{ padding: 2.5rem 6vw 2rem; }
}

/* ---------- TOOLBAR ---------- */
.toolbar{
  position: sticky; top:0; z-index:5;
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center;
  padding: 16px 6vw;
  background: rgba(246,242,234,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);

  transition:
    background-color .5s ease,
    color .5s ease;
}

.filter-chips{ display:flex; flex-wrap:wrap; gap:8px; }

.chip{
  background: var(--tag-bg);
  border: 1px solid transparent;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 8px;
  font-family:'Monospace', sans-serif;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
  transition: all .2s ease;
}
.chip:hover{ border-color: var(--accent); }
.chip:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.active{ border-color: var(--accent); color: var(--accent); font-weight:700; }

.search-box{
  position:relative;
  flex: 0 1 240px;
}
.search-icon{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:12px; opacity:.5;
}
.search-box input{
  width:100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family:'Monospace', sans-serif;
  font-size:13.5px;
  padding: 9px 14px 9px 32px;
}
.search-box input:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.search-box input::placeholder{ color: var(--muted); }

.list-header{
  padding: 18px 6vw 6px;
  font-size:11.5px;
  letter-spacing:.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* ---------- LIST ---------- */
.cafe-list{ padding: 0 6vw; }

.cafe-row{
  display:flex; gap:18px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  opacity:0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.cafe-row.in-view{ opacity:1; transform:translateY(0); }

.row-index{
  font-family:'Monospace', serif;
  font-style: italic;
  font-size:13px;
  color: var(--muted);
  width:22px; flex-shrink:0;
  padding-top:4px;
}

.row-thumb{
  width:350px; height:200px;
  border-radius:10px;
  background-size:cover; background-position:center;
  flex-shrink:0;
  border: 1px solid var(--line);
}

.row-main{ flex:1; min-width:0; }

.row-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:12px; margin-bottom:8px;
}
.row-name{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.row-name h3{ font-size:19px; font-weight:600; }
.name-th{ font-family:'Monospace', serif; font-style:italic; font-size:13.5px; color: var(--muted); }

.row-toggle{
  background:none; border:none; cursor:pointer;
  color: var(--muted);
  font-size:13px;
  padding:4px 6px;
  transition: transform .3s ease;
  flex-shrink:0;
}
.row-toggle.open{ transform: rotate(180deg); color: var(--accent); }

.tag-row{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.tag{
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size:11px;
  font-weight:600;
  padding: 3px 9px;
  border-radius: 6px;
}

.row-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
  font-size:13px; color: var(--ink);
}
.stars{ color: var(--accent); letter-spacing:1px; }
.review-count{ color: var(--muted); font-size:12.5px; }
.price-dots{ letter-spacing:2px; font-size:10px; }
.price-dots .filled{ color: var(--dot-filled); }
.price-dots .empty{ color: var(--dot-empty); }
.price-range{ color: var(--muted); font-size:12.5px; }
.hours{ color: var(--muted); font-size:12.5px; }

.row-expand{
  max-height:0; overflow:hidden; opacity:0;
  transition: max-height .35s ease, opacity .3s ease, margin .35s ease;
}
.row-expand.open{ max-height:220px; opacity:1; margin-top:14px; }
.row-expand p{
  color: var(--muted); font-size:13.5px; line-height:1.7; margin:0 0 12px;
}
.row-address{ font-size:12.5px; color: var(--muted); margin-bottom:12px; }

.map-btn{
  background: var(--ink);
  color: var(--bg);
  border:none;
  font-size:12.5px; font-weight:600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor:pointer;
  font-family:'Monospace', sans-serif;
  transition: background .2s ease;
}
.map-btn:hover{ background: var(--accent); }

@media (max-width:640px){
  .cafe-row{ flex-direction:column; }
  .row-thumb{ width:100%; height:200px; }
}

.showing-count{
  text-align:center;
  color: var(--muted);
  font-size:13px;
  padding: 20px 0 10px;
}

/* ---------- MAPS CTA ---------- */
.maps-cta{
  padding: 4rem 6vw 3rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.maps-title{ font-size: clamp(28px, 4vw, 40px); line-height:1.2; margin: 4px 0 26px; }
.maps-btn{
  background: var(--ink);
  color: var(--bg);
  border:none;
  font-weight:600;
  font-size:14px;
  padding: 13px 26px;
  border-radius: 8px;
  cursor:pointer;
  transition: background .2s ease;
}
.maps-btn:hover{ background: var(--accent); }

/* ---------- FOOTER ---------- */
footer{
  text-align:center; padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-brand{ font-size:14px; margin:0 0 6px; }
.footer-brand em{ font-size:15px; }
.footer-sub{ color: var(--muted); font-size:12.5px; margin:0; }

/* ---------- MODAL ---------- */
.modal-backdrop{
  position:fixed; inset:0; background: rgba(28,26,23,0);
  display:flex; align-items:center; justify-content:center;
  z-index:10; padding: 20px;
  pointer-events:none;
  transition: background .3s ease;
}
.modal-backdrop.open{ background: rgba(28,26,23,.55); pointer-events:auto; }

.modal{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius:14px;
  max-width: 480px; width:100%;
  padding: 24px;
  position:relative;
  transform: scale(.92) translateY(16px);
  opacity:0;
  transition: transform .3s ease, opacity .3s ease;
}
.modal-backdrop.open .modal{ transform: scale(1) translateY(0); opacity:1; }

.modal-close{
  position:absolute; top:16px; right:16px;
  background:none; border:none; color: var(--muted);
  font-size:18px; cursor:pointer;
}
.modal iframe{ width:100%; height:220px; border:0; border-radius:10px; margin-top:14px; }
/* ---------- FOOTER ---------- */
footer{
  text-align:center; padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-brand{ font-size:14px; margin:0 0 6px; }
.footer-brand em{ font-size:15px; }
.footer-sub{ color: var(--muted); font-size:12.5px; margin:0; }
.footer-tiktok{
  display:inline-block;
  margin-top:16px;
  color: var(--ink);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color .2s ease, color .2s ease;
}
.footer-tiktok:hover{ border-color: var(--accent); color: var(--accent); }
 
/* ---------- MODAL ---------- */
.modal-backdrop{
  position:fixed; inset:0; background: rgba(28,26,23,0);
  display:flex; align-items:center; justify-content:center;
  z-index:10; padding: 20px;
  pointer-events:none;
  transition: background .3s ease;
}
.modal-backdrop.open{ background: rgba(28,26,23,.55); pointer-events:auto; }
 
.modal{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius:14px;
  max-width: 480px; width:100%;
  padding: 24px;
  position:relative;
  transform: scale(.92) translateY(16px);
  opacity:0;
  transition: transform .3s ease, opacity .3s ease;
}
.modal-backdrop.open .modal{ transform: scale(1) translateY(0); opacity:1; }
 
.modal-close{
  position:absolute; top:16px; right:16px;
  background:none; border:none; color: var(--muted);
  font-size:18px; cursor:pointer;
}
.modal iframe{ width:100%; height:220px; border:0; border-radius:10px; margin-top:14px; }


