/* ========== Base / Theme ========== */
:root{
  --bg: #F6F5F2;          /* warm paper */
  --surface: #FFFFFF;
  --text: #1F1F1F;        /* charcoal */
  --muted: #6B6B6B;
  --border: rgba(0,0,0,.08);
  --shadow: 0 8px 28px rgba(0,0,0,.06);

  --accent: #1B2A49;      /* Huntsville deep space (swap per city) */
  --radius: 14px;

  --container: 1120px;
  --gutter: 18px;
  --header-h: 56px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body.app{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Links */
a{ color: inherit; }
a:hover{ color: var(--accent); }

/* ========== Accessibility ========== */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* ========== Layout ========== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.app-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,245,242,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.app-main{
  /* comfortable breathing room */
  padding: 18px 0 48px;
  min-height: calc(100dvh - var(--header-h));
}

.app-footer{
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.35);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

/* ========== Common UI building blocks (for later) ========== */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  padding: 16px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
}
.btn.primary{
  background: var(--accent);
  color: white;
  border-color: transparent;
}

/* Desktop breathing room */
@media (min-width: 900px){
  :root{ --gutter: 26px; }
  .app-main{ padding: 26px 0 64px; }
}
/* ========== NAVIGATION ========== */

.nav{
  padding: 14px 0;
}

.nav-inner{
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand */
.brand{
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.2px;
  text-decoration: none;
}

/* Links */
.nav-links{
  display: none;
  gap: 18px;
}

.nav-links a{
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}

.nav-links a:hover{
  color: var(--text);
}

/* Auth */
.nav-auth{
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 14px;
}

.nav-auth a{
  text-decoration: none;
  font-weight: 500;
}

/* Toggle button (mobile) */
.nav-toggle{
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Small button variant */
.btn.small{
  padding: 6px 12px;
  font-size: .85rem;
}

/* Desktop */
@media (min-width: 900px){

  .nav-toggle{
    display: none;
  }

  .nav-links{
    display: flex;
  }

  .nav-auth{
    display: flex;
  }

}
.nav{
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

/* Active Nav State */
.nav a.active{
  color: var(--text);
  font-weight: 600;
  position: relative;
}

.nav a.active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Auth */
.auth{
  padding: 18px 0;
  display: grid;
  place-items: start;
}

.auth-card{
  max-width: 420px;
  margin: 0 auto;
}

.auth h1{
  margin: 0 0 12px;
  font-size: 1.4rem;
  letter-spacing: -.3px;
}

.stack{ display: grid; gap: 14px; margin-top: 10px; }

label span{
  display:block;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
}

.notice{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 10px 0 0;
}
.notice.error{ background: rgba(192,57,43,.08); }
.notice.success{ background: rgba(46,83,57,.10); }

.muted{ color: var(--muted); }

/* Form inputs: only make text-y inputs full width */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
}

/* Checkbox/radio should NOT be full width */
input[type="checkbox"],
input[type="radio"]{
  width: auto;
  padding: 0;
  border-radius: 4px;
} 
/* Event filters bar */
.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.filters-input{
  flex: 1 1 260px; /* grows, but wraps nicely on mobile */
  min-width: 220px;
}

.filters-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  color: var(--muted);
  user-select: none;
}

.filters-check span{
  color: var(--muted);
  font-size: .95rem;
}

/* ============================= */
/* Shared Filter Bar Component   */
/* ============================= */

.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

/* Text input */
.filters-input{
  flex: 1 1 260px;
  min-width: 220px;
}

/* Select dropdown */
.filters-select{
  flex: 0 0 auto;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  color: var(--text);
}

/* Improve spacing on small screens */
@media (max-width: 600px){
  .filters{
    align-items: stretch;
  }

  .filters-input,
  .filters-select,
  .filters .btn{
    width: 100%;
  }
}

/* ============================= */
/* Subtle Focus States           */
/* ============================= */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea{
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Focus state */
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 42, 73, 0.12); /* subtle accent glow */
}

/* Button focus */
.btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 73, 0.18);
}

