﻿.detail-style-page {
    --detail-panel-radius: 12px;
    --detail-panel-border: 1px solid rgba(15, 23, 42, 0.08);
    --detail-panel-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    --detail-muted: #64748b;
}

.detail-style-page .detail-wide-container {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    max-width: var(--site-container-max, 1600px);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.detail-style-page .ritm-hero {
    min-height: var(--detail-hero-height, clamp(300px, 38vh, 420px));
    padding-top: calc(var(--nav-h, 72px) + 1.25rem);
    padding-bottom: 2rem;
    margin-bottom: 0 !important;
}

.detail-style-page .ritm-hero-title {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.15rem, 5.4vw, 4.45rem);
    line-height: 0.98;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.detail-style-page .ritm-hero-lead {
    max-width: 720px;
    font-size: clamp(0.96rem, 1.25vw, 1.08rem);
    line-height: 1.45;
}

.detail-style-page .compact-search-hero {
    --compact-hero-visible-height: 152px;
    display: flex;
    min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
    padding-top: calc(var(--nav-h, 72px) + 0.75rem);
    padding-bottom: 1.25rem;
    background: #0b1d33;
}

.detail-style-page .compact-search-hero.ritm-hero::after {
    content: none;
}

.detail-style-page .compact-search-hero .hero-content {
    display: flex;
    align-items: flex-end;
    padding-top: 0;
}

.detail-style-page .compact-search-hero-bg {
    background-position: center 46%;
}

.detail-style-page .compact-search-hero--events .compact-search-hero-bg {
    background-position: center 42%;
}

.detail-style-page .compact-search-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 16, 32, 0.78) 0%, rgba(5, 16, 32, 0.56) 48%, rgba(5, 16, 32, 0.26) 100%),
        linear-gradient(180deg, rgba(5, 16, 32, 0.38) 0%, rgba(5, 16, 32, 0.14) 48%, rgba(5, 16, 32, 0.42) 100%);
}

.detail-style-page .compact-search-hero-inner {
    width: min(100%, 800px);
    text-align: left;
}

.detail-style-page .compact-search-hero .compact-search-hero-breadcrumb {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.detail-style-page .compact-search-hero .breadcrumb {
    justify-content: flex-start;
}

.detail-style-page .compact-search-hero .hero-breadcrumb .breadcrumb-item,
.detail-style-page .compact-search-hero .hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: inherit;
    text-decoration: none;
}

.detail-style-page .compact-search-hero .hero-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.detail-style-page .compact-search-hero .ritm-hero-title {
    max-width: 800px;
    margin: 0 0 0.5rem;
    font-size: clamp(2.35rem, 3.1vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.detail-style-page .compact-search-hero .search-page-lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.35;
}

.detail-style-page .compact-search-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.5rem;
}

.detail-style-page .compact-search-hero + .detail-shell,
.detail-style-page .compact-search-hero + .event-detail-section {
    margin-top: 0;
    padding-top: clamp(1rem, 1.4vw, 1.25rem);
}

.detail-style-page .badge-glass {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.84rem;
    font-weight: 700;
}

.detail-style-page .detail-shell,
.detail-style-page .detail-page-section {
    position: relative;
    z-index: 3;
    margin-top: 1.25rem;
}

.detail-style-page .ritm-panel {
    min-width: 0;
    overflow: hidden;
    border: var(--detail-panel-border) !important;
    border-radius: var(--detail-panel-radius) !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--detail-panel-shadow) !important;
}

.detail-style-page .ritm-panel > .card-body {
    padding: 1rem !important;
}

.detail-style-page .ritm-panel > .card-header {
    padding: 1rem 1rem 0 !important;
}

/*
 * Section-level cards are layout wrappers, not content cards. Keep their
 * children directly on the page background, as on the home page.
 */
.detail-style-page .detail-page-section > .detail-wide-container > .ritm-panel,
.detail-style-page .detail-shell > .ritm-panel,
.detail-style-page .detail-shell > section > .ritm-panel,
.detail-style-page .detail-shell > form > .ritm-panel,
.detail-style-page .ritm-panel:has(> .card-body .card) {
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
}

