﻿body, html {
    height: 100%;
    margin: 0;
}

    /* ----- FIX MudBlazor Dialog scroll freeze on iOS Safari ----- */

    /* 1) Body must NOT be overflow:hidden on iOS */
    body.scroll-locked-no-padding {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 2) Also ensure html scrolls */
    html.scroll-locked-no-padding {
        overflow-y: hidden !important;
    }

.bg {
    /* The image used */
    background-image: url("../dwvalkommen.webp");
    /* Full height */
    height: 100%;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

a {
    position: relative;
    text-decoration: none;
    color: #0a0d0c;
}

    a:hover {
        color: #0a0d0c;
    }


    a::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #0a0d0c;
        transform: scaleX(0);
        transform-origin: bottom left;
        transition: transform 0.25s ease-out;
    }

    a:hover::after, a:focus::after {
        transform: scaleX(1);
    }

/*a:focus {
    outline: 2px solid blue;
}*/

.hf {
    border: none;
    width: 100%;
    height: 500px;
}

.mud-list-item-icon {
    min-width: 2em !important;
}

.mud-timeline-item .TimelineHistory {
    padding: 5px;
}

.blured {
    backdrop-filter: blur(4px);
}

.mud-table-cell {
    padding: 5px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.arendeRow {
    border: 0px !important;
}

.arendeRowMobile > td, .arendeRowMobile > tr > th {
    border: none;
}


font-face .mud-table-root .mud-table-head {
    display: none !important;
}

.mud-simple-table table * tr > td {
    border-bottom: 0px !important;
    height: 10px !important;
}

.badgeStyleError .mud-theme-dark {
    font-weight: 700;
    font-size: 12px;
    color: var(--mud-palette-error) !important;
    padding: 10px !important;
}

.badgeStyleInfo .mud-theme-dark {
    font-weight: 700;
    font-size: 12px;
    color: var(--mud-palette-info) !important;
    padding: 10px !important;
}

.badgeStyleWarning .mud-theme-dark {
    font-weight: 700;
    font-size: 12px;
    color: var(--mud-palette-warning) !important;
    padding: 10px !important;
}

.badgeStyleNormal .mud-theme-dark {
    font-weight: 700;
    font-size: 12px;
    color: #424242 !important;
    padding: 10px !important;
}

.arendeRow .mud-alert-message {
    padding: 4px 0;
}

.arendeCard .mud-paper {
    background: none !important;
}

.arendeCard .mud-card-header {
    margin-top: 10px !important;
    padding: 0 !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-top: 5px !important;
}

.arendeCard .mud-table-container .mud-icon-root {
    width: 17px !important;
    height: 17px !important;
    margin-right: 9px !important;
}

.AdminChipset .mud-chip.mud-disabled {
    opacity: initial !important;
}

.mud-drawer-content .mud-tooltip-root.mud-tooltip-inline {
    display: block !important;
}

.mud-fab {
    font-size: 11px !important;
}

.mud-timeline-item-dot-inner::after {
    content: "";
    position: absolute;
    display: block;
    top: 10px;
    left: 70px;
    width: 20px;
    height: 2px;
    background-color: var(--mud-palette-divider);
}

.mud-input-outlined-border {
    border-color: var(--mud-palette-appbar-background) !important;
    box-shadow: var(--mud-elevation-25);
}

.number-provider .mud-tooltip-inline {
    gap: initial;
}

.mud-tooltip-inline {
    display: flex !important;
    gap: 5px;
}

:root {
    --building-color: #FF9800;
    --house-color: #0288D1;
    --shop-color: #7B1FA2;
    --warehouse-color: #558B2F;
    --marker-color: #FF5722;
}

/* HTML marker styles */
.marker {
    background-color: #4585F4;
    border: 1px solid black;
    border-radius: 50%;
    color: #FFFFFF;
    padding: 3px 2px;
    width:28px;
    height:32px;
    position: relative;
}


    /* the black “border” tip */
    .marker::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 98%;
        bottom: -8px; /* 1px larger than the fill tip */
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 7px solid transparent; /* tip width + 1px */
        border-right: 7px solid transparent;
        border-top: 12px solid black; /* 1px larger than the fill tip */
    }

    /* the red “fill” tip */
    .marker::after {
        content: "";
        position: absolute;
        left: 50%;
        top:98%;
        bottom: -7px; /* snug inside the black one */
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent; /* your original tip width */
        border-right: 6px solid transparent;
        border-top: 10px solid var(--marker-color); /* your original tip height/color */
    }


    .marker svg {
        height: 22px;
        background-color: var(--mud-palette-dark);
        border-radius: 50%;
    }