input, select, textarea{
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus{
  background: #fff;
}

.page-head h1{ margin: 0; font-size: 1.6rem; letter-spacing: -.4px; }
.page-head .muted{ margin: 6px 0 0; }

.stack{ display: grid; gap: 14px; margin-top: 16px; }

.event-card{ padding: 16px; }
.event-link{ text-decoration: none; font-weight: 700; }
.event-link:hover{ color: var(--accent); }

.event-time{ margin-top: 4px; font-size: .95rem; }
.event-desc{ margin: 10px 0 0; color: var(--muted); }

.event-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.inline-form{ display: inline; margin: 0; }

/* ============================= */
/* Artist Profile (Premium)      */
/* ============================= */

.artist-hero{
  margin: 6px 0 18px;
}

.artist-hero-top{
  display: grid;
  gap: 16px;
}

.artist-identity{
  padding: 6px 0;
}

.artist-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge{
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
}

.badge.premium{
  background: rgba(27, 42, 73, .08);
  color: var(--text);
  border-color: rgba(27, 42, 73, .18);
}

.artist-name{
  margin: 0;
  font-size: 1.3em;
  letter-spacing: -.6px;
  line-height: 1.1;
}

.artist-brand{
  margin: 6px 0 0;
  font-weight: 600;
}

.artist-subtitle{
  margin: 12px 0 0;
  max-width: 70ch;
}

.artist-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.artist-meta{
  margin-top: 14px;
  display: grid;
  gap: 10px;
  max-width: 72ch;
}

.meta-row{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}

.meta-label{
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
}

.meta-value{
  color: var(--text);
}

/* Right-side visual block */
.artist-visual{
  padding: 14px;
}

.artist-visual-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 140px 90px;
  gap: 10px;
}

.ph{
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  min-height: 86px;
}

.ph-hero{
  grid-row: 1 / span 2;
  min-height: 240px;
}

