/* ============================================================
   Add New Listing — shared stylesheet
   Design tokens, header, sidebar & footer are copied verbatim
   from sell.html so the dashboard shell stays pixel-identical
   across all wizard pages. Only the wizard-specific rules below
   the "WIZARD SHELL" marker are new.
   ============================================================ */

:root {
  --navy:        #0a122d;
  --navy-2:      #121e42;
  --navy-3:      #1a2a56;
  --navy-card:   rgba(255,255,255,.07);
  --blue:        #2563eb;
  --blue-lt:     #4f8cff;
  --blue-50:     #eff6ff;
  --blue-100:    #dbeafe;
  --purple:      #7c3aed;
  --purple-50:   #f5f3ff;
  --green:       #16a34a;
  --green-50:    #f0fdf4;
  --orange:      #d97706;
  --orange-50:   #fff7ed;
  --red:         #dc2626;
  --text:        #0f172a;
  --text-700:    #334155;
  --muted:       #64748b;
  --text-400:    #94a3b8;
  --text-300:    #cbd5e1;
  --line:        #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }

/* ══ HEADER ══ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav-wrap {
  max-width: 1440px; margin: 0 auto;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-box {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.logo-name { font-size: 17px; font-weight: 800; }
.logo-sub  { font-size: 11px; color: var(--muted); }

.top-nav { display: flex; gap: 28px; }
.top-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-700);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.top-nav a:hover { color: var(--blue); }
.top-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-icon-btn {
  position: relative; cursor: pointer;
  color: var(--text-700); background: none; border: none;
  display: flex; align-items: center;
}
.notif-dot {
  position: absolute; top: -4px; right: -5px;
  background: var(--red); width: 8px; height: 8px; border-radius: 50%;
}
.nav-saved {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--text-700); cursor: pointer;
}
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
}

/* ══ LAYOUT ══ */
.layout { display: flex; min-height: calc(100vh - 68px); }

/* ══ SIDEBAR ══ */
.sidebar {
  width: 220px; background: var(--white);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex; flex-direction: column;
  position: sticky; top: 68px; align-self: flex-start;
  height: calc(100vh - 68px); overflow-y: auto;
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-700);
  cursor: pointer; margin-bottom: 1px;
  transition: background .15s, color .15s;
}
.sb-item:hover { background: var(--bg); }
.sb-item.active { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.sb-badge {
  margin-left: auto; background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 10px;
  padding: 1.5px 6px;
}
.sb-spacer { flex: 1; }

/* ══ FOOTER ══ */
footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 32px 20px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 36px; }
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.f-logo-box { width: 30px; height: 30px; background: var(--blue); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.f-tagline   { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 250px; margin-bottom: 14px; }
.f-socials   { display: flex; gap: 14px; }
.f-socials a { color: var(--text-700); }
.f-col-title { font-weight: 700; font-size: 13.5px; margin-bottom: 12px; }
.f-link      { display: block; font-size: 13px; color: var(--muted); margin-bottom: 9px; transition: color .15s; }
.f-link:hover{ color: var(--blue); }
.f-bottom    { text-align: center; color: var(--text-400); font-size: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ══════════════════════════════════════════════════════════
   WIZARD SHELL — new styles for the Add New Listing flow
   ══════════════════════════════════════════════════════════ */

.wiz-main { flex: 1; padding: 32px 40px 64px; }

.wiz-head { max-width: 1180px; margin: 0 auto 24px; }
.wiz-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 4px; }
.wiz-head p { font-size: 14px; color: var(--muted); }

/* ── Step indicator ── */
.wiz-steps {
  max-width: 1180px; margin: 0 auto 32px;
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative;
}
.wiz-steps::before {
  content: ''; position: absolute; top: 19px; left: 60px; right: 60px;
  height: 3px; background: var(--line); border-radius: 3px; z-index: 0;
}
.wiz-steps .wiz-progress-fill {
  content: ''; position: absolute; top: 19px; left: 60px;
  height: 3px; background: var(--blue); border-radius: 3px; z-index: 1;
  transition: width .4s ease;
}
.wiz-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.wiz-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--line); color: var(--text-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; transition: all .25s ease;
}
.wiz-step.active .wiz-step-num { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-50); }
.wiz-step.done .wiz-step-num { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-step-label { font-size: 12.5px; font-weight: 600; color: var(--text-400); }
.wiz-step.active .wiz-step-label { color: var(--blue); font-weight: 800; }
.wiz-step.done .wiz-step-label { color: var(--green); }

/* ── Card shell shared by all steps ── */
.wiz-card {
  max-width: 1180px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.wiz-card-pad { padding: 40px 44px; }

.wiz-split { display: grid; grid-template-columns: 1.35fr 1fr; }
.wiz-split-left { padding: 40px 44px; border-right: 1px solid var(--line); }
.wiz-split-right { padding: 40px 36px; background: var(--bg); }

.wiz-section-title { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.wiz-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

/* ── Form controls ── */
.wiz-group { margin-bottom: 20px; }
.wiz-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-700); }
.wiz-group .hint { font-weight: 500; color: var(--text-400); font-size: 12px; }
.wiz-group input[type="text"],
.wiz-group input[type="number"],
.wiz-group select,
.wiz-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; outline: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s; background: var(--white);
}
.wiz-group input:focus, .wiz-group select:focus, .wiz-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50);
}
.wiz-group textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.wiz-row { display: flex; gap: 16px; }
.wiz-row > * { flex: 1; min-width: 0; }
.wiz-price-input { position: relative; }
.wiz-price-input .cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 13px; pointer-events: none; }
.wiz-group .wiz-price-input input { padding-left: 48px !important; }
.wiz-error { color: var(--red); font-size: 13px; font-weight: 600; margin: -8px 0 16px; min-height: 0; }
.wiz-error:empty { display: none; }

