/* Category, filter, location, search and all-categories pages. Loaded after site.css. */
.list-page{display:flex;flex-direction:column;gap:24px;padding-top:24px;padding-bottom:48px}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted)}
.crumbs a{text-decoration:none}
.crumbs [aria-current]{color:var(--ink);font-weight:600}
.list-head{display:flex;flex-direction:column;gap:12px}
.list-head h1{margin:0;font-size:36px;font-weight:800;letter-spacing:-.02em}
.list-head .lead{margin:4px 0 0;font-size:16px;color:var(--muted)}
.head-row{display:flex;align-items:center;gap:16px}
.head-row .tile-icon{width:56px;height:56px;border-radius:16px}

.list-body{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start}
.filters{flex:1 1 248px;max-width:280px}
.filters-toggle{display:none}
.filters-body{display:flex;flex-direction:column;gap:24px}
.filters-top{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.filters-top strong{font-size:18px}
.filters-top a{font-size:14px;font-weight:600;text-decoration:none}
.fgroup{display:flex;flex-direction:column;margin:0;padding:0;border:0;min-width:0}
.fgroup legend{margin-bottom:6px;padding:0;font-size:14px;font-weight:700;color:var(--ink)}
.opt{display:flex;align-items:center;gap:10px;min-height:40px;margin:0 -8px;padding:0 8px;border-radius:8px;color:var(--ink);font-size:15px;text-decoration:none}
a.opt:hover{background:var(--sand);color:var(--ink)}
.opt .box{flex:none;width:18px;height:18px;border:1.5px solid var(--line-2);border-radius:4px;background:var(--surface)}
.opt.is-on .box{border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}
.opt .lbl{flex:1}
.opt .cnt,.pill-opt .cnt{font-size:13px;color:var(--muted)}
.opt.is-off,.pill-opt.is-off{opacity:.45}
.more-locs summary{display:flex;align-items:center;min-height:40px;color:var(--accent);font-size:14px;font-weight:600;list-style:none;cursor:pointer}
.more-locs summary::-webkit-details-marker{display:none}
.more-locs[open] summary{color:var(--muted)}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill-opt{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid var(--line-2);border-radius:999px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
a.pill-opt:hover{border-color:var(--ink-2);color:var(--ink)}
.pill-opt.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.pill-opt.is-on:hover{color:#fff}
.pill-opt.is-on .cnt{color:var(--on-navy)}

.results{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.results-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.results-head p{margin:0;font-size:16px}
.sort-wrap{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.active-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip-on{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid #BFD9C9;border-radius:999px;background:var(--accent-tint);color:var(--accent-hover);font-size:14px;font-weight:600;text-decoration:none}
.chip-on:hover{border-color:var(--accent);color:var(--accent-hover)}
.link-clear{padding:0 4px;font-size:14px;font-weight:600;text-decoration:none}
.results .card-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))}
.empty-box{display:flex;flex-direction:column;gap:12px;align-items:center;padding:48px 24px;background:var(--surface);border:1px solid var(--line);border-radius:16px;text-align:center}
.empty-box strong{font-size:18px}
.empty-box span{color:var(--muted)}
.more-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:8px}
.more-wrap .btn{padding:0 28px}
.showing{font-size:14px;color:var(--muted)}
.js-more[aria-busy=true]{opacity:.6;pointer-events:none}

/* Simple categories: sub-category chips and a location select in one bar */
.filters-bar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.filters-bar .pills{min-width:0}
.loc-form{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;color:var(--muted)}
.loc-form .loc-label{font-weight:600;color:var(--ink-2)}
/* Location picker on the white bar: outlined button, panel opens to the left (it sits on the right edge) */
.loc-form .pick-btn{min-width:230px;min-height:44px;border:1px solid var(--line-2);background:var(--surface);font-size:14px}
.loc-form .pick-btn:hover,.loc-form .pick[open] .pick-btn{border-color:var(--ink-2);background:var(--surface)}
.loc-form .pick-panel{left:auto;right:0;width:max(100%,280px)}
[dir=rtl] .loc-form .pick-panel{left:0;right:auto}
.loc-form .pick-opt{font-size:14px}
.loc-form .btn{min-height:44px}
.js .js-hide{display:none}

/* All categories: every category open as a card. The heading is the link to the category; under it the
   most-reviewed sub-categories with counts, then "+N lainnya" to the category page (Kuliner gets a full row) */
.cat-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cat-card{display:flex;flex-direction:column;gap:14px;min-width:0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.cat-card.is-wide{grid-column:1/-1}
.cat-card-head{display:flex;align-items:center;gap:12px;margin:-6px;padding:6px;border-radius:12px;color:var(--ink);text-decoration:none}
.cat-card-head:hover{background:var(--sand);color:var(--ink)}
.cc-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cc-text strong{font-size:17px;font-weight:800;line-height:1.3}
.cc-text span{font-size:13px;color:var(--muted)}
.cc-arrow{flex:none;color:var(--muted);transition:transform .15s ease,color .15s ease}
.cat-card-head:hover .cc-arrow{color:var(--accent);transform:translateX(3px)}
[dir=rtl] .cc-arrow{transform:scaleX(-1)}
[dir=rtl] .cat-card-head:hover .cc-arrow{transform:scaleX(-1) translateX(3px)}
.cc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.cc-chip{display:flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink-2);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.cc-chip:hover{border-color:var(--ink-2);color:var(--ink)}
.cc-chip .cnt{font-size:12px;font-weight:500;color:var(--muted)}
.cc-more{display:flex;align-items:center;min-height:34px;padding:0 6px;color:var(--accent);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.cc-more:hover{color:var(--accent-hover);text-decoration:underline}
@media (max-width:1023px){
  .cat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Location pages: title on the city photo, other areas, category pills */
.loc-hero{padding:40px 0 44px;color:#fff}
.loc-hero .wrap{display:flex;flex-direction:column;gap:16px}
.loc-hero .crumbs,.loc-hero .crumbs a{color:var(--on-navy)}
.loc-hero .crumbs [aria-current]{color:#fff}
.loc-hero h1{display:flex;align-items:center;gap:12px;margin:0;font-size:40px;font-weight:800;letter-spacing:-.02em}
.loc-hero h1 svg{flex:none}
.loc-hero .sub{margin:0;font-size:17px;color:var(--on-navy)}
.loc-others{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:var(--on-navy)}
/* Other areas use the same glass chips as "Sering dicari" on the home photo; "all areas" has no fill */
.loc-others .chip-glass.is-all{background:transparent;font-weight:700}
.loc-others .chip-glass.is-all:hover{background:rgba(255,255,255,.14)}
.loc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:12px}
.loc-tile{display:flex;align-items:center;gap:10px;min-height:56px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none}
.loc-tile:hover{border-color:var(--accent);color:var(--ink)}
.loc-tile svg{flex:none;color:var(--accent)}
.loc-tile .name{flex:1;font-weight:700}
.loc-tile .cnt{font-size:13px;color:var(--muted)}

/* Search */
.search-hero{padding:8px 0 28px;background:var(--navy)}
.search-hero .hero-search input{font-size:17px;font-weight:600}
.search-title{margin:0;font-size:24px;font-weight:800}
/* "Sering dicari": small and in the green accent, so it stands apart from the category pills below (Dedy, 2026-11-04; 60% of that size on 2026-11-05) */
.search-popular{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px;color:var(--muted)}
.search-popular .chip{min-height:20px;padding:0 8px;border-color:#BFD9C9;background:var(--accent-tint);color:var(--accent-hover);font-size:12px;line-height:1.2}
.search-popular .chip:hover{border-color:var(--accent);color:var(--accent-hover)}
.search-empty h1{margin:0;font-size:22px;font-weight:800}
.search-empty .chip-list{justify-content:center}
.empty-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--sand);color:var(--muted)}
.card-title mark{padding:0 2px;border-radius:3px;background:#FEF3C7;color:inherit}

@media (max-width:767px){
  .list-page{gap:16px;padding-top:16px;padding-bottom:32px}
  .list-head h1{font-size:24px}
  .list-head .lead{font-size:14px}
  .head-row{align-items:flex-start;gap:12px}
  .head-row .tile-icon{width:44px;height:44px;border-radius:12px}
  .list-body{flex-direction:column;gap:16px}
  .filters{flex:none;width:100%;max-width:none;background:var(--surface);border:1px solid var(--line);border-radius:16px}
  .filters-toggle{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;font-weight:700;list-style:none;cursor:pointer}
  .filters-toggle::-webkit-details-marker{display:none}
  .filters-toggle .badge{display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--cta);color:#fff;font-size:12px}
  .filters-body{gap:20px;padding:0 16px 16px}
  .filters-top{min-height:0;padding-bottom:8px}
  .filters-top strong{font-size:15px}
  .results{flex:none;width:100%}
  .results-head{flex-direction:column;align-items:stretch}
  .sort-wrap>span{display:none}
  .results .card-grid{grid-template-columns:1fr}
  .filters-bar{flex-direction:column;align-items:stretch;padding:12px}
  .filters-bar .pills{flex-wrap:nowrap;overflow-x:auto;margin:0 -12px;padding:0 12px;scrollbar-width:none}
  .filters-bar .pills::-webkit-scrollbar{display:none}
  .loc-form{width:100%}
  .loc-form .pick{flex:1;min-width:0}
  .loc-form .pick-btn{min-width:0}
  .loc-form .pick-panel{left:0;right:0;width:auto}
  .cat-cards{grid-template-columns:1fr;gap:10px}
  .cat-card{gap:12px;padding:14px}
  /* Chips in one row that scrolls sideways, "+N lainnya" at its end */
  .cc-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:0 14px;scrollbar-width:none}
  .cc-chips::-webkit-scrollbar{display:none}
  .cc-chips li{flex:none}

  .loc-hero{padding:20px 0 24px}
  .loc-hero .wrap{gap:12px}
  .loc-hero h1{gap:8px;font-size:26px;letter-spacing:-.01em}
  .loc-hero h1 svg{width:24px;height:24px}
  .loc-hero .sub{font-size:15px}
  .loc-others,.cat-pills{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none}
  .loc-others::-webkit-scrollbar,.cat-pills::-webkit-scrollbar{display:none}
  .loc-others>*{flex:none;white-space:nowrap}
  .loc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .loc-tile{flex-wrap:wrap;gap:2px 8px;padding:10px 12px}
  .loc-tile .cnt{flex-basis:100%;padding-inline-start:28px}
  .search-hero{padding:4px 0 16px}
  .search-hero .hero-search{padding:0 6px 0 0}
  .search-hero .hero-search .btn-cta{display:flex;align-self:center;min-height:38px;padding:0 14px;border-radius:10px;font-size:14px}
  .search-title{font-size:20px}
  .search-empty{padding:32px 16px}
  .search-empty h1{font-size:18px}
}
