/* ============================
   WRAPPER - Complete Isolation
============================ */
#csc-map-wrapper {
    all: initial;
    font-family: 'Lato';
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

#csc-map-wrapper *:not(.leaflet-container):not(.leaflet-container *),
#csc-map-wrapper *:not(.leaflet-container):not(.leaflet-container *)::before,
#csc-map-wrapper *:not(.leaflet-container):not(.leaflet-container *)::after {
    box-sizing: border-box;
}

#csc-map-wrapper>*:not(#map),
#csc-map-wrapper .topbar,
#csc-map-wrapper .topbar *,
#csc-map-wrapper .sidebar,
#csc-map-wrapper .sidebar *,
#csc-map-wrapper .diagnostic-form-container,
#csc-map-wrapper .diagnostic-form-container *,
#csc-map-wrapper .overlay,
#csc-map-wrapper .search-container,
#csc-map-wrapper .search-container *,
#csc-map-wrapper .suggestions,
#csc-map-wrapper .suggestions * {
    margin: 0;
    padding: 0;
}

/* ============================
     LEAFLET MAP - DO NOT RESET
  ============================ */
#csc-map-wrapper #map {
    width: 100%;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#csc-map-wrapper .leaflet-container {
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    font-family: 'Lato';
}

#csc-map-wrapper .leaflet-control-zoom,
#csc-map-wrapper .leaflet-control-layers,
#csc-map-wrapper .leaflet-control-scale,
#csc-map-wrapper .leaflet-bar,
#csc-map-wrapper .leaflet-control {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#csc-map-wrapper .leaflet-control-zoom a,
#csc-map-wrapper .leaflet-bar a {
    display: block !important;
    text-decoration: none !important;
}

#csc-map-wrapper .leaflet-popup {
    position: absolute !important;
    display: block !important;
}

#csc-map-wrapper .leaflet-popup-content-wrapper {
    display: block !important;
    padding: 1px !important;
    text-align: left !important;
}

#csc-map-wrapper .leaflet-popup-content {
    display: block !important;
    margin: 13px 19px !important;
    line-height: 1.4 !important;
}

#csc-map-wrapper .leaflet-popup-content p {
    margin: 0.5em 0 !important;
    display: block !important;
}

/* ============================
     CAPTCHA
  ============================ */
.recaptcha-notice {
    font-size: 11px !important;
    color: #555 !important;
    margin-top: 1rem !important;
    text-align: left !important;
}

.recaptcha-text a {
    color: #4285F4 !important;
    text-decoration: none !important;
}

.recaptcha-text a:hover {
    text-decoration: underline !important;
}

/* ============================
     TOPBAR - Fixed Positioning
  ============================ */
#csc-map-wrapper .topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: rgba(45, 69, 202, 0.719) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 73px !important;
    z-index: 11000 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    padding: 0 20px !important;
    margin: 0 !important;
    gap: 15px !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

#csc-map-wrapper .topbar>div {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#csc-map-wrapper .topbar nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    margin: 50px !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 90px !important;
}

#csc-map-wrapper .topbar nav button.topBarButton,
#csc-map-wrapper .topbar nav .topBarButton {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#csc-map-wrapper .topbar img {
    height: 60px !important;
    width: auto !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    display: block !important;
    vertical-align: middle !important;
    pointer-events: none !important;
}

#csc-map-wrapper .input-wrapper {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
}

#csc-map-wrapper .search-icon {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: #FF5F53 !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    pointer-events: none !important;
}

#csc-map-wrapper .search-icon i {
    font-size: 24px !important;
}

#csc-map-wrapper .map-title {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 25px !important;
    text-align: center !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* ============================
     SEARCH CONTAINER
  ============================ */
#csc-map-wrapper .search-container {
    position: relative !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

#csc-map-wrapper .suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

#csc-map-wrapper .suggestion-item:hover {
    background-color: #f5f5f5;
}

#csc-map-wrapper .suggestion-item.selected {
    background-color: #3EAAE6;
    color: white;
    border-radius: 4px;
}

#csc-map-wrapper #schoolSearch {
    padding: 8px 12px !important;
    border-radius: 24px !important;
    border: 1px solid #ccc !important;
    width: 275px !important;
    height: 45px !important;
    font-size: 14px !important;
    font-family: 'Lato' !important;
    margin: 0 !important;
    background: white !important;
    color: #0F0054 !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

