@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2");
}

html {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    inset: 0;
    width: 100%;
}

.google-box {
    border-radius: 16px;
}

.google-box-lg {
    border-radius: 24px;
}

.google-pill {
    border-radius: 50px;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    display: block;
}

input[type="text"],
input[type="file"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    font-size: 16px;
    min-height: 44px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
    padding: 0;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    margin-left: 0.25rem;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: 2px solid #FF5A5F;
    outline-offset: 1px;
}

.date-filter-input-wrap {
    min-height: 44px;
}

.date-filter-input-wrap .date-filter-display {
    position: relative;
    z-index: 1;
    min-height: 40px;
    font-size: 14px;
    pointer-events: none;
}

.date-filter-input-wrap .date-filter-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    font-size: 16px;
    opacity: 0;
    cursor: pointer;
}

button {
    border-radius: 12px !important;
}

button.rounded-full {
    border-radius: 50px !important;
}

#submit-btn {
    border-radius: 50px !important;
    bottom: calc(32px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 4px 14px rgba(255, 90, 95, 0.4);
}

.btn-primary {
    background-color: #FF5A5F;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e64d52;
}

#use-map-position:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#signalements-list .signalement-item {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

#signalements-list .signalement-item:last-child {
    border-bottom: none;
}

#signalements-list .signalement-item:hover {
    background-color: #f9fafb;
}

#signalements-list .signalement-item img {
    border-radius: 12px;
}

#signalements-list .signalement-item > div > div:first-child {
    border-radius: 12px;
}


aside > div {
    border-radius: 0;
}

aside > div:first-child {
    border-radius: 0;
}

aside > div:last-child {
    border-radius: 0;
}

#sidebar.sidebar-collapsed {
    width: 4rem;
    min-width: 4rem;
}

#sidebar.sidebar-collapsed .sidebar-hide-on-collapse {
    display: none !important;
}

#sidebar.sidebar-collapsed .sidebar-collapse-only {
    display: flex !important;
}

#sidebar.sidebar-collapsed .sidebar-link {
    justify-content: center;
}

#sidebar.sidebar-collapsed .sidebar-header-row {
    justify-content: center;
}

.sidebar-hover:hover {
    color: #FF5A5F;
}

.modalite-dot-active {
    background-color: #FF5A5F;
}

#signalements-list-collapsed .signalement-item-collapsed {
    min-width: 0;
}

#signalements-list-collapsed .signalement-item-collapsed span {
    font-size: 0.65rem;
    line-height: 1.2;
}

.leaflet-popup-pane {
    z-index: 1100;
}

.leaflet-popup.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.leaflet-popup.custom-popup .leaflet-popup-content {
    margin: 8px 14px;
}

.leaflet-popup.custom-popup .leaflet-popup-close-button {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 24px;
    line-height: 32px;
    top: 8px;
    right: 8px;
}

.leaflet-popup.custom-popup .popup-actions > * {
    flex-shrink: 0;
    white-space: nowrap;
}


#main-map-area {
    flex: 1 1 0%;
}

.share-copy-toast {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

#map-container {
    height: 100%;
    width: 100%;
}

#map-container.map-selection-crosshair,
#map-container.map-selection-crosshair #map {
    cursor: crosshair;
}

#map {
    height: 100%;
    width: 100%;
}

.map-legend {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0));
    right: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 160px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.map-legend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.map-legend-title {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
}

.map-legend-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
}

.map-legend-chevron:hover {
    color: #374151;
}

.map-legend-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.map-legend-pin {
    display: inline-flex;
    flex-shrink: 0;
}

.map-legend-pin svg {
    display: block;
}

.map-legend.collapsed .map-legend-content {
    display: none;
}

.map-legend.collapsed .map-legend-chevron svg {
    transform: rotate(180deg);
}

.map-legend-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.map-legend-heroes-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    color: #FF5A5F;
    background: rgba(255, 90, 95, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.map-legend-heroes-btn:hover {
    background: rgba(255, 90, 95, 0.18);
    color: #e64d52;
}

.heroes-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
}

