/* sc/explore.css — Explore demo (explore.js). Uses --c / --cd / --ct from index.php. */

/* banner on the municipality page */
.xbanner { position:relative; display:block; border-radius:var(--r); overflow:hidden; color:#fff; margin-bottom:16px; min-height:168px; box-shadow:var(--shadow); isolation:isolate; }
.xbanner-bg { position:absolute; inset:0; background:center / cover no-repeat; transition:transform 6s ease; z-index:-2; }
.xbanner:hover .xbanner-bg { transform:scale(1.06); }
.xbanner::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(100deg, rgba(8,12,24,.82) 0%, rgba(8,12,24,.55) 55%, rgba(8,12,24,.15)); }
.xbanner-in { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:22px; min-height:168px; }
.xbanner-txt { max-width:440px; }
.xbanner h2 { margin:10px 0 4px; font-size:24px; font-weight:800; color:#fff; }
.xbanner p { margin:0; opacity:.9; font-size:14px; }
.xbanner-r { display:flex; flex-direction:column; align-items:flex-end; gap:12px; flex:0 0 auto; }
.xstack { display:flex; }
.xstack img { width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid #fff; margin-left:-12px; box-shadow:0 4px 10px rgba(0,0,0,.25); }
.xpill { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 11px; border-radius:999px; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); font-size:12px; font-weight:700; letter-spacing:.02em; color:#fff; }
@media (max-width:560px) { .xbanner-in { flex-direction:column; align-items:flex-start; } .xbanner-r { flex-direction:row-reverse; align-items:center; width:100%; justify-content:space-between; } }

/* home page teaser + doors */
.xteaser { max-width:1160px; margin:0 auto; padding:56px 20px 8px; }
.xdoors { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.xdoor { position:relative; display:flex; flex-direction:column; justify-content:flex-end; min-height:150px; border-radius:18px; overflow:hidden; color:#fff; padding:16px; isolation:isolate; box-shadow:var(--shadow); }
.xdoor img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .5s ease; }
.xdoor::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78)); }
.xdoor:hover img { transform:scale(1.07); }
.xdoor b { font-family:var(--display); font-size:18px; font-weight:800; letter-spacing:-.01em; }
.xdoor span { font-size:13px; opacity:.88; line-height:1.35; margin-top:2px; }
.xdoors.big .xdoor { min-height:210px; }
@media (max-width:820px) { .xdoors { grid-template-columns:repeat(2, 1fr); } .xdoors.big .xdoor { min-height:160px; } }

/* page */
body.on-explore #muni, body.on-explore #home { display:none !important; }
.xload { min-height:70vh; display:flex; align-items:center; justify-content:center; }
.xspin { width:38px; height:38px; border-radius:50%; border:3px solid var(--ct); border-top-color:var(--c); animation:xspin .8s linear infinite; }
@keyframes xspin { to { transform:rotate(360deg); } }

