/* =========================================================
   HOME PAGE
========================================================= */
.home .restaurant-wrapper{ padding: 34px 20px 60px; }

/* Home heading divider spacing */
.home .box-card > h1,
.home .box-card > h2{
  gap: 12px;
  line-height: 1.15;
  margin-bottom: 14px;
  padding-bottom: 15px;
}
.home .box-card > h1::after,
.home .box-card > h2::after{
  margin-left: 10px;
  min-width: 24px;
}

.rm-home-hero h1{ margin-bottom: 10px; }
.rm-home-sub{ opacity: 0.75; margin-bottom: 14px; }

/* City chips */
.rm-home-chips{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.rm-chip{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rm-border-soft);
  background: #fff;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

/* Home grid + cards */
.rm-home-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.rm-home-card{
  display: block;
  padding: 12px;
}
.rm-home-card-row{ display: flex; align-items: center; gap: 14px; }

.rm-home-card-title{
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-home-card-meta{ font-size: 14px; opacity: 0.75; }
.rm-home-dot{ margin: 0 6px; opacity: 0.6; }
.rm-home-card-updated{ font-size: 12px; opacity: 0.70; margin-top: 6px; }


.rm-popular-list{
  margin-top: 10px;
}

.rm-popular-row{
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eceff2;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.rm-popular-row:hover{
  background: #fafbfc;
}


/* Ranking badge (cleaner + less aggressive) */
.rm-popular-num{
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #99D98C;
  border: 1px solid #7bc47a;
  color: #1f3d1f;
  margin-top: 2px;
}

.rm-popular-body{
  flex: 1;
}

/* Title */
.rm-popular-name{
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  transition: color 0.15s ease;
}



/* Meta */
.rm-popular-meta{
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
}

/* Description (slightly toned down) */
.rm-popular-desc{
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

/* Remove last divider */
.rm-popular-row:last-child{
  border-bottom: none;
}

/* Home grid */
@media (max-width: 820px){
  .rm-home-grid{ grid-template-columns: 1fr; }

  /* Mobile: show only first 3 cards */
  .rm-home-grid > *:nth-child(n+4){
    display: none !important;
  }
}
