/* Frontend Styles for Multi Location Maps */
.mlm-map-wrapper {
    margin: 20px 0;
    width: 100%;
}

.mlm-map-container {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

/* ===================================
   CUSTOM MARKER STYLES
   =================================== */
.mlm-custom-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 1;
    transition: z-index 0s;
}

.mlm-custom-marker:hover {
    z-index: 999 !important;
}

.mlm-marker-pin {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 3px solid #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.mlm-custom-marker:hover .mlm-marker-pin {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.mlm-marker-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    transform: rotate(45deg);
    border: 2px solid rgba(255,255,255,0.6);
}

.mlm-marker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Marker bez slike */
.mlm-marker-pin.mlm-marker-no-image {
    width: 44px;
    height: 44px;
}

.mlm-marker-pin.mlm-marker-no-image svg {
    transform: rotate(45deg);
}

/* Strelica ispod pina */
.mlm-marker-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #1a73e8;
}

/* ===================================
   INFO WINDOW / TOOLTIP STYLES
   =================================== */
.mlm-tooltip {
    max-width: 220px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
}

.mlm-tooltip-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.mlm-tooltip-link:hover {
    opacity: 0.9;
}

.mlm-tooltip-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    margin: 0;
    border-radius: 5px 5px 0 0;
}

.mlm-tooltip-content {
    padding: 12px;
}

.mlm-tooltip h3 {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 18px !important;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.mlm-tooltip p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #000;
    line-height: 1.4;
}

.mlm-tooltip p.mlm-address {
    display: flex;
    align-items: flex-start;
    color: #000;
    margin-bottom: 8px;
}

.mlm-tooltip p.mlm-address svg {
    margin-right: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mlm-tooltip p.mlm-description {
    padding-top: 8px;
    border-top: 1px solid #eee;
    margin-top: 8px;
    color: #666;
}

/* ===================================
   GOOGLE MAPS INFO WINDOW OVERRIDE
   =================================== */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    max-width: none !important;
    box-shadow: 0 2px 7px 1px rgba(0,0,0,0.3) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 12px !important;
    max-width: none !important;
}

/* Sakrij strelicu ispod info window-a */
.gm-style .gm-style-iw-tc {
    display: none !important;
}

.gm-style .gm-style-iw-tc::after {
    display: none !important;
}

/* Close button container - sivi pravougaonik na desnoj strani */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 50% !important;
    right: -32px !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 48px !important;
    background: #e8e8e8 !important;
    border-radius: 0 8px 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1) !important;
}

/* Close button styling */
.gm-style .gm-ui-hover-effect {
    width: 32px !important;
    height: 48px !important;
    background: transparent !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gm-style .gm-ui-hover-effect > span {
    background-color: #000 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.gm-style .gm-ui-hover-effect:hover > span {
    background-color: #333 !important;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 600px) {
    .mlm-tooltip {
        max-width: 200px;
    }
    
    .mlm-tooltip-image {
        height: 100px;
    }
    
    .mlm-tooltip h3 {
        font-size: 16px !important;
    }
    
    .mlm-tooltip p {
        font-size: 14px;
    }
    
    .mlm-marker-pin {
        width: 44px;
        height: 44px;
    }
    
    .mlm-marker-image {
        width: 32px;
        height: 32px;
    }
}

/* ===================================
   LOADING STATE
   =================================== */
.mlm-map-container.loading {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlm-map-container.loading::before {
    content: "Učitavanje mape...";
    color: #666;
    font-size: 16px;
}
