body.temples-hub-page {
    --nbt-main-header-height: 130px;
    --temples-identity-height: 60px;
    overflow-x: clip;
}

html body.temples-hub-page.approved-temple-header .header.header,
html body.temples-hub-page.approved-temple-header .header {
    position: relative !important;
    top: auto !important;
    z-index: 99999 !important;
    min-height: var(--nbt-main-header-height) !important;
    height: auto !important;
    overflow: visible !important;
    isolation: isolate !important;
}

html body.temples-hub-page.approved-temple-header .header__bottom,
html body.temples-hub-page.approved-temple-header .header__bottom.header__bottom-fiexd,
html body.temples-hub-page.approved-temple-header .header__bottom.header__bottom-fiexd.site-header-sticky,
html body.temples-hub-page.approved-temple-header .header__bottom.header__bottom-fiexd.site-header-enter,
html body.temples-hub-page.approved-temple-header .header__bottom.header__bottom-fiexd.animated,
html body.temples-hub-page.approved-temple-header .header__bottom.header__bottom-fiexd.fadeInDown,
html body.temples-hub-page.approved-temple-header .header__bottom.header__bottom-fiexd.animated.fadeInDown {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99999 !important;
}

body.temples-hub-page .temples-hub__hero {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    z-index: 1;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 0;
}

body.temples-hub-page .temples-hub__identity {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.temples-hub-page .temples-hub__identity-bar {
    position: relative;
    top: auto;
    z-index: 920;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    background: rgba(255, 250, 241, 0.98);
    border-top: 1px solid rgba(197, 122, 44, 0.12);
    border-bottom: 1px solid rgba(197, 122, 44, 0.2);
    box-shadow: 0 8px 18px rgba(68, 34, 12, 0.08);
    backdrop-filter: blur(8px);
}

body.temples-hub-page .temples-hub__identity-bar > .container {
    min-height: 0 !important;
}

body.temples-hub-page .temples-hub__identity-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 0;
    padding: 10px 0;
}

body.temples-hub-page .temples-hub__identity-content {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
}

body.temples-hub-page .temples-hub__identity-content h6 {
    margin: 0;
    color: #2d2118;
    font-family: var(--temple-font-heading);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
}

body.temples-hub-page .temples-hub__identity-content p {
    margin: 0;
    color: #6c4b2a;
    font-family: var(--temple-font-ui);
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: nowrap;
}

body.temples-hub-page .temples-hub__identity-content p strong {
    color: #7a4c1b;
    font-weight: 700;
}

body.temples-hub-page .temples-hub__identity-crumbs {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
}

body.temples-hub-page .temples-hub__identity .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-bottom: 0;
    white-space: nowrap;
}

