/* ═══════════════════════════════════════════════════════════════
   new-listing.css — Apple Liquid Glass wizard
   ═══════════════════════════════════════════════════════════════ */

:root {
  --glass-bg: linear-gradient(165deg, rgba(13,22,37,0.92), rgba(8,17,30,0.86));
  --glass-border: rgba(171,220,255,0.18);
  --glass-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 28px 72px rgba(0,0,0,0.55),
    0 8px 26px rgba(0,60,180,0.14);
  --accent: #1a8cff;
  --accent-hover: #2d98ff;
  --text-primary: #f0f4ff;
  --text-secondary: rgba(200,220,255,0.55);
  --success: #30d158;
  --error: #ff453a;
  --radius-card: 28px;
  --radius-input: 13px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Page base ─────────────────────────────────────────────── */
.new-listing-page {
  min-height: 100dvh;
  background:
    radial-gradient(1100px 560px at 10% 0%, rgba(56,122,210,0.30), transparent 68%),
    radial-gradient(940px 480px at 94% 10%, rgba(39,165,216,0.20), transparent 70%),
    linear-gradient(180deg, #0a101c 0%, #08111c 46%, #070b12 100%);
  font-family: var(--font);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

/* ─── Header / Progress ─────────────────────────────────────── */
.nl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(7,11,18,0.80);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(120,180,255,0.12);
}

.nl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rd-accent, var(--accent));
  font-size: var(--rd-text-sm, 0.9rem);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--rd-radius-full, 999px);
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  transition: background var(--transition, 0.2s), color var(--transition, 0.2s);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.nl-back-btn::before { content: '←'; font-size: 1.1em; }
.nl-back-btn:hover {
  background: rgba(26,140,255,0.14);
  color: var(--rd-accent-hover, #2d98ff);
}

.nl-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  overflow: hidden;
}

.nl-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a8cff, #5ac8fa);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 11.1%;
}

.nl-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Main wrapper ──────────────────────────────────────────── */
.nl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 120px;
  min-height: calc(100dvh - 52px);
}

/* ─── Step section ──────────────────────────────────────────── */
.nl-step {
  width: 100%;
  max-width: 600px;
  animation: nlFadeIn 0.38s cubic-bezier(.22,1,.36,1) both;
}

.nl-step.hidden { display: none; }

@keyframes nlFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Glass card ────────────────────────────────────────────── */
.nl-glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--glass-shadow);
  padding: clamp(28px, 4vw, 42px) clamp(24px, 3.5vw, 38px);
}

.nl-step-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff 30%, #a8c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-step-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

/* ─── Type card grid ────────────────────────────────────────── */
.nl-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.nl-type-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(171,220,255,0.10);
  border-radius: 18px;
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.16s ease, box-shadow 0.16s;
  user-select: none;
  color: var(--text-primary);
  font-family: var(--font);
}

.nl-type-card:hover {
  background: rgba(26,140,255,0.10);
  border-color: rgba(26,140,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,80,200,0.2);
}

.nl-type-card.selected {
  background: rgba(26,140,255,0.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26,140,255,0.30), 0 8px 24px rgba(0,80,200,0.25);
  transform: translateY(-1px);
}

.nl-type-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}

.nl-type-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ─── CAP divider ───────────────────────────────────────────── */
.nl-cap-section {
  margin-top: 24px;
}

.nl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.nl-divider::before, .nl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(171,220,255,0.14);
}

/* ─── Search / List ─────────────────────────────────────────── */
.nl-search-wrap { position: relative; }
.nl-autocomplete-wrap { position: relative; }

.nl-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(171,220,255,0.16);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-size: 0.97rem;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

.nl-input::placeholder { color: var(--text-secondary); }
.nl-input:focus {
  border-color: var(--accent);
  background: rgba(26,140,255,0.08);
  box-shadow: 0 0 0 3px rgba(26,140,255,0.15);
}

.nl-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(10,16,28,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(171,220,255,0.16);
  border-radius: 16px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 4px 16px rgba(0,40,120,0.3);
}

.nl-list.hidden { display: none; }

.nl-list li {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.14s;
  border-radius: 10px;
  margin: 0 4px;
  color: var(--text-primary);
}