.heroes-list-avatar-wrap {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 50% !important;
    cursor: pointer;
    overflow: hidden;
    background: #FF5A5F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroes-list-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.heroes-list-avatar-initials {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.heroes-list-name {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding: 4px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.heroes-list-name:hover {
    color: #FF5A5F;
}

.heroes-list-encourage {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background-color: #FF5A5F;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.heroes-list-encourage:hover {
    background-color: #e64d52;
    color: #fff;
}

.heroes-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.heroes-detail-back:hover {
    background: #e5e7eb;
    color: #111827;
}

.heroes-detail-photo {
    width: 152px;
    height: 152px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    background: #FF5A5F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroes-detail-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.heroes-detail-photo-initials {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

.heroes-detail-name {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.2;
}

.heroes-detail-handle {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 10px;
}

.heroes-detail-role {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #FF5A5F;
    margin: 0 0 14px;
    line-height: 1.4;
}

.heroes-detail-bio {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 18px;
    text-align: center;
}

.heroes-detail-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.heroes-detail-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #334155;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.heroes-detail-social-link:hover {
    color: #FF5A5F;
    background: #fef2f2;
}

.heroes-detail-donation {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.leaflet-control-container .leaflet-top.leaflet-left {
    top: calc(10px + env(safe-area-inset-top, 0));
}

.severite-critique {
    background-color: #D93900;
    border-radius: 8px !important;
}

.severite-actif {
    background-color: #7fc2f6;
    border-radius: 8px !important;
}

.severite-observe {
    background-color: #93d051;
    border-radius: 8px !important;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#map-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    pointer-events: none;
}

#map-selection-overlay.active {
    pointer-events: none;
}

#map-selection-overlay.active > * {
    pointer-events: auto;
}

.map-marker-icon.leaflet-marker-icon {
    background: transparent !important;
    border: none !important;
}

.map-marker-appear {
    animation: map-marker-uncluster-fade 0.52s cubic-bezier(0.22, 1, 0.32, 1) forwards;
}

.map-marker-skip-fade {
    animation: none;
}

.marker-cluster-appear {
    animation: map-marker-fade-in 0.28s ease-out forwards;
}

.marker-cluster-skip-fade {
    animation: none;
}

@keyframes map-marker-uncluster-fade {
    from {
        opacity: 0;
        transform: scale(0.72) translateY(10px);
    }
    40% {
        opacity: 0.35;
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes map-marker-fade-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-marker-appear,
    .map-marker-skip-fade,
    .marker-cluster-appear,
    .marker-cluster-skip-fade {
        animation: none;
    }
}

.marker-cluster-custom {
    background: transparent !important;
    border: none !important;
}

.marker-cluster-custom > div {
    margin-left: 0 !important;
    margin-top: 0 !important;
}

#detail-panel {
    transition: transform 0.3s ease-out;
}

@media (max-width: 1024px) {
    #detail-panel {
        max-height: 88vh;
    }
}

#detail-panel.detail-panel-open {
    transform: translateY(0);
}

.safe-area-top {
    padding-top: env(safe-area-inset-top, 0);
}

#detail-panel-backdrop:not(.hidden) {
    animation: fadeIn 0.2s ease-out;
}

.marker-highlight > div,
.leaflet-marker-icon.marker-highlight {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.95), 0 0 20px 6px rgba(0,0,0,0.35) !important;
    z-index: 1100 !important;
}

