/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:   #FF6A00;
  --orange-d: #CC5200;
  --dark:     #0D0D0F;
  --dark2:    #141416;
  --dark3:    #1C1C1F;
  --dark4:    #242428;
  --mid:      #3A3A3F;
  --muted:    #888896;
  --white:    #FFFFFF;
  --nav-h:    72px;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.45);
}

html, body {
  height: 100%;
  overflow: hidden; /* prevent page scroll — map fills screen */
  font-family: 'Open Sans', sans-serif;
  background: #f5f5f5;
  color: var(--dark);
}

.hidden { display: none !important; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-upload {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-upload:hover { background: var(--orange-d); }

.btn-auth {
  background: white;
  color: var(--dark);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-auth:hover { border-color: var(--orange); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
  position: relative;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── MAP ── */
#map-container {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Leaflet attribution */

/* ── MAP MARKERS — square, Instagram-style, centered on coordinate ── */
.sawm-marker-el {
  cursor: pointer;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.4);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.sawm-marker-el:hover {
  transform: scale(1.12);
  border-color: var(--orange);
  z-index: 9999 !important;
}
.sawm-marker-el img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── CLUSTERS ── */

.sawm-cluster-el:hover { transform: scale(1.1); }

/* Override default cluster styles */
.marker-cluster-small,
.marker-cluster-medium,

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div { background: none !important; }

/* ── ARTWORK COUNT BADGE ── */
.map-count-badge {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  pointer-events: none;
}
.map-count-badge span { font-weight: 600; color: var(--orange); }

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.modal-panel--detail {
  max-width: 680px;
  padding: 0;
  overflow: hidden;
  max-height: 88vh;
  height: 88vh;
}
#detail-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.detail-modal-sticky {
  flex-shrink: 0;
  z-index: 10;
  background: white;
}
.detail-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: #f0f0f0;
  border: none;
  color: #666;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 20;
}
.modal-close:hover { background: #ddd; color: #333; }

.modal-panel h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.form-row .form-group, .form-row-2 .form-group { margin-bottom: 0; }
@media (max-width: 480px) { .form-row, .form-row-2 { grid-template-columns: 1fr; } }

label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #999; font-size: 11px; }

/* Smooth continuous caret blink on all inputs */
@keyframes blink-caret {
  0%   { caret-color: var(--dark); }
  49%  { caret-color: var(--dark); }
  50%  { caret-color: transparent; }
  99%  { caret-color: transparent; }
  100% { caret-color: var(--dark); }
}
input, textarea {
  caret-color: var(--dark);
}
input:focus, textarea:focus {
  animation: blink-caret 1.1s linear infinite;
}

input[type="text"], input[type="number"], input[type="email"], input[type="date"], input[type="url"], textarea {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--orange); background: white; }
textarea { resize: vertical; }

/* Image upload */
.image-upload-zone {
  border: 2px dashed #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.image-upload-zone:hover { border-color: var(--orange); }
.image-zone-inner {
  padding: 28px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.image-zone-inner u { color: var(--orange); cursor: pointer; }
.image-previews { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; }
.preview-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.preview-thumb:first-child { border-color: var(--orange); }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb .first-badge {
  position: absolute;
  bottom: 3px; left: 3px;
  background: var(--orange);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
}
.zone-hint {
  font-size: 11px;
  color: #999;
  padding: 4px 8px 8px;
  text-align: center;
}

/* Artists */

.artist-row { display: flex; gap: 8px; align-items: center; }
.artist-row input { flex: 1; }

.btn-add-artist {
  background: none;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #999;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  margin-top: 2px;
  font-family: 'Open Sans', sans-serif;
}
.btn-add-artist:hover { border-color: var(--orange); color: var(--orange); }

/* Address */
.address-wrap { display: flex; gap: 8px; }
.address-wrap input { flex: 1; }

.address-suggestions {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.address-suggestion {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.address-suggestion:last-child { border-bottom: none; }
.address-suggestion:hover { background: #fff5f0; color: var(--dark); }

.address-confirmed {
  margin-top: 5px;
  font-size: 12px;
  color: #00a855;
  padding: 5px 10px;
  background: #f0fff8;
  border-radius: 6px;
  border: 1px solid #b8efd0;
}

.form-error {
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #d44;
  font-size: 13px;
  margin-bottom: 12px;
}

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--orange-d); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── DETAIL MODAL ── */

.detail-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  flex-shrink: 0;
}
.detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.2s ease;
}
.detail-img-wrap:hover img { transform: scale(1.02); }
.detail-body { padding: 24px; }
.detail-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.detail-artist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.detail-artist { color: var(--orange); font-size: 14px; font-weight: 500; }
.detail-artist-row .art-tag { margin: 0; }
.detail-loc { color: #888; font-size: 13px; margin-bottom: 8px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.meta-item {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}
.detail-desc { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 16px; white-space: pre-line; }

.art-tag {
  background: #f0f0f0;
  color: #666;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 12px;
}
.detail-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; }
.detail-thumbs img {
  width: 68px; height: 68px;
  border-radius: 7px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.detail-thumbs img.active,
.detail-thumbs img:hover { opacity: 1; border-color: var(--orange); }
.detail-actions { display: flex; gap: 8px; }
.btn-fav, .btn-share {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #555;
  font-family: 'Open Sans', sans-serif;
}
.btn-fav:hover { border-color: var(--orange); color: var(--orange); }
.btn-fav.active { background: var(--orange); border-color: var(--orange); color: white; }
.btn-share:hover { border-color: var(--orange); color: var(--orange); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  border-radius: 100px;
  padding: 11px 22px;
  font-size: 14px;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: fadeUp 0.25s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav { padding: 0 14px; }
  .btn-upload { padding: 7px 12px; font-size: 13px; }
  .modal-panel { padding: 20px; }
}

/* ── ARTIST SELECT ROW ── */
.artist-select-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.artist-select {
  flex: 1;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.artist-select:focus { border-color: var(--orange); background: white; }

.btn-add-artist-inline {
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: 'Open Sans', sans-serif;
}
.btn-add-artist-inline:hover { background: var(--orange); color: white; }

/* ── ADD ARTIST INLINE FORM ── */
.add-artist-form {
  background: #f5f5f7;
  border: 1.5px solid #d0d0d8;
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
}
.add-artist-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.btn-cancel-new-artist {
  background: white;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #666;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s;
}
.btn-cancel-new-artist:hover { border-color: #aaa; color: var(--dark); }
.btn-save-new-artist {
  background: var(--orange);
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  font-family: 'Open Sans', sans-serif;
  transition: background 0.15s;
}
.btn-save-new-artist:hover { background: var(--orange-d); }
.btn-save-new-artist:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── ARTIST LINK IN DETAIL VIEW ── */
.artist-link {
  color: var(--orange);
  cursor: pointer;
  text-decoration: none;
}
.artist-link:hover { text-decoration: underline; }

/* ── ARTIST PROFILE MODAL ── */
.modal-panel--artist {
  max-width: 640px;
  max-height: 88vh;
  height: 88vh;
  overflow: hidden;
  padding: 0;
}
/* artist-modal-content is the flex container — it's the direct parent of sticky+body */
#artist-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.artist-modal-sticky {
  flex-shrink: 0;
  z-index: 10;
  background: white;
  padding: 28px 32px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.artist-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0px 32px 32px;
}
.artist-profile { }
.artist-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.artist-insta {
  display: inline-block;
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 14px;
}
.artist-insta:hover { text-decoration: underline; }
.artist-bio {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 24px;
  white-space: pre-line;
}
.artist-works-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  padding-top: 4px;
  border-top: 1px solid #eee;
}
.artist-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.artist-work-thumb {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  transition: transform 0.12s ease;
}
.artist-work-thumb:hover { transform: scale(1.03); }
.artist-work-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  display: block;
}
.artist-work-title {
  font-size: 11px;
  color: #666;
  padding: 5px 7px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-no-works {
  color: #aaa;
  font-size: 13px;
  font-style: italic;
}

/* ── ARTIST CHIPS (multi-select) ── */
.artist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  min-height: 0;
}
.artist-chips:empty {
  display: none;
}
.artist-chips:not(:empty) {
  margin-bottom: 6px;
}
.artist-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff0e8;
  border: 1px solid #ffc8a0;
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
}
.chip-remove {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.chip-remove:hover { opacity: 1; }

/* Type multi-select */
#f-tags {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
#f-tags:focus { border-color: var(--orange); }
#f-tags option { padding: 5px 8px; }
#f-tags option:checked { background: #fff0e8; color: var(--orange); }

/* ── IMAGE LIGHTBOX ── */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lbFadeIn 0.2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.img-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: default;
  pointer-events: none;
}
.img-lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
}
.img-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ── USER PROFILE MODAL ── */
.profile-photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  flex-shrink: 0;
}

.profile-email {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.profile-liked-row {
  font-size: 13px;
  color: #555;
}
.profile-save-msg {
  font-size: 13px;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  margin-top: 8px;
}
.profile-save-msg.ok  { background: #f0fff8; color: #00a855; }
.profile-save-msg.err { background: #fff0f0; color: #d44; }
.btn-profile-signout {
  width: 100%;
  margin-top: 16px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s;
}
.btn-profile-signout:hover { border-color: #ff4040; color: #ff4040; }

/* ── PROFILE TOP LAYOUT ── */
.profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.profile-top-info {
  flex: 1;
  min-width: 0;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.profile-email-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.btn-edit-inline {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-edit-inline:hover { opacity: 1; }


/* ── PROFILE PHOTO UPLOAD ── */
.profile-photo-clickable {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: visible;   /* allow badge to sit outside */
  cursor: pointer;
  flex-shrink: 0;
}
.profile-photo-clickable img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #eee;
  transition: border-color 0.15s;
}
.profile-photo-clickable:hover img { border-color: var(--orange); }
.profile-photo-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
  pointer-events: none;
  border: 2px solid white;
  z-index: 20;
}

/* ── EMAIL CHANGE ── */
.email-change-row {
  display: flex;
  gap: 8px;
}
.email-change-row input { flex: 1; }
.btn-send-verify {
  flex-shrink: 0;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-send-verify:hover { background: var(--orange-d); }
.btn-send-verify:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── SOCIAL INPUT WITH PREFIX ── */
.social-input-wrap {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.social-input-wrap:focus-within { border-color: var(--orange); background: white; }
.social-prefix {
  padding: 10px 10px 10px 12px;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.social-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px 10px 0;
  font-size: 14px;
  outline: none;
  color: var(--dark);
  min-width: 0;
}

/* ── FILTER PANEL ── */
.filter-panel {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 12px;
  z-index: 800;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-panel-body {
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  width: 364px;
  flex-shrink: 0;
  overflow: visible;
}

/* Search row: normal input with absolutely-positioned icon */
.filter-search-row {
  display: flex;
  align-items: stretch;  /* make all children same height */
  gap: 8px;
  margin-bottom: 14px;
  overflow: visible;     /* allow button to hang outside panel */
}
.filter-search-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.filter-search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.filter-search-input {
  width: 100%;
  padding-left: 32px !important;
}

/* Collapse/expand button — sits to the right of the panel body,
   always visible even when panel is off-screen */
.filter-collapse-btn {
  background: white;
  border: 1px solid #eee;
  border-radius: 0 10px 10px 0;
  width: 28px;
  align-self: stretch;   /* stretch to match sibling input height automatically */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  flex-shrink: 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  /* Pull button out of the panel to the right */
  margin-right: -44px;  /* panel padding(16px) + border(1px) + button width(28px) - 1px overlap */
  transition: color 0.15s, background 0.15s;
}
.filter-collapse-btn:hover { color: var(--orange); background: #fff5f0; }
.filter-section { margin-bottom: 14px; }
.filter-section:last-of-type { margin-bottom: 0; }
.filter-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 6px;
}
.filter-input {
  width: 100%;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  outline: none;
  transition: border-color 0.15s;
}
.filter-input:focus { border-color: var(--orange); background: white; }


.filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter-type-chip {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  color: #555;
  transition: all 0.15s;
}
.filter-type-chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.filter-clear {
  flex: 1;
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #666;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s;
}
.filter-clear:hover { border-color: #aaa; color: #333; }
.filter-apply {
  flex: 1;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  font-family: 'Open Sans', sans-serif;
  transition: background 0.15s;
}
.filter-apply:hover { background: var(--orange-d); }

/* ── STATUS VOTE BAR ── */
.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.detail-title-row .detail-title { margin-bottom: 0; flex: 1; min-width: 0; }
.still-there-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.btn-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #555;
  white-space: nowrap;
}
.btn-status .ti { font-size: 13px; }
.btn-status:hover                          { border-color: #aaa; background: #efefef; color: #333; }
.btn-status.active[data-type="there"],
.btn-status[data-type="there"]:hover       { background: #00a855; border-color: #00a855; color: white; }
.btn-status.active[data-type="vandalized"],
.btn-status[data-type="vandalized"]:hover  { background: #e07000; border-color: #e07000; color: white; }
.btn-status.active[data-type="removed"],
.btn-status[data-type="removed"]:hover     { background: #e04040; border-color: #e04040; color: white; }

/* ── COMMENTS BUTTON ── */
.btn-comment {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #555;
  font-family: 'Open Sans', sans-serif;
}
.btn-comment:hover { border-color: var(--orange); color: var(--orange); }

/* ── COMMENTS MODAL ── */
#modal-comments { z-index: 2500; }  /* above detail modal */
.modal-panel--comments h2 {
  font-size: 18px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.no-comments    { font-size: 13px; color: #aaa; text-align: center; padding: 24px 0; font-style: italic; }
.comment-input-wrap {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.comment-input-wrap textarea {
  flex: 1;
  resize: none;
  border-radius: 10px;
}
.comment-submit {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  align-self: stretch;
  transition: background 0.15s;
}
.comment-submit:hover { background: var(--orange-d); }
.comment-submit:disabled { opacity: 0.5; }
.comment-signin-prompt {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 12px 0;
  flex-shrink: 0;
}

/* ── LEAFLET ZOOM CONTROL ── */
.leaflet-control-zoom a {
  background: white !important;
  color: #333 !important;
  border-color: #ddd !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
  font-size: 18px !important;
  line-height: 26px !important;
}
.leaflet-control-zoom a:hover {
  background: var(--orange) !important;
  color: white !important;
  border-color: var(--orange) !important;
}
.leaflet-bottom.leaflet-right {
  bottom: 40px !important;
  right: 12px !important;
}

/* ── TABLER ICONS — global defaults ── */
.ti {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Smaller icons in tight contexts */
.chip-remove .ti,
.btn-edit-inline .ti {
  font-size: 13px;
}
/* Filter search icon */

/* Profile photo camera badge */
.profile-photo-edit-badge .ti {
  font-size: 13px;
  color: white;
}
/* Sidebar icons in admin */
.sidebar-item .ti { font-size: 17px; }
/* Meta items in detail */
.meta-item .ti, .detail-loc .ti { font-size: 14px; margin-right: 2px; }
/* Action buttons */
.detail-actions button .ti { font-size: 15px; }
.btn-fav.active .ti,
.btn-fav.active .ti::before { color: white !important; }

/* ── LOCATION LINKS IN DETAIL VIEW ── */
.loc-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}
.loc-link:hover { opacity: 0.75; text-decoration: underline; }

/* ── ARTIST MODAL LOAD MORE ── */
.btn-load-more-artist {
  background: none;
  border: 1.5px solid var(--orange);
  border-radius: 100px;
  padding: 9px 28px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-load-more-artist:hover {
  background: var(--orange);
  color: white;
}

/* ── INLINE TEXT LINKS (bio, description) ── */
.text-link {
  color: var(--orange);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.text-link:hover { text-decoration: underline; }

.artist-works-count { font-size: 14px; font-weight: 400; color: #aaa; margin-left: 4px; }

/* ── INLINE COMMENTS IN DETAIL VIEW ── */
.inline-comments { margin-top: 16px; }
.inline-comments-divider { height: 1px; background: #eee; margin-bottom: 14px; }
.inline-comments-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 12px; }
.inline-comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.no-comments { font-size: 13px; color: #aaa; padding: 4px 0 12px; }
.comment-item {
  font-size: 13px;
  background: #f4f4f4;
  border-radius: 14px;
  padding: 10px 13px;
  position: relative;
}

.comment-item::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #f4f4f4;
}
.comment-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.comment-author { font-weight: 700; color: #333; }
.comment-date   { color: #aaa; font-size: 11px; }
.comment-body   { color: #444; line-height: 1.5; }
.comment-controls { margin-left: auto; display: flex; gap: 6px; }
.comment-edit-btn, .comment-delete-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; font-family: 'Open Sans', sans-serif;
  padding: 0; color: #aaa; text-decoration: none;
}
.comment-edit-btn:hover   { color: var(--orange); text-decoration: underline; }
.comment-delete-btn:hover { color: #e04040; text-decoration: underline; }
.comment-edit-textarea {
  width: 100%; resize: none; border-radius: 8px;
  font-size: 13px; padding: 8px; border: 1.5px solid #ddd;
  font-family: 'Open Sans', sans-serif;
}
.inline-comment-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  scroll-margin-bottom: 80px;
}
.inline-comment-input-wrap textarea {
  width: 100%;
  resize: none;
  border-radius: 10px;
  font-size: 13px;
  box-sizing: border-box;
}
.comment-input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.comment-input-actions .btn-status {
  padding: 5px 16px;
}
.active-post {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: white !important;
}
.active-post:hover {
  background: var(--orange-d) !important;
  border-color: var(--orange-d) !important;
}

.detail-section-title { font-size: 14px; font-weight: 700; color: #333; margin: 14px 0 6px; }

/* ── COMMENT REPLIES ── */
.comment-reply-btn,
.reply-edit-btn,
.reply-delete-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; font-family: 'Open Sans', sans-serif;
  color: #aaa; padding: 0; text-decoration: none;
}
.comment-reply-btn:hover { color: var(--orange); text-decoration: underline; }
.reply-edit-btn:hover    { color: var(--orange); text-decoration: underline; }
.reply-delete-btn:hover  { color: #e04040; text-decoration: underline; }
.comment-reply-area { margin-top: 6px; }
.reply-input-wrap { display: flex; flex-direction: column; gap: 6px; }
.reply-textarea {
  width: 100%; resize: none; border-radius: 10px;
  font-size: 13px; padding: 8px; border: 1.5px solid #ddd;
  font-family: 'Open Sans', sans-serif; box-sizing: border-box;
}
.replies-list { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid #eee; margin-top: 6px; }
.reply-item {
  font-size: 12px; background: #f9f9f9;
  border-radius: 10px; padding: 7px 10px;
}

/* ── ARTIST MODAL LIKE ── */
.artist-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.artist-profile-header .artist-name { margin-bottom: 0; }
.artist-profile-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #eee;
  background: #f0f0f0;
}
.btn-artist-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-artist-like:hover       { border-color: var(--orange); color: var(--orange); }
.btn-artist-like.active      { border-color: #f43f5e; color: #f43f5e; }
.btn-artist-like.active:hover{ border-color: #e02040; color: #e02040; }

/* ── SHARE MODAL ── */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.share-modal {
  background: white;
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.share-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}
.share-close {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  transition: background 0.15s;
}
.share-close:hover { background: #e0e0e0; }
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 14px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}
.share-btn svg { color: var(--share-color); }
.share-btn:hover {
  background: white;
  border-color: var(--share-color);
  color: var(--share-color);
}
.share-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-url-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #888;
  background: #fafafa;
  font-family: 'Open Sans', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-copy-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.share-copy-btn:hover { background: var(--orange-d); }

.artist-meta-line { font-size: 13px; color: #666; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.artist-meta-line .ti { color: #aaa; }
.artist-contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; align-items: center; }
.artist-contact-item { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #666; }
.artist-contact-item .ti { color: #aaa; font-size: 14px; }
.modal-panel h2 { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════
   ARTISTS LIST PAGE
   ════════════════════════════════════════════════════════════ */

/* ── Pill button in filter panel ── */
.filter-artists-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #555;
  white-space: nowrap;
  text-decoration: none;
}
.filter-artists-pill:hover { border-color: var(--orange); background: var(--orange); color: white; }
.filter-artists-pill .ti   { font-size: 13px; }

/* ── Full-page overlay ── */
.artists-list-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: artistsSlideIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes artistsSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav inside overlay — identical styling, no z-index needed */
.artists-list-overlay .nav {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Artists list header (below the nav) */
.artists-list-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 28px 14px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.artists-list-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.artists-list-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.artists-list-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.artists-list-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

/* Back link */
.artists-list-back {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  transition: opacity 0.15s;
}
.artists-list-back:hover { opacity: 0.75; }
.artists-list-back .ti   { font-size: 15px; }

/* Close button (circle X) */
.artists-list-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.artists-list-close:hover { border-color: #bbb; background: #f5f5f5; color: var(--dark); }
.artists-list-close .ti   { font-size: 16px; }

/* Alpha bar */
.artists-alpha-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.alpha-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.alpha-btn:hover  { background: #f5f5f5; color: var(--dark); }
.alpha-btn.active { background: var(--orange); color: white; }
.alpha-btn.empty  { color: #ccc; cursor: default; pointer-events: none; }

/* Scrollable content */
.artists-list-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.artists-list-content > * {
  width: 100%;
  max-width: 680px;
}

/* Section title */
.artists-section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #999;
  margin-bottom: 14px;
  text-align: center;
}

/* Artist count in page title */
.artists-list-count {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-left: 3px;
}

/* Cards list */
.artists-cards-list {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}

/* Individual card — works as <div> (overlay) or <a> (artists page) */
.artist-list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}
.artist-list-card:last-child { border-bottom: none; }
.artist-list-card:hover { background: #f8f8f8; }

/* Rank */
.artist-list-rank {
  font-size: 32px;
  font-weight: 100;
  color: #ccc;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}
.artist-list-rank.top3 { color: var(--orange); }

/* Avatar */
.artist-list-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
  border: 1.5px solid #eee;
  display: block;
}

/* Name + meta */
.artist-list-info { flex: 1; min-width: 0; }
.artist-list-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-list-meta { font-size: 12px; color: #aaa; margin-top: 1px; }

/* Likes chip — number then heart */
.artist-list-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  flex-shrink: 0;
  min-width: 32px;
  justify-content: flex-end;
}
.artist-list-likes .ti { font-size: 13px; }
.artist-list-likes.has-likes     { color: var(--orange); }
.artist-list-likes.has-likes .ti { color: var(--orange); }

/* Empty / loading states */
.artists-empty-state {
  color: #bbb;
  font-size: 14px;
  text-align: center;
  padding: 48px 0;
  font-style: italic;
  line-height: 1.6;
}
.artists-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: #aaa;
  font-size: 14px;
}
@keyframes al-spin { to { transform: rotate(360deg); } }
.artists-loading .ti { animation: al-spin 1s linear infinite; font-size: 20px; }

/* Responsive */
@media (max-width: 600px) {
  .artists-list-header  { padding: 14px 16px 12px; }
  .artists-list-content { padding: 16px 12px 40px; }
  .artists-list-title   { font-size: 20px; }
  .artists-alpha-bar    { padding: 8px 4px; gap: 1px; }
  .alpha-btn            { width: 26px; height: 26px; font-size: 11px; border-radius: 6px; }
}

/* ── Most popular link in artists page header ── */
.artists-popular-link {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  transition: opacity 0.15s;
}
.artists-popular-link:hover { opacity: 0.75; }

/* ── USER PROFILE LINK (in artwork detail meta) ── */
.meta-user-link {
  color: var(--orange);
  text-decoration: none;
}
.meta-user-link:hover { text-decoration: underline; }

/* ── FOLLOW BUTTON ── */
.btn-follow {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #555;
  font-family: 'Open Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-follow:hover { border-color: var(--orange); color: var(--orange); }
.btn-follow.active { background: var(--orange); border-color: var(--orange); color: white; }
.btn-follow .follow-count { font-weight: 400; opacity: 0.8; }

/* ── FEED ITEMS ── */
.feed-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0; cursor: pointer;
  transition: background 0.12s; border-radius: 4px;
  align-items: center;
}
.feed-item:hover { background: #fafafa; }
.feed-item:last-child { border-bottom: none; }
.feed-thumb-wrap { flex-shrink: 0; }
.feed-thumb {
  width: 64px; height: 64px; border-radius: 8px;
  object-fit: cover; display: block;
}
.feed-thumb-placeholder {
  width: 64px; height: 64px; border-radius: 8px;
  background: #eee; display: flex; align-items: center;
  justify-content: center; color: #bbb; font-size: 24px;
}
.feed-body { flex: 1; min-width: 0; }
.feed-title {
  font-weight: 600; font-size: 14px; color: #1a1a1a;
  margin-bottom: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.feed-artist {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #555; margin-bottom: 2px;
}
.feed-meta { font-size: 12px; color: #aaa; }

/* ── NOTIFICATION BADGE (on avatar) ── */
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  background: #e03; color: white; border-radius: 20px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  padding: 0 4px; display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none; z-index: 10;
}

/* ── PROFILE MODAL TABS ── */
.modal-panel--profile {
  max-width: 480px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  height: auto; /* sized by profile tab content on first render */
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 20px;
  flex-shrink: 0;
}
.profile-tab-btn {
  position: relative;
  background: none; border: none; cursor: pointer;
  font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: #aaa; padding: 16px 14px 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.profile-tab-btn.active { color: #1a1a1a; border-bottom-color: var(--orange,#ff6a00); }
.profile-tab-btn:hover:not(.active) { color: #555; }
.notif-tab-badge {
  background: #e03; color: white; border-radius: 20px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  padding: 0 4px; display: inline-flex; align-items: center; justify-content: center;
}

/* Profile and notifications tab content */
#profile-tab-profile {
  padding: 24px 28px 28px;
  overflow-y: auto;
  flex: 1;
}
#profile-tab-notifications {
  padding: 24px 28px 28px;
  overflow-y: auto;
  flex: 1;
}
#profile-tab-feed {
  padding: 24px 28px 28px;
  overflow-y: auto;
  flex: 1;
}

/* Bio textarea consistent height */
#profile-tab-profile textarea#profile-bio {
  min-height: calc(3em + 60px);
}

/* Save + Sign out on one line */
.profile-action-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.profile-action-row #btn-save-profile {
  flex: 7;
  margin-top: 0;
}
.profile-action-row .btn-profile-signout {
  flex: 3;
  margin-top: 0;
  width: auto;
}

/* ── NOTIFICATIONS LIST ── */
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; min-height: 28px;
}
.notif-clear-btn {
  background: none; border: 1px solid #ddd; border-radius: 8px;
  padding: 4px 12px; font-size: 12px; color: #999; cursor: pointer;
  font-family: 'Open Sans', sans-serif; transition: all 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.notif-clear-btn:hover { border-color: #e03; color: #e03; }
.notif-list { display: flex; flex-direction: column; gap: 2px; }
.notif-time { font-size: 11px; color: #aaa; margin-top: 3px; line-height: 1.4; }
.notif-load-more {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: 1px solid #ddd; border-radius: 8px;
  padding: 8px; font-size: 13px; color: #888; cursor: pointer;
  font-family: 'Open Sans', sans-serif; transition: all 0.15s; text-align: center;
}
.notif-load-more:hover { border-color: #aaa; color: #444; }
.notif-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: inherit; transition: background 0.12s;
  border: 1px solid transparent;
}
.notif-item:hover { background: #f7f7f7; }
.notif-unread { background: #fff8f3; border-color: #ffe0cc; }
.notif-unread:hover { background: #fff2e8; }
.notif-actor-wrap {
  position: relative; flex-shrink: 0; text-decoration: none; display: block;
}
.notif-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; display: block; background: #eee;
}
.notif-avatar-artwork {
  border-radius: 6px; /* square with rounded corners for artwork */
}
.notif-avatar-initial {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange,#ff6a00); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.notif-avatar-artwork.notif-avatar-initial {
  border-radius: 6px; font-size: 18px;
}
.notif-actor-link, .notif-artwork-link {
  color: inherit; font-weight: 700; text-decoration: none;
}
.notif-actor-link:hover, .notif-artwork-link:hover { text-decoration: underline; }
.notif-thumb-link { flex-shrink: 0; display: block; line-height: 0; }
.notif-type-icon {
  position: absolute; bottom: -3px; right: -4px;
  background: white; border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.notif-type-icon .ti { font-size: 13px; }
.notif-body { flex: 1; min-width: 0; }
.notif-message { font-size: 13px; color: #222; line-height: 1.4; }
.notif-time { font-size: 11px; color: #aaa; margin-top: 2px; }
.notif-thumb {
  width: 42px; height: 42px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.notif-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 48px 20px; color: #bbb; text-align: center;
  font-size: 14px;
}
.notif-empty i { font-size: 32px; }
.notif-empty-sub { font-size: 12px; color: #ccc; max-width: 240px; line-height: 1.5; }
.notif-loading { color: #bbb; font-size: 13px; padding: 20px 0; text-align: center; }