.nl-list li:hover, .nl-list li.focused {
  background: rgba(26,140,255,0.18);
  color: #fff;
}

/* ─── Form controls ─────────────────────────────────────────── */
.nl-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nl-form-group--small { flex: 0 0 100px; }

.nl-form-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.nl-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nl-mt { margin-top: 20px; }

/* Stepper */
.nl-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(171,220,255,0.14);
  border-radius: 30px;
  padding: 4px 6px;
  width: fit-content;
}

.nl-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.nl-stepper-btn:hover { background: rgba(26,140,255,0.3); }
.nl-stepper-btn:active { background: var(--accent); }

.nl-stepper-val {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  color: var(--text-primary);
}

.nl-floor-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Feature toggles ───────────────────────────────────────── */
.nl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.nl-feature-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(171,220,255,0.10);
  border-radius: 16px;
  padding: 16px 10px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}

.nl-feature-toggle:has(input:checked) {
  background: rgba(48,209,88,0.12);
  border-color: var(--success);
}

.nl-feature-toggle input { display: none; }

.nl-feature-icon { font-size: 1.7rem; }

.nl-feature-text {
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Segmented control */
.nl-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.nl-seg-btn {
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(171,220,255,0.12);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s;
}

.nl-seg-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nl-conditional {
  margin-top: 16px;
  animation: nlFadeIn 0.2s ease both;
}

/* ─── Price ─────────────────────────────────────────────────── */
.nl-price-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nl-currency {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
}

.nl-input--price { padding-left: 30px !important; font-size: 1.4rem !important; font-weight: 700; }

.nl-price-total {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 14px;
  background: rgba(26,140,255,0.08);
  border-radius: 12px;
  border: 1px solid rgba(26,140,255,0.20);
}

/* ─── Description + Photo ───────────────────────────────────── */
.nl-textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(171,220,255,0.16);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  box-sizing: border-box;
}

.nl-textarea:focus {
  border-color: var(--accent);
  background: rgba(26,140,255,0.06);
  box-shadow: 0 0 0 3px rgba(26,140,255,0.12);
}

.nl-char-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
}

.nl-dropzone {
  border: 2px dashed rgba(171,220,255,0.20);
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.nl-dropzone:hover, .nl-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(26,140,255,0.06);
}

.nl-dropzone-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }

.nl-dropzone-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.nl-dropzone-text strong { color: var(--accent); }

.nl-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.nl-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nl-photo-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid rgba(171,220,255,0.15);
  animation: nlFadeIn 0.2s ease both;
}

.nl-photo-thumb-wrap {
  position: relative;
}

.nl-photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #ff453a;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 0;
}

/* ─── Footer nav ────────────────────────────────────────────── */
.nl-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(7,11,18,0.85);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid rgba(120,180,255,0.10);
  z-index: 90;
}

.nl-btn {
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.14s, box-shadow 0.14s, background 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}
.nl-btn:active { transform: scale(0.97); }

