/* =============================================
   Rental Houses Module — WebinOne CMS
   ============================================= */

/* ---- Section wrapper ---- */
.rh-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ---- Headings ---- */
.rh-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.rh-section-subtitle {
  font-size: 16px;
  color: #64748b;
  text-align: center;
  margin: 0 0 36px;
}

/* ---- Filter Bar ---- */
.rh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}

.rh-filter-btn {
  padding: 8px 22px;
  border: 2px solid #2563eb;
  background: transparent;
  color: #2563eb;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.22s ease;
  font-family: inherit;
}

.rh-filter-btn:hover,
.rh-filter-btn.is-checked {
  background: #2563eb;
  color: #fff;
}

/* ---- Isotope Grid ---- */
.rh-grid {
  display: block;
}

.rh-grid-sizer,
.rh-card {
  width: calc(33.333% - 16px);
}

/* ---- Card ---- */
.rh-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.15);
}

/* ---- Card Image ---- */
.rh-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* ---- Card Body ---- */
.rh-card-body {
  padding: 18px 20px 20px;
}

.rh-card-type {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.rh-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.35;
}

.rh-card-location {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
}

/* ---- Card Meta ---- */
.rh-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-bottom: 14px;
}

.rh-meta-item {
  font-size: 13px;
  color: #475569;
}

/* ---- Card Footer ---- */
.rh-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rh-price {
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.rh-price-mo {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 2px;
}

.rh-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #2563eb;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}

.rh-btn:hover {
  background: #1d4ed8;
}

/* ---- Detail Page ---- */
.rh-detail-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rh-detail-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 32px;
}

.rh-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.rh-detail-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.rh-detail-price {
  font-size: 26px;
  font-weight: 800;
  color: #2563eb;
  white-space: nowrap;
}

.rh-detail-location {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 24px;
}

.rh-detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
}

.rh-detail-meta-item {
  font-size: 15px;
  color: #334155;
  font-weight: 600;
}

.rh-detail-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 28px;
}

.rh-amenities-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px;
}

.rh-amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.rh-amenities-list li {
  background: #eff6ff;
  color: #2563eb;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.rh-back-link {
  display: inline-block;
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
}

.rh-back-link:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .rh-grid-sizer,
  .rh-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 580px) {
  .rh-grid-sizer,
  .rh-card {
    width: 100%;
  }
  .rh-section-title {
    font-size: 24px;
  }
  .rh-filter-bar {
    justify-content: flex-start;
  }
  .rh-detail-top {
    flex-direction: column;
  }
}