@media (max-width: 1024px) {
    #bottom-bar {
        display: block !important;
    }
    #main-map-area {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }
    #submit-btn {
        bottom: calc(92px + env(safe-area-inset-bottom, 0));
    }
    #map-floating-controls {
        bottom: calc(92px + env(safe-area-inset-bottom, 0));
        left: 12px;
    }
    .location-tooltip {
        display: none !important;
    }
    .road-closure-test-tooltip {
        display: none !important;
    }
    #sidebar.sidebar-desk {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(320px, 85vw);
        min-width: 0;
        max-width: 85vw;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        box-shadow: none;
    }
    #layout.sidebar-drawer-open #sidebar.sidebar-desk {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    #layout.sidebar-drawer-open #sidebar-backdrop {
        display: block !important;
    }
    .sidebar-toggle-desk {
        display: none !important;
    }
    .sidebar-drawer-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .sidebar-links-mobile-hide {
        display: none !important;
    }
    #signalements-list,
    #signalements-list-collapsed {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #signalements-list::-webkit-scrollbar,
    #signalements-list-collapsed::-webkit-scrollbar {
        display: none;
    }
    #detail-confirmation-badge .inline-flex {
        font-size: 0.875rem;
    }
    #detail-votes > .flex {
        column-gap: 0.375rem;
    }
    #detail-votes > button.rounded-full,
    #detail-votes > span.rounded-full {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #detail-votes > span.text-gray-400 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #detail-votes > button.text-gray-700.flex.items-center.gap-2 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #detail-confirmation-badge .inline-flex i {
        font-size: 2.2em !important;
    }
    body.map-selection-open #submit-btn {
        display: none !important;
    }
    #address-display {
        bottom: calc(5rem + 1.5rem + env(safe-area-inset-bottom, 0));
    }
    .signalement-list-ville-badge {
        display: block;
        text-align: left;
    }
    .detail-photo-carousel {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .detail-photo-carousel::-webkit-scrollbar {
        display: none;
    }
    .share-copy-toast {
        bottom: calc(56px + 1.5rem + env(safe-area-inset-bottom, 0));
    }
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 1025px) {
    #location-modal,
    #modal,
    #modalite-modal,
    #support-modal,
    #export-contact-modal,
    #map-selection-overlay {
        left: 22%;
        right: 0;
        top: 0;
        bottom: 0;
    }
    body #detail-panel,
    body #detail-panel-backdrop {
        left: 22%;
        right: 0;
    }
    .leaflet-popup-content button.popup-voir-sur-carte {
        display: none !important;
    }
    body:has(#sidebar.sidebar-collapsed) #location-modal,
    body:has(#sidebar.sidebar-collapsed) #modal,
    body:has(#sidebar.sidebar-collapsed) #modalite-modal,
    body:has(#sidebar.sidebar-collapsed) #support-modal,
    body:has(#sidebar.sidebar-collapsed) #export-contact-modal,
    body:has(#sidebar.sidebar-collapsed) #map-selection-overlay {
        left: 0;
    }
    body:has(#sidebar.sidebar-collapsed) #detail-panel,
    body:has(#sidebar.sidebar-collapsed) #detail-panel-backdrop {
        left: 0;
        right: 0;
    }
    #sidebar.sidebar-desk {
        width: 22%;
        min-width: 4rem;
    }
    #sidebar.sidebar-desk.sidebar-collapsed {
        width: 4rem;
        min-width: 4rem;
    }
    #sidebar-toggle:hover {
        background-color: transparent !important;
    }
    #map-floating-controls {
        bottom: calc(32px + env(safe-area-inset-bottom, 0));
        left: calc(22% + 12px);
    }
    #layout:has(#sidebar.sidebar-collapsed) #map-floating-controls {
        left: calc(4rem + 12px);
    }
    #sidebar.sidebar-desk.sidebar-collapsed #signalements-list-collapsed {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #sidebar.sidebar-desk.sidebar-collapsed #signalements-list-collapsed::-webkit-scrollbar {
        display: none;
    }
    #sidebar.filters-dropdown-open #signalements-list {
        overflow: hidden;
    }
}

#map-floating-controls {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 48px;
    background-color: #fff;
    border-radius: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#map-floating-controls .road-closure-test-toggle,
#map-floating-controls .location-btn {
    position: relative;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#map-floating-controls .location-btn {
    border-top: 1px solid #e5e7eb;
}

#map-floating-controls .road-closure-test-toggle:hover,
#map-floating-controls .location-btn:hover {
    background-color: #f5f5f5;
}

#map-floating-controls .location-btn i {
    font-size: 24px;
    color: #374151;
    flex-shrink: 0;
}

.location-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
    visibility: hidden;
}

#map-floating-controls .location-btn:hover .location-tooltip {
    opacity: 1;
    visibility: visible;
}

.location-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.85);
}

body.map-selection-open #map-floating-controls {
    display: none !important;
}