body.temples-hub-page .temples-hub__identity .breadcrumb-item,
body.temples-hub-page .temples-hub__identity .breadcrumb-item a,
body.temples-hub-page .temples-hub__identity .breadcrumb-item + .breadcrumb-item::before {
    color: #5a4028;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

body.temples-hub-page .temples-hub__identity .breadcrumb-item.active {
    color: #2d2118;
}

body.temples-hub-page .temples-hub__identity.is-sticky-active .temples-hub__identity-bar {
    position: fixed;
    top: var(--nbt-main-header-height);
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 12px 24px rgba(68, 34, 12, 0.12);
}

body.temples-hub-page .temples-hub__identity.is-sticky-active {
    padding-bottom: var(--temples-identity-height) !important;
}

body.temples-hub-page .temple-directory-page,
body.temples-hub-page .temple-directory__listing,
body.temples-hub-page .temple-directory__listing .section__wrapper,
body.temples-hub-page .temple-directory__listing .row {
    overflow-x: clip;
}

body.temples-hub-page .temple-directory-page {
    padding-top: clamp(28px, 3vw, 40px) !important;
    scroll-padding-top: calc(var(--nbt-main-header-height) + var(--temples-identity-height) + 24px);
}

body.temples-hub-page .temples-hub__intro {
    margin-bottom: 18px;
}

body.temples-hub-page .temples-hub__intro p {
    max-width: 760px;
    margin-inline: auto;
}

body.temples-hub-page .temples-hub__toolbar {
    margin-bottom: 18px;
    padding: 20px 22px 22px;
    border: 1px solid var(--temple-border);
    border-radius: 24px;
    background: #fffdf8;
    box-shadow: var(--temple-shadow-soft);
}

body.temples-hub-page .temples-hub__toolbar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

body.temples-hub-page .temples-hub__toolbar-copy span {
    display: inline-block;
    margin-bottom: 6px;
    color: #7a4c1b;
    font-family: var(--temple-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.temples-hub-page .temples-hub__toolbar-copy h6 {
    margin: 0 0 4px;
    color: #2d2118;
    font-family: var(--temple-font-heading);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
}

body.temples-hub-page .temples-hub__toolbar-copy p {
    margin: 0;
    color: #6c4b2a;
    font-family: var(--temple-font-ui);
    font-size: 0.92rem;
    line-height: 1.5;
}

body.temples-hub-page .temples-hub__toolbar-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5a4028;
    font-family: var(--temple-font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
}

body.temples-hub-page .temples-hub__toolbar-status i {
    color: #b8752b;
}

body.temples-hub-page .temples-hub__controls {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) repeat(2, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

body.temples-hub-page .temples-hub__controls > * {
    min-width: 0;
}

body.temples-hub-page .temples-hub__search {
    margin-bottom: 0;
}

body.temples-hub-page .temples-hub__search .temple-directory__search-input,
body.temples-hub-page .temple-directory__select {
    min-height: 56px;
    border-radius: 18px;
    box-shadow: none;
}

body.temples-hub-page .temples-hub__search .temple-directory__search-input {
    padding: 14px 18px 14px 50px;
}

body.temples-hub-page .temples-hub__control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.temples-hub-page .temples-hub__control-group label {
    color: #4a3524;
    font-family: var(--temple-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.temples-hub-page .temple-directory__select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1px solid var(--temple-border);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%237a4c1b' d='M3.1 5.2a.75.75 0 0 1 1.06 0L7 8.04 9.84 5.2a.75.75 0 1 1 1.06 1.06L7.53 9.63a.75.75 0 0 1-1.06 0L3.1 6.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    color: #2e2219;
    font-family: var(--temple-font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    appearance: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.temples-hub-page .temple-directory__select:focus {
    outline: none;
    border-color: rgba(255, 193, 7, 0.38);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.12);
}

body.temples-hub-page .temples-hub__legacy-filters {
    display: none !important;
}

body.temples-hub-page .temple-directory__reset.default-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    outline: none;
    background: #b8752b;
    box-shadow: 0 12px 28px rgba(173, 106, 32, 0.22);
    color: #fff;
    font-family: var(--temple-font-ui);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

body.temples-hub-page .temple-directory__reset.default-btn span {
    color: #fff;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.temples-hub-page .temple-directory__reset.default-btn:hover,
body.temples-hub-page .temple-directory__reset.default-btn:focus-visible {
    background: #9b5f1f;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(156, 95, 31, 0.24);
}

body.temples-hub-page .temple-directory__reset.default-btn:focus-visible {
    box-shadow: 0 14px 30px rgba(156, 95, 31, 0.24), 0 0 0 4px rgba(255, 193, 7, 0.16);
}

body.temples-hub-page .temple-directory__loading {
    margin: 0 0 18px;
    text-align: left;
    color: #8b5a24;
    font-family: var(--temple-font-ui);
    font-size: 0.98rem;
    font-weight: 600;
}

body.temples-hub-page .temple-directory__loading[hidden] {
    display: none !important;
}

body.temples-hub-page .temple-directory__pagination {
    align-items: flex-start;
}

body.temples-hub-page .temple-directory__category-counts {
    color: #6f4d33;
    font-size: 0.96rem;
    font-weight: 600;
}

body.temples-hub-page .temple-directory__item .event__inner {
    height: 100%;
}

body.temples-hub-page .temple-master-card__thumb-link {
    display: block;
}

body.temples-hub-page .temple-master-card__thumb-link--inactive {
    cursor: default;
}

body.temples-hub-page .temple-directory__listing .event__thumb img {
    width: 100%;
    min-height: 250px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body.temples-hub-page .temple-directory__listing .event__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.temples-hub-page .temple-directory__item .event__content > a h5,
body.temples-hub-page .temple-directory__item .event__content > h5 {
    min-height: calc(1.25em * 2);
}

body.temples-hub-page .temple-directory__listing .event__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.temples-hub-page .temple-directory__coordinates {
    margin: 10px 0 0;
    color: #7a5a3d;
    font-family: var(--temple-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.temples-hub-page .temple-directory__action {
    margin-top: auto;
}

body.temples-hub-page .temple-directory__action[disabled] {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    body.temples-hub-page {
        --nbt-main-header-height: 90px;
    }

    body.temples-hub-page .temples-hub__identity-inner,
    body.temples-hub-page .temples-hub__toolbar-header {
        align-items: flex-start;
        flex-direction: column;
    }

    body.temples-hub-page .temples-hub__identity-content {
        grid-template-columns: 1fr;
    }

    body.temples-hub-page .temples-hub__identity-content p,
    body.temples-hub-page .temples-hub__identity .breadcrumb {
        white-space: normal;
    }

    body.temples-hub-page .temples-hub__controls {
        grid-template-columns: 1fr 1fr;
    }

    body.temples-hub-page .temples-hub__search {
        grid-column: 1 / -1;
    }

    body.temples-hub-page .temple-directory__reset.default-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.temples-hub-page .temples-hub__toolbar {
        padding: 18px 16px;
    }

    body.temples-hub-page .temples-hub__controls {
        grid-template-columns: 1fr;
    }

    body.temples-hub-page .temples-hub__search,
    body.temples-hub-page .temples-hub__control-group,
    body.temples-hub-page .temple-directory__reset.default-btn {
        grid-column: auto;
        width: 100%;
    }
}
