/* app.css */

/* Custom AntBlazor TreeSelect styles for better UX on desktop/mobile */
.ant-select,
.ant-select-selector,
.ant-select-selection-item {
    min-height: 40px !important;
    font-size: 1.08rem !important;
    padding: 10px 14px !important;
}

.ant-select-dropdown {
    min-width: 220px !important;
    max-width: 350px !important;
    font-size: 1.08rem !important;
}

.ant-select-tree-list-holder-inner .ant-select-tree-title {
    padding: 8px 10px !important;
    font-size: 1.05rem !important;
}

.ant-select-tree-checkbox + .ant-select-tree-title {
    margin-left: 6px;
}

@media (max-width: 600px) {
    .ant-select, .ant-select-dropdown {
        font-size: 0.97rem !important;
        min-width: 140px !important;
        max-width: 98vw !important;
    }
    .ant-select-tree-list-holder-inner .ant-select-tree-title {
        font-size: 0.97rem !important;
    }
}

.treeselect-options-bar {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 1.01rem;
}
.treeselect-options-bar label {
    margin-right: 0.7rem;
}


/* Iconic font for legacy support */
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Base typography */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Headings */
h1:focus {
    outline: none;
}

/* Links & buttons */
a,
.btn-link {
    color: #0071c1;
}

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

/* Main content padding */
.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor error UI */
#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;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Blazor error boundary */
.blazor-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uMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* Safe‑area for iOS notch */
.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Footer bar */
#footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background-color: inherit;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.06);
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: all 300ms ease;
}

    #footer-bar a {
        color: var(--mud-palette-default);
        padding-top: 10px;
        position: relative;
        flex: 1 1 auto;
    }

        #footer-bar a .mud-icon-root.mud-svg-icon {
            margin-top: -3px;
            position: relative;
            z-index: 2;
        }

        #footer-bar a.active-nav .mud-icon-root.mud-svg-icon {
            color: var(--mud-palette-primary) !important;
        }

        #footer-bar a span {
            position: relative;
            z-index: 2;
            display: block;
            font-size: 12px;
            font-weight: 500;
            margin-top: 4px;
            opacity: 0.7;
            font-family: var(--mud-typography-subtitle1-family);
        }

        #footer-bar a.active-nav span {
            opacity: 1;
            color: var(--mud-palette-primary) !important;
        }

/* Misc utilities */
.default-bottom-icon {
    color: var(--mud-palette-default) !important;
}

.footer-bar .active-nav strong {
    position: absolute;
    width: 50px;
    height: 4px;
    border-radius: 60px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background-color: var(--mud-palette-primary) !important;
    color: #FFF;
}

.hz-container {
    display: flex;
    overflow-x: auto;
}

    .hz-container::-webkit-scrollbar {
        display: none;
    }

/* Social‑brand buttons */
.theme-background-color-blue {
    background: linear-gradient(0deg,#0083FF 0.11%,#0049FF 127.33%) !important;
    color: #fff !important;
}

.facebook-color {
    background-color: rgba(59,89,152,1) !important;
    color: #fff !important;
}

.instagram-color {
    background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%) !important;
    color: #fff !important;
}

.twitter-color {
    background-color: #00acee !important;
    color: #fff !important;
}

.whatsapp-color {
    background-color: #075e54 !important;
    color: #fff !important;
}

/* Font‑awesome sizing */
.fa-small {
    font-size: 1.1rem !important;
}

.fa-1x {
    font-size: 1em !important;
}

.fa-2x {
    font-size: 2em !important;
}

.fa-3x {
    font-size: 3em !important;
}

.fa-4x {
    font-size: 4em !important;
}

.fa-5x {
    font-size: 5em !important;
}

.fa-6x {
    font-size: 6em !important;
}

.fa-7x {
    font-size: 7em !important;
}

.fa-8x {
    font-size: 8em !important;
}

/* Elevations & rounding */
.mud-elevation-25 {
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.rounded-sm {
    border-radius: 6px !important;
}

.rounded-t-l-lg {
    border-top-left-radius: 8px !important;
}

.rounded-b-l-lg {
    border-bottom-left-radius: 8px !important;
}

.rounded-t-r-lg {
    border-top-right-radius: 8px !important;
}

.rounded-b-r-lg {
    border-bottom-right-radius: 8px !important;
}

.rounded-xl {
    border-radius: 12px !important;
}

/* Blink animation */
.blink {
    animation: blink 2s steps(5,start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink {
    to {
        visibility: hidden;
    }
}

/* Line‑clamp utility */
.max-line-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.max-line-3 {
    -webkit-line-clamp: 3;
}

.max-line-4 {
    -webkit-line-clamp: 4;
}

.max-line-6 {
    -webkit-line-clamp: 6;
}

/* ================================
   Project‑specific styles below
   ================================ */

/* Sliders in filters card: remove extra padding */
.filter-slider .mud-slider-container,
.filter-slider .mud-range-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

    .filter-slider .mud-slider-value-label,
    .filter-slider .mud-range-container .mud-slider-value-label {
        top: -1.5rem !important;
    }

/* Search + filters card border & radius */
.search-filter-card {
    border: 1px solid #e3e6ec;
    border-radius: 8px;
}

/* Search text‑field: match button height (44px) */
.search-textfield .mud-input-root {
    height: 44px !important;
}

.search-textfield .mud-input-slot {
    height: 100% !important;
    display: flex;
    align-items: center;
}

.search-textfield .mud-input-adornment-start,
.search-textfield .mud-input-adornment-end {
    height: 100% !important;
    display: flex;
    align-items: center;
}

.search-textfield .mud-input-element {
    height: 100% !important;
    line-height: 44px;
    padding: 0 0.75rem;
}

/* Search button height & weight */
.search-button {
    height: 44px;
    font-weight: 600;
}

/* Card image fit */
.card-image img {
    object-fit: cover;
}

/* Phone/website block below each card */
.contact-info {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.contact-text,
.contact-link {
    font-size: 0.95rem;
    color: #1976d2;
}

.contact-link {
    text-decoration: underline;
}

/* Sticky map pane */
.map-sticky {
    position: sticky;
    top: 80px; /* offset from top (header + controls) */
    height: calc(100vh - 80px);
    z-index: 1;
}

.search-filter-card {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem; /* you can drop the p-4 on the MudPaper now, or leave it */
    border: 1px solid #dee2e6; /* light Bootstrap border */
}


/* in wwwroot/css/app.css or your global .css */
.custom-autocomplete ::deep(.ant-select-dropdown) {
    border-radius: 4px;
    font-size:1em;
    box-shadow: 0 6px 16px -8px rgba(0,0,0,0.08);
}