#csc-map-wrapper .suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 10002 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

#csc-map-wrapper .suggestions div {
    padding: 8px 12px !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: block !important;
    color: #0F0054 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

#csc-map-wrapper .suggestions div:last-child {
    border-bottom: none !important;
}

#csc-map-wrapper .suggestions div:hover {
    background-color: #f0f0f0 !important;
}

#csc-map-wrapper .suggestions:empty {
    display: none !important;
}

#csc-map-wrapper .no-result {
    color: #555 !important;
    font-size: 14px !important;
    padding: 10px !important;
    text-align: center !important;
}

#csc-map-wrapper .no-result .ask-diagnostic {
    display: inline-block !important;
    margin-top: 5px !important;
    color: #3EAAE6 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

#csc-map-wrapper .no-result .ask-diagnostic:hover {
    color: #0056b3 !important;
}

#csc-map-wrapper .tooltip {
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
    margin-left: 5px !important;
}

#csc-map-wrapper .material-icons {
    font-size: 15px !important;
}

#csc-map-wrapper .material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24 !important;
}

#csc-map-wrapper .sidebare-icones {
    display:inline-block !important;
    vertical-align:middle !important;
    font-size:20px !important;
    line-height:20px !important;
    text-align:center !important;
    margin-bottom: 5px !important;
    color: #0F0054 !important;
    margin-right: 1px !important;
}

#csc-map-wrapper .sidebare-images {
    width:20px;
    height:20px;
}

#csc-map-wrapper .sidebare-under-text {
    margin-left: 23px !important;
}

#csc-map-wrapper .sidebare-under-text-png {
    margin-left: 25px !important;
}

#csc-map-wrapper .sendFormButton {
    font-size: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
}

#csc-map-wrapper .tooltiptext {
    border: 1px solid #555 !important;
    border-radius: 6px !important;
}

#csc-map-wrapper .tooltip .tooltiptext {
    visibility: hidden !important;
    width: 400px !important;
    background-color: #fffefe !important;
    color: #000000 !important;
    text-align: left !important;
    padding: 10px !important;
    position: absolute !important;
    z-index: 100 !important;
    bottom: 100% !important;
    left: 850% !important;
    transform: translateX(-50%) !important;
    white-space: normal !important;
    overflow: visible !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
}

#csc-map-wrapper .tooltip .tooltiptext p {
    margin: 5px 0 !important;
    padding: 0 !important;
}

#csc-map-wrapper .tooltip:hover .tooltiptext {
    visibility: visible !important;
    opacity: 1 !important;
}

#csc-map-wrapper .loader {
    position: fixed !important;
    bottom: 95px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    border: 5px solid rgba(0, 0, 0, 0.1) !important;
    border-top: 5px solid #3498db !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    z-index: 15000 !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#csc-map-wrapper .email-contact {
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.grecaptcha-badge {
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* ============================
     BUTTONS
  ============================ */
#csc-map-wrapper .topBarButton,
#csc-map-wrapper .sendDiag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    height: 36px !important;
    background-color: #ff5f53 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: 'Lato' !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: normal !important;
    white-space: nowrap !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

#csc-map-wrapper .topBarButton:hover,
#csc-map-wrapper .sendDiag:hover {
    background-color: #0056b3 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

#csc-map-wrapper .topBarButton:active,
#csc-map-wrapper .sendDiag:active {
    background-color: #3EAAE6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* ============================
     SIDEBAR
  ============================ */
#csc-map-wrapper .sidebar {
    position: fixed !important;
    top: 90px !important;
    left: -400px !important;
    width: 400px !important;
    height: calc(60% - 63px) !important;
    background: white !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3) !important;
    transition: left 0.3s ease !important;
    z-index: 10001 !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

#csc-map-wrapper .sidebar.open {
    left: 20px !important;
}

#csc-map-wrapper .sidebar-header {
    display: block !important;
    background: #007bff !important;
    color: white !important;
    padding: 15px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    margin: 0 !important;
}

#csc-map-wrapper .school-name {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    align-items: start !important;
    min-height: 40px !important;
}

#csc-map-wrapper .school-name-text {
    min-width: 0 !important;
    display: block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
}

#csc-map-wrapper .school-address,
#csc-map-wrapper .school-city {
    font-weight: normal !important;
}

