/* -----------------------------------------------------
   GLOBAL PAGE WRAPPER
----------------------------------------------------- */
.replay-spaces {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */
.replay-spaces-heading h2 {
    font-family: 'GT Ultra Fine', serif;
    font-size: 42px;
    color: #153D33;
    margin-bottom: 4px;
}

.replay-spaces-heading p {
    font-size: 16px;
    color: #6F7A75;
    margin-bottom: 24px;
}

/* -----------------------------------------------------
   FILTER BAR
----------------------------------------------------- */
.replay-spaces-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.replay-filter-group-events {
    display: flex;
    gap: 12px;
    align-items: center;
}

.replay-filter-group-events .replay-filter-label {
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}

.replay-filter-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #5E6865;
}

.replay-filter-btn.is-active {
    color: #153D33;
    font-weight: 600;
    text-decoration: underline;
}

.replay-filter-pill {
    border: 1px solid #CBD5D1;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

.replay-filter-pill.is-active {
    background: #153D33;
    color: #fff;
}

/* -----------------------------------------------------
   FEATURED SECTION
----------------------------------------------------- */
.replay-section-heading {
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.replay-section-icon {
    color: #F7C948;
    font-size: 20px;
}

.replay-section-heading h3 {
    font-family: 'GT Ultra Fine', serif;
    font-size: 26px;
    color: #153D33;
}

/* 2-column featured layout */
.replay-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

/* -----------------------------------------------------
   SPACE CARDS (FEATURED + ALL SPACES)
----------------------------------------------------- */

.replay-space-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.replay-space-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}

/* CARD MEDIA */
.replay-space-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.replay-space-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.7));
    border-radius: 18px 18px 0 0;
}

.replay-space-media {
    position: relative;
    overflow: hidden;
}

/* TEXT OVERLAY (TITLE) */
.replay-space-text-overlay {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    color: #fff;
}

.replay-space-name {
    font-family: 'GT Ultra Fine', serif;
    font-size: 22px;
    margin: 0;
}

.replay-space-tagline {
    font-size: 14px;
    opacity: .85;
    margin-top: 2px;
}

/* BADGES */
.replay-space-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    color: #093f36;
}

.badge-featured {
    background: #F7C948;
    color: #153D33;
}

.badge-type {
    background: rgba(21,61,51,0.75);
}

/* -----------------------------------------------------
   CARD BODY (BOTTOM MIDDLE SECTION)
----------------------------------------------------- */
.replay-space-body {
    padding: 18px 20px 20px;
}

.replay-space-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.replay-meta-item {
    display: flex;
    flex-direction: column;
}

.replay-meta-label {
    font-size: 12px;
    color: #6F7A75;
}

.replay-meta-value {
    font-size: 16px;
    font-weight: 600;
}

/* -----------------------------------------------------
   FOOTER IN EACH CARD
----------------------------------------------------- */
.replay-space-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.replay-space-btn {
    background: #153D33;
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: none;
}

/* -----------------------------------------------------
   ALL SPACES GRID
----------------------------------------------------- */
.replay-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 768px) {
    .replay-space-media img {
        height: 200px;
    }
}

/* Shared pill base for filters + sort */
.replay-filter-btn,
.replay-sort-btn {
  border-radius: 999px;
  padding: 0.4rem 1.3rem;
  border: 1px solid #d5ddd7;
  background-color: #f8f7f2;
  color: #3c4b44;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Active state (same as All / Indoor / Outdoor pills) */
.replay-filter-btn.is-active,
.replay-sort-btn.is-active {
  background-color: #17342c;
  color: #f8f7f2;
  border-color: #17342c;
}

/* Sort group layout */
.replay-sort-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Label alignment */
.replay-sort-group .replay-filter-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #8b8f8a;
}

/* Card overlay text + badges in light color */
.replay-space-name,
.replay-space-tagline,
.replay-space-badges .badge {
  color: #f8f7f2;
}

/* Make all cards share the same basic structure */
.replay-featured-grid .replay-space-card-featured,
.replay-all-grid .replay-space-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

/* Consistent media height (same feel as featured) */
.replay-featured-grid .replay-space-card-featured .replay-space-media,
.replay-all-grid .replay-space-card .replay-space-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* keeps them tall and consistent */
    overflow: hidden;
}

/* Make images fill the frame nicely */
.replay-all-grid .replay-space-card .replay-space-media img,
.replay-featured-grid .replay-space-card-featured .replay-space-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Let the lower part stretch to fill same height */
.replay-all-grid .replay-space-card .replay-space-body-compact,
.replay-featured-grid .replay-space-card-featured .replay-space-body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Match padding to featured cards */
.replay-all-grid .replay-space-card .replay-space-body-compact {
    padding: 24px 32px 28px;
}

/* Ensure each card in the grid stretches to equal height in its row */
.replay-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.replay-all-grid .replay-space-card {
    height: 100%;
}

/* Compact card CTA — match featured style */
.replay-space-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 40px;
    background-color: #143A36 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.replay-space-btn-compact:hover {
    background-color: #0E2D2A; /* slightly darker */
}

/* Make all "View Details" buttons look the same */
.replay-space-btn,
.replay-space-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 40px;
    background-color: #143A36;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.replay-space-btn:hover,
.replay-space-btn-compact:hover {
    background-color: #0E2D2A;
}