@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #ddd;
}

#map-navbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

#map-navbar .nav-brand {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    margin-right: 16px;
}

#map-navbar .nav-brand:hover {
    color: #ccc;
}

#map-navbar .nav-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#map-navbar label {
    color: #aaa;
    font-size: 12px;
}

#map-navbar select,
#map-navbar input[type="text"] {
    padding: 4px 8px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    font-size: 12px;
}

#map-navbar #mine-select {
    min-width: 180px;
}

#map-navbar #mine-map-fullscreen {
    padding: 4px 10px;
    background: #444;
    border: 1px solid #555;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

#map-navbar #mine-map-fullscreen:hover {
    background: #555;
}

#mapHolder {
    position: relative;
    overflow: auto;
    cursor: pointer;
}

#mapContent {
    position: relative;
}

.mineTunnel {
    position: absolute;
    z-index: 1;
}

.mineBuilding {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.mineOre {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

#mineBoundarySvg {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    pointer-events: none;
    z-index: 4;
}

.mineTunnelNormal,
.mineBuildingNormal {
    width: 128px;
    height: 64px;
}

.oreImgNormal {
    width: 25px;
    height: 18px;
}

.otherMine {
    opacity: 0.35;
}

#map-navbar .nav-ores {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#map-navbar .ore-filters-label {
    color: #aaa;
    font-size: 12px;
    margin-right: 4px;
}

#map-navbar .nav-ores label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

#map-navbar .nav-ores input[type="checkbox"] {
    margin: 0;
}

.mineTunnel.oreDim {
    opacity: 0.3;
}

.mineTunnel.oreHighlight {
    opacity: 1;
}

.mine-map-error,
.mine-map-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    text-align: center;
    z-index: 10;
}

.mine-map-error {
    color: #c44;
    padding: 20px;
}

.mine-map-loading {
    padding: 40px;
}

.mine-sector-tooltip {
    display: none;
    position: fixed;
    z-index: 100;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #ddd;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    max-width: 220px;
}