#csc-map-wrapper .sidebar-content {
    display: block !important;
    padding: 15px !important;
    margin: 0 !important;
    flex: 1;
    overflow-y: auto;
}

#csc-map-wrapper .sidebar-content p {
    display: block !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    color: #0F0054 !important;
    font-size: 14px !important;
}

#csc-map-wrapper .sidebar-content strong {
    font-weight: 600 !important;
}

#csc-map-wrapper .sidebar button.sendDiag {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

#csc-map-wrapper .sidebar-footer {
    padding: 40px 45px !important;
    border-top: 1px solid #ddd !important;
    background: #fafafa !important;
}

/* ============================
     DIAGNOSTIC FORM
  ============================ */
#csc-map-wrapper .diagnostic-form-container {
    display: none !important;
    position: fixed !important;
    top: 90px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 700px !important;
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 110px) !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    padding: 25px 30px !important;
    z-index: 20000 !important;
    font-family: 'Lato' !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    color: #0F0054 !important;
    overflow-y: auto !important;
}

#csc-map-wrapper .diagnostic-form-container::-webkit-scrollbar {
    width: 8px !important;
}

#csc-map-wrapper .diagnostic-form-container::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}

#csc-map-wrapper .diagnostic-form-container::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 10px !important;
}

#csc-map-wrapper .diagnostic-form-container::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}

#csc-map-wrapper .diagnostic-form-container.active {
    display: block !important;
}

#csc-map-wrapper .diagnostic-form-container p.diagnostic-message-up {
    font-size: 25px !important;
    font-weight: bold;
}

#csc-map-wrapper .diagnostic-form-container p {
    display: block !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    color: #0F0054 !important;
    font-size: 14px !important;
    text-align: center !important;
}


#csc-map-wrapper .diagnostic-form-container .close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 22px !important;
    font-weight: bold !important;
    color: #555 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

#csc-map-wrapper .diagnostic-form-container .close-btn:hover {
    color: #ff5f53 !important;
}

#csc-map-wrapper .diagnostic-form-container form {
    display: grid !important;
    row-gap: 12px !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
}

#csc-map-wrapper .diagnostic-form-container .form-group {
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

#csc-map-wrapper .diagnostic-form-container .form-group.full-width {
    grid-column: 1 / -1 !important;
}

#csc-map-wrapper .diagnostic-form-container label {
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    color: #0F0054 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

#csc-map-wrapper .diagnostic-form-container input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    font-family: 'Lato' !important;
    background: white !important;
    margin: 0 !important;
    color: #0F0054 !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}

#csc-map-wrapper .diagnostic-form-container input.prefilled {
    background-color: #f0f0f0 !important;
}

#csc-map-wrapper .diagnostic-form-container input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2) !important;
}

#csc-map-wrapper .form-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    grid-column: 1 / -1 !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    gap: 15px !important;
}

#csc-map-wrapper .form-footer .captcha {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 150px !important;
}

#csc-map-wrapper .submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 10px 20px !important;
    background-color: #ff5f53 !important;
    color: white !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 15px !important;
    font-family: 'Lato' !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    gap: 6px !important;
}

#csc-map-wrapper .submit-btn .btn-text {
    white-space: nowrap !important;
    line-height: inherit !important;
}

#csc-map-wrapper .submit-btn:hover {
    background: #0056b3 !important;
}

#csc-map-wrapper .submit-btn:active {
    transform: scale(0.97) !important;
}

#csc-map-wrapper .diagnostic-form-container form p {
    grid-column: 1 / -1 !important;
    margin-top: 2px !important;
    text-align: justify !important;
}

/* ============================
     MODAL AFTER API CALL
  ============================ */
#csc-map-wrapper .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 40, 0.65);
    backdrop-filter: blur(4px);
    z-index: 21000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#csc-map-wrapper .modal-overlay.active {
    display: block;
    opacity: 1;
}

#csc-map-wrapper .afterSubmitModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    z-index: 25000;
    border-radius: 18px;
    padding: 30px 40px 50px;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 90%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow: hidden;
}

#csc-map-wrapper .afterSubmitModal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#csc-map-wrapper .afterSubmitModal h2 {
    font-size: 1.5rem;
    color: #1d1d1f;
    margin-bottom: 15px;
}

#csc-map-wrapper .afterSubmitModal p {
    color: #555;
    line-height: 1.5;
    margin: 10px;
}

