@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #16161f;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --accent: #f97316;
  --accent-hover: #ea6c0a;
  --accent-glow: rgba(249, 115, 22, 0.22);
  --text: #f0f0f8;
  --text-muted: #7b7b9a;
  --text-dim: #3a3a55;
  --success: #23c55e;
  --error: #ef4444;
  --card-bg: #13131c;
  --radius: 12px;
  --radius-lg: 18px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* nav (navigation) */

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* hamburger button / menu for mobile users */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.nav-mobile-drawer.open {
  max-height: 500px;
}

.nav-mobile-links {
  list-style: none;
  padding: 8px 16px 0;
}

.nav-mobile-links li a {
  display: block;
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.nav-mobile-links li:last-child a { border-bottom: none; }

.nav-mobile-links li a.active,
.nav-mobile-links li a:hover { color: var(--text); }

.nav-mobile-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.nav-mobile-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-mobile-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.nav-upload-btn { }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: #1e1e2a;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-roblox {
  background: var(--accent);
  color: #fff;
  gap: 8px;
}

.btn-roblox:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}
.btn-discord {
  background: var(--accent);
  color: #fff;
  gap: 10px;
}

.btn-discord:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

/* user chip */

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 0;
}

.user-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.user-avatar-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

a.user-chip {
  transition: border-color 0.15s;
}

a.user-chip:hover {
  border-color: var(--border-hover);
}

/* hero stuff */

.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fdba74;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* sections */

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* map cards */

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.map-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.map-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.map-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.map-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.map-card:hover .map-card-thumb img { transform: scale(1.04); }

.map-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.map-thumb-placeholder svg { opacity: 0.4; }

.map-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.map-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.map-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.map-id-badge {
  font-family: 'DM Sans', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.map-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.map-uploader {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.map-uploader img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.uploader-avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  font-weight: 600;
}

.map-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.map-views-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
}

.map-date {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* uploads page */

.uploads-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.uploads-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.uploads-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.uploads-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

.sort-select {
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.sort-select:focus { border-color: var(--accent); }

/* empty state stuff */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state svg { margin: 0 auto 20px; opacity: 0.2; }

.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p { font-size: 0.875rem; }

/* */

.upload-page { padding: 60px 0 80px; }

.upload-page-header { margin-bottom: 48px; }

.upload-page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.upload-page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.upload-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group { margin-bottom: 22px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--bg-3);
}

.file-drop:hover, .file-drop.drag-over {
  border-color: var(--accent);
  background: rgba(249,115,22,0.05);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--text-muted);
}

.file-drop-label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.file-drop-label span { color: var(--accent); }

.file-drop-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.file-selected {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-top: 12px;
  color: #fdba74;
}

.file-selected.show { display: flex; }

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-item-icon {
  width: 34px;
  height: 34px;
  background: var(--bg-3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.info-item-text h4 {
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.info-item-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* alerts */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.alert svg { flex-shrink: 0; margin-top: 2px; }

.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(35,197,94,0.1);
  border: 1px solid rgba(35,197,94,0.25);
  color: #86efac;
}

/* map details */

.detail-page { padding: 60px 0 80px; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: color 0.15s;
}

.detail-back:hover { color: var(--text); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.detail-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  font-weight: 300;
}

.detail-meta-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.meta-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  background: var(--bg-3);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  word-break: break-all;
}

.meta-uploader {
  display: flex;
  align-items: center;
  gap: 9px;
}

.meta-uploader img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.meta-uploader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: var(--border);
}

/* page header but simple */

.page-header-simple { padding: 60px 0 32px; }

.page-header-simple h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-header-simple p { color: var(--text-muted); }

/* prose */

.prose {
  max-width: 720px;
  line-height: 1.8;
  font-weight: 300;
}

.prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.prose p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }

.prose ul {
  color: var(--text-muted);
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.prose li { margin-bottom: 6px; }

/* 404 */

.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 16px;
}

.not-found-code {
  font-family: 'Syne', sans-serif;
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-dim);
  line-height: 1;
}

.not-found h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.not-found p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }

/* footer */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* misc */

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* image grids */

.image-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.image-slot {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-3);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.image-slot:hover {
  border-color: var(--accent);
  background: rgba(249,115,22,0.04);
}

.image-slot.has-image {
  border-style: solid;
  border-color: var(--border-hover);
}

.image-slot-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.image-slot.has-image .image-slot-input { z-index: 0; }

.image-slot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  pointer-events: none;
}

.slot-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.image-slot-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}

.image-slot.has-image .image-slot-preview { display: block; }
.image-slot.has-image .image-slot-placeholder { display: none; }

.image-slot-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: none;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.image-slot-clear:hover { background: rgba(239,68,68,0.85); }
.image-slot.has-image .image-slot-clear { display: flex; }
.image-upload-grid--1 { grid-template-columns: repeat(1, 1fr); }
.image-upload-grid--2 { grid-template-columns: repeat(2, 1fr); }
.image-upload-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* reponsive */

/* tablet -  hide nav links, show hamburger */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-drawer { display: flex; }

  .upload-layout,
  .detail-layout { grid-template-columns: 1fr; }

  .hero-stats { gap: 28px; }
  .maps-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .form-card { padding: 24px; }
}

/* mobile */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; margin-top: 48px; padding-top: 28px; }
  .stat-value { font-size: 1.5rem; }

  .section { padding: 48px 0; }

  .uploads-header { padding: 40px 0 28px; }
  .uploads-header h1 { font-size: 1.7rem; }

  .uploads-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 0;
  }

  .search-input-wrap { min-width: unset; }
  .sort-select { width: 100%; }

  .maps-grid { grid-template-columns: 1fr; gap: 14px; }

  .upload-page { padding: 40px 0 60px; }
  .upload-page-header { margin-bottom: 28px; }
  .upload-page-header h1 { font-size: 1.6rem; }

  .form-card { padding: 20px 16px; }

  .image-upload-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .image-upload-grid--3 { grid-template-columns: repeat(2, 1fr); }

  .detail-page { padding: 40px 0 60px; }
  .detail-title { font-size: 1.4rem; }

  .page-header-simple { padding: 40px 0 24px; }
  .page-header-simple h1 { font-size: 1.6rem; }

  .not-found-code { font-size: 5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  .btn { touch-action: manipulation; }
  .btn-sm { padding: 8px 14px; font-size: 0.82rem; }
}