/* =========================================================
   Properties: Desktop table + Mobile cards
   ========================================================= */

/* Desktop table wrapper (lets it scroll on smaller laptops if needed) */
.eha-properties-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--eha-radius);
}

/* Table look consistent with other EHA tables */
.eha-properties-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--eha-surface);
  border: 1px solid var(--eha-border);
  border-radius: var(--eha-radius);
  overflow: hidden;

  /* This table is wide (grouped headers + 9 columns) */
  min-width: 980px;
}

.eha-properties-table th,
.eha-properties-table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--eha-border);
  text-align: left;
  color: var(--eha-text);
  vertical-align: top;
}

.eha-properties-table thead th{
  background: rgba(0,0,0,.03);
  font-weight: 800;
}

.eha-properties-table tbody tr:nth-child(even){
  background: rgba(0,0,0,.015);
}

/* Property figure (table) */
.eha-prop-figure{
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.eha-prop-figure__img{
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--eha-border);
  background: rgba(0,0,0,.03);
}

.eha-prop-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eha-prop-img--placeholder{
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.06);
}

.eha-prop-name{
  font-weight: 800;
  line-height: 1.2;
}

/* Mobile cards (hidden on desktop by default) */
.eha-properties-cards{
  display: none;
}

/* Card styles */
.eha-prop-card{
  border: 1px solid var(--eha-border);
  border-radius: var(--eha-radius);
  background: var(--eha-surface);
  overflow: hidden;
}

.eha-prop-card__head{
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
  border-bottom: 1px solid var(--eha-border);
  background: rgba(0,0,0,.01);
}

.eha-prop-card__img{
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--eha-border);
  background: rgba(0,0,0,.03);
}

.eha-prop-card__title{
  font-weight: 900;
  line-height: 1.15;
}

.eha-prop-card__status{
  margin-top: 6px;
}

.eha-prop-card__body{
  padding: 12px;
  display: grid;
  gap: 10px;
}

/* Key-value rows */
.eha-prop-kv{
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.eha-prop-kv__k{
  font-weight: 800;
  opacity: .85;
  flex: 0 0 42%;
  max-width: 42%;
}

.eha-prop-kv__v{
  flex: 1 1 auto;
  min-width: 0;
}

/* Bedroom chips */
.eha-prop-beds{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eha-prop-bedchip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--eha-border);
  background: rgba(0,0,0,.02);
  font-size: 14px;
  line-height: 1;
}

/* =========================================================
   Breakpoint: show cards on mobile, hide table
   ========================================================= */
@media (max-width: 640px){
  .eha-properties-table-wrap{
    display: none;
  }

  .eha-properties-cards{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