#csc-map-wrapper .afterSubmitModal strong {
    color: #1a73e8;
}

#csc-map-wrapper .modal-footer {
    margin-top: 25px;
    padding-bottom: 20px;
}

#csc-map-wrapper .modal-footer {
    margin-top: 25px;
}

#csc-map-wrapper .thxmessage {
    margin-top: 27px;
    font-weight: 1000;
    font-size: 25px;
}

#csc-map-wrapper .afterSubmitModal .close-btn:hover {
    color: #ff5f53 !important;
}

#csc-map-wrapper .afterSubmitModal .close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 22px !important;
    font-weight: bold !important;
    color: #555 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* ============================
     OVERLAY
  ============================ */
#csc-map-wrapper .overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(4, 0, 255, 0.4) !important;
    z-index: 15000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#csc-map-wrapper .overlay.active {
    display: block !important;
}

.email-contact {
    margin-bottom: -40px !important;
}

/* ============================
     LEAFLET CONTROLS POSITIONING
  ============================ */
#csc-map-wrapper .leaflet-top,
#csc-map-wrapper .leaflet-bottom {
    z-index: 1000 !important;
    pointer-events: none !important;
}

#csc-map-wrapper .leaflet-top .leaflet-control,
#csc-map-wrapper .leaflet-bottom .leaflet-control {
    pointer-events: auto !important;
}

#csc-map-wrapper .leaflet-top {
    top: 80px !important;
}

#csc-map-wrapper .leaflet-right {
    right: 10px !important;
}

#csc-map-wrapper .leaflet-left {
    left: 10px !important;
}

#csc-map-wrapper .leaflet-bottom {
    bottom: 10px !important;
}

/* ============================
     RESPONSIVE
  ============================ */
@media (max-width: 768px) {

    #csc-map-wrapper .topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 28px !important;
        grid-template-rows: auto 45px !important;
        height: auto !important;
        min-height: 110px !important;
        max-height: 120px !important;
        padding: 10px 13px !important;
        align-items: stretch !important;
        column-gap: 12px !important;
        row-gap: 6px !important;
        position: absolute !important;
    }

    #csc-map-wrapper .map-title {
        position: static !important;
        transform: none !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        justify-content: center !important;
        font-size: clamp(14px, calc(4.73vw - 0.9px), 26px) !important;
        white-space: nowrap !important;
        text-align: center !important;
        pointer-events: none !important;
        width: 100% !important;
        padding: 2px 0 !important;
        margin: 0 !important;
    }

    #csc-map-wrapper .search-container {
        width: 100% !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    #csc-map-wrapper #schoolSearch {
        width: 100% !important;
    }

    #csc-map-wrapper .topbar nav {
        display: none !important;
    }

    #csc-map-wrapper .topBarButton {
        display: none !important;
    }

    #csc-map-wrapper body .burger,
    #csc-map-wrapper html .burger,
    #csc-map-wrapper .burger {
        position: static !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: center !important;
        justify-self: center !important;
        transform: none !important;
        width: 28px !important;
        height: 22px !important;
        z-index: 99999 !important;
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }

    #csc-map-wrapper body .burger span,
    html .burger span,
    .burger span {
        height: 2px !important;
    }

    #csc-map-wrapper body .burger.active span:first-of-type,
    #csc-map-wrapper .burger.active span:first-of-type {
        transform: rotate(45deg) translate(7px, 7px) !important;
    }

    #csc-map-wrapper body .burger.active span:last-of-type,
    #csc-map-wrapper .burger.active span:last-of-type {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }

    #csc-map-wrapper .burger.active {
        transform: none !important;
    }

    #csc-map-wrapper .menu-overlay {
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background:#0718D3 !important;
    }

    #csc-map-wrapper .menu-overlay.active {
        left: 0 !important;
    }

    #csc-map-wrapper .menu-left {
        flex: none !important;
        padding: 70px 20px 16px 20px !important;
        min-height: auto !important;
        justify-content: flex-start !important;
    }

    #csc-map-wrapper .menu-left a {
        font-size: 24px !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        line-height: 1.3 !important;
    }

    #csc-map-wrapper .menu-left p {
        font-size: 15px !important;
        max-width: 100% !important;
        line-height: 1.5 !important;
    }

    #menuDescription a {
        font-size: 15px !important;
    }

    #csc-map-wrapper .menu-right {
        width: 100% !important;
        padding: 0 20px 30px 20px !important;
        flex: none !important;
    }

    #csc-map-wrapper .menu-scroll-container {
        overflow: visible !important;
        padding-right: 0 !important;
    }

    #csc-map-wrapper .menu-items {
        flex-direction: column !important;
        gap: 0 !important;
    }

    #csc-map-wrapper .menu-item {
        min-height: auto !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    #csc-map-wrapper .menu-item:last-child {
        border-bottom: none !important;
    }

    #csc-map-wrapper .menu-item a {
        font-size: 18px !important;
        padding: 4px 0 !important;
    }

    #csc-map-wrapper .menu-item.active a {
        font-size: 20px !important;
    }

    #csc-map-wrapper .scroll-indicator {
        display: none !important;
    }

    #csc-map-wrapper .image-slot {
        display: none !important;
    }

    #csc-map-wrapper .diagnostic-form-container {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 40px) !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        border-radius: 12px !important;
    }

    #csc-map-wrapper .diagnostic-form-container form {
        grid-template-columns: 1fr !important;
    }

    #csc-map-wrapper .form-footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #csc-map-wrapper .form-footer .captcha {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        max-width: 100% !important;
    }

    #csc-map-wrapper .sidebar {
        top: auto !important;
        left: 0 !important;
        bottom: -100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 45% !important;
        transition: bottom 0.3s ease !important;
        border-radius: 16px 16px 0 0 !important;
    }

    #csc-map-wrapper .sidebar-header {
        font-size: 16px !important;
        padding: 12px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    #csc-map-wrapper .school-name-text {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    #csc-map-wrapper .school-name-text.expanded {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-wrap: break-word !important;
    }

    #csc-map-wrapper .legend {
        margin-bottom: 25px !important;
    }

    #csc-map-wrapper .sidebar.open {
        bottom: 0px !important;
        left: 0 !important;
    }

    #csc-map-wrapper .leaflet-top {
        top: 130px !important;
    }

    #csc-map-wrapper .sidebar-footer {
        padding: 10px 15px !important;
    }

    /* Zoom en bas à droite (layersAndMap.js), au-dessus de la légende */
    #csc-map-wrapper .leaflet-bottom .leaflet-control-zoom {
        margin-bottom: 40px !important;
    }
}

