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

:root {
  --primary:   #e05c1a;
  --primary-l: #fff0e8;
  --bg:        #f4f5f7;
  --surface:   #ffffff;
  --border:    #e2e5ea;
  --text:      #1a1d23;
  --sub:       #5a6070;
  --muted:     #8a93a3;
  --green:     #16a34a;
  --green-bg:  #f0fdf4;
  --blue:      #2563eb;
  --blue-bg:   #eff6ff;
  --amber:     #d97706;
  --amber-bg:  #fffbeb;
  --red:       #dc2626;
  --red-bg:    #fef2f2;
  --radius:    12px;
  --shadow:    0 2px 12px rgba(0,0,0,.07);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--primary);
  color: #fff;
  padding: 28px 32px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
header h1 { font-size: 1.6rem; font-weight: 800; }
.header-sub { font-size: .9rem; opacity: .85; margin-top: 4px; }

.copy-btn {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,.32); }

/* ── Layout ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* ── Requirements ── */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.req-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.req-icon  { font-size: 1.6rem; margin-bottom: 8px; }
.req-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.req-value { font-size: .92rem; font-weight: 700; color: var(--text); }

.extras-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.extra-tag {
  background: var(--primary-l);
  color: var(--primary);
  border: 1px solid #f0c4a8;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
}

/* ── Platforms ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.platform-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.platform-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,92,26,.15);
}
.platform-logo { font-size: 1rem; font-weight: 800; color: var(--text); }
.platform-desc { font-size: .83rem; color: var(--sub); line-height: 1.55; }
.platform-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag {
  background: var(--blue-bg);
  color: var(--blue);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: .75rem;
  font-weight: 600;
}
.platform-cta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 4px;
}

/* ── Neighborhoods ── */
.hood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.hood-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.hood-card.best  { border-color: var(--green);  background: var(--green-bg); }
.hood-card.good  { border-color: var(--blue);   background: var(--blue-bg);  }
.hood-card.ok    { border-color: var(--amber);  background: var(--amber-bg); }
.hood-badge { font-size: .75rem; font-weight: 700; margin-bottom: 6px; color: var(--sub); }
.hood-name  { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.hood-desc  { font-size: .82rem; color: var(--sub); line-height: 1.55; }

/* ── Tracker ── */
.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.tracker-count {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}

.add-form {
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.8fr 2fr auto;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.add-form input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: .88rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.add-form input:focus { border-color: var(--primary); }
.add-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.add-btn:hover { opacity: .88; }

.prop-list { display: flex; flex-direction: column; gap: 12px; }
.prop-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  box-shadow: var(--shadow);
}
.prop-item.status-interested { border-left: 4px solid var(--blue); }
.prop-item.status-applied    { border-left: 4px solid var(--primary); }
.prop-item.status-visited    { border-left: 4px solid var(--green); }
.prop-item.status-rejected   { border-left: 4px solid var(--red); opacity: .6; }

.prop-main { display: flex; flex-direction: column; gap: 5px; }
.prop-name { font-weight: 700; font-size: .95rem; }
.prop-name a { color: var(--primary); text-decoration: none; }
.prop-name a:hover { text-decoration: underline; }
.prop-meta { font-size: .8rem; color: var(--sub); display: flex; gap: 14px; flex-wrap: wrap; }
.prop-notes { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.prop-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.status-select {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sub);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}
.del-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
  padding: 0;
}
.del-btn:hover { color: var(--red); }

.prop-empty {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 32px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .add-form {
    grid-template-columns: 1fr 1fr;
  }
  .add-form input:first-child,
  .add-form input:last-of-type { grid-column: 1 / -1; }
  .add-btn { grid-column: 1 / -1; }
}
