/* Simple view — a calm, phone-first card list. Tokens come from styles.css.
   Everything is bigger and there is far less of it: one search box, four
   dropdowns, and cards that read like a sentence. */

.simple-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 40px;
}

.simple-controls,
.card-list {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- controls ---------- */
.simple-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 16px; /* ≥16px stops iOS zooming the page on focus */
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.simple-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.simple-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.simple-select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  min-width: 0;
}
.simple-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.simple-count {
  margin: 12px 2px 4px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- cards ---------- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.prop-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.prop-place {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prop-state {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
}
.prop-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  white-space: nowrap;
  flex: none;
}

.prop-specs {
  margin-top: 5px;
  font-size: 14px;
  color: var(--text);
}
.prop-specs .sep { color: var(--muted); margin: 0 3px; }

.prop-card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.prop-source {
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prop-star { color: #d4a900; font-size: 13px; flex: none; }
.prop-card-bottom .badge { flex: none; }
.prop-card-bottom .brochure-link { flex: none; margin-left: auto; }

/* ---------- loading / empty ---------- */
.simple-loading,
.simple-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.simple-empty b { color: var(--text); }

@media (max-width: 760px) {
  .simple-main { padding: 12px 12px 32px; }
  .simple-selects { grid-template-columns: 1fr 1fr; }
  .prop-place { font-size: 16px; }
  .prop-price { font-size: 17px; }
}