body.road-closure-selection-active #map-legend,
body.road-closure-selection-active #submit-btn {
    display: none !important;
}

body.road-closure-max-zoom #signalements-list,
body.road-closure-max-zoom #signalements-list-collapsed {
    display: none !important;
}

.road-closure-list-panel:not(.hidden) {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.leaflet-container .road-closure-hint-target {
    cursor: pointer;
}

.leaflet-container .road-closure-drawn-hit {
    cursor: pointer;
}

.leaflet-container .road-closure-fr-hit {
    cursor: pointer;
}

.leaflet-control-zoom {
    display: none !important;
}

.road-closure-test-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1005;
    max-width: min(520px, calc(100% - 24px));
    pointer-events: auto;
}

.road-closure-test-banner-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.road-closure-loading-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.road-closure-loading-spinners {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
}

.road-closure-hints-loading {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.road-closure-hints-loading.hidden {
    display: none;
}

.road-closure-spinner {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #e5e7eb;
    border-top-color: #FF5A5F;
    border-radius: 50%;
    animation: road-closure-spin 0.65s linear infinite;
}

@keyframes road-closure-spin {
    to {
        transform: rotate(360deg);
    }
}

.road-closure-test-banner-text {
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    text-align: center;
}

.road-closure-test-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

.road-closure-test-banner-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
}

.road-closure-test-banner-btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.road-closure-test-banner-btn-secondary:hover {
    background: #e5e7eb;
}

.road-closure-test-banner-btn-primary {
    background: #FF5A5F;
    color: #fff;
}

.road-closure-test-banner-btn-primary:hover {
    background: #e64d52;
}

#map-floating-controls .road-closure-test-toggle i {
    font-size: 20px;
    color: #374151;
    flex-shrink: 0;
}

#map-floating-controls .road-closure-test-toggle--active {
    background-color: #fee2e2 !important;
}

#map-floating-controls .road-closure-test-toggle--active i {
    color: #dc2626;
}

.road-closure-test-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
    visibility: hidden;
}

#map-floating-controls .road-closure-test-toggle:hover .road-closure-test-tooltip {
    opacity: 1;
    visibility: visible;
}

.road-closure-test-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.85);
}

.leaflet-container .road-closure-ban-marker {
    background: transparent !important;
    border: none !important;
}

.leaflet-container .road-closure-fr-icon-pass-through,
.leaflet-container .road-closure-fr-icon-pass-through .road-closure-ban-marker-inner {
    pointer-events: none !important;
}

.road-closure-ban-marker-inner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc2626;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.road-closure-ban-marker-inner i {
    color: #fff;
    font-size: 12px;
}

.user-location-marker {
    background: transparent !important;
    border: none !important;
}

@keyframes thumb-vote {
    0% { transform: scale(1); }
    40% { transform: scale(1.5); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.thumb-vote-up i {
    animation: thumb-vote 0.4s ease-out;
    color: #2563eb;
}

.thumb-vote-resolu i {
    animation: thumb-vote 0.4s ease-out;
    color: #93d051;
}

.chat-panel.chat-panel-open {
    transform: translateX(0);
}

.chat-panel .chat-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-panel .chat-message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-splash-logo {
    width: min(42vw, 200px);
    height: auto;
    object-fit: contain;
    animation: app-splash-pulse 1.6s ease-in-out infinite;
}

.app-splash--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes app-splash-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.72; transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
    .app-splash {
        transition-duration: 0.15s;
    }

    .app-splash-logo {
        animation: none;
    }
}

#road-closure-form-modal .road-closure-form-ios .road-closure-form-control {
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #111827;
}

#road-closure-form-modal .road-closure-form-ios input.road-closure-form-control[type="date"] {
    min-height: 2.75rem;
}

#road-closure-form-modal .road-closure-form-ios input.road-closure-form-control[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

#road-closure-form-modal .road-closure-form-ios input.road-closure-form-control[type="file"] {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#road-closure-form-modal .road-closure-form-ios .road-closure-form-date-readonly {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    background-color: #f9fafb;
    -webkit-user-select: none;
    user-select: none;
}