/* Main artist layout grid */
.artist-grid{
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.artist-section{
  padding: 16px;
}

.section-title{
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -.3px;
}

/* Tags */
.tag-row{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  font-weight: 600;
  font-size: .85rem;
}

/* Gallery */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Clean list */
.clean-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.clean-list li{
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.clean-list li:last-child{
  border-bottom: none;
}

/* Key-value block */
.kv{
  display: grid;
  gap: 10px;
}

.kv-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}

.kv-k{
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

.kv-v{
  color: var(--text);
}

/* Video embed wrapper */
.embed-wrap{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.embed-wrap iframe{
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

/* Desktop layout */
@media (min-width: 900px){
  .artist-hero-top{
    grid-template-columns: 1.3fr .9fr;
    align-items: start;
    gap: 18px;
  }

  .artist-grid{
    grid-template-columns: 1.3fr .9fr;
    align-items: start;
  }

  .artist-side{
    display: grid;
    gap: 16px;
  }

  .gallery-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .embed-wrap iframe{
    height: 260px;
  }
}

/* ============================= */
/* Premium Hero Polish           */
/* ============================= */

.artist-hero{
  margin: 12px 0 28px;
  padding: 22px 22px 26px;
  background:
    radial-gradient(circle at 80% 20%, rgba(27,42,73,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.05);
}

.artist-name{
 /*font-size: clamp(2rem, 4vw, 2.6rem);*/
  font-weight: 750;
  letter-spacing: -.8px;
}

.artist-subtitle{
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

.artist-section{
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}

.artist-section:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gallery-grid .ph{
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-grid .ph:hover{
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.badge{
  font-weight: 600;
  letter-spacing: .2px;
  backdrop-filter: blur(4px);
}

.badge.premium{
  background: linear-gradient(135deg, rgba(27,42,73,.15), rgba(27,42,73,.05));
  border-color: rgba(27,42,73,.25);
}

.clean-list li{
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.clean-list a{
  font-weight: 600;
  text-decoration: none;
}

.clean-list a:hover{
  color: var(--accent);
}

.meta-row{
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,.06);
}

.meta-row:last-child{
  border-bottom: none;
}

.ph.solid{
  border-style: solid;
  border-color: var(--border);
}
.ph img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-main {
    display: grid;
    gap: 16px;
}

.credential-link{
  margin-left: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  font-size: .9rem;
}

.credential-link:hover{
  text-decoration: underline;
}

/* ============================= */
/* Clean Museum Credentials      */
/* ============================= */

.credential-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.credential-item{
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.credential-item:last-child{
  border-bottom: none;
}

.credential-title{
  display: block;
  font-weight: 600;
  letter-spacing: -.2px;
}

.credential-detail{
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

/* Linked version (very subtle interaction) */
.credential-item.is-link{
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
  transition: padding .2s ease;
  display: block;
}

.credential-item.is-link:hover{
  background: rgba(0,0,0,.025);
  padding-left: 20px;
}
.artist-section{
  padding-top: 20px;
  padding-bottom: 20px;
}

.artist-section + .artist-section{
  margin-top: 6px;
}
.section-title{
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .02em;
  margin: 0 0 16px;
}

/* Filters layout */
.filters { margin: 14px 0 18px; }
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filters-input {
  flex: 1 1 220px;
  min-width: 180px;
}

.filters-select {
  flex: 0 1 220px;
  min-width: 180px;
}

/* Advanced panel using details */
.filters-advanced { width: 100%; }
.filters-advanced > summary {
  list-style: none;
}
.filters-advanced > summary::-webkit-details-marker { display: none; }

/* Make the summary look like a button (you already have .btn) */
.filters-advanced > summary.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

/* Panel */
.filters-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.filters-panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.link-muted {
  color: inherit;
  opacity: .75;
  text-decoration: underline;
}
.link-muted:hover { opacity: 1; }

.filters-group { margin-top: 12px; }
.filters-label { margin-bottom: 8px; opacity: .8; font-size: .95rem; }

/* Chips */
.filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  cursor: pointer;
}

/* Hide the checkbox but keep it accessible */
.chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Selected state */
.chip:has(input:checked) {
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
}

/* Focus styles (subtle) */
.filters input:focus,
.filters select:focus,
.filters summary:focus,
.chip:focus-within {
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 2px;
}

.filters-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Desktop: keep the bar tighter */
@media (min-width: 900px) {
  .filters-advanced { width: auto; }
  .filters-panel { max-width: 880px; }
}

/* =========================================
   Artists Filters: Advanced panel + Chips
   (Theme-aligned for warm paper UI)
   ========================================= */

/* If you keep .filters as the wrapper, don't fight it */
.filters { margin: 14px 0 18px; }

/* Optional: if you adopt the wrapper div from earlier */
.filters-bar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

/* Advanced panel using details */
.filters-advanced{
  /* On mobile it spans full width; on desktop it can sit inline */
  width: 100%;
}

@media (min-width: 900px){
  .filters-advanced{ width: auto; }
}

.filters-advanced > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.filters-advanced > summary::-webkit-details-marker{ display:none; }

/* Make summary behave like a button (works with your .btn) */
.filters-advanced > summary.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

/* The panel */
.filters-panel{
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255,255,255,.65);
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
}

.filters-panel-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.link-muted{
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.link-muted:hover{
  color: var(--accent);
  text-decoration: underline;
}

/* Group headings */
.filters-group{ margin-top: 14px; }
.filters-label{
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .2px;
}

/* Chips: match badge/tag system */
.filters-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

/* Hide checkbox but keep accessible click */
.chip input[type="checkbox"]{
  width: auto;
  margin: 0;
}

/* If you want fully hidden checkbox UI, uncomment:
.chip input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.chip{ position: relative; }
*/

/* Selected */
.chip.is-on{
  background: rgba(27,42,73,.08);         /* accent tint */
  border-color: rgba(27,42,73,.20);
  color: var(--text);
}

/* Hover */
.chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.9);
  color: var(--text);
}

/* Focus */
.filters-advanced > summary:focus,
.chip:focus-within,
.filters input:focus,
.filters select:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 73, 0.14);
  border-color: rgba(27, 42, 73, 0.25);
}

/* Panel actions */
.filters-panel-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Mobile: make the advanced panel buttons full-width (nice) */
@media (max-width: 600px){
  .filters-advanced > summary.btn{ width: 100%; }
  .filters-panel-actions .btn{ width: 100%; }
}

/* ============================= */
/* Artist Index List             */
/* ============================= */

.artist-results{
  margin: 0 0 10px;
}

.artist-list{
  padding: 6px 16px; /* card already has padding; this makes list feel intentional */
}

.artist-item{
  padding: 0; /* clean-list li has padding; we’ll move padding to the clickable area */
}

.artist-link{
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, background .12s ease;
}

.artist-link:hover{
  background: rgba(0,0,0,.02);
}

.artist-link:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 73, 0.14);
  border-radius: 10px;
}

.artist-name{
  display: block;
  font-weight: 750;
  letter-spacing: -.2px;
  line-height: 1.15;
}

.artist-tagline{
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
  max-width: 70ch;
}

.events-grid{
  display: grid;
  gap: 14px;
}

.event-card{
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.event-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,.12);
}

.event-date{
  width: 64px;
  flex: 0 0 64px;
  text-align: center;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}

.event-day{
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

.event-month{
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 4px;
}

.event-body{
  min-width: 0;
}

.event-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.event-title-link{
  color: var(--text);
  text-decoration: none;
}

.event-title-link:hover{
  text-decoration: underline;
}

.event-meta{
  margin-top: 6px;
  font-size: 13px;
}

.event-desc{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.pagination-wrap{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pagination-meta{
  font-size: 13px;
}

.pagination-controls{
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.opportunities-list li {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}

.opportunities-list li:last-child {
  border-bottom: none;
}

.opportunity-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
}

.opportunity-title:hover {
  text-decoration: underline;
}

.opportunity-meta {
  font-size: 0.85rem;
  margin-top: 4px;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.03);
  font-size: .85rem;
  font-weight: 600;
}

.badge.soft{
  font-weight: 600;
  opacity: .9;
}

.page-head{
  margin: 0 0 12px;
}

/* ============================= */
/* Event Detail Page (show)      */
/* ============================= */

.event-detail{
  display: grid;
  gap: 14px;
  max-width: 980px; /* keeps it “designed” */
}

/* Hero: same premium vibe as artist-hero, but lighter */
.event-hero{
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(27,42,73,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.05);
}

.event-hero-top{
  display: grid;
  gap: 16px;
}

.event-h1{
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -.7px;
  line-height: 1.08;
}

.event-lede{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 70ch;
}

.event-hero-meta{
  padding-top: 6px;
}

.event-inline-link{
  text-decoration: none;
  font-weight: 700;
}
.event-inline-link:hover{ color: var(--accent); text-decoration: underline; }
.event-inline-link .arrow{ margin-left: 6px; font-size: .95em; opacity: .8; }

.event-hero-actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.event-section{
  padding: 18px 20px;
}

.event-h2{
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.event-artist-list li{
  padding: 0;
}

.event-artist-link{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}

.event-artist-link:hover{
  background: rgba(0,0,0,.02);
}

.event-artist-name{
  font-weight: 750;
  letter-spacing: -.2px;
}

.event-artist-arrow{
  color: var(--muted);
  font-weight: 800;
  opacity: .85;
}

.event-artist-link:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 73, 0.14);
  border-radius: 10px;
}

/* Desktop layout: text left, meta panel right */
@media (min-width: 900px){
  .event-hero-top{
    grid-template-columns: 1.3fr .9fr;
    align-items: start;
    gap: 18px;
  }

  .event-hero-meta{
    border-left: 1px solid var(--border);
    padding-left: 16px;
  }
}/* Title row + date badge */
.event-title-row{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-date-badge{
  flex: 0 0 auto;
  width: 64px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  padding: 10px 8px;
  text-align: center;
  line-height: 1.05;
}

.event-date-badge-month{
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 800;
}

.event-date-badge-day{
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
}

/* Small screens: badge tucks nicely */
@media (max-width: 520px){
  .event-date-badge{ width: 58px; padding: 9px 7px; }
  .event-date-badge-day{ font-size: 20px; }
}
/* ============================= */
/* Venue Detail Page             */
/* ============================= */

.venue-detail{
  display: grid;
  gap: 14px;
  max-width: 980px;
}

/* Hero */
.venue-hero{
  padding: 20px;
  background:
    radial-gradient(circle at 85% 15%, rgba(27,42,73,.07), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.7));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.05);
}

.venue-hero-top{
  display: grid;
  gap: 16px;
}

.venue-h1{
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -.7px;
}

.venue-lede{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Meta */
.venue-inline-link{
  text-decoration: none;
  font-weight: 700;
}
.venue-inline-link:hover{
  color: var(--accent);
  text-decoration: underline;
}
.venue-inline-link .arrow{
  margin-left: 6px;
  opacity: .8;
}

.venue-hero-actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Section */
.venue-section{
  padding: 18px 20px;
}

.venue-h2{
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .02em;
}

/* Events list */
.venue-events-list li{
  padding: 0;
}

.venue-event-link{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}

.venue-event-link:hover{
  background: rgba(0,0,0,.02);
}

.venue-event-title{
  font-weight: 750;
  letter-spacing: -.2px;
}

/* Mini date badge */
.venue-event-date{
  width: 50px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 4px;
  line-height: 1.05;
  background: rgba(255,255,255,.7);
}

.venue-event-month{
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--muted);
}

.venue-event-day{
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-top: 4px;
}

/* Desktop */
@media (min-width: 900px){
  .venue-hero-top{
    grid-template-columns: 1.3fr .9fr;
  }

  .venue-hero-meta{
    border-left: 1px solid var(--border);
    padding-left: 16px;
  }
}

/* ============================= */
/* Venue Index List              */
/* ============================= */

.venue-results{
  margin: 6px 0 0;
}

.venue-list{
  padding: 6px 16px; /* similar to artist-list */
}

.venue-item{
  padding: 0; /* move padding to the link for full-row click */
}

.venue-link{
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}

.venue-link:hover{
  background: rgba(0,0,0,.02);
}

.venue-link:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 73, 0.14);
  border-radius: 10px;
}

