/*
 * villa-list-view.css — the "List" (Details) view on /properties/.
 *
 * Turns the 3-column grid of compact villa cards into a single-column list
 * of wide cards with a big hero image on the left, all the specs and
 * amenities on the right. Reuses .villa-card / .villa-media / .villa-body
 * markup — only the layout changes.
 *
 * Activated by .villa-grid--list on the container, toggled by villa-map-view.js.
 */

/* Container: single column, generous vertical rhythm. */
.villa-grid--list {
  display: block !important; /* Beats any grid-template-columns from the default. */
  max-width: 1120px;
  margin: 0 auto;
}

/* Each card: horizontal layout, image on the left. */
.villa-grid--list .villa-card {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 0;
  margin-bottom: 20px;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
}
.villa-grid--list .villa-card:hover { transform: translateY(-2px); }

/* The image column grows tall enough to fill the row. */
.villa-grid--list .villa-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}

/* Body column: more room, more content, larger type. */
.villa-grid--list .villa-body {
  padding: 24px 28px;
  gap: 0.7rem;
  justify-content: space-between;
}

/* Title bigger to feel like a list entry, not a thumbnail label. */
.villa-grid--list .villa-title {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 2px;
}

/* Tagline: full line under the title, not truncated. */
.villa-grid--list .villa-tagline {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats row a touch bigger for readability. */
.villa-grid--list .villa-stats {
  font-size: 0.95rem;
  gap: 0.5rem 1rem;
}

/* Show more amenity chips in this view (grid version caps early). */
.villa-grid--list .villa-chips {
  margin-top: 0.4rem;
  gap: 0.4rem;
}
.villa-grid--list .villa-chips .chip {
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
}

/* Reveal the "Best for" summary line if the card carries one. In grid view
   it's already visible; here we just make sure it breathes. */
.villa-grid--list .villa-best-for {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer: price + rating right-aligned, with a subtle top border separator. */
.villa-grid--list .villa-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border, #ece5d3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.villa-grid--list .villa-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy, #354766);
}
.villa-grid--list .villa-price small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 3px;
}

/* Distance pill (from villa-proximity.js) sits inline in the body, more prominent. */
.villa-grid--list .villa-distance-pill {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.32rem 0.7rem;
}

/* Tags overlay on hero: same as grid, no change needed. */

/* Mobile: fall back to stacked (image on top, body below) like a
   friendlier version of the grid card. */
@media (max-width: 720px) {
  .villa-grid--list .villa-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .villa-grid--list .villa-media {
    aspect-ratio: 4/3;
    height: auto;
    min-height: 0;
  }
  .villa-grid--list .villa-body {
    padding: 18px 20px;
  }
  .villa-grid--list .villa-title {
    font-size: 1.35rem;
  }
}
