/**
 * BW Image Hotspot - Editor Styles
 */

/* Main editor container */
.bw-image-hotspot-editor {
    background-color: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Header section */
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e4e7;
}

.map-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Map preview container */
.map-preview-container {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* Map background image in editor */
.map-background-preview {
    display: block;
    width: 100%;
    height: auto;
    background-color: #f7f7f7;
}

.map-background-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    padding: 50px 20px;
    text-align: center;
}

.map-background-placeholder p {
    margin-bottom: 15px;
    color: #757575;
    font-style: italic;
}

/* Map points editor */
.map-points-editor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Individual point in editor */
.map-point-editor {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: move;
    z-index: 10;
}

/* Active state for dragging/selected point */
.map-point-editor.is-active {
    z-index: 20;
}

/* Point marker in editor */
.map-point-marker {
    width: 100%;
    height: 100%;
}

/* Point form panel */
.map-point-form {
    background-color: #f9f9f9;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.map-point-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.map-point-form .form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    margin-bottom: 15px;
}

.map-point-form .form-field-full {
    grid-column: span 2;
}

/* Points list */
.map-points-list {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.map-points-list-header {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.map-point-list-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map-point-list-item:last-child {
    border-bottom: none;
}

.map-point-list-item:hover {
    background-color: #f9f9f9;
}

.map-point-list-item.is-active {
    background-color: #f0f7ff;
}

.map-point-list-item-title {
    flex-grow: 1;
    font-weight: 500;
}

.map-point-list-item-actions {
    display: flex;
    gap: 5px;
}

/* Help text */
.map-editor-help {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border: 1px solid #dbeaff;
    border-radius: 4px;
    font-size: 12px;
    color: #4a6785;
}

/* Drag instructions overlay */
.map-drag-instructions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-drag-active .map-drag-instructions {
    opacity: 1;
}
