/* Walktails Event Discovery — front end */
.wted-wrap{--wted-text:#1d2a22;--wted-muted:#5d6b62;--wted-radius:14px;color:var(--wted-text);margin:0 0 2rem}
.wted-wrap *,.wted-single *{box-sizing:border-box}
.wted-heading{margin:0 0 1rem;color:var(--wted-primary)}

/* Filters */
.wted-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--wted-primary);padding:14px;border-radius:var(--wted-radius);margin:0 0 1.5rem;border-bottom:3px solid var(--wted-accent)}
.wted-f{flex:1 1 160px;margin:0}
.wted-f-q{flex:2 1 220px}
.wted-filters input,.wted-filters select{width:100%;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:10px;background:var(--wted-bg);color:var(--wted-text);font:inherit}
.wted-filters input:focus,.wted-filters select:focus{outline:2px solid var(--wted-accent);outline-offset:1px}
.wted-filters .wted-btn{background:var(--wted-accent);color:#1d2a22;border-color:var(--wted-accent)}
.wted-reset{color:var(--wted-bg);text-decoration:underline;font-size:.9em}

/* Buttons */
.wted-btn{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:9px 18px;border-radius:999px;background:var(--wted-primary);color:#fff!important;border:1px solid var(--wted-primary);font-weight:600;font-size:.92em;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:filter .15s,transform .15s}
.wted-btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
.wted-btn-ghost{background:transparent;color:var(--wted-primary)!important}
.wted-btn-lg{font-size:1.05em;padding:12px 26px}
.wted-more{color:var(--wted-primary);font-weight:600;font-size:.9em;text-decoration:none}
.wted-more:hover{text-decoration:underline}

/* Cards */
.wted-events{display:grid;gap:22px}
.wted-layout-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(240px,calc((100% - (var(--wted-cols,3) - 1) * 22px) / var(--wted-cols,3)))),1fr))}
.wted-card{display:flex;flex-direction:column;background:#fff;border:1px solid color-mix(in srgb,var(--wted-accent) 55%,transparent);border-radius:var(--wted-radius);overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.05);transition:box-shadow .2s,transform .2s}
.wted-card:hover{box-shadow:0 10px 26px rgba(30,86,49,.14);transform:translateY(-2px)}
.wted-media{position:relative;display:block;aspect-ratio:16/9;background:var(--wted-bg);overflow:hidden}
.wted-media img{width:100%;height:100%;object-fit:cover;display:block;color:transparent}
.wted-noimg{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--wted-primary),color-mix(in srgb,var(--wted-primary) 70%,#000));color:var(--wted-accent);font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.85em;padding:1rem;text-align:center}
.wted-date{position:absolute;top:12px;left:12px;background:var(--wted-bg);color:var(--wted-primary);border:2px solid var(--wted-accent);border-radius:10px;padding:4px 10px;text-align:center;font-size:.72em;font-weight:700;text-transform:uppercase;line-height:1.1}
.wted-date b{display:block;font-size:1.7em}
.wted-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.wted-cat{align-self:flex-start;font-size:.72em;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--wted-primary);background:var(--wted-bg);border:1px solid var(--wted-accent);border-radius:999px;padding:3px 10px}
.wted-title{margin:2px 0 0;font-size:1.12em;line-height:1.3}
.wted-title a{color:var(--wted-text);text-decoration:none}
.wted-title a:hover{color:var(--wted-primary)}
.wted-meta{display:flex;flex-direction:column;gap:3px;margin:0;color:var(--wted-muted);font-size:.9em}
.wted-when::before{content:"📅 "}
.wted-where::before{content:"📍 "}
.wted-price::before{content:"🎟️ "}
.wted-excerpt{margin:4px 0 0;color:var(--wted-muted);font-size:.92em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wted-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
.wted-ended{font-size:.85em;color:var(--wted-muted);font-style:italic}
.wted-card.is-past{opacity:.75}

/* List layout */
.wted-layout-list .wted-card{flex-direction:row}
.wted-layout-list .wted-media{flex:0 0 38%;aspect-ratio:auto;min-height:190px}
@media (max-width:640px){.wted-layout-list .wted-card{flex-direction:column}.wted-layout-list .wted-media{flex:none;aspect-ratio:16/9;min-height:0}}

/* Compact layout */
.wted-layout-compact{gap:10px}
.wted-layout-compact .wted-body{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:12px 16px}
.wted-layout-compact .wted-title{flex:1 1 260px}
.wted-layout-compact .wted-meta{flex:1 1 220px}
.wted-layout-compact .wted-actions{margin:0;padding:0}

.wted-pages{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:1.6rem;color:var(--wted-muted)}
.wted-empty{padding:2rem;text-align:center;background:var(--wted-bg);border:1px dashed var(--wted-accent);border-radius:var(--wted-radius)}

/* Single event */
.wted-single{margin:0 0 1.5rem}
.wted-single-img img{width:100%;height:auto;border-radius:var(--wted-radius,14px);margin-bottom:1rem}
.wted-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:0 0 1.2rem;padding:16px;background:var(--wted-bg);border:1px solid var(--wted-accent);border-top:4px solid var(--wted-primary);border-radius:14px}
.wted-facts div{margin:0}
.wted-facts dt{font-size:.75em;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--wted-primary);margin:0}
.wted-facts dd{margin:2px 0 0}
.wted-notice{padding:12px 16px;background:#fff6e0;border-left:4px solid var(--wted-accent);border-radius:8px}
.wted-disclaimer{margin-top:1.5rem;font-size:.85em;color:#5d6b62;border-top:1px solid #e6e1d3;padding-top:1rem}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
