.spaces-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.spaces-hero h1 { font-size: 2rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.spaces-hero p { color: #64748b; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.spaces-hero .spaces-hero-icon { color:#2563eb; margin-right:0.5rem; }

/* ── Unified Grid ── */
.spaces-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.spaces-grid .grid-full  { flex: 0 0 100%; max-width: 100%; }
.spaces-grid .grid-1-2   { flex: 0 0 calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
.spaces-grid .grid-1-3   { flex: 0 0 calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
.spaces-grid .grid-1-4   { flex: 0 0 calc(25% - 1.125rem); max-width: calc(25% - 1.125rem); }

.space-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.space-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: #2563eb;
}
.space-card-img { width: 100%; height: 234px; object-fit: cover; background: #f1f5f9; }
.space-card-img-ph {
    width: 100%;
    height: 234px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2563eb;
}
.space-card-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }
.space-card-name { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 0.3rem; }
.space-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.space-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: #64748b; padding-top: 0.6rem; border-top: 1px solid #f1f5f9; align-items: center; }
.space-card-meta i { color: #2563eb; margin-right: 4px; }
.space-card-btn { margin-left: auto; display: inline-block; padding: 0.3rem 0.8rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600; border: 1.5px solid #2563eb; color: #2563eb; text-decoration: none; transition: all 0.2s; }
.space-card-btn:hover { background: #2563eb; color: #fff; }

.spaces-empty-state { text-align:center; padding:3rem 0; color:#94a3b8; }
.spaces-empty-state i { font-size:2.5rem; margin-bottom:1rem; display:block; }

@media (max-width: 768px) {
    .spaces-grid .grid-full,
    .spaces-grid .grid-1-2,
    .spaces-grid .grid-1-3,
    .spaces-grid .grid-1-4 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .spaces-grid .grid-1-3,
    .spaces-grid .grid-1-4 { flex: 0 0 calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
}
