@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300&family=Tilt+Neon&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    --FLGrey: color-mix(in srgb, #1d1d1f 70%, white);
    --FLGrey-hover: #171719;
    --FLGrey-active: #0f0f10;
    --FLGreen: #00b6aa;
    --FLGreen-hover: #00A399;
    --FLGreen-active: #008077;
    --topbar-space: 72px;
}
.list-viewport {
    height: calc(100vh - var(--topbar-space, 64px)); /* adjust top bar height */
    display: flex;
    flex-direction: column;
}

.list-header {
    flex: 0 0 auto; /* fixed height */
}

.list-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto; /* only this scrolls */
}

.list-pagination {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    z-index: 5;
}


/* Utility if you don't already have it */
.min-h-0 {
    min-height: 0 !important;
}

.flex-fill {
    flex: 1 1 auto !important;
}
.sticky-head thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
/* Make the items-per-page select wider so label and select fit nicely */
.compact-floating {
    padding-top: .75rem;
 
    min-width: 160px; /* was too narrow, adjust as needed */
}

/* Give the whole pagination bar some breathing room from bottom */
.pagination-bar {
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 0.5rem; /* space inside bar */
    margin-bottom: 0.75rem; /* space outside bar */
}



    .compact-floating .form-select {
      
        padding-top: 1.5rem; /* keep the label floated correctly */
        padding-bottom: .2rem;
    }

    .compact-floating label {
        padding-top: 2rem;
        line-height: 1; /* keep label tidy */
    }

/* Optional: tighter page links so the block is slimmer */
.pagination .page-link {
    padding: .375rem .6rem;
}

.topbar-shell {
    position: relative;
}

.topbar-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    font-size: 1.25rem; /* bigger text */
    font-weight: 400; /* normal weight */
    z-index: 2;
    pointer-events: none; /* logo stays clickable */
}
 
 .logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}
.col-narrow {
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-buttons {
    margin: "13px";
}

.modal-header {
    color:white;
}

.modal-content {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5)!important; /* keep your dark overlay */
    backdrop-filter: blur(8px); /* glass effect */
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), /* stronger bottom shadow */
    0 2px 6px rgba(0, 0, 0, 0.25); /* subtle top/side shadow */
}

.modal-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-container,
.list-container {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
}

@media (max-width: 991.98px) {
    /*Mobile View*/
    .modal-dialog {
        height: 90vh;
        max-height: 90vh;
    }
    .map-container,
    .list-container {
        height: 50vh;
    }
}

@media (min-width: 992px) {
    /* Desktop view: split 50/50 height */
    @media (min-width: 992px) {
        .modal-dialog {
            height: auto;
            max-height: none;
        }
    }
    .map-container,
    .list-container {
        height: 30vh;
    }
}
.card-dark {
    background-color: rgba(0, 0, 0, 0.08); /* darker overlay */
    backdrop-filter: brightness(90%); /* darkens what's behind */
    -webkit-backdrop-filter: brightness(90%);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.10);
}
.input-light-opaque {
    background-color: rgba(255, 255, 255, 0.85); /* lighter default */
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #000;
    transition: background-color 0.2s ease;
}

    .input-light-opaque:focus {
        background-color: rgba(255, 255, 255, 0.95); /* even lighter on focus */
    }
.form-floating > label {
    background: transparent !important;
    color: inherit !important;
    opacity: 1 !important;
    z-index: 3; /* keep label above input */
}

    /* Kill the masking rectangle Bootstrap adds */
    .form-floating > label::after {
        content: "" !important;
        background: transparent !important;
    }

html, body {
    font-family: 'Segoe UI Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300; /* Segoe UI Light weight */
    color: var(--FLGrey);
    height: 100%;
    overflow: hidden; /* prevent entire page from scrolling */
    /*  background-color: #a9bca0;*/
}

