/* =================================
   SPACE SECTION — LUXURY EDITORIAL
================================= */

.space-section{
    background:
            linear-gradient(
                    180deg,
                    var(--space-bg-1),
                    var(--space-bg-2)
            );
    padding:30px 0 40px;
}


/* =================================
   HEADER
================================= */

.space-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.space-title-wrap {
    text-align: center;
}

.space-title {
    font-size: 34px;
    letter-spacing: .15em;
    color: #3b2015;
}

.space-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: #9FB4A3;
    margin: 12px auto 0;
    opacity: .65;
}

.space-sub {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: .15em;
    color: #2a5b3f;
}

.space-sub .dot {
    width: 7px;
    height: 7px;
    background: #2a5b3f;
    border-radius: 50%;
}

/* =================================
   SWIPER
================================= */

.space-swiper {
    max-width: 1100px;
    margin: 0 auto 35px;
    padding: 0 50px 30px;
    position: relative;
    overflow: visible;
}

.space-swiper .swiper-slide {
    width: calc(100% / 3) !important;
}

@media (max-width: 992px) {
    .space-swiper .swiper-slide {
        width: 50% !important;
    }
}

@media (max-width: 600px) {
    .space-swiper {
        padding-right: 60px;
    }
    .space-swiper .swiper-slide {
        width: 85% !important;
    }
}

/* =================================
   CARD
================================= */

.space-card {
    width: 100% !important;
    aspect-ratio: 4 / 5;
    position: relative;

    display: flex;
    justify-content: center;

    border-radius: 18px;
    overflow: hidden;

    background: #000;
    box-shadow: 0 16px 35px rgba(0,0,0,.35);

    transition: transform .35s ease;
}

.space-card:hover {
    transform: translateY(-8px) scale(1.03);
}

/* =================================
   IMAGE
================================= */

.space-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1.05);
    transition: transform .4s ease;
}

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

/* =================================
   TITLE BADGE
================================= */

.space-label {
    position: absolute;
    top: 16px;
    left: 16px;

    padding: 8px 14px;
    border-radius: 20px;

    background: rgba(255,255,255,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    font-size: 12px;
    letter-spacing: .15em;
    color: #3b2015;

    box-shadow:
            0 3px 12px rgba(0,0,0,.12),
            inset 0 0 0 1px rgba(255,255,255,.7);
}

/* =================================
   CTA BUTTON — FIXED CENTER
================================= */

.space-cta {
    position: absolute;
    bottom: 24px;
    z-index: 3;

    padding: 7px 22px;
    border-radius: 24px;

    font-size: 11px;
    letter-spacing: .15em;
    text-decoration: none;
    color: #fff;

    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.7);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 6px 14px rgba(0,0,0,.35);

    opacity: 0;
    pointer-events: none;

    transition:
            background .2s ease,
            color .2s ease,
            box-shadow .2s ease,
            transform .15s ease;
}

/* SHOW CTA ON DESKTOP HOVER */
.space-card:hover .space-cta {
    opacity: 1;
    pointer-events: auto;
}

/* CTA HOVER */
.space-cta:hover {
    background: #fff;
    color: #3b2015;

    box-shadow:
            0 10px 24px rgba(159,180,163,.45),
            inset 0 0 0 2px rgba(255,255,255,.4);

    transform: translateY(-2px);
}

/* CTA ACTIVE */
.space-cta:active {
    background: #3b2015;
    color: #fff;

    box-shadow: inset 0 3px 6px rgba(0,0,0,.35);
    transform: translateY(1px) scale(.97);
}

/* =================================
   OVERLAY FADE
================================= */

.space-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
            to top,
            rgba(0,0,0,.6),
            rgba(0,0,0,0)
    );
}

/* =================================
   CONTROLS
================================= */

.space-swiper .swiper-button-prev,
.space-swiper .swiper-button-next {
    color: #9FB4A3;
}

.space-swiper .swiper-pagination-bullet {
    background: #999;
}

.space-swiper .swiper-pagination-bullet-active {
    background: #9FB4A3;
}

/* =================================
   MOBILE TUNING
================================= */

@media (max-width: 768px) {
    .space-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {

    .space-label {
        font-size: 11px;
        padding: 7px 10px;
    }

    .space-cta {
        opacity: 1;
        pointer-events: auto;

        font-size: 9.5px;
        padding: 6px 16px;
        letter-spacing: .12em;
        bottom: 18px;

        background: rgba(0,0,0,.5);
    }
}