.wiz-ai-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100);
  font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 8px 14px;
  cursor: pointer; font-family: 'Inter', sans-serif; margin-bottom: 4px;
  transition: background .15s;
}
.wiz-ai-btn:hover { background: var(--blue-100); }

/* ── Buttons / nav ── */
.wiz-actions {
  max-width: 1180px; margin: 24px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wiz-save-note { font-size: 12.5px; color: var(--text-400); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.wiz-save-note svg, .wiz-save-note i { color: var(--green); width: 15px; height: 15px; }
.wiz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  font-family: 'Inter', sans-serif; padding: 13px 26px; border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.wiz-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.25); }
.wiz-btn-primary:hover { background: #1d4ed8; }
.wiz-btn-primary:disabled { background: var(--text-300); box-shadow: none; cursor: not-allowed; }
.wiz-btn-secondary { background: var(--white); color: var(--text-700); border: 1.5px solid var(--line); }
.wiz-btn-secondary:hover { background: var(--bg); }
.wiz-btn-lg { padding: 17px 34px; font-size: 16px; }

/* ══ STEP 1 — Initialize ══ */
.wiz-hero { text-align: center; padding: 56px 48px 60px; }
.wiz-hero-illustration { width: 100%; max-width: 420px; margin: 0 auto 8px; display: block; }
.wiz-hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 12px; }
.wiz-hero p { font-size: 15px; color: var(--muted); max-width: 460px; margin: 0 auto 32px; line-height: 1.6; }

/* ══ STEP 2 — Listing Summary card ══ */
.wiz-summary-illustration { width: 100%; max-width: 220px; margin: 0 auto 18px; display: block; opacity: .9; }
.wiz-summary-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; text-align: center; }
.wiz-summary-sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 22px; }
.wiz-summary-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.wiz-summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.wiz-summary-row:last-child { border-bottom: none; }
.wiz-summary-row .k { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.wiz-summary-row .k svg, .wiz-summary-row .k i { width: 14px; height: 14px; color: var(--text-400); }
.wiz-summary-row .v { font-weight: 700; color: var(--text); text-align: right; max-width: 60%; }
.wiz-status-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: var(--orange-50); color: var(--orange); }

/* ══ STEP 3 — Map + Amenities ══ */
.wiz-map {
  position: relative; height: 260px; border-radius: 14px; overflow: hidden; margin-bottom: 20px;
  background:
    linear-gradient(0deg, rgba(148,163,184,.18) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg, rgba(148,163,184,.18) 1px, transparent 1px) 0 0/32px 32px,
    #eef1f6;
  border: 1px solid var(--line);
}
.wiz-map-road { position: absolute; background: #e2e8ef; }
.wiz-map-road.h1 { top: 38%; left: 0; right: 0; height: 10px; }
.wiz-map-road.h2 { top: 72%; left: 0; right: 0; height: 6px; }
.wiz-map-road.v1 { left: 30%; top: 0; bottom: 0; width: 10px; }
.wiz-map-road.v2 { left: 68%; top: 0; bottom: 0; width: 6px; }
.wiz-map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.wiz-map-pin-dot {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--blue);
  transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(37,99,235,.4); border: 3px solid #fff;
}
.wiz-map-pin-pulse {
  width: 14px; height: 14px; border-radius: 50%; background: rgba(37,99,235,.25);
  margin-top: 6px; animation: wiz-pulse 1.8s ease-out infinite;
}
@keyframes wiz-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.wiz-map-label {
  position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.95);
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-700);
  box-shadow: var(--shadow-sm);
}
.wiz-map-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.wiz-map-zoom button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--text-700); box-shadow: var(--shadow-sm);
}

