/* ========================================
   Properties / Objekte Page
   Skyblue / White Masterdata Stil
   Chips behalten Razor-Farben
   Button wieder rechts wie vorher
   ======================================== */

.objects-page {
    position: relative;
    width: 100%;
    max-width: none;
    padding-bottom: 48px;
}

.objects-tabs {
    border-radius: var(--rr-radius-lg, 18px);
}

/* ---------- Header ---------- */

.objects-page .htd-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.objects-page .htd-header-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.objects-page .htd-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--rr-text-strong, #0f172a);
    margin: 0 0 2px 0;
    text-align: left;
    white-space: normal;
}

.obj-muted {
    color: var(--rr-text-secondary, #64748b);
    line-height: 1.4;
    text-align: left;
}

/* ---------- Search ---------- */

.objects-page > .mud-stack > .mud-input-control,
.objects-search {
    width: 100%;
    position: relative;
    padding: 16px;
    margin-bottom: 12px !important;
    border-radius: var(--rr-radius-lg, 18px);
    border: 1px solid rgba(0, 0, 0, 0.22);
    background: linear-gradient( 135deg, rgba(250, 250, 250, 0.98), rgba(245, 245, 245, 0.78), rgba(255, 255, 255, 0.95) );
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

    .objects-page > .mud-stack > .mud-input-control .mud-input-root,
    .objects-search .mud-input-root {
        position: relative;
        z-index: 1;
        border-radius: var(--rr-radius-md, 14px);
        background: rgba(255, 255, 255, 0.9);
    }

/* ---------- Toolbar ---------- */

.objects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 6px 0 14px 0;
    flex-wrap: wrap;
}

.obj-stat-box {
    width: 290px;
    max-width: 100%;
    flex-shrink: 0;
}

.obj-stat-card {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.86) );
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

    .obj-stat-card:hover {
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
        transform: translateY(-3px);
        border-color: rgba(0, 0, 0, 0.34);
    }

    .obj-stat-card .mud-typography-h5 {
        font-weight: 800;
        color: var(--rr-text-strong, #0f172a);
    }

.obj-add-btn {
    margin: 0 !important;
    align-self: flex-end;
    transform: translateY(5px);
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
    min-height: 40px;
    padding: 8px 18px;
    white-space: nowrap;
}

/* ---------- Grid ---------- */

.objects-grid {
    margin-top: 0 !important;
}

/* ---------- Object Cards ---------- */

.obj-card {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--rr-radius-lg, 18px);
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.82) );
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

    .obj-card:hover {
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.20);
        transform: translateY(-4px) scale(1.01);
        border-color: rgba(0, 0, 0, 0.34);
        background: linear-gradient( 135deg, rgba(255, 255, 255, 1), rgba(245, 245, 245, 0.9) );
    }

.obj-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.obj-image {
    width: 100%;
    height: 170px;
    border-top-left-radius: var(--rr-radius-lg, 18px);
    border-top-right-radius: var(--rr-radius-lg, 18px);
    display: block;
    background: rgba(250, 250, 250, 0.95);
    object-fit: cover;
    transition: transform 0.35s ease;
}

.obj-card:hover .obj-image {
    transform: scale(1.04);
}

.clickable {
    cursor: pointer;
    will-change: transform, box-shadow;
}

/* ---------- Typography ---------- */

.portfolio-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--rr-text-strong, #0f172a);
    margin-bottom: 2px;
}

.portfolio-subtitle {
    color: var(--rr-text-secondary, #64748b);
    margin-bottom: 10px;
}

.obj-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--rr-text-strong, #0f172a);
    line-height: 1.25;
    margin-bottom: 2px;
    word-break: break-word;
}

.obj-address {
    color: var(--rr-text-secondary, #64748b);
    line-height: 1.35;
    margin-bottom: 0;
}

/* ---------- Chips / Badges ----------
   Keine Farben überschreiben.
   Razor Color="..." bleibt erhalten.
*/

.obj-type-chip {
    width: fit-content;
    font-weight: 700;
    border-radius: var(--rr-radius-pill, 999px);
    margin-top: 4px;
}

.objects-page .mud-chip-root {
    border-radius: var(--rr-radius-pill, 999px);
    font-weight: 700;
}

/* ---------- Tabs ---------- */

.objects-tabs .mud-tab {
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--rr-text-secondary, #64748b);
}

    .objects-tabs .mud-tab.mud-tab-active {
        font-weight: 800;
        color: #374151;
    }

    .objects-tabs .mud-tab:hover {
        color: #374151;
    }

/* ---------- FAB ---------- */

.fab-add {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 56px;
    height: 56px;
    border-radius: var(--rr-radius-pill, 999px);
    border: none;
    background: #111111;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    z-index: 3000;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

    .fab-add:hover {
        background: #111111;
        transform: translateY(-2px);
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
    }

    .fab-add span {
        transform: translateY(-1px);
    }

/* ---------- Address Groups ---------- */

.address-group {
    width: 100%;
    margin-bottom: 34px;
}

.address-group-header {
    position: relative;
    padding: 16px 20px;
    border-radius: var(--rr-radius-lg, 18px);
    background: linear-gradient( 135deg, rgba(250, 250, 250, 0.98), rgba(245, 245, 245, 0.78), rgba(255, 255, 255, 0.95) );
    border: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

    .address-group-header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 5px;
        border-radius: 999px;
        background: linear-gradient(180deg, #111111, #111111);
    }

.address-group-title {
    font-weight: 800;
    color: var(--rr-text-strong, #0f172a);
    line-height: 1.25;
    margin: 0;
}

/* ---------- MudBlazor Polish ---------- */

.objects-page .mud-button-root {
    text-transform: none;
}

.objects-page .mud-icon-button {
    border-radius: 10px;
}

.objects-page .mud-alert {
    border-radius: var(--rr-radius-md, 14px);
}

.objects-page .mud-progress-linear {
    border-radius: var(--rr-radius-pill, 999px);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .objects-toolbar {
        align-items: stretch;
    }

    .obj-stat-box {
        width: 100%;
    }

    .obj-add-btn {
        width: 100%;
        justify-content: center;
        transform: none;
    }
}

@media (max-width: 600px) {
    .objects-page {
        padding-bottom: 32px;
    }

        .objects-page > .mud-stack > .mud-input-control,
        .objects-search {
            padding: 14px;
        }

    .obj-card-content {
        padding: 10px;
    }

    .obj-image {
        height: 150px;
    }

    .address-group-header {
        padding: 14px 16px;
    }
}