.nl-btn--next {
  background: linear-gradient(140deg, #1a8cff, #0d67d8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,100,255,0.40);
}
.nl-btn--next:hover { background: linear-gradient(140deg, #2d98ff, #1174ea); box-shadow: 0 6px 28px rgba(10,100,255,0.5); }
.nl-btn--next:disabled { background: rgba(255,255,255,0.12); box-shadow: none; cursor: default; }

.nl-btn--back {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid rgba(171,220,255,0.14);
}
.nl-btn--back:hover { background: rgba(255,255,255,0.13); }

.nl-btn--cancel {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin-right: auto;
}
.nl-btn--cancel:hover { color: rgba(255,80,80,0.85); border-color: rgba(255,80,80,0.35); background: rgba(255,50,50,0.07); }

.nl-btn--draft {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nl-btn--draft:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nl-btn--draft:disabled { opacity: 0.45; cursor: default; }

/* ─── Success screen ────────────────────────────────────────── */
.nl-success-screen {
  position: fixed;
  inset: 0;
  background: rgba(5,9,18,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: nlFadeIn 0.4s ease both;
}

.nl-success-screen.hidden { display: none; }

.nl-success-card {
  background: linear-gradient(165deg, rgba(13,22,37,0.96), rgba(8,17,30,0.92));
  border: 1px solid rgba(171,220,255,0.20);
  border-radius: 30px;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  padding: 52px 44px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 32px 80px rgba(0,0,0,0.6),
    0 8px 28px rgba(0,60,180,0.2);
}

.nl-success-icon {
  font-size: 2rem;
  width: 80px;
  height: 80px;
  background: rgba(48,209,88,0.15);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--success);
  font-weight: 700;
}

.nl-success-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff 30%, #a8c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-success-card p {
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-size: 0.95rem;
}

.nl-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Scrollbar custom ──────────────────────────────────────── */
.nl-list::-webkit-scrollbar { width: 5px; }
.nl-list::-webkit-scrollbar-track { background: transparent; }
.nl-list::-webkit-scrollbar-thumb { background: rgba(171,220,255,0.18); border-radius: 5px; }


:root {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-shadow: 0 8px 48px rgba(0, 0, 0, 0.55);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.52);
  --success: #30d158;
  --error: #ff453a;
  --radius-card: 22px;
  --radius-input: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Page base ─────────────────────────────────────────────── */
.new-listing-page {
  min-height: 100dvh;
  background: #000;
  font-family: var(--font);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

/* ─── Header / Progress ─────────────────────────────────────── */
.nl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}

.nl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rd-accent, var(--accent));
  font-size: var(--rd-text-sm, 0.9rem);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--rd-radius-full, 999px);
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  transition: background var(--transition, 0.2s), color var(--transition, 0.2s);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.nl-back-btn::before { content: '←'; font-size: 1.1em; }
.nl-back-btn:hover {
  background: rgba(10, 132, 255, 0.14);
  color: var(--rd-accent-hover, #2d98ff);
}

.nl-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.nl-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #5ac8fa);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 11.1%;
}

.nl-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Main wrapper ──────────────────────────────────────────── */
.nl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 20px 120px;
  overflow-y: auto;
}

/* ─── Step section ──────────────────────────────────────────── */
.nl-step {
  width: 100%;
  max-width: 640px;
  animation: nlFadeIn 0.38s ease both;
}

.nl-step.hidden { display: none; }

@keyframes nlFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Glass card ────────────────────────────────────────────── */
.nl-glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--glass-shadow);
  padding: 32px 28px 28px;
}

.nl-step-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.nl-step-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* ─── Type card grid ────────────────────────────────────────── */
.nl-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.nl-type-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.18s ease;
  user-select: none;
}

.nl-type-card:hover {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-2px);
}

.nl-type-card.selected {
  background: rgba(10, 132, 255, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25);
}

.nl-type-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}

.nl-type-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Search / List ─────────────────────────────────────────── */
.nl-search-wrap { position: relative; }

.nl-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-size: 0.97rem;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  box-sizing: border-box;
}

.nl-input::placeholder { color: var(--text-secondary); }
.nl-input:focus {
  border-color: var(--accent);
  background: rgba(10, 132, 255, 0.07);
}

.nl-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(28, 28, 32, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}

.nl-list.hidden { display: none; }

.nl-list li {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.14s;
  border-radius: 8px;
  margin: 0 4px;
}

.nl-list li:hover, .nl-list li.focused { background: rgba(10, 132, 255, 0.18); color: #fff; }

/* ─── Form controls ─────────────────────────────────────────── */
.nl-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nl-form-group--small { flex: 0 0 100px; }

.nl-form-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.nl-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nl-mt { margin-top: 20px; }

/* Stepper */
.nl-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4px 6px;
  width: fit-content;
}

.nl-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.nl-stepper-btn:hover { background: rgba(10, 132, 255, 0.3); }
.nl-stepper-btn:active { background: var(--accent); }

.nl-stepper-val {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  color: var(--text-primary);
}

.nl-floor-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Feature toggles ───────────────────────────────────────── */
.nl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.nl-feature-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px 10px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}

.nl-feature-toggle:has(input:checked) {
  background: rgba(48, 209, 88, 0.12);
  border-color: var(--success);
}

.nl-feature-toggle input { display: none; }

.nl-feature-icon {
  font-size: 1.7rem;
}

