/* Boaz custom styles */

/* Lucide icon sizing */
[data-lucide] {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  stroke-width: 2;
  flex-shrink: 0;
}

header nav {
  border-bottom: 1px solid #EBEBEB;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.nav-signout {
  all: unset;
  font-size: 0.9rem;
  color: #999;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-signout svg {
  width: 1em;
  height: 1em;
}
.nav-signout:hover {
  color: #555;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #EBEBEB;
  text-align: center;
  color: #999;
}

/* ── Dashboard ───────────────────────────────────────────────────── */

/* Infinite scroll sentinel — invisible but intersectable */
.listing-sentinel {
  grid-column: 1 / -1;
  height: 1px;
  background: transparent;
}

/* Listing card grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

a.listing-card-link,
a.listing-card-link:hover,
a.listing-card-link:visited,
a.listing-card-link * {
  text-decoration: none !important;
  color: inherit !important;
}

a.listing-card-link {
  display: block;
}

.listing-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.listing-card-link:hover .listing-card {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.listing-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.listing-card .img-placeholder {
  width: 100%;
  height: 160px;
  background: #F3F4F5;
}

.listing-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 0.2rem;
}

.listing-card .address {
  font-size: 0.875rem;
  color: #999;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.listing-card .meta {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.listing-card .meta span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  background: #F3F4F5;
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.listing-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
}


/* Filter bar */
.filter-bar {
  background: #F3F4F5;
  border: none;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  /* Pico token overrides so inputs look white-on-gray */
  --pico-form-element-background-color: #fff;
  --pico-form-element-border-color: transparent;
  --pico-form-element-focus-color: #1a1a1a;
  --pico-border-radius: 8px;
}

.filter-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 0;
}

.filter-bar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 140px;
}

.filter-bar label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #999;
  margin: 0;
}

.filter-bar input,
.filter-bar select {
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
}

/* Filter submit button — dark pill */
.filter-bar button[type=submit] {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
  transition: background 0.18s;
}

.filter-bar button[type=submit]:hover {
  background: #333;
  border-color: #333;
}

/* Clear link — underline text */
.filter-bar a[role=button] {
  background: transparent;
  border: none;
  color: #999;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.filter-bar a[role=button]:hover {
  color: #1a1a1a;
  background: transparent;
}

/* ── Onboarding wizard (Medium-inspired) ─────────────────────────── */

.wizard-wrap {
  max-width: 580px;
  margin: 4rem auto;
}

/* Progress bar */
.wizard-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.wizard-steps .step {
  flex: 1;
  height: 3px;
  border-radius: 100px;
  background: #E8E8E8;
  transition: background 0.35s, opacity 0.35s;
}

.wizard-steps .step.active {
  background: #1a1a1a;
}

.wizard-steps .step.done {
  background: #1a1a1a;
  opacity: 0.25;
}

.wizard-step-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 2rem;
}

/* Slider */
.wizard-slider-outer {
  overflow: hidden;
  width: 100%;
}

.wizard-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.wizard-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Card */
.wizard-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
  /* Override Pico form element tokens for this card */
  --pico-form-element-background-color: #F3F4F5;
  --pico-form-element-active-background-color: #ECEDEF;
  --pico-form-element-border-color: transparent;
  --pico-form-element-focus-color: #1a1a1a;
  --pico-border-radius: 10px;
}

.wizard-card h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.2;
}

.wizard-card p.hint {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Inline banners */
.wizard-error {
  background: #FFF0F0;
  color: #c0392b;
  border: 1px solid #F5C6C6;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.wizard-returning {
  background: #F0FFF4;
  color: #276749;
  border: 1px solid #B7E4C7;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Pill toggles (Medium-style topic selection) */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.checkbox-group label {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: #F3F4F5;
  border: none;
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  transition: background 0.18s, color 0.18s;
  user-select: none;
}

.checkbox-group label:hover {
  background: #E8E8E8;
}

.checkbox-group label:has(input:checked) {
  background: #1a1a1a;
  color: #fff;
}

.checkbox-group input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Nav buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 0.75rem;
}

/* Primary CTA — dark pill */
.wizard-nav button:not(.outline) {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 100px;
  padding: 0.65rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.18s, border-color 0.18s;
}

.wizard-nav button:not(.outline):hover:not([disabled]) {
  background: #333;
  border-color: #333;
}

/* Back button — minimal underline */
.wizard-nav button.outline.secondary {
  background: transparent;
  border: none;
  color: #999;
  border-radius: 100px;
  padding: 0.65rem 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.wizard-nav button.outline.secondary:hover {
  color: #1a1a1a;
  background: transparent;
  box-shadow: none;
}

/* Form field labels inside the wizard */
.wizard-card label:not(.checkbox-group label) {
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
  .wizard-wrap {
    margin: 1.5rem auto;
  }
  .wizard-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
}