th, td {
  
    color: var(--FLGrey);
}
.link-plain {
    text-decoration: none;
    color: inherit;
}
@media screen and (max-width: 1000px) {
    .grid-col-phone {
        display: none;
    }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.contact-table, .list-button {
    font-size: x-small;
}
.contact-form {
    font-size: small;
}

.list-button {
    padding:2.5px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
.nav-link {
    padding-left: 1.5rem;
    align-items: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNS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2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.button-colour {
    --FLGreen;
}

    /*Glass */
.glass-card {
    background: rgba(255, 255, 255, 0.2); /* or 0.2 for stronger background */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
}
.glass-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .glass-button:hover {
        background: rgba(255, 255, 255, 0.3);
    }
.page-item.active .page-link {
    background-color: var(--liquid-blue-bg); 
    border-color: var(--liquid-blue-border);
    color: var(--liquid-blue-text);
}

.page-background {
    background: url('/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 0;
    margin:0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Optional wrapper for layout spacing or scroll */
.page-wrapper {
    width: 100%;
    max-width: 900px;
    margin: auto;
}
.leaflet-marker-icon.blue-marker-icon {
    opacity: 0.6 !important;
}

.leaflet-tooltip.main-marker-tooltip {
    font-weight: bold;
    color: #c00;
}
@keyframes pulse-marker {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.marker-pulse {
    animation: pulse-marker 2s ease-out;
    animation-iteration-count: 3;
    border-radius: 50%;
    z-index: 999 !important;
}
.visited-contact {
    background-color: #28a745 !important;
    color: #fff;
}

.badge {
    background-color: var(--FLGreen);
    margin-left: 5px;
    color: black;
    font-size: 9pt;
}
.toggle-overlay {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    position: relative;
    box-shadow: none;
    outline: none;
}

    .toggle-overlay:checked {
        background-color: #a33a3a;
        border-color: #8d3232;
    }

        .toggle-overlay:checked::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 1px;
            width: 5px;
            height: 9px;
            border: solid #000;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.badge-anchored {
    --badge-translate-x: -85%;
    --badge-translate-y: -35%;
    transform: translate(var(--badge-translate-x), var(--badge-translate-y)) scale(1);
    z-index: 2;
    padding: 0.21em 0.68em; /* Extra horizontal room for 2 digits */
    font-size: 1.07rem; /* Good size for both 1 and 2 digits */
    min-width: 2.1em; /* Ensures badge is wide enough for '99' */
    min-height: 1.6em; /* Keeps it round and balanced */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    letter-spacing: 0.02em; /* Optional: improves digit readability */
    box-sizing: border-box;
}

.badge-pop {
    animation: badge-pop 0.35s ease-out;
}

@keyframes badge-pop {
    0% {
        transform: translate(var(--badge-translate-x), var(--badge-translate-y)) scale(1);
    }

    50% {
        transform: translate(var(--badge-translate-x), var(--badge-translate-y)) scale(1.4);
    }

    100% {
        transform: translate(var(--badge-translate-x), var(--badge-translate-y)) scale(1);
    }
}
.liquid-glass {
    /* Give a background with partial color and alpha */
    background: rgba(255, 255, 255, 0.22); /* fallback for light */
    background: var(--btn-glass-bg, rgba(255,255,255,0.16));
    /* Blur the background underneath */
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    /* Slight border to define the glass */
    border: 1px solid rgba(255,255,255,0.24);
    /* Shadow for floating effect */
    box-shadow: 0 4px 16px rgba(0,0,0,0.14), 0 1.5px 5px rgba(0,0,0,0.07);
    /* Slightly rounded corners */
    border-radius: 12px;
    /* Make sure the content sits above the blur */
    z-index: 1;
    /* Transition for nice hover effect (optional) */
    transition: background 0.18s, box-shadow 0.18s;
}

    .liquid-glass:active, .liquid-glass:focus, .liquid-glass:hover {
        background: rgba(255,255,255,0.32);
        box-shadow: 0 6px 22px rgba(0,0,0,0.21);
    }

/*Button Colours*/

.material-symbols-outlined {
    line-height: 1;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay {
    position: fixed; /* makes it escape the grid/card */
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    z-index: 2000; /* sits above everything else */
}
.liquid-glass-modal {
    background-color: rgba(255, 255, 255, 0.3); /* <- lower this for more transparency */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.modal-title {
    color: white;
    font-size: 1.5rem;
}

.modal-body p {
    font-size: 1rem;
    color: black;
}
.table.rounded-3 {
    border-radius: 0.5rem;
    overflow: hidden;
}

.translucent-shadow {
    background-color: rgba(255,255,255,0.7) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1.5px 4px rgba(0,0,0,0.12);
    backdrop-filter: blur(2px);
    transition: background-color 0.2s;
}