@media (min-width: 769px) and (max-width: 1275px) {
    #csc-map-wrapper .topbar > .map-title {
        display: none !important;
    }
}

/* Titre centré entre la recherche et le bouton : sa taille suit la largeur de
   l'écran pour ne pas toucher le bouton juste au-dessus de 1276 px, puis reste
   à 25px dès qu'il y a la place. La largeur maximale avec points de suspension
   sert de garde-fou si la police n'est pas encore chargée. */
@media (min-width: 1276px) {
    #csc-map-wrapper .map-title {
        font-size: clamp(18px, calc(4.7vw - 39px), 25px) !important;
        max-width: calc(100vw - 800px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

#csc-map-wrapper .diagnostic-form-container label {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    min-height: 20px !important;
}

#csc-map-wrapper .diagnostic-form-container label .material-icons {
    font-size: 16px !important;
    line-height: 1 !important;
    position: relative !important;
    top: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

#csc-map-wrapper .diagnostic-form-container .tooltip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    vertical-align: middle !important;
    margin: 0 0 0 4px !important;
}

#csc-map-wrapper .diagnostic-form-container form {
    row-gap: 12px !important;
}

/* ============================
     NEW Button on HEADER THEME
  ============================ */

.new-badge {
    background: linear-gradient(45deg, #ff4444, #ff8800);
    color: white;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 6px;
    position: absolute;
    top: -15px;
    right: 0;
    left: auto;

    animation: subtle-shake 1.6s ease-in-out infinite;
}

@keyframes subtle-shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        transform: translate(0.5px, -0.5px) rotate(-1deg);
    }

    40% {
        transform: translate(-0.5px, 0.5px) rotate(1deg);
    }

    60% {
        transform: translate(0.5px, 0) rotate(-0.5deg);
    }

    80% {
        transform: translate(-0.5px, 0) rotate(0.5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* ============================
     Burger Menu
  ============================ */
body .burger,
html .burger,
.burger {
    all: initial !important;
    position: fixed !important;
    top: 20px !important;
    right: 40px !important;
    width: 40px !important;
    height: 30px !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    font-family: initial !important;
}

.burger br {
    display: none !important;
}

body .burger span,
html .burger span,
.burger span {
    all: initial !important;
    width: 100% !important;
    height: 3px !important;
    background: white !important;
    border-radius: 3px !important;
    transition: all 0.3s !important;
    display: block !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body .burger.active span:first-of-type,
.burger.active span:first-of-type {
    transform: rotate(45deg) translate(10px, 10px) !important;
    background: white !important;
}

body .burger.active span:nth-of-type(2),
.burger.active span:nth-of-type(2) {
    opacity: 0 !important;
}

body .burger.active span:last-of-type,
.burger.active span:last-of-type {
    transform: rotate(-45deg) translate(10px, -10px) !important;
    background: white !important;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to right, #09096ACC, #0718D3) !important;
    z-index: 1000;
    display: flex;
    pointer-events: none;
    overflow: hidden;
}

.menu-overlay.active {
    left: 0;
    pointer-events: auto;
}

.menu-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 75px !important;
    color: white;
}

.menu-left h1 {
    font-size: 72px;
    font-family: 'Lato' !important;
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease-out;
}

.menu-left a {
    font-size: 50px !important;
    max-width: 600px !important;
    font-weight: 900 !important;
    font-family: 'Lato' !important;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease-out 0.3s;
    color: #ffffff !important;
    padding: 20px 0 !important;
}

.menu-left p {
    font-size: 24px !important;
    max-width: 600px !important;
    font-family: 'Lato' !important;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease-out 0.6s;
    font-weight: 100;
    color: #ffffff;
}

.menu-left .highlight {
    color: #FF5F53 !important;
    font-weight: 900 !important;
}

@keyframes slideUpFromBottom {
    0% {
        opacity: 0;
        transform: translateY(300px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFromTop {
    0% {
        opacity: 0;
        transform: translateY(-300px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-overlay.active .menu-left.scroll-animate-down a {
    animation: slideUpFromBottom 0.7s ease-out forwards !important;
}

.menu-overlay.active .menu-left.scroll-animate-down p {
    animation: slideUpFromBottom 0.7s ease-out forwards !important;
}

.menu-overlay.active .menu-left.scroll-animate-up a {
    animation: slideDownFromTop 0.7s ease-out forwards !important;
}

.menu-overlay.active .menu-left.scroll-animate-up p {
    animation: slideDownFromTop 0.7s ease-out forwards !important;
}

.menu-overlay.active .menu-left h1,
.menu-overlay.active .menu-left a,
.menu-overlay.active .menu-left p {
    opacity: 1;
    transform: translateY(0);
}

.menu-right {
    width: 350px !important;
    display: flex;
    flex-direction: column;
    padding: 80px 80px 80px 80px !important;
    position: relative;
    pointer-events: auto;
    justify-content: flex-start;
    align-items: flex-start;
}


.menu-scroll-container {
    flex: 1;
    overflow: hidden;
    padding-right: 60px;
    pointer-events: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.menu-scroll-container::-webkit-scrollbar {
    width: 0px;
}

.menu-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.menu-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.menu-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    justify-content: flex-start;
    height: auto;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    opacity: 0.5;
    transform: translateX(20px);
    transition: all 0.5s ease-out;
    pointer-events: auto;
    min-height: 40px;
    padding: 20px 0;
    cursor: pointer;
}

.menu-item.active {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay.active .menu-item:nth-child(1) {
    transition-delay: 0.2s;
}

.menu-overlay.active .menu-item:nth-child(2) {
    transition-delay: 0.3s;
}

.menu-overlay.active .menu-item:nth-child(3) {
    transition-delay: 0.4s;
}

.menu-overlay.active .menu-item:nth-child(4) {
    transition-delay: 0.5s;
}

.menu-overlay.active .menu-item:nth-child(5) {
    transition-delay: 0.6s;
}

.menu-item a {
    color: #999 !important;
    text-decoration: none;
    font-size: 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    display: block;
    padding: 10px 0;
    pointer-events: auto;
}

.menu-item .item-description {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
    max-width: 400px !important;
    opacity: 0 !important;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#menuDescription a{
    font-size: 24px !important;
    color: #FF5F53 !important;
    text-decoration: underline;
}

.menu-item.active .item-description,
.menu-item:hover .item-description {
    opacity: 1;
    transform: translateY(0);
}

.menu-item.active a {
    color: white !important;
    font-size: 32px !important;
}

.menu-item:hover a {
    color: #d4d4d4 !important;
}

.menu-item.active:hover a {
    color: white !important;
}

.scroll-indicator {
    position: absolute;
    right: 20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
}

.scroll-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 10px;
    transition: height 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

body.menu-open {
    overflow: hidden;
}

/* ============================
     Share Button
  ============================ */

#csc-map-wrapper .share-icone {
    font-size: 25px !important;
}

#csc-map-wrapper .share-btn {
    padding: 0 !important;
    background-color: #ffffff00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.share-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    background-color: #1e7e34;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.share-btn.share-success {
    background-color: #155724;
}

.share-btn .material-icons {
    font-size: 25px;
}

/* ============================
     CUSTOM LAYER CONTROL WITH ARROW
  ============================ */
#csc-map-wrapper .leaflet-control-layers {
    position: fixed !important;
    right: -30px !important;
    top: 20% !important;
    transform: translateY(-50%) !important;
    transition: right 0.3s ease !important;
    background: white !important;
    border-radius: 8px 0 0 8px !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2) !important;
    padding: 10px !important;
    max-width: 250px !important;
    z-index: 1000 !important;
}

#csc-map-wrapper .leaflet-control-layers.leaflet-control-layers-expanded {
    right: 0 !important;
}

#csc-map-wrapper .leaflet-control-layers-toggle {
    position: absolute !important;
    left: -38px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 60px !important;
    background: white !important;
    border-radius: 8px 0 0 8px !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
}

#csc-map-wrapper .leaflet-control-layers-toggle::after {
    content: '◀' !important;
    font-size: 18px !important;
    color: #2d45ca !important;
    transition: transform 0.3s ease !important;
}

#csc-map-wrapper .leaflet-control-layers.leaflet-control-layers-expanded .leaflet-control-layers-toggle::after {
    content: '▶' !important;
}

#csc-map-wrapper .leaflet-control-layers-toggle:hover {
    background: #f0f0f0 !important;
}

