html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #0b0b0b;

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 160%;
}

#mcmap {
    width: 100%;
    height: 100%;
}

.infoWindow {
    height: 100px;
}

.infoWindow>img {
    width:80px;
    float: left;
    image-rendering: -moz-crisp-edges;
}

.infoWindow>p {
    text-align: center;
    font-family: monospace;
}

.customControl {
    padding: 5px;
    height: 15px;
    color: black;
    font-family: Arial, sans-serif;
}

.customControl > select {
    font-size: 12px;
    line-height: 160%;
    text-align: center;

    border: 1px solid #A9BBDF;
    border-radius: 2px 2px;
    box-shadow: rgba(0, 0, 0, 0.347656) 2px 2px 3px;

}

.customControl > div.top {
    font-size: 12px;
    line-height: 160%;
    text-align: center;
    padding: 0px 6px;

    background-image: url('control-bg.png');
    background-repeat: repeat-x;

    border: 1px solid #A9BBDF;
    border-radius: 2px 2px;
    box-shadow: rgba(0, 0, 0, 0.347656) 2px 2px 3px;
    cursor: pointer;
}

.customControl > div.top:hover {
    border: 1px solid #678AC7;
}

.customControl > div.top-active {
    color: white;
    font-weight: bold;
    padding: 0px 5px;
    border: 1px solid #678AC7;
    background-image: url('control-bg-active.png');
}

.customControl > div.dropDown {
    font-size: 12px;
    background-color: white;

    border: 1px solid #A9BBDF;
    border-radius: 2px 2px;
    box-shadow: rgba(0, 0, 0, 0.347656) 2px 2px 3px;

    display: none;
}

.customControl > div.button {
    border: 1px solid #000;
    font-size: 12px;
    background-color: #fff;
    display: none;
}


#link, #coordsDiv, #progressDiv {
    background-color: #fff; /* fallback */
    background-color: rgba(255,255,255,0.55);
    border: 1px solid rgb(0, 0, 0);
    font-size: 9pt;
    padding-left: 2px;
    padding-right: 2px;
    margin-bottom: 1px;
}

#link:hover {
    background-color: #fff; /* fallback */
    background-color: rgba(255,255,255,0.8);
}

#searchControl {
    padding: 5px;
    height: 20px;
    font-family: Arial, sans-serif;
}

#searchControl > input {
    border: 2px solid #000;
    font-size: 12pt;
    width: 20em;
    background-color: #fff;
}

#searchControl>input.inactive {
    color: #ccc;
}

#searchControl>input.active {
    color: #000;
}

div#searchDropDown {
    border: 1px solid #000;
    width: 17em;
    font-size: 14pt;
    background-color: #fff;
    display: none;
}

div.searchResultItem  {
    overflow: hidden;
    text-overflow: ellipsis;
}

div.searchResultItem img {
    width: 24px;
    height: 24px;
}


/* World selector — legacy hidden (replaced by custom bar) */
div.worldcontrol {
    display: none !important;
}
div.worldcontrol select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: linear-gradient(180deg, #1a1a1a, #141414);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e7e7e7;
    font-size: 13px;
    line-height: 1;
    padding: 10px 38px 10px 12px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
div.worldcontrol select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.25);
}
div.worldcontrol:after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    pointer-events: none;
    background: conic-gradient(from 135deg at 60% 60%, #c9c9c9 0 25%, transparent 0 50%, #c9c9c9 0 75%, transparent 0);
    -webkit-mask: radial-gradient(circle at 60% 60%, #000 70%, transparent 71%);
            mask: radial-gradient(circle at 60% 60%, #000 70%, transparent 71%);
    opacity: .9;
}

.leaflet-container .coordbox, .leaflet-container .progress {
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    font-size: 16px;
    background: linear-gradient(180deg, #1e1e1e, #151515);
    margin: 0;
    padding: 0;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}
.leaflet-container .coordbox {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
}
.coord-seg {
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
}
.coord-seg:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.08);
}

.ov-marker {
    position:relative;
    margin-left:-50%;
    margin-top:-50%;
}


div.ov-marker-legend {
    display: inline-block;
    float: right;
    clear: right;
    margin-left: 20px;
    height: 1.5em;
}

div.ov-marker-legend img {
    height: 1.5em;
}

.leaflet-div-icon {
    background: 0;
    border: 0;
}

/* Hide legacy layers control */
.leaflet-control-layers { display: none !important; }

/* Custom top center bar */
#renderbar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1200;
}

