/* =========================================================
   Bell Tower Plaza 2026
   Spaces Archive / Find Your Space
========================================================= */

:root {
    --space-gap: 2rem;
    --card-radius: 20px;
    --panel-radius: 24px;
}

/* =========================================================
   1. Base Layout
========================================================= */

.btp-spaces-archive {
    background: #f7f8fa;
    color: #1d2733;
}

.section-padding {
    padding: 5rem 0;
}

.btp-section-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.btp-section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.btp-section-heading p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #5d6876;
}

.btp-eyebrow {
    display: inline-block;
    margin-bottom: .75rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8b6f3d;
}

/* =========================================================
   2. Hero
========================================================= */

.btp-spaces-hero {
    padding: 8rem 0 7rem;
    background:
        linear-gradient(135deg, rgba(17, 32, 53, .92), rgba(35, 57, 85, .88)),
        url('../images/spaces/hero.jpg') center/cover;
    color: #fff;
}

.btp-spaces-hero__content {
    max-width: 860px;
}

.btp-spaces-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btp-spaces-hero p {
    max-width: 760px;
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: .95;
}

.btp-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* =========================================================
   3. Finder / Filter Panel
========================================================= */

.btp-space-finder {
    position: relative;
    z-index: 20;
    margin-top: -75px;
    padding-bottom: 2.5rem;
}

.btp-finder-panel {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid rgba(22, 48, 77, .06);
    box-shadow:
        0 28px 65px rgba(18, 31, 47, .12),
        0 8px 22px rgba(18, 31, 47, .05);
}

.btp-finder-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #b89452 0%, #d7b770 50%, #b89452 100%);
}

.btp-finder-header {
    max-width: 760px;
}

.btp-finder-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: .55rem;
}

.btp-finder-header p {
    color: #66717d;
    margin-bottom: 0;
}

.btp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.btp-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8b6f3d;
}

.btp-filter-grid input,
.btp-filter-grid select {
    height: 56px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    background: #fff;
    color: #1d2733;
    transition: all .25s ease;
}

.btp-filter-grid input:hover,
.btp-filter-grid select:hover {
    border-color: #b89452;
}

.btp-filter-grid input:focus,
.btp-filter-grid select:focus {
    outline: none;
    border-color: #224a7d;
    box-shadow: 0 0 0 4px rgba(34, 74, 125, .10);
}

.btp-reset-filters {
    margin-top: 1.4rem;
    background: none;
    border: 0;
    color: #224a7d;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    transition: .2s ease;
}

.btp-reset-filters:hover {
    color: #8b6f3d;
}

/* =========================================================
   4. Finder Status Bar
========================================================= */

.btp-finder-status {
    background: #f7f8fa;
    padding: 1.5rem 0;
}

.btp-finder-status__panel {
    background: #fff;
    border: 1px solid rgba(22, 48, 77, .08);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.btp-finder-status__content {
    flex: 1;
}

.btp-finder-status__count {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: #16304d;
}

.btp-finder-status__count strong,
.btp-finder-status__count.is-perfect strong {
    color: #8b6f3d;
}

.btp-finder-status__count.is-empty {
    color: #9b3a2f;
}

.btp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.btp-active-filter-chip {
    border: 0;
    background: #eef4fa;
    color: #16304d;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    animation: btpChipIn .22s ease both;
}

.btp-active-filter-chip strong {
    font-size: 1rem;
    line-height: 1;
}

.btp-active-filter-chip:hover {
    background: #dfeaf5;
}

.btp-chip-icon {
    line-height: 1;
}

.btp-finder-status__clear {
    border: 1px solid rgba(22, 48, 77, .2);
    background: #fff;
    color: #16304d;
    border-radius: 999px;
    padding: .6rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btp-finder-status__clear:hover {
    background: #16304d;
    color: #fff;
}

/* =========================================================
   5. Results / Room Grid
========================================================= */

.btp-spaces-results {
    background: #f7f8fa;
}

.btp-featured-spaces .container {
    max-width: 1200px;
}

.btp-space-card-grid,
.btp-spaces-grid,
.btp-featured-spaces__grid,
.btp-space-results,
.btp-space-list {
    width: 100%;
    max-width: none;
}

.btp-spaces-grid,
.btp-space-card-grid,
.btp-featured-spaces__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: stretch;
}

/* =========================================================
   6. Space Cards
========================================================= */

.btp-space-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    border-top: 4px solid transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .22s ease,
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.btp-space-card:hover {
    transform: translateY(-8px);
    border-top-color: #b89552;
    box-shadow: 0 28px 55px rgba(0, 0, 0, .12);
}

.btp-space-card.is-showing {
    animation: btpCardIn .28s ease both;
}

.btp-space-card.is-hiding {
    opacity: 0;
    transform: translateY(10px) scale(.98);
    pointer-events: none;
}

.btp-space-card__image {
    display: block;
    overflow: hidden;
    width: 100%;
}

.btp-space-card__image img,
.btp-space-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .45s ease;
}

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

