/* Spaces Archive Styles */

:root {
    --space-orange: #E57A2B;
    --space-orange-dark: #C4641F;
}

/* Spaces page uses white background (only hero is colored) */
.page-template-spaces-template,
.page-template-spaces-template #page,
.page-template-spaces-template #content {
    background: var(--color-light-3);
}

/* ==========================================================================
   Introduction Section - Two Column Layout
   ========================================================================== */

.spaces-intro-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

.spaces-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.intro-text-column .intro-heading {
    color: var(--color-dark);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin: 0 0 var(--space-xl);
    line-height: var(--leading-tight);
}

.intro-text-column .intro-text-content h2,
.intro-text-column .intro-text-content h3 {
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

.intro-text-column .intro-text-content p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-gray);
    margin-bottom: var(--space-lg);
}

.intro-text-column .intro-text-content ul,
.intro-text-column .intro-text-content ol {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.intro-text-column .intro-text-content li {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-gray);
    margin-bottom: var(--space-sm);
}

/* Features List */
.intro-features-list {
    list-style: none;
    margin: var(--space-2xl) 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.intro-feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-lg);
    color: var(--color-dark);
    line-height: var(--leading-relaxed);
}

.intro-feature-item ion-icon {
    flex-shrink: 0;
    font-size: 28px;
    color: var(--space-orange);
}

/* Intro Slider */
.intro-images-column {
    position: relative;
}

.spaces-swiper {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--color-light);
    background: var(--color-light-2);
}

.spaces-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spaces-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Navigation Buttons */
.spaces-swiper .swiper-button-next,
.spaces-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    opacity: 1;
    visibility: visible;
}

.spaces-swiper .swiper-button-next:hover,
.spaces-swiper .swiper-button-prev:hover {
    background: var(--space-orange);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

.spaces-swiper .swiper-button-next:after,
.spaces-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-dark);
}

.spaces-swiper .swiper-button-next:hover:after,
.spaces-swiper .swiper-button-prev:hover:after {
    color: white;
}

.spaces-swiper .swiper-button-next.swiper-button-disabled,
.spaces-swiper .swiper-button-prev.swiper-button-disabled {
    opacity: 0.5;
}

/* Swiper Pagination */
.spaces-swiper .swiper-pagination {
    bottom: 20px;
    position: absolute;
    z-index: 10;
}

.spaces-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spaces-swiper .swiper-pagination-bullet-active {
    background: var(--space-orange);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.spaces-benefits-section {
    max-width: var(--max-width);
    margin: 0 auto var(--space-4xl);
    padding: 0 var(--space-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.benefit-box {
    background: white;
    border: 2px solid var(--color-light);
    border-radius: 8px;
    padding: var(--space-2xl);
    text-align: center;
    transition: all 0.2s ease;
}

.benefit-box:hover {
    border-color: var(--space-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.1);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: rgba(234, 88, 12, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--space-orange);
    transition: all 0.2s ease;
}

.benefit-box:hover .benefit-icon {
    background: var(--space-orange);
    color: white;
    transform: scale(1.1);
}

.benefit-icon ion-icon {
    font-size: 32px;
}

.benefit-title {
    margin: 0 0 var(--space-sm);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-dark);
}

.benefit-description {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-gray);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.spaces-filter-bar {
    max-width: var(--max-width);
    margin: 0 auto var(--space-2xl);
    padding: var(--space-xl) var(--space-lg);
    background: white;
    border: 2px solid var(--color-light);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-gray-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid var(--color-light);
    border-radius: 6px;
    font-size: var(--text-base);
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--space-orange);
}

.filter-select:focus {
    outline: none;
    border-color: var(--space-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.clear-filters-btn {
    padding: 12px 24px;
    background: var(--color-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: var(--color-dark-2);
}

/* ==========================================================================
   Results Summary
   ========================================================================== */

.spaces-results-summary {
    max-width: var(--max-width);
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-lg);
}

.space-count {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--color-dark);
}

.space-count strong {
    color: var(--space-orange);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
}

/* ==========================================================================
   Spaces Grid
   ========================================================================== */

.spaces-grid-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-4xl);
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

/* ==========================================================================
   Space Cards - Brutalist Style
   ========================================================================== */

.space-card {
    position: relative;
    background: white;
    border: 2px solid var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.space-card:hover {
    border-color: var(--space-orange);
    transform: translateY(-4px);
}

.space-card__image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-light-2);
}

.space-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.space-card:hover .space-card__image img {
    transform: scale(1.05);
}

.space-card__type-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--space-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.space-card__content {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.space-card__title {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

.space-card__title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.space-card:hover .space-card__title a {
    color: var(--space-orange);
}

.space-card__description {
    margin: 0;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-gray);
    flex: 1;
}

.space-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-light);
    border-bottom: 1px solid var(--color-light);
}

.space-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--color-gray-2);
}

.space-meta-item ion-icon {
    font-size: 18px;
    color: var(--space-orange);
}

.space-card__price {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--space-orange);
    margin-top: auto;
}

.space-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    background: var(--space-orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.space-card__button:hover {
    background: var(--space-orange-dark);
}

.space-card__button ion-icon {
    font-size: 20px;
}

.space-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Make button clickable above the link overlay */
.space-card__button {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.spaces-empty-state {
    max-width: 600px;
    margin: var(--space-4xl) auto;
    padding: var(--space-4xl) var(--space-2xl);
    text-align: center;
    background: var(--color-light-2);
    border-radius: 12px;
}

.spaces-empty-state h3 {
    margin: 0 0 var(--space-md);
    font-size: var(--text-3xl);
    color: var(--color-dark);
}

.spaces-empty-state p {
    margin: 0 0 var(--space-xl);
    font-size: var(--text-lg);
    color: var(--color-gray);
}

.spaces-empty-state .button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--space-orange);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.spaces-empty-state .button:hover {
    background: var(--space-orange-dark);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .spaces-intro-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .spaces-intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .intro-text-column {
        order: 2;
    }

    .intro-images-column {
        order: 1;
    }

    .spaces-swiper {
        height: 350px;
    }

    .intro-text-column .intro-heading {
        font-size: var(--text-3xl);
    }

    .intro-features-list {
        margin-top: var(--space-xl);
    }

    .intro-feature-item {
        font-size: var(--text-base);
    }

    .intro-feature-item ion-icon {
        font-size: 24px;
    }

    .spaces-benefits-section {
        margin-bottom: var(--space-3xl);
        padding: 0 var(--space-md);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .benefit-box {
        padding: var(--space-xl);
    }

    .spaces-filter-bar {
        padding: var(--space-lg) var(--space-md);
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .space-card__image {
        height: 200px;
    }

    .space-card__content {
        padding: var(--space-lg);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .spaces-swiper {
        height: 400px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