/* Top-right site brand */
#siteBrand {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1200;
    background: linear-gradient(180deg, #1e1e1e, #151515);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    text-decoration: none;
    opacity: .75;
    transition: opacity .15s ease, transform .15s ease;
}
#siteBrand img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}
#siteBrand span {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
}
#siteBrand:hover { opacity: 1; transform: translateY(-2px); }

.rb-pill {
    background: linear-gradient(180deg, #1e1e1e, #151515);
    border: 1px solid rgba(255,255,255,0.06);
    color: #e9e9e9;
    border-radius: 12px;
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
    cursor: pointer;
    user-select: none;
    opacity: .75;
    transition: opacity .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rb-pill img { width:18px; height:18px; vertical-align: -4px; margin-right: 8px; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
.rb-pill:hover { color:#fff; }
.rb-pill:hover,
.rb-pill:focus { opacity: 1; }
.rb-pill.active { border-color:#8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.25), inset 0 1px 0 rgba(255,255,255,0.04); }

.rb-worlds { display:flex; gap:6px; }

.rb-current {
    position: relative;
    padding-right: 40px;
}
.rb-current img { width:18px; height:18px; vertical-align: -4px; margin-right: 8px; }
.rb-current .chev {
    position:absolute; right:12px; top:50%; margin-top:-10px;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    color: #cfcfcf;
    transition: transform .2s ease;
}
.rb-current.open .chev { transform: rotate(180deg); }

/* Dropdown timeline */
#renderDropdown {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) scale(.98);
    background: rgba(18,18,18,0.65);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    padding: 12px;
    width: min(520px, 92vw);
    z-index: 1200;
    opacity: 0; pointer-events: none; transform-origin: top center; transition: opacity .2s ease, transform .2s ease;
}
#renderDropdown.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }

/* Vertical list of renders */
.rb-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
}
.rb-dot {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    transition: background-color .15s ease;
    cursor: pointer;
}
.rb-dot:hover { background: rgba(255,255,255,0.04); }
.rb-dot button { width:12px; height:12px; display:block; padding:0; line-height:0; border-radius:50%; border:2px solid #cfcfcf; background:#fff; cursor:pointer; box-sizing:content-box; }
.rb-dot.active button { border-color:#8b5cf6; background:#8b5cf6; }
.rb-dot span { color:#e0e0e0; font-size:13px; line-height: 1.3; white-space: normal; }

/* Dark theme for Leaflet zoom buttons */
.leaflet-bar {
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    border-radius: 6px;
    overflow: hidden;
}

/* Edge spacing overrides */
.leaflet-left .leaflet-control { margin-left: 8px; }
.leaflet-bottom .leaflet-control { margin-bottom: 8px; }
.leaflet-bar a {
    background: linear-gradient(180deg, #1e1e1e, #151515);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 32px;
    height: 32px;
    line-height: 32px;
    color: #e7e7e7;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
    background: linear-gradient(180deg, #232323, #181818);
    color: #ffffff;
}
.leaflet-bar a.leaflet-disabled {
    background: linear-gradient(180deg, #141414, #121212);
    color: #8d8d8d;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    font: bold 18px 'Lucida Console', Monaco, monospace;
}

/* Social buttons in attribution */
.leaflet-container .leaflet-control-attribution { background: transparent; border: none; padding: 0 0 0 0; }
.ov-socials { display:flex; gap:12px; align-items:center; padding: 6px; }
.ov-soc { display:inline-flex; width:42px; height:42px; border-radius:50%; align-items:center; justify-content:center; color:#ffffff; text-decoration:none; box-shadow:0 6px 24px rgba(0,0,0,0.35); transition: transform .2s ease, filter .2s ease, opacity .2s ease; opacity: .30; }
.ov-soc:link, .ov-soc:visited, .ov-soc:hover, .ov-soc:active, .ov-soc:focus { text-decoration: none; outline: none; }
.leaflet-control-attribution .ov-socials a { text-decoration: none !important; }
.leaflet-control-attribution .ov-socials a:hover,
.leaflet-control-attribution .ov-socials a:focus { text-decoration: none !important; }
.ov-soc svg { width:26px; height:26px; fill: #ffffff; }
.ov-soc i { font-size: 20px; color: #ffffff; }
.ov-soc-tg { background:#229ED9; }
.ov-soc-dc { background:#5865F2; }
.ov-soc:hover { filter:brightness(1.08); transform: translateY(-4px); text-decoration: none; opacity: 1; }
