/* ═══════════════════════════════════════════════════════════════════════════
   Entity Tile — reusable 3-column grid for Properties, Fleet, etc.
   Sprint Polish-1
   ═══════════════════════════════════════════════════════════════════════════ */

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

@media (max-width: 1100px) {
  .entity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .entity-grid { grid-template-columns: 1fr; }
}

.entity-tile {
  background: var(--surface, #161b26);
  border: 1px solid var(--border, #272d3d);
  border-radius: var(--r, 8px);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.entity-tile:hover {
  border-color: var(--accent, #4f9cf9);
  box-shadow: 0 0 0 1px var(--accent, #4f9cf9);
}
.entity-tile.ownership-ended {
  opacity: .6;
  border-color: var(--border, #272d3d);
}

/* ── Image slot ── */
.entity-tile__image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
}
.entity-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.entity-tile__image .img-placeholder {
  width: 100%;
  height: 100%;
  background: #1e2435;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #7a8499);
  font-size: 28px;
  transition: background .15s;
}
.entity-tile__image:hover .img-placeholder {
  background: rgba(79,156,249,.08);
}
.entity-tile__image:hover::after {
  content: '\1f4f7';
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 16px;
  background: rgba(0,0,0,.55);
  border-radius: 6px;
  padding: 3px 6px;
}
.entity-tile__image input[type=file] { display: none; }

/* ── Body ── */
.entity-tile__body {
  padding: 14px 16px 16px;
}
.entity-tile__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px;
  color: var(--fg, #e0e4ec);
}
.entity-tile__subtitle {
  font-size: 12px;
  color: var(--muted, #7a8499);
  margin: 0 0 10px;
  line-height: 1.3;
}

/* ── Data grid (2-col key-value) ── */
.entity-tile__data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  font-size: 12px;
}
.entity-tile__data .label {
  color: var(--muted, #7a8499);
  white-space: nowrap;
}
.entity-tile__data .value {
  color: var(--fg, #e0e4ec);
  text-align: right;
}
