/* Ẩn dòng chữ "Google" */
.gm-style-cc {
    display: none !important;
  }
  
  .gm-style > div > a[href^="https://maps.google.com/maps"] {
    display: none !important;
  }
  .gm-style img[alt="Google"] {
    display: none !important;
}

.modal-camera {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.camera-player-container {
    position: relative;
    background: #000;
    padding: 10px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    text-align: center;
}

#camera-stream-player {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-close-camera {
    margin-top: 15px;
    background: #ff4d4d;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.spinner-camera {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.camera-title {
    color: white;
    margin-bottom: 10px;
}

/*info-window map*/
.info-window-content {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    width: 250px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative; /* Cho phép canh chỉnh title chính xác */
}

/* Căn chỉnh title của InfoWindow */
.info-window-title {
    font-weight: bold;
    font-size: 16px;
    color: #007BFF;
    position: absolute;
    top: 5px;
    left: 10px;
    z-index: 999;
}

.info-window-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.info-window-button {
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

    .info-window-button:hover {
        background-color: #0056b3;
    }

/* Ẩn nút đóng mặc định */
.gm-ui-hover-effect {
    display: none !important;
}

/* Nút đóng tùy chỉnh */
.custom-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

    .custom-close-button:hover {
        background: #d32f2f;
    }


/* Nút icon nổi vung layout */
#layer-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9;
    background: #1976d2;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#map-layer-panel {
    position: absolute;
    top: 75px;
    left: 20px;
    z-index: 999;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 180px;
    font-family: Roboto, sans-serif;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-height: 700px; 
    overflow-y: auto;
}

    #map-layer-panel.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #map-layer-panel label {
        display: flex;
        align-items: center;
        font-size: 14px;
        margin-bottom: 8px;
    }

#draw-toggle-btn {
   /* width: 100%;
    padding: 6px;*/
    margin-top: 10px;
}
#kml-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: Roboto, sans-serif;
    font-size: 16px;
    display: none;
    z-index: 1000;
}
