/* assets/css/style.css */
/* General form container styling */
.ncs-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.ncs-form-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #333;
}

.ncs-form-container input,
.ncs-form-container textarea,
.ncs-form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.charger-group {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.charger-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.charger-field-row label {
    flex: 0 0 100px;
    margin: 0;
}

.charger-field-row select,
.charger-field-row input {
    flex: 1;
    margin-bottom: 0;
}

.ncs-remove-charger {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
}

.ncs-remove-charger:hover {
    background: #b71c1c;
}

#add-charger {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.1s ease;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#add-charger:hover {
    background: #005177;
    transform: scale(1.02);
}

#add-charger:active {
    transform: scale(0.98);
}

/* Map and map container styling */
#ncs-map, #map-pin {
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
}

/* Ensure the map container starts below the header on frontend */
#ncs-map-container {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    width: 100vw;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* Scope body and html styles to frontend page only */
.ncs-frontend, .ncs-frontend html {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Ensure form page allows scrolling and proper layout */
.ncs-form-page, .ncs-form-page html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
}

/* Specific styling for the map on the form page */
.ncs-form-page #map-pin {
    height: 400px;
    width: 100%;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

/* Add padding to the fixed header */
header, .site-header, #masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Search container styling */
#ncs-search-container {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 10px;
    left: 60px;
    width: 100%;
    max-width: 400px;
    z-index: 2;
}

/* Adjust search container on mobile */
@media (max-width: 768px) {
    #ncs-search-container {
        left: 50px;
        max-width: calc(100% - 70px);
        padding: 4px;
    }
}

/* Adjust search container on desktop to avoid overlap with popup */
@media (min-width: 769px) {
    #ncs-search-container {
        left: 60px;
        transition: left 0.3s ease;
    }

    #ncs-search-container.popup-open {
        left: 460px;
    }
}

.ncs-search-wrapper {
    position: relative;
    width: 100%;
}

#ncs-search {
    width: 100%;
    padding: 8px 100px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.3s ease;
}

/* Adjust search input on mobile */
@media (max-width: 768px) {
    #ncs-search {
        padding: 8px 60px 8px 10px;
        font-size: 14px;
    }
}

#ncs-search:focus {
    border-color: #0073aa;
    outline: none;
}

#ncs-search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

/* Adjust search button on mobile */
@media (max-width: 768px) {
    #ncs-search-button {
        padding: 8px 10px;
        font-size: 12px;
    }
}

#ncs-search-button:hover {
    background-color: #005177;
}

.leaflet-control-zoom {
    border: 2px solid rgba(0,0,0,0.2) !important;
    border-radius: 4px !important;
}

.leaflet-control-zoom a {
    background-color: #fff !important;
    color: #000 !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f4f4f4 !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid rgba(0,0,0,0.2) !important;
}

/* Default popup styling (hidden initially) */
.ncs-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-out;
    box-sizing: border-box;
}

/* Combined popup styling */
.ncs-combined-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-out;
    box-sizing: border-box;
}

/* Desktop/Laptop styling for combined popup */
@media (min-width: 769px) {
    .ncs-combined-popup {
        top: 60px; /* Start below the header */
        left: 0;
        bottom: 0;
        width: 400px;
        max-width: 400px;
        height: calc(100vh - 60px);
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%);
    }

    .ncs-combined-popup.active {
        transform: translateX(0);
    }

    /* Adjust search container to avoid overlap */
    #ncs-search-container.popup-open {
        left: 460px;
    }
}

/* Mobile styling for combined popup */
@media (max-width: 768px) {
    .ncs-combined-popup {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 80vh;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        transform: translateY(100%);
    }

    .ncs-combined-popup.active {
        transform: translateY(0);
    }
}

/* Desktop/Laptop styling for left-positioned popup */
@media (min-width: 769px) {
    .ncs-popup {
        top: 60px; /* Start below the header (header height: ~60px) */
        left: 0;
        bottom: 0;
        width: 400px;
        max-width: 400px;
        height: calc(100vh - 60px); /* Adjust height to account for header */
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%);
    }

    .ncs-popup.active {
        transform: translateX(0);
    }

    /* Add padding to first content section to avoid overlap with header */
    .ncs-popup .ncs-station-rating {
        padding-top: 20px; /* Reduced since popup already starts below header */
    }

    /* Reduce padding for subsequent sections to avoid excessive spacing */
    .ncs-popup .station-info,
    .ncs-popup .ncs-status-buttons,
    .ncs-popup .ncs-nearby-stations,
    .ncs-popup .ncs-facilities-nearby,
    .ncs-popup .ncs-comments-section {
        padding-top: 10px;
    }
}

/* Mobile styling for bottom popup */
@media (max-width: 768px) {
    .ncs-popup {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 75vh;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        transform: translateY(100%);
    }

    .ncs-popup.active {
        transform: translateY(0);
    }
}