.venue-name{
  display: block;
  font-weight: 800;
  letter-spacing: -.2px;
  line-height: 1.15;
}

.venue-address{
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
  max-width: 70ch;
}

.action-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    padding: 14px 20px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.action-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* =========================================
   Gallery Editor
   ========================================= */

.gallery-editor{
  display: grid;
  gap: 18px;
}


.gallery-editor-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}


.gallery-plan{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}


.gallery-plan-count{
  flex: 0 0 auto;

  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
}


.gallery-editor-grid{
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(180px, 1fr)
    );

  gap: 16px;
}


.gallery-editor-item{
  padding: 10px;
  overflow: hidden;
}


.gallery-editor-image{
  width: 100%;
  aspect-ratio: 1 / 1;

  border-radius: 12px;
  overflow: hidden;

  background:
    rgba(255,255,255,.6);
}


.gallery-editor-image img{
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}


.gallery-image-missing{
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  color: var(--muted);
}


.gallery-editor-info{
  display: grid;
  gap: 4px;

  padding: 12px 4px 4px;
}


.gallery-empty{
  padding: 28px;
  text-align: center;
}


@media (max-width: 600px){

  .gallery-editor-head{
    display: grid;
  }

  .gallery-editor-head .btn{
    width: 100%;
  }

  .gallery-editor-grid{
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

}

/* Gallery Editor - Sortable */

.gallery-editor-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}


