/* Almaty NOW v2.4 — UI corrections for mobile and desktop */
.home-when{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 16px;align-items:center}
.home-when button{flex:1 1 auto;border:1px solid #dcd3fa;background:#fff;color:#6846ca;border-radius:14px;padding:12px 10px;font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 4px 12px #2b23670a}
.home-when button:first-child{background:#6943d2;color:#fff;border-color:#6943d2}
#homeEvents{grid-template-columns:1fr!important}
#homeEvents .card{min-height:194px}
#homeEvents .card-content{flex:1}
#homeTourHeading{margin-top:25px}
.plan-mode-bar{margin:18px 0 14px;padding:16px;background:#fff;border:1px solid #e6dff8;border-radius:20px;box-shadow:0 7px 22px #24204c0c}
.plan-mode-heading span{font-size:11px;color:#8350cd;letter-spacing:2px;font-weight:850}
.plan-mode-heading h2{font-size:21px;line-height:1.2;margin:5px 0 12px;color:#1d2446}
.plan-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.plan-mode-btn{border:1px solid #e0d9f5;background:#f9f8ff;color:#504f77;border-radius:13px;min-height:47px;padding:9px 8px;font-size:12px;line-height:1.2;font-weight:780}
.plan-mode-btn.active{color:white;background:#6748d1;border-color:#6748d1;box-shadow:0 3px 12px #6850c52d}
.plan-mode-btn:disabled{opacity:.48;cursor:not-allowed}
.plan-mode-hint{font-size:12px;line-height:1.5;color:#777e96;margin:10px 2px 0}
#budgetPanel:not([hidden]),#tripPanel:not([hidden]){margin-top:12px}
#radiusFilters[hidden]{display:none!important}
.now-provenance{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:10px;line-height:1.35;color:#7a8097;margin:8px 0 4px}
.now-provenance-link{color:#6651ba;text-decoration:underline;text-underline-offset:2px;font-weight:650}
.now-detail-proof{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;background:#f3f1fc;border-radius:11px;padding:10px 12px;margin:10px 0 14px;color:#59577a;font-size:12px;line-height:1.4}
.now-detail-proof b{color:#40367e}
.now-detail-proof a{color:#6545c2;text-decoration:underline;text-underline-offset:2px}
.card .open-desc{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word}
.card .detail{overflow-wrap:break-word}
#detailBody p{white-space:normal;overflow-wrap:anywhere;line-height:1.55}
#eventCalendarLink[hidden]{display:none!important}
#nearbyTools .nearby-heading{gap:10px}
#nearbyTools .geo-status{margin-top:12px}
#homeEvents .card .now-provenance{margin-bottom:8px}
@media(max-width:470px){
 .home-when{gap:6px;margin:13px 0 12px}
 .home-when button{font-size:11.4px;padding:11px 8px;border-radius:12px}
 #homeEvents .card{min-height:180px}
 .now-provenance{font-size:9.5px}
 .plan-mode-tabs{gap:7px}
 .plan-mode-btn{font-size:11.4px}
 .plan-mode-bar{padding:13px}
 .navgrid .navitem{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.home-when button,.plan-mode-btn{transition:none!important}}

.event-calendar-shortcut{margin:8px 0 5px;display:flex;justify-content:flex-end}
.event-calendar-shortcut[hidden]{display:none!important}
.event-calendar-shortcut button{border:1px solid #dcd5f6;background:#f7f4ff;color:#6247b8;font-size:12px;font-weight:800;padding:10px 13px;border-radius:12px}