.ncs-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
    min-height: 60px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0; /* Sticky within the popup */
    z-index: 10;
    box-sizing: border-box;
}

.ncs-details-header:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: #d32f2f;
    border-radius: 3px;
    z-index: 5;
}

/* Hide the drag handle on desktop */
@media (min-width: 769px) {
    .ncs-details-header:before {
        display: none;
    }
}

.station-title {
    margin: 0;
    font-size: 16px;
    color: #d32f2f;
    font-weight: bold;
    display: block;
    max-width: 70%;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    position: relative;
    z-index: 20;
}

/* Ensure station-title is visible on desktop */
@media (min-width: 769px) {
    .station-title {
        font-size: 18px;
        max-width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        line-height: 1.3;
        padding-right: 40px;
        position: static;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
}

#ncs-close-details, #ncs-close-filter, #ncs-close-combined {
    background: #0a73a1;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 30;
    position: absolute;
    right: 15px;
    top: 15px;
}

#ncs-close-details:hover, #ncs-close-filter:hover, #ncs-close-combined:hover {
    background: #085e82;
    color: #fff;
}

.ncs-station-rating {
    margin: 10px 0;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ncs-star-rating-display {
    margin-bottom: 5px;
    cursor: pointer;
}

.ncs-star-display {
    font-size: 22px;
    color: #808080;
    margin-right: 4px;
}

.ncs-star-display.rated {
    color: #d32f2f;
}

.ncs-star-display.rated-partial {
    color: #808080;
    position: relative;
}

.ncs-ratings-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

/* Ensure ratings info stays in one row on desktop */
@media (min-width: 769px) {
    .ncs-ratings-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
}

/* On mobile, keep Rating and Get Directions in the same row */
@media (max-width: 768px) {
    .ncs-ratings-info {
        flex-direction: row; /* Changed to row for mobile */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .ncs-ratings-reviews,
    .directions-link {
        font-size: 12px; /* Slightly smaller font to fit in one row */
        white-space: nowrap;
    }

    .directions-link {
        padding: 6px 10px; /* Reduced padding to fit better */
    }
}

.ncs-ratings-reviews {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    margin-right: 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.ncs-ratings-reviews:hover {
    text-decoration: underline;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
    color: #0073aa;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #ddd;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.directions-link:hover {
    background: #f0f0f0;
    color: #0073aa;
}

.ncs-rating-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.ncs-rating-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow-y: visible;
    min-height: 450px;
    box-sizing: border-box;
}

/* Adjust modal height on desktop */
@media (min-width: 769px) {
    .ncs-rating-modal-content {
        min-height: 600px;
        padding-bottom: 60px;
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.ncs-close-rating-modal {
    color: #aaa;
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.ncs-close-rating-modal:hover,
.ncs-close-rating-modal:focus {
    color: #000;
    text-decoration: none;
}

.ncs-star-rating {
    margin: 20px 0;
}

.ncs-star {
    font-size: 22px;
    color: #000;
    cursor: pointer;
    margin-right: 5px;
}

.ncs-star:hover,
.ncs-star.rated {
    color: #ffd700;
}

.ncs-comment-form {
    margin: 15px 0;
    padding: 0 10px;
}

.ncs-comment-form label {
    display: block;
    margin: 10px 0 5px;
    font-size: 14px;
    color: #333;
}

.ncs-comment-form input,
.ncs-comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.ncs-comment-form textarea {
    height: 100px;
    resize: vertical;
}

.ncs-anonymous-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.ncs-anonymous-label input {
    width: auto;
    margin-right: 5px;
}

.ncs-submit-rating {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 20px auto 10px;
    font-size: 14px;
    display: block;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1002;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure submit button is visible on desktop */
@media (min-width: 769px) {
    .ncs-submit-rating {
        margin: 30px auto 20px;
        padding: 12px 24px;
        font-size: 16px;
    }
}

.ncs-submit-rating:hover {
    background: #b71c1c;
}

.station-info {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #333;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: #f9f9f9; /* Changed from #e6f0fa to mild white */
    border-radius: 4px;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 600;
    color: #0a0268;
    min-width: 100px;
    margin-right: 10px;
    font-size: 13px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 13px;
}

.charger-row {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.charger-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.ncs-status-buttons {
    margin: 15px 0;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ncs-status-buttons select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

.ncs-status-buttons button {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.ncs-status-buttons button:hover {
    background: #b71c1c;
}

.status-label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
}

.green-dot {
    background-color: #00ff00;
}

.red-dot {
    background-color: #ff0000;
}

.ncs-nearby-stations {
    margin: 15px 0;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.nearby-title {
    color: #000;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    display: block;
    width: 100%;
}

.ncs-nearby-station {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.3s ease;
}

.ncs-nearby-station:hover {
    background: #e0e0e0;
}

.ncs-nearby-station .station-name {
    font-size: 14px;
    color: #000;
    margin-right: 10px;
}

.ncs-nearby-station .distance {
    color: #666;
    font-size: 11px;
    margin-left: auto;
}

.ncs-nearby-station .details {
    color: #333;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.ncs-facilities-nearby {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ncs-facility {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ncs-facility:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ncs-facility .facility-name {
    font-size: 14px;
    color: #333;
    flex: 1;
    font-weight: 500;
}

.ncs-facility .facility-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.ncs-facility .facility-distance {
    color: #777;
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 12px;
}

.ncs-route-planner {
    position: fixed;
    top: 70px;
    left: 60px;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 15px;
    display: none;
}

/* Adjust route planner on mobile */
@media (max-width: 768px) {
    .ncs-route-planner {
        left: 50px;
        width: calc(100% - 70px);
        top: 70px;
    }
}

/* Adjust route planner on desktop */
@media (min-width: 769px) {
    .ncs-route-planner {
        left: 60px;
        transition: left 0.3s ease;
    }

    .ncs-route-planner.popup-open {
        left: 460px;
    }
}

.ncs-route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ff6200;
    color: #fff;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin: -15px -15px 15px -15px;
}

.ncs-route-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#ncs-close-route {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.ncs-route-content {
    padding: 10px 0;
}

.ncs-route-field {
    margin-bottom: 15px;
    position: relative;
}

.ncs-route-field label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.ncs-route-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Adjust route field input on mobile */
@media (max-width: 768px) {
    .ncs-route-field input {
        padding: 6px;
        font-size: 12px;
    }
}

.ncs-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1002;
    max-height: 200px;
    overflow-y: auto;
}

.ncs-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.ncs-autocomplete-item:hover {
    background: #f0f0f0;
}

.ncs-plan-route {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.ncs-plan-route:hover {
    background: #005177;
}

.ncs-route-options {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}

.ncs-route-overview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.ncs-route-overview p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

/* Comments section styling */
.ncs-comments-section {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ncs-comment {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ncs-comment .comment-author {
    font-weight: 600;
    color: #d32f2f;
    font-size: 14px;
}

.ncs-comment .comment-date {
    font-size: 12px;
    color: #777;
    margin-left: 10px;
}

.ncs-comment .comment-text {
    margin-top: 5px;
    font-size: 13px;
    color: #333;
}

.ncs-comment .comment-rating {
    font-size: 12px;
    color: #666;
}

/* Styling for Total Charging Stations Popup */
#ncs-total-chargers-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    max-height: 75vh;
    overflow-y: auto;
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#ncs-total-chargers-popup.active {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 769px) {
    #ncs-total-chargers-popup {
        left: calc(100% - 420px);
        transform: translate(0, -50%);
    }
}

.ncs-total-chargers-content {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ncs-total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
}

.ncs-total-item:last-child {
    border-bottom: none;
}

.ncs-total-label {
    font-weight: 600;
    color: #1a1a1a;
}

.ncs-total-chargers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.ncs-total-chargers-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

#ncs-close-total-chargers {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
}

#ncs-close-total-chargers:hover {
    color: #d32f2f;
}

/* Styling for Add Station Button */
#ncs-add-station-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#ncs-add-station-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Styling for Total Chargers Button */
#ncs-total-chargers-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#ncs-total-chargers-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Styling for Filter Button */
#ncs-filter-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#ncs-filter-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Styling for Buttons Container */
#ncs-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Styling for Filter Popup */
#ncs-filter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    max-height: 75vh;
    overflow-y: auto;
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#ncs-filter-popup.active {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 769px) {
    #ncs-filter-popup {
        left: calc(100% - 420px);
        transform: translate(0, -50%);
    }
}

.ncs-filter-content {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#ncs-apply-filter:hover {
    background: #005177;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ncs-station-rating {
        flex-direction: column;
        align-items: flex-start;
    }

    .ncs-comment-form textarea {
        height: 80px;
    }

    .ncs-submit-rating {
        padding: 6px 12px;
    }
}

/* Leaflet Marker Cluster Styles */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.marker-cluster div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small {
    background-color: rgba(255, 0, 0, 0.6); /* Changed from green to red */
}
.marker-cluster-small div {
    background-color: rgba(200, 0, 0, 0.6); /* Darker red for inner circle */
}

.marker-cluster-medium {
    background-color: rgba(0, 0, 255, 0.6); /* Changed from yellow to blue */
}
.marker-cluster-medium div {
    background-color: rgba(0, 0, 200, 0.6); /* Darker blue for inner circle */
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6); /* Unchanged */
}
.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6); /* Unchanged */
}

/* Ensure cluster icons have a minimum size */
.marker-cluster div {
    min-width: 30px;
    min-height: 30px;
}

/* new added code for route*/

.ncs-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}
.ncs-autocomplete-item {
    padding: 8px;
    cursor: pointer;
}
.ncs-autocomplete-item:hover {
    background: #f0f0f0;
}