.nl-feature-text {
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Segmented control */
.nl-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.nl-seg-btn {
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s;
}

.nl-seg-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nl-conditional {
  margin-top: 16px;
  animation: nlFadeIn 0.2s ease both;
}

/* ─── Price ─────────────────────────────────────────────────── */
.nl-price-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nl-currency {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
}

.nl-input--price { padding-left: 30px !important; font-size: 1.4rem !important; font-weight: 700; }

.nl-price-total {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 14px;
  background: rgba(10, 132, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

/* ─── Description + Photo ───────────────────────────────────── */
.nl-textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  box-sizing: border-box;
}

.nl-textarea:focus {
  border-color: var(--accent);
  background: rgba(10,132,255,0.06);
}

.nl-char-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
}

.nl-dropzone {
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.nl-dropzone:hover, .nl-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(10,132,255,0.06);
}

.nl-dropzone-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }

.nl-dropzone-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.nl-dropzone-text strong { color: var(--accent); }

.nl-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.nl-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nl-photo-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  position: relative;
  animation: nlFadeIn 0.2s ease both;
}

.nl-photo-thumb-wrap {
  position: relative;
}

.nl-photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #ff453a;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 0;
}

/* ─── Footer nav ────────────────────────────────────────────── */
.nl-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--glass-border);
  z-index: 90;
}

.nl-btn {
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.14s, box-shadow 0.14s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nl-btn:active { transform: scale(0.97); }

.nl-btn--next {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,132,255,0.4);
}
.nl-btn--next:hover { background: var(--accent-hover); box-shadow: 0 6px 28px rgba(10,132,255,0.5); }
.nl-btn--next:disabled { background: rgba(255,255,255,0.15); box-shadow: none; cursor: default; }

.nl-btn--back {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.14);
}
.nl-btn--back:hover { background: rgba(255,255,255,0.14); }

/* ─── Success screen ────────────────────────────────────────── */
.nl-success-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: nlFadeIn 0.4s ease both;
}

.nl-success-screen.hidden { display: none; }

.nl-success-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  padding: 52px 44px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--glass-shadow);
}

.nl-success-icon {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
  background: rgba(48,209,88,0.18);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--success);
  font-weight: 700;
}

.nl-success-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.nl-success-card p {
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-size: 0.95rem;
}

.nl-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Scrollbar custom ──────────────────────────────────────── */
.nl-list::-webkit-scrollbar { width: 5px; }
.nl-list::-webkit-scrollbar-track { background: transparent; }
.nl-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 5px; }

/* Final layout overrides to keep steps centered across duplicated style blocks */
body.new-listing-page {
  background:
    radial-gradient(1100px 560px at 10% 0%, rgba(56,122,210,0.30), transparent 68%),
    radial-gradient(940px 480px at 94% 10%, rgba(39,165,216,0.20), transparent 70%),
    linear-gradient(180deg, #0a101c 0%, #08111c 46%, #070b12 100%);
}

/* Neutralizza regole globali di styles.css (es. section { height:100vh }) */
body.new-listing-page section.nl-step {
  height: auto !important;
  min-height: 0 !important;
  scroll-snap-align: none !important;
}

body.new-listing-page .nl-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100dvh - 52px - 88px) !important;
  width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}

body.new-listing-page .nl-step {
  width: 100% !important;
  max-width: 600px !important;
  margin: auto 0 !important;
  transform: none !important;
  flex-shrink: 0 !important;
}

body.new-listing-page .nl-step > .nl-glass-card {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body.new-listing-page .nl-main {
    min-height: calc(100dvh - 52px - 80px) !important;
    padding: 14px !important;
  }
}

.nl-energy-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(171,220,255,0.14);
  background: linear-gradient(90deg, rgba(42,191,91,0.18) 0%, rgba(234,84,85,0.20) 100%);
}

.nl-energy-pill {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(5,9,16,0.55);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.nl-energy-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.38);
}

.nl-energy-pill.is-selected {
  border-color: var(--energy-color, #1a8cff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--energy-color, #1a8cff) 30%, transparent);
  background: color-mix(in srgb, var(--energy-color, #1a8cff) 24%, rgba(5,9,16,0.62));
}

.nl-energy-selected {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
