/* ── Page header ─────────────────────────────────────────── */
.venues-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.venues-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.venues-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -.02em;
}
.venues-count {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2px 10px;
}
.btn-add-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -.01em;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-add-venue:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-add-venue:active { transform: translateY(0); }

/* ── Empty state ─────────────────────────────────────────── */
.venues-empty {
  text-align: center;
  padding: 60px 24px;
  color: #94a3b8;
}
.venues-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }
.venues-empty p { font-size: 15px; font-weight: 500; color: #64748b; }
.venues-empty span { font-size: 13px; }

/* ── Venue grid ──────────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Venue card ──────────────────────────────────────────── */
.venue-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.venue-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #cbd5e1;
}

/* ── Image / initials (pleine largeur) ───────────────────── */
.venue-img-wrap {
  width: 100%;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
}
.venue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.venue-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.01em;
}

/* ── Card body ───────────────────────────────────────────── */
.venue-card-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Name & address ──────────────────────────────────────── */
.venue-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -.01em;
  margin-bottom: 5px;
}
.venue-address {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

/* ── Actions ─────────────────────────────────────────────── */
.venue-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.venue-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid;
  font-family: inherit;
  transition: background .15s, transform .1s;
  text-align: center;
}
.venue-btn:active { transform: scale(.97); }
.venue-btn-edit {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155;
}
.venue-btn-edit:hover { background: #f1f5f9; border-color: #cbd5e1; }
.venue-btn-remove {
  background: #fff;
  border-color: #fecaca;
  color: #dc2626;
}
.venue-btn-remove:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .venue-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ── Assign venues button ────────────────────────────────── */
.btn-assign-venues {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -.01em;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-assign-venues:hover { background: #e2e8f0; border-color: #cbd5e1; }

/* ── Assign panel ────────────────────────────────────────── */
.av-panel { width: 480px; }

.av-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
}

.av-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #2563eb;
  border-left: 3px solid #2563eb;
  padding-left: 8px;
  margin-bottom: 8px;
}
.av-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.5;
}
.av-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.av-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 14px;
  line-height: 1.5;
}
.av-btn-auto {
  padding: 11px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -.01em;
  transition: background .15s;
  align-self: flex-start;
}
.av-btn-auto:hover { background: #1d4ed8; }
.av-btn-auto:disabled { opacity: .5; cursor: not-allowed; }

.av-divider {
  border-top: 1px solid #e2e8f0;
  margin: 20px 0;
}

.av-match-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.av-match-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.av-match-label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  min-width: 0;
  line-height: 1.4;
}
.av-match-label span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
}
.av-venue-select {
  padding: 5px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
  color: #1e293b;
  max-width: 140px;
  flex-shrink: 0;
}
.av-venue-select:focus { outline: none; border-color: #2563eb; }
