/* ============================================================
   LISTINGS.CSS — Results Real Estate Inc.
   Our Listings overview + Commercial Listings + Space Search
   ============================================================ */

/* ── Listings Overview ── */
.listings-overview { padding: 80px 0; background: var(--off-white); }
.listings-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.listing-type-card {
  background: var(--white); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex; flex-direction: column;
}
.listing-type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.listing-type-img { height: 240px; overflow: hidden; position: relative; }
.listing-type-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.listing-type-card:hover .listing-type-img img { transform: scale(1.06); }
.listing-type-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,51,72,0.65) 0%, transparent 55%); }
.listing-type-body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.listing-type-body h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.listing-type-body p  { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 22px; flex: 1; }

/* ── Commercial Listings ── */
.commercial-listings { padding: 80px 0; background: var(--off-white); }

.listings-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 36px;
}
.listings-toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--white); border: 1.5px solid var(--border);
  padding: 8px 20px; border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
}
.filter-pill:hover, .filter-pill.active { background: var(--accent); border-color: var(--accent); color: var(--primary); }

.listings-sort { display: flex; align-items: center; gap: 10px; }
.listings-sort label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.listings-sort select { font-size: 13px; color: var(--text); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 8px 16px 8px 12px; outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%235a7a8e' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.property-card {
  background: var(--white); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--tr), box-shadow var(--tr);
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.prop-img { position: relative; height: 220px; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.property-card:hover .prop-img img { transform: scale(1.06); }

.prop-type-badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 12px; border-radius: var(--r-pill); }
.prop-status-badge { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; padding: 5px 12px; border-radius: var(--r-pill); }
.prop-status-badge.available { background: var(--accent); color: var(--primary); }
.prop-status-badge.leased    { background: #f59e0b; color: #1a1a1a; }
.prop-status-badge.pending   { background: rgba(255,255,255,0.9); color: var(--primary); }

.prop-body { padding: 22px 20px; }
.prop-body h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 6px; line-height: 1.25; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }
.prop-meta-item { display: flex; align-items: center; gap: 4px; }
.prop-meta-item svg { color: var(--accent); flex-shrink: 0; }
.prop-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.prop-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-light); }
.prop-price { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--primary); }
.prop-price span { font-size: 12px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

/* No listings state */
.listings-empty { text-align: center; padding: 72px 24px; color: var(--text-muted); }
.listings-empty svg { color: var(--accent); opacity: 0.4; margin: 0 auto 16px; }
.listings-empty h3 { font-family: var(--font-heading); font-size: 22px; color: var(--primary); margin-bottom: 10px; }
.listings-empty p { font-size: 15px; margin-bottom: 28px; }

/* ── Space Search page ── */
.space-search { padding: 80px 0; background: var(--off-white); }
.space-search-form-card { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: var(--r-xl); padding: 48px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.space-search-form-card > .section-label { display: flex; }
.space-search-form-card h2 { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.space-search-form-card > p { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.space-search-fields { display: flex; flex-direction: column; gap: 18px; }
.space-search-fields .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.space-search-fields .form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.search-features-check { display: flex; flex-direction: column; gap: 6px; }
.search-features-check label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 8px; display: block; }
.check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-pill { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.check-pill input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.check-pill span { font-size: 13px; color: var(--text-muted); }

.space-search-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 24px; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--primary); background: var(--accent); border-radius: var(--r-pill); border: none; cursor: pointer; box-shadow: var(--shadow-accent); transition: transform var(--tr), box-shadow var(--tr); margin-top: 8px; }
.space-search-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,212,255,0.55); }

.space-search-note { text-align: center; font-size: 12.5px; color: var(--text-light); margin-top: 16px; }
.space-search-note a { color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .listings-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .space-search-fields .form-row-3 { grid-template-columns: 1fr; }
  .space-search-fields .form-row   { grid-template-columns: 1fr; }
  .space-search-form-card { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .properties-grid { grid-template-columns: 1fr; }
  .listings-toolbar { flex-direction: column; align-items: flex-start; }
}
