/* ============================================================= Cuerna
   Flashy dark culture-guide theme. Vibrant gradients, glassy cards.
   ============================================================= */
:root {
    --bg:        #0c0a14;
    --bg-2:      #14111f;
    --surface:   rgba(255,255,255,0.04);
    --surface-2: rgba(255,255,255,0.07);
    --border:    rgba(255,255,255,0.10);
    --text:      #f4f1fb;
    --muted:     #a79fc0;
    --primary:   #f72585;
    --primary-2: #7b2ff7;
    --accent:    #4cc9f0;
    --gold:      #ffd166;
    --ok:        #2ecc71;
    --bad:       #ff5470;
    --grad:      linear-gradient(120deg, #7b2ff7, #f72585 55%, #ff8c42);
    --grad-cool: linear-gradient(120deg, #4361ee, #4cc9f0);

    /* Logo colors — tuned to the site palette; override per context to recolor. */
    --logo-accent:  #fc5e49;  /* the dot inside the C + the word "life" */
    --logo-word:    #f4f1fb;  /* the "C" and "uerna" — cream on dark, #121111 on light */
    --logo-counter: #0c0a14;  /* holes in e / a — match the page background */
    --radius:    0;
    --radius-sm: 0;
    --shadow:    0 18px 50px rgba(0,0,0,0.45);
    --wrap:      1180px;
    --font:      'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display:   'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }

/* Inline icons — inherit text color, size to the text. */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.ic-lg { width: 1.25em; height: 1.25em; }
.ic-btn { vertical-align: -0.16em; }
/* Favourite heart fills when active. */
.fav-btn.on .ic-heart, .fav-btn-lg.on .ic-heart { fill: currentColor; }
/* Accent icons sitting before section titles. */
.section-title .ic { width: .78em; height: .78em; color: var(--primary); vertical-align: 0; }
/* Little circular "featured" flag on cards. */
.ecard-flag .ic { width: 15px; height: 15px; }
/* Category chip / pill icons align nicely with their label. */
.ecard-cat .ic, .chip .ic { width: .95em; height: .95em; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(60vw 60vw at 85% -10%, rgba(123,47,247,0.22), transparent 60%),
        radial-gradient(50vw 50vw at -10% 10%, rgba(247,37,133,0.16), transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.empty { color: var(--muted); padding: 2.5rem 0; text-align: center; }
.empty.big { font-size: 1.3rem; padding: 4rem 0; }
.inline { display: inline; }
.skip-link { position:absolute; left:-999px; }

/* -------------------------------------------------------- buttons */
.btn {
    --b: var(--surface-2);
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .62rem 1.15rem; border-radius: 0;
    font-family: var(--display); font-weight: 700; font-size: .92rem;
    border: 1px solid var(--border); background: var(--b); color: var(--text);
    cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 24px rgba(247,37,133,0.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .4rem .8rem; font-size: .82rem; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: .6rem; }
.btn-approve { background: rgba(46,204,113,.16); border-color: rgba(46,204,113,.4); color: #7dffb0; }
.btn-reject  { background: rgba(255,84,112,.14); border-color: rgba(255,84,112,.4); color: #ff9db0; }

/* --------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(12,10,20,0.72);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; }
/* Brand: clean geometric C + dot icon + Baloo 2 wordmark. Accent (dot + ".life")
   is set inline per request (random from the brand palette); word color is a theme var. */
.brand { display: inline-flex; align-items: center; gap: 0; text-decoration: none;
         font-family: 'Baloo 2', var(--display); font-weight: 600; font-size: 1.8rem;
         line-height: 1; letter-spacing: -.01em; transition: transform .2s, filter .2s; }
.brand:hover { transform: translateY(-1px); filter: drop-shadow(0 5px 16px rgba(247,37,133,.35)); }
.brand-mark { height: 1.02em; width: 1.02em; flex: none; overflow: visible; margin-right: -.12em; }
.brand-ring { stroke: var(--logo-word, #f4f1fb); }
.brand-dot  { fill: var(--logo-accent, #fc5e49); }
.brand-word { color: var(--logo-word, #f4f1fb); }
.brand-life { color: var(--logo-accent, #fc5e49); font-weight: 500; }
.brand.brand-sm { font-size: 1.35rem; }
.footer-brand { margin-bottom: .8rem; }
.site-nav { display: flex; gap: .35rem; margin-left: .5rem; }
.site-nav a { padding: .45rem .8rem; border-radius: 0; font-weight: 600; color: var(--muted); font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.lang-switch { display: flex; gap: .1rem; border: 1px solid var(--border); border-radius: 0; padding: .12rem; }
.lang { padding: .25rem .55rem; border-radius: 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang.on { background: var(--surface-2); color: var(--text); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1.2rem; border-radius: 0; padding: .3rem .6rem; cursor: pointer; }

/* ---------------------------------------------------------- flash */
.flash-wrap { margin-top: 1rem; display: grid; gap: .5rem; }
.flash { padding: .8rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; }
.flash-success { border-color: rgba(46,204,113,.4); background: rgba(46,204,113,.12); }
.flash-error   { border-color: rgba(255,84,112,.4); background: rgba(255,84,112,.12); }
.flash-info    { border-color: rgba(76,201,240,.4); background: rgba(76,201,240,.1); }
.flash-warning { border-color: rgba(255,209,102,.4); background: rgba(255,209,102,.1); }

/* ----------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem,4vw,3.5rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* Photo hero: real Cuernavaca night scene (parroquia + street). The lit church
   falls on the right (behind the featured card); the darker street/sky on the
   left sits behind the headline. A brand-tinted gradient keeps text legible. */
.hero-photo {
  background: #0e0b16 url('../img/hero/cuerna-night.jpg') 68% 32% / cover no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,8,18,.88) 0%, rgba(10,8,18,.66) 44%, rgba(10,8,18,.30) 100%),
    linear-gradient(0deg,  rgba(12,8,20,.70) 0%, rgba(12,8,20,0) 52%),
    radial-gradient(120% 90% at 82% 24%, rgba(247,37,133,.14), transparent 62%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; background: linear-gradient(120deg,#fff,#e9d8ff 40%,#ffb3d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem,2vw,1.35rem); color: var(--muted); max-width: 38ch; }
.hero-search { display: flex; gap: .5rem; margin: 1.4rem 0 1rem; max-width: 480px; }
.hero-search input { flex: 1; }
.hero-ctas { display: flex; gap: .7rem; flex-wrap: wrap; }

.hero-feature { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); aspect-ratio: 3/4; max-height: 460px; display: block; transition: transform .3s; }
.hero-feature:hover { transform: translateY(-4px) rotate(-.5deg); }
.hero-feature img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-info { position: absolute; inset: auto 0 0 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero-feature-info h2 { font-size: 1.5rem; margin: .3rem 0 .2rem; }
.hero-feature-info p { color: #e9d8ff; margin: 0; font-size: .9rem; }

/* ----------------------------------------------------- chips/cats */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 0; font-size: .8rem; font-weight: 700; background: color-mix(in srgb, var(--cat, var(--primary)) 30%, transparent); border: 1px solid color-mix(in srgb, var(--cat, var(--primary)) 50%, transparent); }
.chip-star { background: rgba(255,209,102,.18); border-color: rgba(255,209,102,.5); color: var(--gold); }
.cat-strip { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem 0 .5rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 0; background: var(--surface); border: 1px solid var(--border); font-weight: 600; transition: .18s; }
.cat-pill:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cat) 60%, transparent); background: color-mix(in srgb, var(--cat) 14%, var(--surface)); }
.cat-ico { font-size: 1.1rem; }

/* -------------------------------------------------------- sections */
.section { padding: 2.2rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-title { font-size: clamp(1.4rem,3vw,2rem); margin: 0; }
.section-sub { color: var(--muted); margin: .2rem 0 0; }
.link-more { color: var(--accent); font-weight: 700; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ----------------------------------------------------- event cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; }
.ecard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.ecard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cat) 55%, transparent); }
.ecard-poster { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; }
.ecard-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ecard:hover .ecard-poster img { transform: scale(1.05); }
.ecard-cat { position: absolute; left: .6rem; bottom: .6rem; padding: .25rem .6rem; border-radius: 0; font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.ecard-flag { position: absolute; right: .6rem; top: .6rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #101014; font-size: .9rem; }
.ecard-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ecard-date { display: flex; align-items: baseline; gap: .5rem; color: var(--accent); font-family: var(--display); font-weight: 700; }
.ecard-date .d { font-size: .95rem; text-transform: uppercase; }
.ecard-date .t { font-size: .8rem; color: var(--muted); }
.ecard-title { font-size: 1.12rem; margin: 0; line-height: 1.2; }
.ecard-title a:hover { color: var(--primary); }
.ecard-loc { color: var(--muted); font-size: .85rem; margin: 0; }
.ecard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .4rem; }
.ecard-price { font-weight: 700; font-size: .9rem; }

/* favourite button */
.fav-form { margin: 0; }
.fav-btn { background: var(--surface-2); border: 1px solid var(--border); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--text); font-size: 1.05rem; transition: .18s; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.on { background: rgba(247,37,133,.18); border-color: var(--primary); color: var(--primary); }
.fav-btn-lg { gap: .5rem; }
.fav-btn-lg.on { background: var(--grad); }
.heart { line-height: 1; }

/* ---------------------------------------------------------- forms */
input, select, textarea {
    width: 100%; padding: .68rem .85rem; border-radius: var(--radius-sm);
    background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
    font-family: var(--font); font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(123,47,247,.25); }
label { display: block; font-weight: 600; margin-bottom: .9rem; font-size: .92rem; }
label input, label select, label textarea { margin-top: .3rem; font-weight: 400; }
.field-err { color: var(--bad); font-weight: 600; font-size: .82rem; display: block; margin-top: .25rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
select[multiple].multi { height: auto; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.check input { width: auto; margin: 0; }

/* ---------------------------------------------------------- pages */
.page-head { padding: 2rem 0 1rem; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-title { font-size: clamp(1.8rem,4vw,2.8rem); margin: 0; }
.head-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 0; overflow: hidden; }
.view-toggle a { padding: .5rem 1.1rem; font-weight: 700; color: var(--muted); font-size: .9rem; }
.view-toggle a.active { background: var(--grad); color: #fff; }
.cta-inline { text-align: center; padding: 2.5rem 0; }

/* filters + results layout */
.events-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; padding-bottom: 3rem; }
.filters { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.filter-block { margin-bottom: .9rem; }
.filter-block > label { margin-bottom: .3rem; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.filter-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.filter-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 0; }
.pager-info { color: var(--muted); font-weight: 600; }
.chip-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.chip-filter { padding: .4rem .9rem; border-radius: 0; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .88rem; color: var(--muted); }
.chip-filter.on, .chip-filter:hover { color: var(--text); background: var(--surface-2); }

/* ------------------------------------------------------- calendar */
.cal-wrap { padding: 1rem 0 3rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal-month { font-size: 1.5rem; margin: 0; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-weight: 700; color: var(--muted); font-size: .8rem; padding: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.cal-cell { min-height: 116px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: .4rem; display: flex; flex-direction: column; gap: .25rem; }
.cal-events { min-width: 0; }
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cal-cell.has-events { background: var(--surface-2); }
.cal-daynum { font-weight: 700; font-size: .85rem; color: var(--muted); }
.cal-cell.today .cal-daynum { color: var(--primary); }
.cal-events { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-ev { display: flex; gap: .3rem; align-items: baseline; padding: .18rem .35rem; border-radius: 0; font-size: .72rem; background: color-mix(in srgb, var(--cat) 22%, transparent); border-left: 3px solid var(--cat); }
.cal-ev:hover { background: color-mix(in srgb, var(--cat) 40%, transparent); }
.cal-ev-t { font-weight: 700; color: var(--accent); }
.cal-ev-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .72rem; color: var(--muted); font-weight: 700; }

/* --------------------------------------------------- event detail */
.event-detail { position: relative; padding-top: 2rem; }
.event-hero-bg { position: absolute; inset: 0; height: 420px; background-size: cover; background-position: center; filter: blur(30px) saturate(1.3); opacity: .28; z-index: 0; }
.event-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 360px 1fr; gap: 2.2rem; align-items: start; }
.event-poster { position: sticky; top: 84px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.event-poster img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.poster-credit { font-size: .72rem; color: var(--muted); margin: .4rem .2rem 0; line-height: 1.3; }
.event-tags { display: flex; gap: .5rem; margin-bottom: .6rem; }
.event-title { font-size: clamp(2rem,5vw,3.2rem); margin: 0 0 1.2rem; }
.event-meta { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.meta-row { display: flex; gap: .8rem; align-items: flex-start; }
.meta-ico { font-size: 1.2rem; width: 1.5rem; }
.meta-row strong { display: block; }
.meta-row span { color: var(--muted); font-size: .9rem; }
.meta-row a:hover { color: var(--primary); }
.event-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.event-desc { font-size: 1.05rem; line-height: 1.7; color: #e6e1f4; margin-bottom: 1.5rem; }
.event-sub { font-size: 1.3rem; margin: 1.5rem 0 .8rem; }
.artist-chips { display: flex; gap: .7rem; flex-wrap: wrap; }
.artist-chip { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .5rem; border-radius: 0; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.artist-chip:hover { border-color: var(--primary-2); }
.artist-ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.artist-chip small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.admin-inline { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }

/* ---------------------------------------------- places & artists */
.grid-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.1rem; }
.pcard { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; transition: .2s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--primary-2); }
.pcard-logo, .pcard-logo img { width: 64px; height: 64px; border-radius: 0; flex: none; object-fit: cover; }
.pcard-logo { display: grid; place-items: center; background: var(--grad); font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff; }
.pcard-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.pcard-body h3 { font-size: 1.15rem; margin: .1rem 0 .2rem; }
.pcard-desc { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }

.grid-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1.1rem; }
.acard { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1rem; transition: .2s; }
.acard:hover { transform: translateY(-4px); border-color: var(--primary); }
.acard-avatar, .acard-avatar img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .7rem; object-fit: cover; }
.acard-avatar { display: grid; place-items: center; background: var(--grad-cool); font-family: var(--display); font-weight: 800; font-size: 2rem; color: #fff; }
.acard-avatar.lg, .acard-avatar.lg img { width: 120px; height: 120px; margin: 0; }
.acard h3 { font-size: 1.05rem; margin: 0; }

.place-banner, .artist-banner { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 2.5rem 0; margin-bottom: 1rem; }
.place-banner-inner, .artist-banner-inner { display: flex; gap: 1.5rem; align-items: center; }
.place-logo-lg, .place-logo-lg img { width: 96px; height: 96px; border-radius: 0; flex: none; object-fit: cover; }
.place-logo-lg { display: grid; place-items: center; background: var(--grad); font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: #fff; }
.place-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; color: var(--muted); font-weight: 600; }
.place-links a:hover { color: var(--accent); }
.place-about { font-size: 1.05rem; color: #e6e1f4; max-width: 70ch; }

/* ---------------------------------------------------------- auth */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: min(440px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; color: var(--muted); margin: 1rem 0 0; }
.auth-alt a { color: var(--accent); font-weight: 700; }
.role-pick { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem; margin: .5rem 0; display: grid; gap: .5rem; }
.role-pick legend { padding: 0 .4rem; font-weight: 700; color: var(--muted); }
.role-opt { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 0; border: 1px solid var(--border); cursor: pointer; margin: 0; font-weight: 600; }
.role-opt.on { border-color: var(--primary); background: rgba(247,37,133,.1); }
.role-opt input { width: auto; }
.role-ico { font-size: 1.4rem; }

/* --------------------------------------------------- panels/forms */
.form-wrap { max-width: 720px; padding: 2rem 0 4rem; }
.back-link { color: var(--muted); font-weight: 600; display: inline-block; margin-bottom: .8rem; }
.back-link:hover { color: var(--text); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.form-actions { display: flex; gap: .7rem; margin-top: 1rem; }
.poster-field { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .9rem; }
.poster-field legend { font-weight: 700; padding: 0 .4rem; }
.poster-preview { width: 140px; border-radius: 0; margin-bottom: .6rem; }
.file { font-weight: 600; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding-bottom: 3rem; align-items: start; }
.list-rows { display: flex; flex-direction: column; gap: .6rem; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.row-item strong { display: block; }
.row-item .muted { font-size: .82rem; }
.row-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

/* badges */
.badge { padding: .2rem .6rem; border-radius: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-pending  { background: rgba(255,209,102,.16); color: var(--gold); }
.badge-approved { background: rgba(46,204,113,.16); color: #7dffb0; }
.badge-rejected { background: rgba(255,84,112,.16); color: #ff9db0; }
.badge-draft    { background: var(--surface-2); color: var(--muted); }

/* --------------------------------------------------------- admin */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.stat-alert { background: linear-gradient(160deg, rgba(247,37,133,.12), var(--surface)); }
.stat-n { display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; }
.stat-l { color: var(--muted); font-size: .85rem; }
.count-bubble { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 0; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800; }

.mod-block { margin-bottom: 2rem; }
.mod-title { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: 1rem; }
.mod-list { display: flex; flex-direction: column; gap: .8rem; }
.mod-item { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.mod-thumb { width: 72px; height: 96px; border-radius: 0; object-fit: cover; flex: none; }
.mod-info { flex: 1; min-width: 0; }
.mod-desc { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; }
.mod-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.reject-form { display: flex; gap: .3rem; align-items: center; }
.reject-reason { width: 130px; padding: .35rem .5rem; font-size: .8rem; }
.diff { display: grid; gap: .3rem; margin: .5rem 0 0; }
.diff div { display: flex; gap: .5rem; font-size: .85rem; }
.diff dt { font-weight: 700; color: var(--accent); min-width: 90px; }
.diff dd { margin: 0; color: var(--muted); }

/* -------------------------------------------------- account/prefs */
.account-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; align-items: start; padding-bottom: 3rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: 84px; }
.card-title { font-size: 1.2rem; }
.pref-list { display: grid; gap: .4rem; margin: .8rem 0; }
.pref-item { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 0; border: 1px solid var(--border); cursor: pointer; margin: 0; font-weight: 600; }
.pref-item:has(input:checked) { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 14%, transparent); }
.pref-item input { width: auto; }

/* ------------------------------------------------------ cta band */
.cta-band { margin: 3rem 0 0; padding: 3rem 0; text-align: center; background: var(--grad); }
.cta-band h2 { font-size: clamp(1.6rem,4vw,2.4rem); color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 44ch; margin: 0 auto 1.2rem; }
.cta-band .btn-primary { background: #fff; color: #12101c; }

/* --------------------------------------------------------- error */
.error-page { text-align: center; padding: 5rem 0; }
.error-code { font-family: var(--display); font-weight: 800; font-size: 6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.5rem 0; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); max-width: 40ch; font-size: .9rem; margin: .5rem 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

/* -------------------------------------------------------- comments */
.comments { max-width: 760px; }
.comment-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.4rem; }
.comment-form textarea { width: 100%; box-sizing: border-box; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 0; padding: .7rem .8rem; font: inherit; resize: vertical; min-height: 74px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; flex-wrap: wrap; }
.field-error { color: var(--bad); font-size: .85rem; margin: .4rem 0 0; }
.comment-login { padding: .8rem 0 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.comment { display: flex; gap: .8rem; }
.comment-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; background: var(--grad); text-transform: uppercase; }
.comment-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; flex: 1; }
.comment-meta { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.comment-content p { margin: 0; color: var(--text); line-height: 1.5; word-break: break-word; }

/* ----------------------------------------------- admin management */
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat-swatch { display: inline-block; width: 13px; height: 13px; vertical-align: middle; margin-right: .45rem; border: 1px solid var(--border); }
.form-narrow { max-width: 560px; }
.stack-form { display: flex; flex-direction: column; gap: 1rem; }
.stack-form label { display: flex; flex-direction: column; gap: .35rem; }
.stack-form label > span { font-weight: 600; font-size: .9rem; color: var(--muted); }
.stack-form input, .stack-form textarea, .stack-form select { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); padding: .6rem .8rem; font: inherit; width: 100%; box-sizing: border-box; }
.stack-form textarea { resize: vertical; }
.stack-form input[type=color] { padding: .2rem; height: 44px; }
.stack-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .6rem; margin-top: .4rem; }

/* ------------------------------------------------------- photo gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.photo-cell { display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--border); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.photo-cell:hover img { transform: scale(1.05); }
.footer-tagline { font-family: var(--display); font-weight: 700; color: var(--text); font-size: 1.05rem; margin: .5rem 0 .1rem; }

/* -------------------------------------------------- google sign-in */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid var(--border); }
.btn-google:hover { background: #efefef; }
.auth-divider { display: flex; align-items: center; gap: .7rem; color: var(--muted); margin: 1rem 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* --------------------------------------------------- responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-feature { max-height: 380px; }
    .hero-heart { top: 22%; left: auto; right: -8%; transform: translateY(-50%); opacity: .08; width: clamp(160px, 44vw, 260px); }
    .events-layout, .panel-grid, .account-grid, .event-grid { grid-template-columns: 1fr; }
    .filters { position: static; }
    .event-poster { position: static; max-width: 320px; }
    .card { position: static; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .nav-toggle { display: block; order: 3; }
    .site-nav, .header-actions { display: none; width: 100%; }
    body.nav-open .site-nav { display: flex; flex-direction: column; order: 4; }
    body.nav-open .header-actions { display: flex; flex-wrap: wrap; order: 5; }
    .header-inner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .two-col, .filter-dates { grid-template-columns: 1fr; }
    .cal-cell { min-height: 74px; }
    .cal-ev-name { display: none; }
    .cal-ev { justify-content: center; }
    .mod-item { flex-direction: column; align-items: stretch; }
    .mod-actions { justify-content: flex-start; }
}

/* ---------------------------------------------------------- legal pages */
.legal {
    max-width: 760px;
    padding-top: 2rem;
    padding-bottom: 3rem;
    line-height: 1.7;
}
.legal .page-title { margin-bottom: .25rem; }
.legal .legal-updated { margin-top: 0; font-size: .9rem; }
.legal h2 {
    margin-top: 2rem;
    margin-bottom: .5rem;
    font-size: 1.15rem;
}
.legal p, .legal ul { margin: .5rem 0; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: .35rem 0; }
.legal a { text-decoration: underline; }

/* ---------------------------------------------- Google Places enrichment */
.place-rating { font-weight: 700; }
.place-hours { margin: 1rem 0; }
.place-hours-title { font-size: 1rem; display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; }
.place-hours ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.place-hours li { padding: .12rem 0; font-size: .92rem; }
.photo-credit { margin-top: .5rem; }

/* Admin: enrich preview */
.gp-form { max-width: 760px; }
.gp-row { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: start;
  padding: .9rem 0; border-bottom: 1px solid var(--border); }
.gp-take { display: flex; gap: .5rem; align-items: center; font-weight: 600; cursor: pointer; }
.gp-vals { display: grid; gap: .4rem; }
.gp-cur, .gp-new { font-size: .93rem; }
.gp-tag { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,255,255,.08); padding: .1rem .4rem; border-radius: 5px; margin-right: .4rem; }
.gp-tag-new { background: rgba(247,37,133,.22); }
.gp-extra { margin: 1.2rem 0; display: grid; gap: .7rem; }
.gp-hours { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.gp-actions { display: flex; gap: .7rem; margin-top: 1.4rem; }
@media (max-width: 640px) { .gp-row { grid-template-columns: 1fr; gap: .5rem; } }

/* Admin: enrich-all review list */
.google-bulk { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 1.4rem; flex-wrap: wrap; }
.gp-all { display: flex; flex-direction: column; gap: .3rem; margin: 1rem 0; }
.gp-all-row { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.gp-all-row:hover { border-color: var(--accent); }
.gp-all-row input[type=checkbox] { margin-top: .25rem; }
.gp-nomatch { opacity: .6; cursor: default; }
.gp-x { width: 1rem; text-align: center; color: var(--muted); }
.gp-all-info p { margin: .2rem 0 0; }

/* ---------------------------------------------------- user avatar menu */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f72585, #7b2ff7); color: #fff; font-weight: 700; font-size: 1.05rem;
  border: 2px solid transparent; transition: border-color .15s; }
.user-menu[open] .avatar, .avatar:hover { border-color: rgba(255,255,255,.5); }
.avatar-initial { line-height: 1; display: block; }
.user-menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  /* Frosted glass: translucent, but the blur diffuses whatever is behind so
     content doesn't read through it. */
  background: rgba(18, 16, 26, .82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55); padding: .4rem; z-index: 60;
  display: flex; flex-direction: column; gap: .1rem; }
.user-menu-head { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem;
  display: flex; flex-direction: column; gap: .1rem; }
.user-menu-pop a, .user-menu-pop button { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem;
  border-radius: 9px; color: inherit; text-decoration: none; background: none; border: 0; font: inherit;
  cursor: pointer; text-align: left; width: 100%; }
.user-menu-pop a:hover, .user-menu-pop button:hover { background: rgba(255,255,255,.08); }
.user-menu-pop .ic { width: 18px; height: 18px; flex: none; }
.role-select { padding: .32rem .5rem; border-radius: 8px; background: var(--panel); color: inherit;
  border: 1px solid var(--border); font: inherit; font-size: .9rem; }

/* ---------------------------------------------------------- social share */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.share-label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600;
  font-size: .9rem; color: var(--muted); margin-right: .2rem; }
.share-label .ic { width: 16px; height: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: inherit;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .12s, border-color .12s, background .12s; }
.share-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-wa:hover { color: #25d366; }
.share-fb:hover { color: #1877f2; }
.share-native { background: linear-gradient(100deg, var(--magenta, #f72585), var(--accent, #fc5e49)); color: #fff; border-color: transparent; }
.share-copy.copied { border-color: #25d366; color: #25d366; }
@media (max-width: 520px) { .share-btn .share-txt { display: none; } .share-native .share-txt { display: inline; } }

/* ---------------------------------------------------- bulk event import */
.batch-form textarea { width: 100%; min-height: 220px; padding: .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel); color: inherit; font: inherit; line-height: 1.5;
  margin-bottom: 1rem; resize: vertical; }
.batch-list { display: flex; flex-direction: column; gap: .8rem; margin: 1rem 0 1.4rem; }
.batch-row { display: flex; gap: .8rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.batch-check { padding-top: .3rem; }
.batch-fields { flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.batch-title { font-weight: 700; font-size: 1.05rem; width: 100%; padding: .5rem .6rem; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: inherit; }
.batch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.batch-grid label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); }
.batch-grid input, .batch-grid select, .batch-fields textarea { padding: .45rem .55rem; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: inherit; font: inherit; font-size: .92rem; }
.batch-fields textarea { resize: vertical; }
.batch-warn { color: #ffb020; font-size: .82rem; margin: 0; }
@media (max-width: 560px) { .batch-grid { grid-template-columns: 1fr; } }

/* Google enrich: inline custom-query field */
.google-enrich-form { display: inline-flex; gap: .4rem; align-items: center; }
.google-q { width: 150px; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--panel); color: inherit; font: inherit; font-size: .85rem; }
@media (max-width: 560px) { .google-q { width: 110px; } }

/* ---------------------------------------------- admin floating edit button */
.admin-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70;
  display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #7b2ff7, #f72585); box-shadow: 0 8px 26px rgba(247,37,133,.45);
  transition: transform .15s, box-shadow .15s; }
.admin-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(247,37,133,.55); }
.admin-fab .ic { width: 18px; height: 18px; }
@media (max-width: 520px) { .admin-fab { padding: .7rem; } .admin-fab span { display: none; } }

/* ------------------------------------------ admin inline edit (cards etc.) */
.ecard, .hero-feature-wrap { position: relative; }
.card-wrap { position: relative; display: flex; }
.card-wrap > .pcard, .card-wrap > .acard { width: 100%; }
.card-admin { position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; gap: 6px; }
.card-admin .card-edit, .card-hide button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(18,16,26,.82); backdrop-filter: blur(8px); color: #fff;
  border: 1px solid rgba(255,255,255,.2); box-shadow: 0 3px 12px rgba(0,0,0,.4);
  text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.card-admin .card-edit:hover { transform: scale(1.08); background: linear-gradient(120deg,#7b2ff7,#f72585); border-color: transparent; }
.card-hide { margin: 0; }
.card-hide button:hover { transform: scale(1.08); background: #b3261e; border-color: transparent; }
.card-admin .ic { width: 16px; height: 16px; }
/* category pill edit */
.pill-wrap { position: relative; display: inline-flex; }
.pill-edit { position: absolute; top: -6px; right: -6px; z-index: 5;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(120deg,#7b2ff7,#f72585); color: #fff; border: 2px solid var(--bg, #0f0d16);
  text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.pill-edit .ic { width: 13px; height: 13px; }
.comment { position: relative; }
.comment-del { position: absolute; top: .4rem; right: .4rem; margin: 0; }

/* inline title edit pencil (banners) */
.title-edit { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  vertical-align: middle; margin-left: .5rem; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  transition: transform .12s, background .12s; }
.title-edit:hover { transform: scale(1.06); background: linear-gradient(120deg,#7b2ff7,#f72585); border-color: transparent; }
.title-edit .ic { width: 18px; height: 18px; }

/* source link + batch source field */
.source-link { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin: .8rem 0; }
.source-link .ic { width: 15px; height: 15px; }
.source-link a { color: var(--accent); text-decoration: underline; }
.batch-source { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1.2rem; max-width: 520px; }
.batch-source input { padding: .55rem .7rem; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: inherit; font: inherit; }

/* admin filter tabs */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.filter-tabs .chip { cursor: pointer; text-decoration: none; }
.filter-tabs .chip.on { background: var(--accent); color: #fff; border-color: transparent; }
.batch-img { grid-column: 1 / -1; }