.gallery-drag-handle{
  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  display: inline-grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: rgba(255,255,255,.7);
  color: var(--muted);

  font-size: 18px;
  line-height: 1;

  cursor: grab;
  user-select: none;
  touch-action: none;
}


.gallery-drag-handle:hover{
  color: var(--text);
  background: #fff;
}


.gallery-drag-handle:active{
  cursor: grabbing;
}


.gallery-sort-ghost{
  opacity: .35;
}


.gallery-sort-chosen{
  box-shadow: var(--shadow);
}


/* Gallery Editor Actions */

.gallery-editor-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}


.gallery-editor-actions .btn{
  cursor: pointer;
}


.gallery-editor-actions .btn:disabled{
  opacity: .55;
  cursor: wait;
}


.gallery-delete-button{
  color: #8a2e2e;
}


.gallery-delete-button:hover{
  background: rgba(138,46,46,.06);
}

/* Gallery Upload */

.gallery-upload-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 16px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}


.gallery-upload-bar .muted{
  margin-top: 4px;
  font-size: .9rem;
}


.gallery-upload-bar .btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}


@media (max-width: 600px){

  .gallery-upload-bar{
    display: grid;
  }

  .gallery-upload-bar .btn{
    width: 100%;
  }

}

/* =========================================
   Gallery Cropper
   ========================================= */

.gallery-crop-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
}


.gallery-crop-modal[hidden]{
  display: none;
}


.gallery-crop-backdrop{
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.72);
}


.gallery-crop-dialog{
  position: relative;
  z-index: 1;

  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);

  margin: 16px auto;

  display: grid;
  gap: 16px;

  padding: 18px;

  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);

  box-shadow:
    0 24px 80px rgba(0,0,0,.35);

  overflow: auto;
}


.gallery-crop-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}


.gallery-crop-stage{
  width: 100%;
  height: min(65vh, 650px);

  background: #111;

  border-radius: 12px;
  overflow: hidden;
}


.gallery-crop-stage img{
  display: block;

  max-width: 100%;
}


.gallery-crop-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


@media (max-width: 600px){

  .gallery-crop-dialog{
    width: calc(100% - 16px);
    margin: 8px auto;
    max-height: calc(100dvh - 16px);
  }


  .gallery-crop-stage{
    height: 55vh;
  }


  .gallery-crop-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

}