.detail-style-page .detail-page-section > .detail-wide-container > .ritm-panel > .card-body,
.detail-style-page .detail-shell > .ritm-panel > .card-body,
.detail-style-page .detail-shell > section > .ritm-panel > .card-body,
.detail-style-page .detail-shell > form > .ritm-panel > .card-body,
.detail-style-page .ritm-panel:has(> .card-body .card) > .card-body {
    padding: 0 !important;
}

.detail-style-page .category-grid-card,
.detail-style-page .location-grid-card,
.detail-style-page .object-card-mini,
.detail-style-page .stat-card,
.detail-style-page .sidebar-card,
.detail-style-page .empty-state,
.detail-style-page .empty-state-container,
.detail-style-page .empty-objects-state {
    border: var(--detail-panel-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}

.detail-style-page .category-grid-card,
.detail-style-page .location-grid-card,
.detail-style-page .object-card-mini {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.detail-style-page .category-grid-card:hover,
.detail-style-page .location-grid-card:hover,
.detail-style-page .object-card-mini:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.16) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08) !important;
}

.detail-style-page .object-card-mini:hover {
    transform: translateY(-2px);
}

.detail-style-page .category-img-container,
.detail-style-page .location-img-container {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 0;
}

.detail-style-page .entry-img-height {
    min-height: 260px;
}

