/* Dark Mode Map UI - Wolfstorm Style */

.map-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
}

/* LEFT SIDEBAR */
.map-sidebar {
    width: 200px;
    /* Approx 30% of 620px wide floater */
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    padding: 8px;
    background-color: #222;
    flex-shrink: 0;
}

.map-sidebar-header {
    font-weight: bold;
    margin-bottom: 6px;
    color: #bbb;
    text-transform: uppercase;
    font-size: 11px;
}

.map-search-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-bottom: 10px;
}

.map-search-input {
    flex: 1;
    background-color: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 4px;
    border-radius: 2px;
}

.map-search-btn {
    background-color: #333;
    border: 1px solid #555;
    color: #ddd;
    padding: 0 8px;
    cursor: pointer;
    border-radius: 2px;
}

.map-search-btn:hover {
    background-color: #444;
}

.map-results-container {
    flex: 1;
    background-color: #111;
    border: 1px solid #333;
    overflow-y: auto;
    margin-bottom: 10px;
}

.map-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-result-item {
    padding: 4px 6px;
    cursor: pointer;
    border-bottom: 1px solid #222;
}

.map-result-item:hover {
    background-color: #333;
}

.map-result-item.selected {
    background-color: #004d40;
    color: #fff;
}

.map-location-details {
    border-top: 1px solid #333;
    padding-top: 8px;
}

.map-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    align-items: center;
}

.map-detail-input {
    width: 40px;
    background: #111;
    border: 1px solid #444;
    color: #ccc;
    text-align: right;
}

/* MAIN CONTENT (RIGHT) */
.map-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.map-controls-top {
    display: flex;
    justify-content: flex-end;
    /* Zoom buttons on right */
    padding: 4px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #333;
    gap: 4px;
}

.map-btn-icon {
    width: 24px;
    height: 24px;
    background: #333;
    border: 1px solid #555;
    color: #eee;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn-icon:hover {
    background-color: #444;
}

.map-canvas-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #00142b;
    /* Ocean Blue */
}

.map-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* FOOTER */
.map-footer {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-top: 1px solid #333;
    background-color: #222;
}

.map-status-text {
    color: #888;
}

.map-status-text[data-level="warn"] {
    color: #e6b800;
}

.map-status-text[data-level="error"] {
    color: #e64a19;
}

.map-actions {
    display: flex;
    gap: 8px;
}

.map-action-btn {
    padding: 4px 12px;
    background: linear-gradient(#4a4a4a, #333);
    border: 1px solid #111;
    border-radius: 3px;
    color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
}

.map-action-btn:hover:not(:disabled) {
    background: linear-gradient(#5a5a5a, #444);
}

.map-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #222;
}