.wiz-amenities-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wiz-amenities-hd h4 { font-size: 14.5px; font-weight: 800; }
.wiz-amenities-hd a { font-size: 12.5px; font-weight: 700; color: var(--blue); cursor: pointer; }
.wiz-amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.wiz-amenity {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 8px; text-align: center;
}
.wiz-amenity-icon {
  width: 30px; height: 30px; border-radius: 8px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.wiz-amenity-num { font-size: 16px; font-weight: 800; line-height: 1; }
.wiz-amenity-lbl { font-size: 10.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.wiz-amenity-empty { font-size: 11px; color: var(--text-400); }

.wiz-verified {
  display: none; align-items: center; gap: 10px; background: var(--green-50);
  border: 1px solid #bbf7d0; color: var(--green); font-weight: 700; font-size: 13.5px;
  border-radius: 10px; padding: 12px 16px; margin-top: 4px;
}
.wiz-verified.show { display: flex; }
.wiz-verified i, .wiz-verified svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ══ STEP 4 — Feature cards ══ */
.wiz-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.wiz-feat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.wiz-feat-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }

.wiz-counter { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wiz-counter button {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg);
  font-size: 16px; font-weight: 800; color: var(--text-700); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.wiz-counter button:hover { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.wiz-counter .val { font-size: 19px; font-weight: 800; min-width: 28px; text-align: center; }

.wiz-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.wiz-toggle-row .val { font-size: 13px; font-weight: 700; color: var(--text-400); }
.wiz-toggle-row .val.on { color: var(--blue); }
.wiz-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.wiz-switch input { opacity: 0; width: 0; height: 0; }
.wiz-switch .track {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: background .2s;
}
.wiz-switch .track::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.wiz-switch input:checked + .track { background: var(--blue); }
.wiz-switch input:checked + .track::before { transform: translateX(18px); }

.wiz-select-mini select { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); background: var(--bg); outline: none; }
.wiz-select-mini select:focus { border-color: var(--blue); }

.wiz-num-mini { display: flex; align-items: baseline; gap: 6px; }
.wiz-num-mini input { width: 100%; border: none; background: transparent; font-size: 19px; font-weight: 800; color: var(--text); outline: none; font-family: inherit; padding: 0; }
.wiz-num-mini .suffix { font-size: 12px; color: var(--text-400); font-weight: 600; white-space: nowrap; }

/* ── Photo dropzone ── */
.wiz-photo-hd { font-size: 14.5px; font-weight: 800; margin: 28px 0 14px; }
.wiz-dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 30px 20px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  background: var(--bg);
}
.wiz-dropzone:hover, .wiz-dropzone.drag { border-color: var(--blue); background: var(--blue-50); }
.wiz-dropzone i, .wiz-dropzone svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 8px; }
.wiz-dropzone .t1 { font-size: 13.5px; font-weight: 700; color: var(--text-700); }
.wiz-dropzone .t2 { font-size: 12px; color: var(--muted); margin-top: 3px; }

.wiz-photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.wiz-photo-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
}
.wiz-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wiz-photo-tile .cover-badge {
  position: absolute; top: 6px; left: 6px; background: var(--blue); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 5px;
}
.wiz-photo-tile .rm-btn {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,23,42,.65); color: #fff; border: none; cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.wiz-photo-tile.more {
  display: flex; align-items: center; justify-content: center; background: var(--navy);
  color: #fff; font-size: 13px; font-weight: 800; text-align: center; cursor: default;
}
.wiz-photo-tile.uploading { display: flex; align-items: center; justify-content: center; background: var(--blue-50); }
.wiz-photo-tile.uploading .spin {
  width: 22px; height: 22px; border: 3px solid var(--blue-100); border-top-color: var(--blue);
  border-radius: 50%; animation: wiz-spin .8s linear infinite;
}
@keyframes wiz-spin { to { transform: rotate(360deg); } }

/* ── Completeness + final actions ── */
.wiz-complete-wrap { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.wiz-complete-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wiz-complete-hd span:first-child { font-size: 13.5px; font-weight: 800; }
.wiz-complete-hd span:last-child { font-size: 13.5px; font-weight: 800; color: var(--blue); }
.wiz-progress-track { height: 9px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.wiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-lt)); border-radius: 999px; transition: width .5s ease; }

/* ══ Responsive ══ */
@media (max-width: 1000px) {
  .wiz-split { grid-template-columns: 1fr; }
  .wiz-split-left { border-right: none; border-bottom: 1px solid var(--line); }
  .wiz-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .wiz-amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .wiz-photo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .wiz-main { padding: 20px 16px 48px; }
  .wiz-card-pad, .wiz-split-left, .wiz-split-right { padding: 24px 20px; }
  .wiz-step-label { display: none; }
  .wiz-row { flex-direction: column; }
  .wiz-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .wiz-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .wiz-actions { flex-direction: column-reverse; align-items: stretch; }
  .wiz-btn { width: 100%; }
}
