/* =============================================
   Inspire Elementor Listings — widgets.css
   Design reference: Figma UI batch 1/2/3
   Font: Rethink Sans (loaded via theme/Elementor globals)
   ============================================= */

/* ---------- Card Shell ---------- */
.inspire-el-card {
  border: none;
  border-radius: 32px;
  overflow: hidden;
  background: #F7FFFF;
  box-shadow: 0 2px 16px rgba(28, 27, 72, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform;
}
.inspire-el-card:hover {
  box-shadow: 0 8px 32px rgba(28, 27, 72, 0.14);
  transform: translateY(-2px);
}

/* ---------- Gallery ---------- */
.inspire-el-gallery { line-height: 0 }
.inspire-el-gallery img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.inspire-el-placeholder {
  height: 420px;
  background: rgba(28, 27, 72, 0.05);
}

/* ---------- Header (title + price row) ---------- */
.inspire-el-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.inspire-el-header__title {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #1A1A32;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.inspire-el-header__price {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #7065F0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Meta Pills ---------- */
.inspire-el-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.inspire-el-pill {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1A1A32;
  padding: 5px 14px;
  border: 1px solid #D9D9D9;
  border-radius: 999px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Info Table ---------- */
.inspire-el-table {
  width: 100%;
  border-collapse: collapse;
}
.inspire-el-table td {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #1A1A32;
  padding: 12px 0;
  border-bottom: 1px solid #D9D9D9;
  vertical-align: top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.inspire-el-table td:first-child {
  font-weight: 500;
  color: #1A1A32;
  opacity: 0.6;
  width: 38%;
}

/* ---------- Features / Amenities ---------- */
.inspire-el-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.inspire-el-features li {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1A1A32;
  padding: 5px 14px;
  border: 1px solid #D9D9D9;
  border-radius: 999px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- CTA Button ---------- */
.inspire-el-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 100px;
  border: none;
  background: #5F5AF2;
  color: #F7FFFF;
  font-family: 'Rethink Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(5, 5, 12, 0.05);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.inspire-el-cta a:hover {
  background: #4e49e0;
  color: #F7FFFF;
  box-shadow: 0 2px 10px rgba(95, 90, 242, 0.3);
}

/* ---------- Related Listings Grid ---------- */
.inspire-el-related {
  display: grid;
  gap: 24px;
}
@media (min-width: 1025px) {
  .inspire-el-related { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .inspire-el-related { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

/* ---------- Mobile (≤640px) — also covers tablet per spec ---------- */
@media (max-width: 640px) {
  .inspire-el-card { border-radius: 24px }
  .inspire-el-card:hover { transform: none }

  .inspire-el-gallery img,
  .inspire-el-placeholder { height: 260px }

  .inspire-el-header__title { font-size: 22px }
  .inspire-el-header__price { font-size: 22px }

  .inspire-el-pill { font-size: 13px; padding: 4px 12px }

  .inspire-el-table td { font-size: 15px; padding: 10px 0 }

  .inspire-el-features li { font-size: 13px; padding: 4px 12px }

  .inspire-el-cta a { font-size: 15px; padding: 10px 20px; width: 100%; justify-content: center }

  .inspire-el-related { grid-template-columns: repeat(1, minmax(0, 1fr)) }
}
