/* Simple Map Pin Styles - v2.0 */
.simple-map-pin-container {
    margin: 20px 0;
    border: 3px solid #4a7057;
    border-radius: 8px;
    overflow: hidden;
    background: #f9e6b3;
}

.simple-map-pin-info {
    padding: 15px 20px;
    background: #f9e6b3;
    border-bottom: 2px solid #4a7057;
}

.simple-map-pin-instructions {
    margin: 0;
    color: #4a7057;
    font-weight: 600;
    font-size: 16px;
}

.simple-map-pin-map {
    width: 100%;
    min-height: 400px;
}

.simple-map-pin-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #4a7057;
    border-radius: 5px;
    color: #4a7057;
    font-weight: 600;
}

.simple-map-pin-error a {
    color: #4a7057;
    text-decoration: underline;
}

/* Modal Styles */
.simple-map-pin-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-map-pin-modal-content {
    background: #ffffff;
    padding: 30px;
    border: 4px solid #4a7057;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.simple-map-pin-modal-content h3 {
    margin: 0 0 10px 0;
    color: #4a7057;
    font-size: 24px;
    font-weight: 700;
}

.simple-map-pin-modal-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 15px;
}

.simple-map-pin-title-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #4a7057;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.simple-map-pin-title-input:focus {
    outline: none;
    border-color: #4a7057;
    box-shadow: 0 0 0 3px rgba(74, 112, 87, 0.1);
}

/* Image Upload Styles */
.simple-map-pin-image-upload {
    margin-bottom: 20px;
}

.simple-map-pin-image-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f9e6b3;
    border: 2px solid #4a7057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a7057;
}

.simple-map-pin-image-label:hover {
    background: #4a7057;
    color: #f9e6b3;
}

.simple-map-pin-image-label .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.simple-map-pin-image-input {
    display: none;
}

.simple-map-pin-image-preview {
    margin-top: 15px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #4a7057;
}

.simple-map-pin-image-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.simple-map-pin-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-map-pin-remove-image:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.simple-map-pin-modal-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.simple-map-pin-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.simple-map-pin-btn-save {
    background: #4a7057;
    color: #f9e6b3;
}

.simple-map-pin-btn-save:hover:not(:disabled) {
    background: #3a5847;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 112, 87, 0.4);
}

.simple-map-pin-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.simple-map-pin-btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.simple-map-pin-btn-cancel:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.simple-map-pin-btn:active {
    transform: translateY(0);
}

/* Message Styles */
.simple-map-pin-message {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.simple-map-pin-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #4a7057;
}

.simple-map-pin-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Custom marker info window styles */
.gm-style .gm-style-iw-c {
    border: 2px solid #4a7057 !important;
    border-radius: 8px !important;
}

.gm-style .gm-style-iw-t::after {
    background: #4a7057 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .simple-map-pin-info {
        padding: 12px 15px;
    }
    
    .simple-map-pin-instructions {
        font-size: 14px;
    }
    
    .simple-map-pin-modal-content {
        padding: 20px;
    }
    
    .simple-map-pin-modal-content h3 {
        font-size: 20px;
    }
    
    .simple-map-pin-modal-buttons {
        flex-direction: column;
    }
    
    .simple-map-pin-btn {
        width: 100%;
    }
}