/* Mobile : menu des couches centré verticalement sur l'écran (et non à 20 %
   de la hauteur, ce qui le plaçait derrière le popup réduit). Centré, l'onglet
   ne bouge pas quand le menu s'ouvre. La position est relative au conteneur de
   la carte, qui commence 72 px sous le haut de l'écran, d'où le décalage. */
@media (max-width: 768px) {
    #csc-map-wrapper .leaflet-control-layers {
        top: calc(50% - 72px) !important;
    }
}

#csc-map-wrapper .leaflet-control-layers-toggle[href] {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
}

/* ============================
     PRICING / COLLECTIVITES POPUP
  ============================ */
#csc-map-wrapper .pricing-popup {
    position: fixed !important;
    display: block !important;
    background: #FFD169 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 34px rgba(15, 0, 84, 0.22) !important;
    z-index: 19000 !important;
    font-family: 'Lato' !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    color: #315A0E !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease, transform 0.35s ease, width 0.35s ease !important;
}

#csc-map-wrapper .pricing-popup.active {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#csc-map-wrapper .pricing-popup.is-expanded {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(880px, 90vw) !important;
    max-width: 90vw !important;
    min-height: 294px !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
}

#csc-map-wrapper .pricing-popup.is-compact {
    top: auto !important;
    right: 6vw !important;
    bottom: 8vh !important;
    left: auto !important;
    width: min(460px, 43vw) !important;
    min-height: 150px !important;
    padding: 0 !important;
    transform: none !important;
}