.btp-space-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.btp-room-number {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8b6f3d;
    margin-bottom: .55rem;
}

.btp-space-card__title,
.btp-space-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 0;
    transition: color .25s ease;
}

.btp-space-card:hover .btp-space-card__title {
    color: #b89552;
}

.btp-space-card__facts {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: .85rem 0 1rem;
    padding-bottom: 1rem;
    font-size: .82rem;
    line-height: 1.4;
    color: #6d7580;
    border-bottom: 1px solid #edf1f5;
}

.btp-space-card__facts span {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.btp-space-card__facts i {
    width: 16px;
    color: #b89552;
    font-size: .85rem;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
}

.btp-card-section {
    margin-top: 1rem;
}

.btp-card-section + .btp-card-section {
    padding-top: 1rem;
    border-top: 1px solid #f3f5f7;
}

.btp-card-section__label {
    display: block;
    margin-bottom: .65rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #a8843b;
}

.btp-space-card .btn,
.btp-space-card__cta {
    margin-top: auto;
    align-self: flex-start;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background-color .22s ease,
        color .22s ease;
}

.btp-space-card:hover .btn,
.btp-space-card:hover .btp-space-card__cta {
    transform: translateY(-2px);
}

/* =========================================================
   7. Chips
========================================================= */

.btp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.btp-chip {
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #eef4fa;
    font-size: .82rem;
    font-weight: 600;
    color: #224a7d;
}

.btp-chip-row--muted {
    margin-top: -.25rem;
}

.btp-chip--light {
    background: #f7f7f7;
    color: #666;
}

/* =========================================================
   8. No Results State
========================================================= */

.btp-no-results {
    background: #fff;
    margin-top: 3rem;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: .25s ease;
}

.btp-no-results.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.btp-no-results h3 {
    font-size: 1.75rem;
    margin-bottom: .75rem;
}

.btp-no-results p {
    color: #5d6876;
    margin-bottom: 1.5rem;
}

/* =========================================================
   9. Compare Spaces
========================================================= */

.btp-compare-spaces {
    background: #fff;
}

.btp-compare-table-wrap {
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .05);
}

.btp-compare-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.btp-compare-table th {
    background: #16304d;
    color: #fff;
    padding: 18px;
    text-align: left;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.btp-compare-table td {
    padding: 18px;
    border-bottom: 1px solid #ececec;
    color: #344052;
}

.btp-compare-table tbody tr:hover {
    background: #f7fafc;
}

.btp-compare-table td:first-child a {
    font-weight: 700;
    color: #16304d;
    text-decoration: none;
}

.btp-compare-table td:first-child a:hover {
    text-decoration: underline;
}

/* =========================================================
   10. Help CTA
========================================================= */

.btp-space-help-cta {
    background: #f7f8fa;
    padding: 6rem 0;
}

.btp-help-panel {
    background: linear-gradient(135deg, #16304d, #24496f);
    padding: 4rem;
    border-radius: 28px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.btp-help-panel > div:first-child {
    max-width: 760px;
}

.btp-help-panel .btp-eyebrow {
    color: #d8bd78;
}

.btp-help-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.btp-help-panel p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: .9;
}

.btp-help-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btp-help-actions .btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

.btp-help-actions .btn-outline-dark:hover {
    background: #fff;
    color: #16304d;
    border-color: #fff;
}

/* =========================================================
   11. Animations
========================================================= */

@keyframes btpChipIn {
    from {
        opacity: 0;
        transform: translateY(4px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes btpCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   12. Responsive
========================================================= */

@media (max-width: 991.98px) {
    .btp-space-finder {
        margin-top: -45px;
    }

    .btp-finder-panel {
        padding: 1.5rem;
    }

    .btp-spaces-grid,
    .btp-space-card-grid,
    .btp-featured-spaces__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btp-help-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem;
    }
}

@media (max-width: 767.98px) {
    .btp-spaces-hero {
        padding: 5rem 0 6rem;
    }

    .btp-featured-spaces .container {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .btp-spaces-grid,
    .btp-space-card-grid,
    .btp-featured-spaces__grid,
    .btp-space-results,
    .btp-space-list {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .btp-space-card {
        width: 100%;
        max-width: none;
    }

    .btp-finder-status__panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .btp-finder-status__clear {
        width: 100%;
        text-align: center;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .btp-space-card__body {
        padding: 1.5rem;
    }

    .btp-help-panel {
        padding: 2rem;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btp-active-filter-chip,
    .btp-space-card.is-showing {
        animation: none;
    }

    .btp-space-card,
    .btp-no-results {
        transition: none;
    }
}