.detail-style-page .card-footer-action {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-style-page .map-container {
    max-width: 100%;
    border: var(--detail-panel-border);
    border-radius: 10px;
    box-shadow: none;
}

.detail-style-page .my-entries-table-wrap {
    border-radius: 10px;
}

.detail-style-page .table-responsive {
    margin-left: -1rem;
    margin-right: -1rem;
}

.detail-style-page.account-page .table-responsive {
    margin-left: 0;
    margin-right: 0;
}

.detail-style-page .sticky-sidebar {
    top: calc(var(--nav-h, 72px) + 24px);
}

.detail-style-page.account-page .detail-shell,
.detail-style-page.account-page .detail-page-section {
    margin-top: 1.25rem;
}

.detail-style-page.account-page .ritm-panel > .card-body {
    --cabinet-content-gap: clamp(1.25rem, 2.8vw, 1.75rem);
    --cabinet-inner-pad: clamp(1rem, 2.2vw, 1.25rem);
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

.detail-style-page.account-page .stat-card .card-body {
    padding: clamp(1.25rem, 2.4vw, 1.6rem) !important;
}

.detail-style-page.account-page .row.mb-4 {
    margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

.detail-style-page.account-page .nav-pills {
    row-gap: 0.65rem !important;
}

.detail-style-page.account-page .cabinet-toolbar {
    margin-bottom: var(--cabinet-content-gap) !important;
    padding-bottom: var(--cabinet-content-gap);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-style-page.account-page .cabinet-toolbar > .btn {
    min-height: 2.55rem;
}

.detail-style-page.account-page .tab-content {
    padding-top: 0;
}

.detail-style-page.account-page .cabinet-section-head {
    margin-bottom: var(--cabinet-content-gap);
}

.detail-style-page.account-page .cabinet-section-head .ritm-eyebrow {
    margin-bottom: 0.35rem !important;
}

.detail-style-page.account-page .cabinet-section-head h2 {
    margin-bottom: 0.35rem !important;
}

.detail-style-page.account-page .my-entries-table-wrap,
.detail-style-page.account-page .empty-state-container,
.detail-style-page.account-page .cabinet-published-card {
    margin-top: 0;
}

.detail-style-page.account-page .my-entries-table-wrap {
    padding: var(--cabinet-inner-pad);
}

.detail-style-page.account-page .empty-state-container {
    padding: clamp(2rem, 4vw, 3rem) var(--cabinet-inner-pad) !important;
}

.detail-style-page.account-page .cabinet-published-card {
    padding: var(--cabinet-inner-pad);
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: #fff;
}

@media (min-width: 992px) {
    .detail-style-page .sticky-sidebar {
        position: sticky;
    }
}

@media (min-width: 1400px) {
    .detail-style-page .ritm-panel > .card-body {
        padding: 1.15rem !important;
    }
}

@media (max-width: 1199.98px) {
    .detail-style-page .detail-wide-container {
        max-width: 960px;
    }

    .detail-style-page .compact-search-hero {
        --compact-hero-visible-height: 148px;
    }
}

@media (max-width: 991.98px) {
    .detail-style-page .detail-wide-container {
        max-width: 720px;
    }

    .detail-style-page .ritm-hero {
        min-height: var(--detail-hero-height-tablet, clamp(270px, 36vh, 360px));
    }

    .detail-style-page .compact-search-hero {
        --compact-hero-visible-height: 158px;
        min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
        padding-top: calc(var(--nav-h, 72px) + 1rem);
        padding-bottom: 1rem;
    }

    .detail-style-page .compact-search-hero .hero-content {
        align-items: flex-end;
    }

    .detail-style-page .compact-search-hero .ritm-hero-title {
        max-width: 760px;
        margin-bottom: 0.38rem;
        font-size: clamp(2rem, 6.4vw, 2.45rem);
        line-height: 1.08;
    }

    .detail-style-page .compact-search-hero .search-page-lead {
        max-width: 680px;
        margin-bottom: 0 !important;
        font-size: 0.96rem;
        line-height: 1.35;
    }

    .detail-style-page .detail-shell,
    .detail-style-page .detail-page-section {
        margin-top: 1rem;
    }

    .detail-style-page .sticky-sidebar {
        position: static;
    }

    .detail-style-page.account-page .detail-shell,
    .detail-style-page.account-page .detail-page-section {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .detail-style-page .compact-search-hero {
        --compact-hero-visible-height: 180px;
        min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
        padding-top: calc(var(--nav-h, 72px) + 0.9rem);
        padding-bottom: 1rem;
    }

    .detail-style-page .compact-search-hero-inner {
        width: 100%;
    }

    .detail-style-page .compact-search-hero .compact-search-hero-breadcrumb {
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
    }

    .detail-style-page .compact-search-hero .ritm-hero-title {
        max-width: 100%;
        font-size: clamp(1.88rem, 8vw, 2.12rem);
    }
}

@media (max-width: 575.98px) {
    .detail-style-page .detail-wide-container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .detail-style-page .ritm-hero {
        min-height: var(--detail-hero-height-mobile, auto);
        padding-top: calc(var(--nav-h, 72px) + 1rem);
        padding-bottom: 1.25rem;
    }

    .detail-style-page .compact-search-hero {
        --compact-hero-visible-height: 184px;
        min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
        padding-top: calc(var(--nav-h, 72px) + 0.9rem);
        padding-bottom: 1rem;
    }

    .detail-style-page .ritm-hero .hero-breadcrumb {
        display: none;
    }

    .detail-style-page .compact-search-hero .compact-search-hero-breadcrumb {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
    }

    .detail-style-page .ritm-hero-title {
        max-width: 100%;
        font-size: clamp(1.85rem, 9vw, 2.55rem);
        line-height: 1.04;
    }

    .detail-style-page .compact-search-hero-inner {
        width: 100%;
    }

    .detail-style-page .compact-search-hero .ritm-hero-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 8.2vw, 1.95rem);
        line-height: 1.08;
    }

    .detail-style-page .ritm-hero-lead,
    .detail-style-page .ritm-hero .text-white-50 {
        max-width: 22rem;
        font-size: 0.9rem;
    }

    .detail-style-page .compact-search-hero .search-page-lead {
        max-width: 100%;
    }

    .detail-style-page .ritm-panel > .card-body,
    .detail-style-page .ritm-panel > .card-header {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .detail-style-page .entry-img-height {
        min-height: 210px;
    }

    .detail-style-page.account-page .detail-shell,
    .detail-style-page.account-page .detail-page-section {
        margin-top: 0.9rem;
    }

    .detail-style-page.account-page .ritm-panel > .card-body,
    .detail-style-page.account-page .stat-card .card-body {
        --cabinet-content-gap: 1.1rem;
        --cabinet-inner-pad: 1rem;
        padding: 1.1rem !important;
    }

    .detail-style-page.account-page .cabinet-toolbar > .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-style-page .category-grid-card,
    .detail-style-page .location-grid-card,
    .detail-style-page .object-card-mini {
        transition: none !important;
    }

    .detail-style-page .category-grid-card:hover,
    .detail-style-page .location-grid-card:hover,
    .detail-style-page .object-card-mini:hover {
        transform: none;
    }
}