.xhero { position:relative; height:min(640px, 78vh); min-height:440px; color:#fff; overflow:hidden; background:var(--cd); }
.xslides, .xslide { position:absolute; inset:0; }
.xslide { background:center / cover no-repeat; opacity:0; transition:opacity 1.4s ease; transform:scale(1.02); }
.xslide.on { opacity:1; animation:xkb 9s ease-out forwards; }
@keyframes xkb { from { transform:scale(1.02) translate(0, 0); } to { transform:scale(1.13) translate(-1.5%, -1%); } }
.xhero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,12,24,.55) 0%, rgba(8,12,24,.08) 32%, rgba(8,12,24,.25) 60%, rgba(8,12,24,.88) 100%); pointer-events:none; }
.xhero-in { position:relative; z-index:1; height:100%; max-width:1160px; margin:0 auto; padding:84px 20px 34px; display:flex; flex-direction:column; justify-content:space-between; }
.xhero .back { color:#fff; opacity:.92; font-weight:600; align-self:flex-start; padding:6px 14px; border-radius:999px; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.3); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); font-size:14px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xhero-txt { margin-top:auto; max-width:720px; }
.xhero h1 { font-size:clamp(40px, 7vw, 76px); line-height:1; margin:14px 0 12px; font-weight:800; text-shadow:0 2px 24px rgba(0,0,0,.35); }
.xhero .lead { font-size:clamp(16px, 2vw, 20px); margin:0; opacity:.95; max-width:620px; text-shadow:0 1px 10px rgba(0,0,0,.4); }
.xdots { display:flex; gap:7px; margin-top:22px; }
.xdots button { width:8px; height:8px; padding:0; border-radius:99px; border:0; background:rgba(255,255,255,.45); transition:all .3s; }
.xdots button.on { width:26px; background:#fff; }
.xcredit { position:absolute; z-index:1; right:14px; bottom:10px; font-size:11px; opacity:.75; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6); }

.xbody { max-width:1160px; margin:-1px auto 0; padding:36px 20px 80px; }
.xq { font-size:22px; margin:0 0 14px; font-weight:800; }
.xsec { padding-top:52px; scroll-margin-top:60px; }

/* cards */
.xgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:16px; }
.xcard { display:flex; flex-direction:column; text-align:left; padding:0; border:1px solid var(--line); border-radius:var(--r); background:#fff; overflow:hidden; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.xcard:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(16,24,40,.12); }
.xcard-img { aspect-ratio:4 / 3; overflow:hidden; background:var(--ct); }
.xcard-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.xcard:hover .xcard-img img { transform:scale(1.05); }
.xcard-txt { padding:14px 16px 16px; display:flex; flex-direction:column; gap:4px; flex:1; }
.xcard em, .xev-txt em, .xkick { font-style:normal; font-size:12px; font-weight:700; color:var(--c); text-transform:uppercase; letter-spacing:.04em; }
.xcard h3 { margin:0; font-size:17px; line-height:1.25; font-family:var(--display); }
.xcard p { margin:0; color:var(--mut); font-size:13.5px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.xprice { margin-top:auto; padding-top:8px; font-size:14px; color:var(--ink); }

/* events */
.xevents { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); gap:16px; }
.xevent { display:flex; text-align:left; padding:0; border:1px solid var(--line); border-radius:var(--r); background:#fff; overflow:hidden; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.xevent:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(16,24,40,.12); }
.xev-img { position:relative; width:140px; flex:0 0 140px; background:center / cover no-repeat; min-height:130px; }
.xdate { position:absolute; left:10px; top:10px; background:#fff; border-radius:12px; padding:5px 10px; text-align:center; line-height:1.05; box-shadow:0 4px 12px rgba(0,0,0,.2); color:var(--ink); }
.xdate b { display:block; font-size:22px; font-family:var(--display); }
.xdate span { font-size:11px; font-weight:700; color:var(--c); text-transform:uppercase; }
.xev-txt { padding:14px 16px; display:flex; flex-direction:column; gap:4px; }
.xev-txt h3 { margin:0; font-size:16.5px; line-height:1.25; font-family:var(--display); }
.xev-txt p { margin:0; font-size:13.5px; }

/* businesses */
.xbiz .chips { padding-top:12px; }
.xbiz-bar { display:flex; align-items:center; justify-content:space-between; margin:6px 0 12px; }
.xseg { display:none; background:#fff; border:1px solid var(--line); border-radius:999px; padding:3px; }
.xseg button { border:0; background:none; height:32px; padding:0 16px; border-radius:999px; font-weight:600; font-size:13.5px; color:var(--mut); }
.xseg button.on { background:var(--ink); color:#fff; }
.xbiz-split { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.05fr); gap:16px; align-items:start; }
.xblist { display:flex; flex-direction:column; gap:10px; max-height:640px; overflow:auto; padding-right:4px; }
.xbmap { position:sticky; top:76px; height:640px; border-radius:var(--r); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow); z-index:0; }
.xbrow { display:flex; gap:14px; text-align:left; padding:12px; border:1px solid var(--line); border-radius:16px; background:#fff; transition:border-color .15s, box-shadow .15s; }
.xbrow:hover { border-color:var(--c); box-shadow:0 8px 20px rgba(16,24,40,.08); }
.xbrow > img, .xbicon { width:96px; height:96px; flex:0 0 96px; border-radius:12px; object-fit:cover; }
.xbicon { display:flex; align-items:center; justify-content:center; font-size:36px; }
.xbrow-txt { min-width:0; display:flex; flex-direction:column; gap:2px; }
.xbrow h3 { margin:0; font-size:16px; font-family:var(--display); }
.xbrow p { margin:0; font-size:13px; }
.xrate { display:flex; align-items:center; gap:6px; font-size:13px; }
.xrate b { font-size:13.5px; }
.xstars { display:inline-flex; gap:1px; }
.xstars i { width:13px; height:13px; background:#d0d5dd; clip-path:polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.xstars i.f { background:#f5a524; }
.xstars i.h { background:linear-gradient(90deg, #f5a524 50%, #d0d5dd 50%); }
.xopen b { font-weight:700; }
.xopen.o b { color:var(--ok); } .xopen.c b { color:var(--emer); }
.xopen { color:var(--mut); }
.xmatch { color:var(--c); font-weight:600; }
.xempty { padding:30px 0; text-align:center; }
.xpin { background:none; border:0; }
.xpin span { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); border:2px solid #fff; box-shadow:0 4px 10px rgba(0,0,0,.3); font-size:15px; transition:transform .15s; }
.xpin span i { font-style:normal; transform:rotate(45deg); }
.xpin.on span { transform:rotate(-45deg) scale(1.25); }
@media (max-width:860px) {
	.xseg { display:inline-flex; }
	.xbiz-split { grid-template-columns:1fr; }
	.xbiz-split.v-list .xbmap { position:absolute; left:-9999px; width:600px; }
	.xbiz-split.v-map .xblist { display:none; }
	.xblist { max-height:none; overflow:visible; }
	.xbmap { position:relative; top:0; height:70vh; }
	.xev-img { width:110px; flex-basis:110px; }
}

/* credits */
.xcredits { margin-top:56px; border-top:1px solid var(--line); padding-top:18px; font-size:13px; color:var(--mut); }
.xcredits summary { cursor:pointer; font-weight:600; }
.xcredits ul { columns:2 320px; padding-left:18px; }
.xcredits li { margin:3px 0; break-inside:avoid; }

/* detail sheet */
body.xnoscroll { overflow:hidden; }
.xmodal { position:fixed; inset:0; z-index:1100; background:rgba(15,23,40,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:20px; animation:xfade .2s ease; }
@keyframes xfade { from { opacity:0; } }
.xsheet { position:relative; width:min(680px, 100%); max-height:calc(100vh - 40px); overflow:auto; background:#fff; border-radius:24px; box-shadow:0 30px 80px rgba(0,0,0,.35); animation:xup .25s ease; }
@keyframes xup { from { transform:translateY(16px); opacity:.6; } }
.xsheet > .x { position:absolute; right:12px; top:12px; z-index:2; width:38px; height:38px; border-radius:50%; border:0; background:rgba(255,255,255,.92); font-size:24px; line-height:1; box-shadow:0 2px 10px rgba(0,0,0,.2); }
.xgal { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.xgal::-webkit-scrollbar { display:none; }
.xgal figure { position:relative; margin:0; flex:0 0 100%; scroll-snap-align:start; aspect-ratio:16 / 10; }
.xgal img { width:100%; height:100%; object-fit:cover; display:block; }
.xgal figcaption { position:absolute; right:10px; bottom:8px; font-size:11px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.7); }
.xgal.none { height:160px; align-items:center; justify-content:center; font-size:64px; }
.xsheet-b { padding:22px 26px 26px; }
.xsheet-b h2 { margin:6px 0 8px; font-size:26px; font-weight:800; line-height:1.15; }
.xsheet-b h3 { margin:22px 0 8px; font-size:16px; }
.xdesc { font-size:15.5px; color:var(--ink2); margin:12px 0 0; }
.xacts { display:flex; gap:10px; margin:16px 0 4px; flex-wrap:wrap; }
.xact { flex:1 1 0; min-width:82px; display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 6px; border-radius:14px; border:1px solid var(--line); background:var(--bg); color:var(--ink); font-size:12.5px; font-weight:600; transition:background .15s, border-color .15s; }
.xact:hover { background:var(--ct); border-color:var(--c); }
.xact i { font-style:normal; font-size:19px; }
.xbook { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; padding:14px 16px; border-radius:16px; background:var(--ct); }
.xbook b { display:block; font-size:20px; font-family:var(--display); }
.xtags { display:flex; flex-wrap:wrap; gap:6px; }
.xtags span { padding:5px 11px; border-radius:999px; background:var(--bg); border:1px solid var(--line); font-size:13px; }
.xtags span.on { background:var(--ct); border-color:var(--c); color:var(--cd); font-weight:600; }
.xhours { border-collapse:collapse; font-size:14px; width:100%; max-width:360px; }
.xhours td { padding:4px 0; }
.xhours td:last-child { text-align:right; color:var(--ink2); }
.xhours tr.on td { font-weight:700; color:var(--ink); }
.xinfo { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.xinfo p { margin:0; font-size:14px; }
.xrev { padding:12px 0; border-top:1px solid var(--line); }
.xrev-h { display:flex; gap:10px; align-items:center; }
.xrev-h b { font-size:14px; }
.xav { width:36px; height:36px; border-radius:50%; background:var(--ct); color:var(--cd); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 36px; }
.xrev p { margin:6px 0 0 46px; font-size:14px; color:var(--ink2); }
.xdemo { margin-top:22px; }
@media (max-width:560px) {
	.xmodal { padding:0; align-items:flex-end; }
	.xsheet { border-radius:22px 22px 0 0; max-height:92vh; }
	.xsheet-b { padding:18px 18px 28px; }
	.xinfo { grid-template-columns:1fr; }
}

.xtoast { position:fixed; left:50%; bottom:26px; transform:translate(-50%, 30px); opacity:0; z-index:1200; max-width:min(520px, calc(100% - 32px)); background:var(--ink); color:#fff; padding:12px 18px; border-radius:14px; font-size:14px; box-shadow:0 12px 30px rgba(0,0,0,.3); transition:all .25s; pointer-events:none; text-align:center; }
.xtoast.on { opacity:1; transform:translate(-50%, 0); }

/* top bar: transparent over the hero, solid once scrolled (like the home page) */
body.on-explore .top:not(.solid) { background:linear-gradient(180deg, rgba(8,12,24,.45), rgba(8,12,24,0)); backdrop-filter:none; -webkit-backdrop-filter:none; color:#fff; box-shadow:none; padding-top:14px; padding-bottom:14px; }
body.on-explore .top:not(.solid) .lang { border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.12); color:#fff; }