/*
 * Property styles in unhighlighted state.
 */
.property {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
}

/*    .property::after {
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 9px solid #FFFFFF;
        content: "";
        height: 0;
        left: 50%;
        position: absolute;
        top: 95%;
        transform: translate(-50%, 0);
        transition: all 0.3s ease-out;
        width: 0;
        z-index: 1;
    }*/

    .property .icon {
        align-items: center;
        display: flex;
        justify-content: center;
        color: #FFFFFF;
    }

        .property .icon svg {
            height: 20px;
            width: auto;
        }

    .property .details {
        display: none;
        flex-direction: column;
        flex: 1;
    }

    .property .address {
        color: #9E9E9E;
        font-size: 10px;
        margin-bottom: 10px;
        margin-top: 5px;
    }

    .property .features {
        align-items: flex-end;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

        .property .features > div {
            align-items: center;
            background: #F5F5F5;
            border-radius: 5px;
            border: 1px solid #ccc;
            display: flex;
            font-size: 10px;
            gap: 5px;
            padding: 5px;
        }

    /*
 * Property styles in highlighted state.
 */
    .property.highlight {
        background-color: #FFFFFF;
        border-radius: 8px;
        box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
        height: 100%;
        padding: 8px 15px;
        width: auto;
    }

        .property.highlight::after {
            border-top: 9px solid #FFFFFF;
        }

        .property.highlight .details {
            display: flex;
        }

        .property.highlight .icon svg {
            width: 50px;
            height: 50px;
        }

    .property .bed {
        color: #FFA000;
    }

    .property .bath {
        color: #03A9F4;
    }

    .property .size {
        color: #388E3C;
    }

    /*
 * House icon colors.
 */
    .property.highlight:has(.fa-house) .icon {
        color: var(--house-color);
    }

    .property:not(.highlight):has(.fa-house) {
        background-color: var(--house-color);
    }

        .property:not(.highlight):has(.fa-house)::after {
            border-top: 9px solid var(--house-color);
        }

    /*
 * Building icon colors.
 */
    .property.highlight:has(.fa-building) .icon {
        color: var(--building-color);
    }

    .property:not(.highlight):has(.fa-building) {
        background-color: var(--building-color);
    }

        .property:not(.highlight):has(.fa-building)::after {
            border-top: 9px solid var(--building-color);
        }

    /*
 * Warehouse icon colors.
 */
    .property.highlight:has(.fa-warehouse) .icon {
        color: var(--warehouse-color);
    }

    .property:not(.highlight):has(.fa-warehouse) {
        background-color: var(--warehouse-color);
    }

        .property:not(.highlight):has(.fa-warehouse)::after {
            border-top: 9px solid var(--warehouse-color);
        }

    /*
 * Shop icon colors.
 */
    .property.highlight:has(.fa-shop) .icon {
        color: var(--shop-color);
    }

    .property:not(.highlight):has(.fa-shop) {
        background-color: var(--shop-color);
    }

        .property:not(.highlight):has(.fa-shop)::after {
            border-top: 9px solid var(--shop-color);
        }


@media (max-width: 641px) {
    .msg {
        flex-direction: column;
    }

    .msg-case {
        border-top: 4px solid var(--mud-palette-tertiary);
        border-left: none !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 15px;
    }

    .msg-case-inner {
        display: flex;
        border-right: none !important;
        border-bottom: 3px solid var(--mud-palette-warning);
    }

    .mud-table-pagination-caption {
        display: none;
    }
}