#csc-map-wrapper .pricing-popup-content {
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

#csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-content {
    width: 61% !important;
    min-height: 294px !important;
    padding: 24px 34px 22px 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

#csc-map-wrapper .pricing-popup-title {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    color: #315A0E !important;
    font-family: 'Lato' !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    text-align: left !important;
}

#csc-map-wrapper .pricing-popup-media {
    position: absolute !important;
    z-index: 1 !important;
    top: 48px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 39% !important;
    height: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 20px 0 0 0 !important;
    overflow: hidden !important;
}

#csc-map-wrapper .pricing-popup-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
    object-position: top left !important;
}

#csc-map-wrapper .pricing-popup.is-compact .pricing-popup-content {
    width: 61% !important;
    min-height: 150px !important;
    padding: 12px 14px 12px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

#csc-map-wrapper .pricing-popup.is-compact .pricing-popup-title {
    width: 100% !important;
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
}

#csc-map-wrapper .pricing-popup.is-compact .pricing-popup-close {
    display: none !important;
}

#csc-map-wrapper .pricing-popup.is-compact .pricing-popup-text {
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

#csc-map-wrapper .pricing-popup.is-compact .pricing-popup-btn {
    align-self: flex-start !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
}

#csc-map-wrapper .pricing-popup.is-compact .pricing-popup-media {
    display: block !important;
    top: 22px !important;
    width: 39% !important;
    height: calc(100% - 22px) !important;
    border-radius: 12px 0 0 0 !important;
}

