/* SGBuddy V4.7 event discovery */
.events-panel{padding:20px;margin:16px 0 22px;scroll-margin-top:88px}
.events-header h2{font-size:clamp(1.3rem,3vw,1.7rem);margin:5px 0}
.events-header p{font-size:.9rem;opacity:.75;line-height:1.5}
.events-filter-label{font-size:.78rem;opacity:.75;margin:16px 0 8px}
.events-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.events-filters button{font:inherit;font-size:.82rem;border-radius:20px;padding:7px 12px;cursor:pointer;background:transparent;color:inherit;border:1px solid rgba(148,181,212,.35)}
.events-filters button.active{background:#2276bd;color:white;border-color:#2276bd}
.events-list{display:grid;gap:12px}
.events-item{min-width:0;padding:15px;border:1px solid rgba(142,172,205,.25);border-radius:15px}
.events-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.events-item h3{font-size:1.07rem;margin:5px 0 8px;overflow-wrap:anywhere}
.events-category{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;opacity:.68}
.events-access{font-size:.71rem;padding:6px 9px;border-radius:20px;flex-shrink:0;background:rgba(67,136,183,.22)}
.events-date{font-size:.88rem;font-weight:700}
.events-venue,.events-summary,.events-proof{font-size:.84rem;line-height:1.5;opacity:.79;margin:7px 0}
.events-proof{font-size:.75rem;opacity:.69}
.events-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.events-actions button{font:inherit;font-size:.83rem;padding:8px 13px;border-radius:10px;cursor:pointer;color:inherit;background:rgba(43,123,188,.18);border:1px solid rgba(131,173,219,.5)}
.events-actions a{font-size:.82rem;color:inherit;text-align:right;text-underline-offset:3px}
.events-disclaimer{margin:14px 0 0;font-size:.77rem;line-height:1.6;opacity:.7}
.events-empty{padding:18px;border:1px dashed rgba(142,172,205,.3);border-radius:13px;font-size:.86rem;opacity:.82}
.events-quick{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;margin:14px 0}
.events-quick>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.events-quick strong{font-size:1rem}
.events-quick small{font-size:.8rem;opacity:.7}
.events-quick button{color:inherit;background:rgba(43,123,188,.18);border:1px solid rgba(131,173,219,.5);border-radius:11px;padding:10px;cursor:pointer;white-space:nowrap}
@media(max-width:420px){.events-panel{padding:15px}.events-quick{flex-direction:column;align-items:flex-start}.events-item-head{flex-direction:column;gap:4px}}

/* V4.14: curated weekend ideas. The official source remains the source of truth. */
.events-quick{display:block;min-width:0}
.events-quick-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.events-quick-header>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.events-quick-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:9px;list-style:none;margin:12px 0 0;padding:0}
.events-quick-picks li{min-width:0;border:1px solid rgba(142,172,205,.25);border-radius:12px;padding:10px}
.events-quick-picks a{display:flex;flex-direction:column;gap:6px;min-width:0;color:inherit;text-decoration:none;text-underline-offset:3px}
.events-quick-picks a:hover{text-decoration:underline}
.events-quick-picks strong{font-size:.88rem;line-height:1.3;overflow-wrap:anywhere}
.events-quick-picks small{font-size:.73rem;line-height:1.45;opacity:.76;white-space:normal}
.events-quick-empty{font-size:.85rem;opacity:.75}
.events-quick-note{margin:10px 0 0;font-size:.73rem;line-height:1.5;opacity:.66}
@media(max-width:420px){.events-quick-header{flex-direction:column;align-items:flex-start}.events-quick-picks{grid-template-columns:1fr}}

/* Keep the shortcut header horizontal on desktop despite legacy >div column rule. */
.events-quick>.events-quick-header{flex-direction:row}
@media(max-width:420px){.events-quick>.events-quick-header{flex-direction:column;align-items:flex-start}}

/* V4.14 Wave 4: lightweight regional/category exploration; no inferred GPS distances. */
.events-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}
.events-scope label{font-size:.79rem;font-weight:650;display:grid;gap:5px;min-width:0}
.events-scope select{font:inherit;min-width:0;width:100%;min-height:42px;padding:8px 11px;color:inherit;background:var(--surface,#162c41);border:1px solid rgba(148,181,212,.40);border-radius:10px}
.events-area-note,.events-feedback{font-size:.77rem;line-height:1.5;opacity:.75;margin:8px 0 14px}
.events-feedback:empty{display:none}
.events-actions{flex-wrap:wrap}
.events-actions button{flex:0 1 auto}
.events-actions a{margin-left:auto}
@media(max-width:480px){.events-scope{grid-template-columns:1fr}.events-actions button{min-height:42px}}
html[data-ux-theme="light"] .events-scope select{background:#fff;color:#173248;border-color:#b7cbd6}

/* V4.18: responsive searchable time-window discovery */
.events-search{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:8px;margin:12px 0}
.events-search label{display:grid;gap:5px;flex:1 1 220px;min-width:0;font-size:.82rem}
.events-search input{font:inherit;min-width:0;width:100%;max-width:100%;border:1px solid rgba(148,181,212,.45);border-radius:11px;padding:9px 12px;background:transparent;color:inherit}
.events-search small{font-size:.76rem;opacity:.78;overflow-wrap:anywhere}
@media(max-width:420px){.events-search{align-items:stretch}.events-search input{font-size:16px}.events-filters button{flex:0 1 auto;min-width:0}}
