
/*
 * DTBL Homepage — Latest Properties + Projects
 * Safe scoped stylesheet.
 */

.dtbl-home-market {
    padding: clamp(52px, 7vw, 78px) 0;
}

.dtbl-home-market--properties {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
    border-bottom: 1px solid #edf2f7;
}

.dtbl-home-market--projects {
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.dtbl-home-market__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 27px;
}

.dtbl-home-market__header > div {
    max-width: 690px;
}

.dtbl-home-market__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dtbl-home-market__header h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.13;
}

.dtbl-home-market__header p {
    margin: 9px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.dtbl-home-market__view-all {
    min-height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    transition: .2s ease;
}

.dtbl-home-market__view-all:hover,
.dtbl-home-market__view-all:focus-visible {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

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

.dtbl-home-market__property-grid .dtbl-property-card {
    height: 100%;
}

.dtbl-home-market__property-grid .dtbl-property-card__media {
    aspect-ratio: 16 / 10;
}

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

.dtbl-home-market__fallback-property {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 8px 26px rgba(15,23,42,.07);
}

.dtbl-home-market__fallback-property > a {
    display: block;
}

.dtbl-home-market__fallback-property img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
}

.dtbl-home-market__fallback-property > a > div {
    padding: 17px;
}

.dtbl-home-market__fallback-property h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.dtbl-home-market__fallback-property span {
    display: inline-block;
    margin-top: 9px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
}

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

.dtbl-home-project-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 8px 26px rgba(15,23,42,.07);
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.dtbl-home-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 38px rgba(15,23,42,.12);
}

.dtbl-home-project-card__media {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #dbe5ef;
}

.dtbl-home-project-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dtbl-home-project-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #0f2537,
            #1e3a8a
        );
    color: rgba(255,255,255,.82);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .13em;
}

.dtbl-home-project-card__status {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dtbl-home-project-card__status--proposed {
    background: #7c3aed;
}

.dtbl-home-project-card__status--ongoing {
    background: #0284c7;
}

.dtbl-home-project-card__status--completed {
    background: #15803d;
}

.dtbl-home-project-card__demo-badges {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dtbl-home-project-card__demo-badges .dtbl-home-project-card__status {
    position: static;
}

.dtbl-home-project-card__demo {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    background: #f59e0b;
    color: #111827;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.dtbl-home-project-card__body {
    padding: 18px 19px 20px;
}

.dtbl-home-project-card__body h3 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.4;
}

.dtbl-home-project-card__body p {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dtbl-home-project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .dtbl-home-market__property-grid,
    .dtbl-home-market__project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dtbl-home-market__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dtbl-home-market__view-all {
        width: 100%;
        justify-content: center;
    }

    .dtbl-home-market__property-grid,
    .dtbl-home-market__project-grid {
        grid-template-columns: 1fr;
    }
}
