.rooms-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

.room-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-height:260px;
}

.room-image{
  position:relative;
  height:64px;
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  display:flex;
  align-items:center;
  justify-content:center;
}
.room-image i{
  color:#fff;
  font-size:20px;
}
.room-countries{
  position:absolute;
  left:12px;
  top:12px;
  color:#fff;
  font-weight:900;
  font-size:.72rem;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
}

.room-content{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.room-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.room-title{
  font-weight:900;
  font-size:1.05rem;
  color:var(--text);
}
.room-members{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:var(--muted);
  font-size:.82rem;
}
.room-theme{
  font-weight:800;
  color:var(--primary);
  font-size:.78rem;
}
.room-description{
  color:var(--muted);
  font-weight:600;
  font-size:.88rem;
  line-height:1.35;
}
.room-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.room-footer .btn{
  padding:10px 14px;
  font-size:.88rem;
}
.room-status{
  font-weight:900;
  font-size:.72rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--text);
  background:rgba(0,0,0,.04);
}
.status-open{
  color:#16a34a;
  background:rgba(34,197,94,.10);
  border-color:rgba(34,197,94,.22);
}
.status-full{
  color:#ea580c;
  background:rgba(249,115,22,.10);
  border-color:rgba(249,115,22,.22);
}

@media (max-width: 980px){
  .rooms-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width: 640px){
  .rooms-grid{grid-template-columns:1fr}
}
