/* ONBE Explore (/kham-pha/). Mobile first; desktop has its own grid, not a stretched phone layout. */

/* Hero */
.ex-hero{position:relative;z-index:3;isolation:isolate;color:#fff;background:#3B3F9E;overflow:visible}
/* An open sheet must sit above result cards and the bottom bar. */
.ex-hero:has(.ex-sheet[open]){z-index:70}
.ex-hero-media{position:absolute;inset:0;z-index:-2;overflow:hidden;border-radius:0 0 22px 22px}
.ex-hero-media .hero-art{width:100%;height:100%;object-fit:cover}
.ex-hero::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:0 0 22px 22px;background:linear-gradient(180deg,rgba(20,18,60,.25),rgba(20,18,60,.15) 60%,rgba(20,18,60,.35))}
.ex-hero-inner{padding-top:10px;padding-bottom:18px}
.ex-hero .crumbs{display:none}
.ex-title{font-size:34px;line-height:1.1;font-weight:700;letter-spacing:-.02em;text-shadow:0 2px 12px rgba(0,0,0,.25)}
.ex-sub{margin-top:6px;font-size:14px;opacity:.95;text-shadow:0 1px 8px rgba(0,0,0,.3)}

/* Search form */
.ex-form{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.ex-search{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 8px 22px rgba(0,0,0,.16)}
.ex-search .ic{width:22px;height:22px;color:#344054;flex:none}
.ex-search input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none}
.ex-search input::placeholder{color:#8A93A6}
.ex-search:focus-within{box-shadow:0 0 0 3px rgba(22,96,232,.35),0 8px 22px rgba(0,0,0,.16)}
.ex-row{display:flex;gap:10px;position:relative;min-width:0}
.ex-sheet{position:static}
.ex-area{flex:1;min-width:0}
.ex-pill{display:flex;align-items:center;gap:8px;height:48px;padding:0 14px;border-radius:14px;background:#fff;color:var(--ink);font-size:14.5px;font-weight:600;cursor:pointer;list-style:none;box-shadow:0 6px 18px rgba(0,0,0,.14);white-space:nowrap}
.ex-pill::-webkit-details-marker{display:none}
.ex-pill .ic{width:20px;height:20px;flex:none}
.ex-area .ex-pill>.ic:first-child{color:var(--red)}
.ex-pill-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ex-pill-text .muted{font-weight:400}
.ex-chev{width:18px!important;height:18px!important;color:var(--muted)}
.ex-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 6px;border-radius:999px;background:var(--blue);color:#fff;font-size:12px}

/* Sheets: bottom sheet on phones, dropdown from 768px */
.ex-panel{position:fixed;left:0;right:0;bottom:0;z-index:60;max-height:78vh;overflow-y:auto;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:#fff;color:var(--ink);border-radius:20px 20px 0 0;box-shadow:0 -10px 40px rgba(16,24,40,.25)}
.ex-sheet[open]>.ex-pill{outline:2px solid var(--blue)}
.ex-sheet[open]::before{content:"";position:fixed;inset:0;z-index:59;background:rgba(16,24,40,.45)}
.ex-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:17px}
.ex-filter-input{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px}
.ex-filter-input .ic{width:18px;height:18px;color:var(--muted)}
.ex-filter-input input{flex:1;min-width:0;border:0;outline:none;background:none}
.ex-areas{margin-top:8px}
.ex-areas label{display:flex;gap:10px;align-items:flex-start;padding:10px 4px;border-bottom:1px solid var(--line);cursor:pointer}
.ex-areas input{margin-top:4px;accent-color:var(--blue);flex:none}
.ex-areas b{display:block;font-weight:600}
.ex-areas small{display:block;color:var(--muted);font-size:12.5px}
.ex-unverified{color:#B45309;font-style:normal}
.ex-note{margin:10px 0;font-size:12px;color:var(--muted)}
.ex-apply{width:100%}
.ex-fs{border:0;padding:0;margin:0 0 14px}
.ex-fs legend{font-weight:700;margin-bottom:8px}
.ex-chip{display:inline-flex;margin:0 6px 6px 0}
.ex-chip input{position:absolute;opacity:0}
.ex-chip span{padding:8px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;cursor:pointer}
.ex-chip input:checked+span{border-color:var(--blue);background:var(--blue-50);color:var(--blue-d);font-weight:600}
.ex-chip input:focus-visible+span{outline:2px solid var(--blue)}
.ex-check{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:14.5px}
.ex-check input{width:18px;height:18px;accent-color:var(--blue)}
.ex-panel-actions{display:flex;gap:10px}
.ex-panel-actions .btn{flex:1}

/* Groups: 4 x 2 on phones */
.ex-cats{margin-top:16px}
.ex-cats ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ex-cats a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:96px;padding:10px 4px;border-radius:16px;background:color-mix(in srgb,var(--c) 9%,#fff);text-align:center;font-size:12.5px;font-weight:600;line-height:1.25;color:var(--ink)}
.ex-cats a .ic{width:32px;height:32px;color:var(--c);stroke-width:1.8}
.ex-cats a:hover{background:color-mix(in srgb,var(--c) 16%,#fff);color:var(--ink)}
.ex-cats a[aria-current="page"]{outline:2px solid var(--c);background:color-mix(in srgb,var(--c) 16%,#fff)}

/* Tabs */
.ex-tabs{display:flex;margin-top:18px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.ex-tabs::-webkit-scrollbar{display:none}
.ex-tabs a{flex:1 0 auto;padding:12px 10px;text-align:center;font-size:14.5px;font-weight:500;color:#475467;border-bottom:3px solid transparent;white-space:nowrap}
.ex-tabs a[aria-current="page"]{color:var(--blue);font-weight:700;border-bottom-color:var(--blue)}
.ex-near{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--blue-50);font-size:13.5px}
.ex-near p{display:flex;gap:8px;align-items:flex-start;flex:1 1 220px}
.ex-near .ic{width:18px;height:18px;color:var(--blue);flex:none;margin-top:1px}
.ex-near .btn{border-radius:999px}
.ex-locate-msg{flex-basis:100%;color:#475467}

/* Results */
.ex-results{margin-top:12px}
.ex-meta{margin:6px 0 10px;font-size:13px;color:var(--muted)}
.ex-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.ex-card{flex-direction:row;align-items:stretch;padding:8px;gap:12px}
.ex-card .card-media{flex:none;width:38%;max-width:170px;aspect-ratio:4/3;border-radius:12px;align-self:center}
.ex-card .card-body{padding:2px 0;gap:4px;min-width:0}
.ex-card .card-title{display:flex;align-items:center;gap:4px;font-size:16px;-webkit-line-clamp:unset}
.ex-card .card-title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.p-verified-s .ic{width:16px;height:16px;color:#1A73E8}
.ex-kind{color:#344054}
.ex-kind .ic{color:var(--muted)}
.ex-desc{-webkit-line-clamp:1}
.ex-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.ex-dist{position:relative;z-index:2;display:inline-flex;align-items:center;gap:4px;flex:none;padding:4px 10px;border-radius:999px;background:var(--blue-50);color:var(--blue-d);font-size:12.5px;font-weight:600}
.ex-dist .ic{width:14px;height:14px}
.ex-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 12px;text-align:center;color:#475467}
.ex-empty b{color:var(--ink)}
.ex-pages{margin-top:22px}
.page-numbers.dots{border:0}

/* All categories */
.ex-allcats{margin-top:20px}
.ex-allcats ul{display:grid;gap:8px;margin-top:12px}
.ex-allcats a{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.ex-allcats b{display:block;font-weight:600}
.ex-allcats small{display:block;color:var(--muted);font-size:12.5px}
.ex-allcats-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--blue-50);color:var(--blue)}
.ex-allcats-go{margin-left:auto;color:var(--muted)}

@media (min-width:640px){
	.ex-list{grid-template-columns:repeat(2,minmax(0,1fr))}
	.ex-allcats ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width:768px){
	.ex-hero-media,.ex-hero::after{border-radius:0}
	.ex-hero-inner{padding-top:14px;padding-bottom:28px}
	.ex-hero .crumbs{display:block;margin-bottom:10px}
	.ex-hero .crumbs ol{color:rgba(255,255,255,.85)}
	.ex-hero .crumbs a{color:#fff}
	.ex-title{font-size:40px}
	.ex-form{grid-template-columns:minmax(0,1fr) 320px auto;align-items:center;max-width:980px}
	.ex-row{display:contents}
	.ex-sheet{position:relative}
	.ex-panel{position:absolute;left:auto;right:0;top:calc(100% + 8px);bottom:auto;width:380px;max-height:460px;border-radius:16px;box-shadow:0 16px 40px rgba(16,24,40,.22)}
	.ex-area .ex-panel{left:0;right:auto}
	.ex-sheet[open]::before{background:transparent}
	.ex-cats ul{grid-template-columns:repeat(8,minmax(0,1fr))}
	.ex-cats a{min-height:104px}
	.ex-tabs a{flex:0 0 auto;padding:12px 18px}
	.ex-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
	.ex-card{flex-direction:column;padding:0;gap:0}
	.ex-card .card-media{width:100%;max-width:none;border-radius:0}
	.ex-card .card-body{padding:12px 14px 14px}
	.ex-desc{-webkit-line-clamp:2}
	.ex-allcats ul{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (min-width:1200px){
	.ex-list{grid-template-columns:repeat(4,minmax(0,1fr))}
	.ex-allcats ul{grid-template-columns:repeat(4,minmax(0,1fr))}
}