#csc-map-wrapper .pricing-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    z-index: 3 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0 !important;
    font-weight: bold !important;
    color: transparent !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#csc-map-wrapper .pricing-popup-close::before,
#csc-map-wrapper .pricing-popup-close::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 14px !important;
    height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #315A0E !important;
    border-radius: 2px !important;
    transform-origin: center !important;
}

#csc-map-wrapper .pricing-popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

#csc-map-wrapper .pricing-popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

#csc-map-wrapper .pricing-popup-close:hover {
    background: #ffffff !important;
    transform: scale(1.05) !important;
}

#csc-map-wrapper .pricing-popup-text {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1.55 !important;
    color: #315A0E !important;
    font-weight: 400 !important;
    text-align: left !important;
}

#csc-map-wrapper .pricing-popup-text strong {
    font-weight: 800 !important;
}

#csc-map-wrapper .pricing-popup-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    padding: 14px 22px !important;
    background-color: #ffffff !important;
    color: #315A0E !important;
    border: none !important;
    border-radius: 18px !important;
    font-size: 18px !important;
    font-family: 'Lato' !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: normal !important;
    white-space: nowrap !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#csc-map-wrapper .pricing-popup-btn:hover {
    background-color: #f7f7f7 !important;
    box-shadow: 0 4px 10px rgba(49, 90, 14, 0.2) !important;
}

#csc-map-wrapper .pricing-popup-btn:active {
    background-color: #eeeeee !important;
    box-shadow: 0 2px 4px rgba(49, 90, 14, 0.2) !important;
}

@media (max-width: 768px) {
    #csc-map-wrapper .pricing-popup.is-expanded {
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100vw - 24px) !important;
        max-width: 520px !important;
        height: auto !important;
        min-height: 0 !important;
        transform: translate(-50%, -50%) !important;
    }

    #csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-content {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 24px 24px 12px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    #csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-title {
        max-width: calc(100% - 34px) !important;
        margin: 0 auto 10px !important;
        font-size: 23px !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }

    #csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-text {
        width: 100% !important;
        margin-bottom: 16px !important;
        font-size: 17px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    #csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-btn {
        width: 100% !important;
        align-self: stretch !important;
        padding: 11px 18px !important;
        font-size: 15px !important;
    }

    #csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-media {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 180px !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
    }

    #csc-map-wrapper .pricing-popup.is-expanded .pricing-popup-image {
        object-position: top center !important;
    }

    #csc-map-wrapper .pricing-popup.is-compact {
        top: 130px !important;
        right: 12px !important;
        bottom: auto !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        transform: none !important;
    }

    #csc-map-wrapper .pricing-popup.is-compact .pricing-popup-content {
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    /* Titre sur une seule ligne : la taille suit la largeur de l'écran.
       display: block (et non flex) pour que les points de suspension
       remplacent la fin du texte s'il déborde encore, au lieu de couper le début. */
    #csc-map-wrapper .pricing-popup.is-compact .pricing-popup-title {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: clamp(9px, 3.1vw, 13px) !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }

    #csc-map-wrapper .pricing-popup.is-compact .pricing-popup-text,
    #csc-map-wrapper .pricing-popup.is-compact .pricing-popup-media {
        display: none !important;
    }

    #csc-map-wrapper .pricing-popup.is-compact .pricing-popup-btn {
        align-self: center !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        font-size: clamp(10px, 3vw, 12px) !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }
}
