/*
 * DTBL Final Properties Page
 * Scoped page-only CSS.
 */

.dtbl-property-final {
    background: #f8fafc;
}

.dtbl-property-final__hero {
    padding: 38px 0 34px;
    background:
        radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.12), transparent 32%),
        linear-gradient(135deg, #0b1f33 0%, #102d4b 55%, #0c2239 100%);
}

.dtbl-property-final__hero .dtbl-breadcrumbs,
.dtbl-property-final__hero .breadcrumbs {
    margin-bottom: 24px;
}

.dtbl-property-final__hero-inner {
    max-width: 760px;
}

.dtbl-property-final__eyebrow {
    display: inline-flex;
    margin-bottom: 9px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dtbl-property-final__hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.dtbl-property-final__hero p {
    max-width: 650px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 16px;
    line-height: 1.7;
}

.dtbl-property-final__content {
    padding: 34px 0 74px;
}

.dtbl-property-final__modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.dtbl-property-final__modes a {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15,23,42,.04);
    transition: .2s ease;
}

.dtbl-property-final__modes a:hover,
.dtbl-property-final__modes a:focus-visible {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.dtbl-property-final__modes a.is-active {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    box-shadow: 0 10px 24px rgba(30,58,138,.17);
}

.dtbl-property-final__mode-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 11px;
    font-size: 19px;
    font-weight: 800;
}

.dtbl-property-final__modes a.is-active .dtbl-property-final__mode-icon {
    background: rgba(255,255,255,.13);
    color: #fbbf24;
}

.dtbl-property-final__modes strong,
.dtbl-property-final__modes small {
    display: block;
}

.dtbl-property-final__modes strong {
    font-size: 14px;
}

.dtbl-property-final__modes small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.dtbl-property-final__modes a.is-active small {
    color: rgba(255,255,255,.68);
}

.dtbl-property-final__search {
    margin-bottom: 27px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15,23,42,.06);
}

.dtbl-property-final__search-main {
    display: grid;
    grid-template-columns: 1.25fr 1fr .8fr auto;
    gap: 12px;
    align-items: end;
}

.dtbl-property-final__field label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.dtbl-property-final__field input,
.dtbl-property-final__field select {
    width: 100%;
    min-height: 46px;
    padding: 9px 11px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
}

.dtbl-property-final__field input:focus,
.dtbl-property-final__field select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.10);
}

.dtbl-property-final__search-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37,99,235,.18);
}

.dtbl-property-final__search-button:hover,
.dtbl-property-final__search-button:focus-visible {
    filter: brightness(1.05);
}

.dtbl-property-final__advanced {
    margin-top: 13px;
    border-top: 1px solid #eef2f7;
}

.dtbl-property-final__advanced summary {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #1e3a8a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
}

.dtbl-property-final__advanced summary::-webkit-details-marker {
    display: none;
}

.dtbl-property-final__advanced-arrow {
    transition: transform .2s ease;
}

.dtbl-property-final__advanced[open] .dtbl-property-final__advanced-arrow {
    transform: rotate(180deg);
}

.dtbl-property-final__advanced-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding-top: 2px;
}

.dtbl-property-final__results-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin: 0 0 18px;
}

.dtbl-property-final__results-head strong,
.dtbl-property-final__results-head span {
    display: block;
}

.dtbl-property-final__results-head strong {
    color: #0f172a;
    font-size: 18px;
}

.dtbl-property-final__results-head span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.dtbl-property-final__clear {
    flex: 0 0 auto;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
}

.dtbl-property-final__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dtbl-property-final__grid .dtbl-property-card {
    height: 100%;
}

.dtbl-property-final__grid .dtbl-property-card__media {
    aspect-ratio: 16 / 10;
}

.dtbl-property-final__grid .dtbl-property-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtbl-property-final__empty {
    grid-column: 1 / -1;
    padding: 54px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}

.dtbl-property-final__empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 50%;
    font-size: 25px;
}

.dtbl-property-final__empty h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.dtbl-property-final__empty p {
    margin: 7px 0 18px;
    color: #64748b;
}

.dtbl-property-final__empty a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 15px;
    background: #1e3a8a;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.dtbl-property-final__system-note {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 9px;
    font-size: 12px;
}

.dtbl-property-final__fallback-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.dtbl-property-final__fallback-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.dtbl-property-final__fallback-card h2 {
    margin: 0;
    padding: 16px;
    color: #0f172a;
    font-size: 16px;
}

.dtbl-property-final__pagination {
    margin-top: 34px;
    text-align: center;
}

.dtbl-property-final__pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    padding: 7px 11px;
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.dtbl-property-final__pagination .page-numbers.current,
.dtbl-property-final__pagination .page-numbers:hover {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

.dtbl-property-final__owner-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 58px;
    padding: clamp(25px, 4vw, 38px);
    background:
        radial-gradient(circle at 80% 10%, rgba(34,211,238,.16), transparent 32%),
        linear-gradient(135deg, #0b1f33, #102d4b);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
}

.dtbl-property-final__owner-cta > div {
    max-width: 680px;
}

.dtbl-property-final__owner-cta > div > span {
    display: block;
    margin-bottom: 6px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.dtbl-property-final__owner-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 31px);
}

.dtbl-property-final__owner-cta p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 13px;
}

.dtbl-property-final__owner-cta > a {
    min-height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 9px 24px rgba(14,165,233,.24);
}

@media (max-width: 1050px) {
    .dtbl-property-final__search-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dtbl-property-final__search-button {
        width: 100%;
    }

    .dtbl-property-final__advanced-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dtbl-property-final__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dtbl-property-final__hero {
        padding-top: 26px;
    }

    .dtbl-property-final__modes {
        grid-template-columns: 1fr;
    }

    .dtbl-property-final__modes a {
        min-height: 68px;
    }

    .dtbl-property-final__search-main,
    .dtbl-property-final__advanced-grid,
    .dtbl-property-final__grid {
        grid-template-columns: 1fr;
    }

    .dtbl-property-final__results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dtbl-property-final__owner-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .dtbl-property-final__owner-cta > a {
        width: 100%;
        justify-content: center;
    }
}
