/* Styles specific to evie_map within the wrapper boxes */

.map-box {
    /* Inherits white background from wrapper_box_a */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%; /* Ensure it fills its parent wrapper_box_a */
    box-sizing: border-box;
}

.map-image-container {
    position: relative;
    width: 100%;
    flex-grow: 1; /* Allow map container to take available height */
    padding-bottom: 100%; /* Maintain 1:1 aspect ratio based on width */
    overflow: hidden;
    background-color: #eee;
    cursor: crosshair;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the entire image is visible, maintaining its aspect ratio */
    user-select: none;
    display: block; /* Remove any extra space below image */
}

.map-marker, .new-marker-preview {
    position: absolute;
    transform: translate(-50%, -100%); /* Center marker base at click point */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    z-index: 10; /* Ensure markers are above image */
}

.marker-icon {
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.marker-title {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7em;
    margin-top: 2px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
    pointer-events: none; /* Do not interfere with marker click */
}

.map-marker:hover .marker-title {
    opacity: 1; /* Show title on hover */
}

/* Specific styles for the content editing/display area */
.content-box {
    /* Inherits white background from wrapper_box_b */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%; /* Ensure it fills its parent wrapper_box_b */
    box-sizing: border-box;
}

/* Basic form element styling within content-box */
.content-box label {
    font-weight: bold;
    margin-bottom: 5px;
}

.content-box input[type="text"],
.content-box input[type="url"],
.content-box select,
.content-box textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.content-box textarea {
    min-height: 100px;
    resize: vertical;
}

.content-box button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 10px;
}

.content-box button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments for markers (e.g., smaller on zoom) - this would involve JS for actual zoom logic */
/* For now, ensuring basic visual consistency */