/* =========================================
   MAPA - STYL WIEDŹMIŃSKI (POPRAWIONY)
   ========================================= */

:root {
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --text-main: #e0e0e0;
    --red-cdpr: #b91d1d;
    --gold-ui: #c5a059;
    --silver: #a8a9ad;
}

/* Czcionki */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/cinzel/v19/8vIJ7ww63mVu7gt79mT7.woff2) format('woff2');
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/cinzel/v19/8vIJ7ww63mVu7gt8ymT7.woff2) format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    padding: 0;
    margin: 0;
    background: var(--bg-dark);
    overflow: hidden;
    font-family: 'Lato', sans-serif;
}

/* Mapa */
div#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 375px;
    z-index: -1;
    background: #1a1a1a;
}

/* Sidebar */
div#sidebar {
    width: 360px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    background: var(--bg-card);
    padding: 15px 10px 0 15px;
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    overflow: hidden;
    border-right: 2px solid var(--gold-ui);
    box-shadow: 5px 0 20px rgba(0,0,0,0.8);
}

div#sidebar-border {
    display: none;
}

/* Tooltip */
div#sidebar-wrap > span.tooltip {
    background: var(--bg-card);
    background: rgba(15, 15, 15, 0.95);
    border-color: var(--gold-ui);
    border-radius: 4px;
    border-style: solid;
    border-width: 2px;
    color: var(--gold-ui);
    display: none;
    font: 16px 'Lato', sans-serif;
    padding: 4px 10px;
    position: absolute;
    pointer-events: none;
    z-index: 6;
    max-width: 200px;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Logo */
div#logo {
    width: 300px;
    height: 155px;
    margin: 0 auto 20px auto;
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}

/* Lista warstw – nazwa i licznik obok siebie */
ul.key {
    list-style-type: none;
    margin: 0;
    padding: 0;
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 10px;
    column-gap: 10px;
}

ul.key > li,
ul.key > li > a {
    color: var(--silver);
    font-size: 16px;
    height: 32px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    transition: 0.3s;
    display: block;
}

ul.key > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

ul.key > li:hover,
ul.key > li:hover > a {
    color: var(--gold-ui);
}

ul.key > li > a > i,
ul.key > li > i {
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 0;
    filter: brightness(0.8) sepia(0.2);
    transition: 0.3s;
    flex-shrink: 0;
}

ul.key > li:hover i {
    filter: brightness(1.2) sepia(0);
}

ul.key > li > a > div,
ul.key > li > div {
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

/* Licznik (pill) – obok nazwy */
ul.key > li > a > div.pill,
ul.key > li > div.pill {
    background-color: var(--red-cdpr);
    box-shadow: 0 0 10px rgba(185, 29, 29, 0.3);
    padding: 2px 6px;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 5px;
}

ul.key > li > a {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

/* Dla list bez linków (np. kontrolki) */
ul.key > li {
    display: flex;
    align-items: center;
    gap: 6px;
}

ul.key > li > i {
    margin-right: 0;
}

ul.key > li.layer-disabled > div {
    text-decoration: line-through;
    opacity: 0.6;
}

ul.key > li.layer-disabled > i {
    opacity: 0.6;
}

/* Kontrolki (np. show all) */
ul.controls {
    margin-top: 15px;
    font-weight: 700;
}

ul.key li.none {
    cursor: default;
    opacity: 0.7;
}

/* Notatka */
div#note {
    background: var(--bg-dark);
    border: 2px solid var(--gold-ui);
    color: var(--text-main);
    font-size: 16px;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    height: auto;
    line-height: 1.5;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

div#note span#note-msg {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

div#note a {
    color: var(--gold-ui);
    font-weight: 700;
}

div#note a:hover {
    color: #fff;
    text-decoration: underline;
}

/* SFW i lang */
div#sfw {
    font-size: 13px;
    text-align: center;
    margin: 10px 0;
}

div#sfw a {
    color: var(--silver);
    text-decoration: none;
    transition: 0.3s;
}

div#sfw a.original {
    font-size: 12px;
    display: none;
}

div#sfw a:hover {
    color: var(--gold-ui);
}

div#lang {
    text-align: center;
}

div#lang-switcher {
    margin: 20px auto 0;
}

div#lang-switcher .dd-select {
    background: transparent !important;
    border: 1px solid var(--gold-ui);
    color: var(--gold-ui);
    border-radius: 4px;
}

div#lang-switcher .dd-pointer-down {
    border-top: 5px solid var(--gold-ui);
}

div#lang-switcher .dd-pointer-up {
    border-bottom: 5px solid var(--gold-ui) !important;
}

div#lang-switcher .dd-option-image,
div#lang-switcher .dd-selected-image {
    opacity: 0.8;
}

div#lang-switcher .dd-options {
    background: var(--bg-card) !important;
    border: 1px solid var(--gold-ui);
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    line-height: 22px;
}

div#lang-switcher .dd-options > li {
    border-bottom: 1px solid #333;
}

div#lang-switcher .dd-options > li:last-child {
    border-bottom: none;
}

div#lang-switcher .dd-option {
    background: var(--bg-dark) !important;
    color: var(--silver);
    border: none;
    transition: 0.2s;
}

div#lang-switcher .dd-option:hover {
    background: var(--red-cdpr) !important;
    color: #fff;
}

/* Copyright */
div#copyright {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin: 15px 0 5px;
    font-family: 'Lato', sans-serif;
}

div#copyright.absolute {
    width: 380px;
    position: absolute;
    bottom: 5px;
    left: 0;
    padding-left: 5px;
}

div#copyright a,
div#copyright a:active,
div#copyright a:visited {
    color: #888;
    text-decoration: none;
}

div#copyright a:hover {
    color: var(--gold-ui);
    text-decoration: underline;
}

/* Info wrap */
div#info-wrap {
    position: absolute;
    left: 380px;
    bottom: 0;
    width: 620px;
    font-family: 'Lato', sans-serif;
    color: var(--gold-ui);
    z-index: 2;
    display: none;
}

div#info-wrap a {
    color: var(--gold-ui);
}

div#info {
    width: 520px;
    margin-left: 20px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    font-size: 15px;
    line-height: 1.5;
    cursor: default;
    border-left: 3px solid var(--red-cdpr);
    border-right: 3px solid var(--red-cdpr);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.7);
}

div#info-fade-intro,
div#info-fade-outro {
    display: none;
}

div#info h1 {
    text-transform: uppercase;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-family: 'Cinzel', serif;
    color: #fff;
    border-bottom: 1px solid var(--gold-ui);
    padding-bottom: 5px;
}

/* Popup notatki */
div#note-popup input,
div#note-popup textarea {
    font-family: 'Lato', sans-serif;
    color: var(--gold-ui);
    background: var(--bg-dark);
    border: 1px solid #333;
    width: 100%;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

div#note-popup button {
    font-family: 'Cinzel', serif;
    color: #fff;
    background-color: var(--red-cdpr);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

div#note-popup button:hover {
    background-color: #900d0d;
    box-shadow: 0 0 15px rgba(185, 29, 29, 0.6);
}

div#note-popup button:disabled {
    opacity: 0.5;
    cursor: default;
}

div#note-popup div.note-row {
    width: 100%;
    display: block;
}

div#note-popup label.label {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

/* Ukrywanie */
div#info.hideMonsters span {
    display: none;
}

div#title {
    position: absolute;
    width: 200px;
    height: 54px;
    margin: 0 auto;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1;
    background: url('../images/paper.png') no-repeat center;
    background-size: contain;
    font-family: 'Cinzel', serif;
    color: #000;
    font-size: 20px;
    text-align: center;
    line-height: 52px;
    text-shadow: 0 1px 2px #fff;
}

div#warn {
    display: none;
}

/* =========================================
   IKONA SIDEBARU – Font Awesome (przez CSS)
   ========================================= */
div#hide-sidebar {
    display: flex;
    position: absolute;
    left: 390px;
    top: 10px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--gold-ui);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.9;
    z-index: 10;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold-ui);
}

div#hide-sidebar::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f053"; /* fa-chevron-left */
    line-height: 1;
}

div#hide-sidebar.show-sidebar::before {
    content: "\f054"; /* fa-chevron-right */
}

div#hide-sidebar.show-sidebar {
    left: 10px;
}

div#hide-sidebar:hover {
    border-color: var(--red-cdpr);
    color: var(--red-cdpr);
}

/* Popup ogólny */
div#popup-wrap {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    z-index: 8;
    pointer-events: none;
}

div#popup-wrap #popup-border {
    position: relative;
    background: var(--bg-card);
    padding: 5px;
    border: 2px solid var(--gold-ui);
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    pointer-events: auto;
    max-width: 90%;
}

div#popup-wrap #popup-content {
    position: relative;
    border: 1px solid #333;
    padding: 25px;
    color: var(--text-main);
    max-height: 400px;
    font-family: 'Lato', sans-serif;
    background: rgba(5,5,5,0.95);
}

div#popup-wrap #popup-content a {
    color: var(--gold-ui);
    text-decoration: none;
    font-weight: 700;
}

div#popup-wrap #popup-content a:hover {
    text-decoration: underline;
}

div#popup-wrap h1 {
    text-transform: uppercase;
    margin: 0 0 15px;
    font-size: 1.8em;
    text-align: center;
    color: var(--gold-ui);
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

div#popup-wrap h3 {
    margin: 10px 0;
    padding: 0;
    color: #fff;
}

div#popup-wrap hr {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-ui), transparent);
    border: 0;
    margin: 20px 0;
}

div#popup-wrap img#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    z-index: 10;
    cursor: pointer;
    filter: invert(0.8);
    transition: 0.2s;
}

div#popup-wrap img#popup-close:hover {
    filter: invert(1);
}

/* Ikony warstw */
i.alchemy { background-image: url(../images/icons/alchemy.png); }
i.donation { background-image: url(../images/donation.png); }
i.abandoned { background-image: url(../images/icons/abandoned.png); }
i.armourer { background-image: url(../images/icons/armourer.png); }
i.armourerstable { background-image: url(../images/icons/armourerstable.png); }
i.banditcamp { background-image: url(../images/icons/banditcamp.png); }
i.barber { background-image: url(../images/icons/barber.png); }
i.hansebase { background-image: url(../images/icons/hansebase.png); }
i.blacksmith { background-image: url(../images/icons/blacksmith.png); }
i.brothel { background-image: url(../images/icons/brothel.png); }
i.entrance { background-image: url(../images/icons/entrance.png); }
i.grindstone { background-image: url(../images/icons/grindstone.png); }
i.guarded { background-image: url(../images/icons/guarded.png); }
i.gwent { background-image: url(../images/icons/gwent.png); }
i.gwentquest { background-image: url(../images/icons/gwentquest.png); }
i.harbor { background-image: url(../images/icons/harbor.png); }
i.herbalist { background-image: url(../images/icons/herbalist.png); }
i.hidden { background-image: url(../images/icons/hidden.png); }
i.innkeep { background-image: url(../images/icons/tavern.png); }
i.kid { background-image: url(../images/icons/kid.png); }
i.monsternest { background-image: url(../images/icons/monsternest.png); }
i.monsterden { background-image: url(../images/icons/monsterden.png); }
i.notice { background-image: url(../images/icons/notice.png); }
i.pid { background-image: url(../images/icons/pid.png); }
i.pop { background-image: url(../images/icons/pop.png); }
i.poi { background-image: url(../images/icons/poi.png); }
i.signalfire { background-image: url(../images/icons/signalfire.png); }
i.signpost { background-image: url(../images/icons/fasttravel.png); }
i.shopkeeper { background-image: url(../images/icons/merchant.png); }
i.smugglers { background-image: url(../images/icons/smugglers.png); }
i.spoils { background-image: url(../images/icons/spoils.png); }
i.sidequests { background-image: url(../images/icons/sidequests.png); }
i.vineyardinfestation { background-image: url(../images/icons/vineyardinfestation.png); }
i.contracts { background-image: url(../images/icons/tempcontract.png); }
i.vintnercontract { background-image: url(../images/icons/vintnercontract.png); }
i.boat { background-image: url(../images/icons/boat.png); }
i.event { background-image: url(../images/icons/event.png); }
i.scavenger { background-image: url(../images/icons/scavenger.png); }
i.treasure { background-image: url(../images/icons/treasure.png); }

/* =========================================
   STYLE MAPY (Leaflet) – POPRAWIONE
   ========================================= */

.leaflet-container {
    background: #1a1a1a;
    font-family: 'Lato', sans-serif;
}

/* TOOLTIPY NA MAPIE – bardziej widoczne */
.leaflet-label {
    background: var(--bg-card);
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid var(--gold-ui);
    border-left: 4px solid var(--red-cdpr);
    border-radius: 4px;
    color: #fff;
    font: 15px 'Lato', sans-serif;
    font-weight: 600;
    padding: 6px 12px;
    position: absolute;
    pointer-events: none;
    white-space: nowrap;
    z-index: 6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaflet-label.leaflet-clickable {
    cursor: pointer;
    pointer-events: auto;
}

.leaflet-label:before,
.leaflet-label:after {
    display: none;
}

.leaflet-popup {
    display: none !important;
}

/* KONTROLKI – ujednolicenie rozmiaru (40x40) */
.leaflet-bar a,
.leaflet-bar button,
.leaflet-control-fullscreen a,
.leaflet-control-search .search-button {
    background-color: var(--bg-card) !important;
    border: 2px solid var(--gold-ui) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    color: var(--gold-ui) !important;
    text-decoration: none !important;
    transition: 0.2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    margin-bottom: 5px;
    box-sizing: border-box;
    line-height: 1;
    cursor: pointer;
}

.leaflet-bar a:hover,
.leaflet-bar button:hover,
.leaflet-control-fullscreen a:hover,
.leaflet-control-search .search-button:hover {
    background-color: var(--red-cdpr) !important;
    border-color: var(--red-cdpr) !important;
    color: #fff !important;
}

/* Wyszukiwarka – input i przycisk obok siebie */
.leaflet-container .leaflet-control-search {
    position: relative;
    float: left;
    background: transparent;
    z-index: 1000;
    margin-left: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-control-search .search-input {
    height: 40px;
    border: 2px solid var(--gold-ui) !important;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: #fff;
    color: #333;
    font-family: 'Lato', sans-serif;
    padding: 0 10px;
    box-sizing: border-box;
    width: 200px;
    font-size: 14px;
}

.leaflet-control-search .search-input:focus {
    outline: none;
    border-color: var(--gold-ui);
}

.leaflet-control-search .search-button {
    border-radius: 0 4px 4px 0 !important;
    margin-bottom: 0;
    border-left: none;
    box-shadow: none !important;
}

/* =========================================
   WYSZUKIWARKA – WYNIKI (STYL JAK NA OBRAZKU)
   ========================================= */

.leaflet-control-search .search-tooltip{position:absolute;top:100%;right:0;float:left;min-width:120px;max-height:200px;max-width:600px;box-shadow:0 1px 7px rgba(0,0,0,.65);background-color:rgba(0,0,0,.5);z-index:1010;overflow-y:auto;overflow-x:hidden;margin-top:5px;border-radius:4px}

.leaflet-control-search .search-tooltip::-webkit-scrollbar {
    width: 8px;
}
.leaflet-control-search .search-tooltip::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}
.leaflet-control-search .search-tooltip{position:absolute;top:100%;right:0;float:left;min-width:120px;max-height:200px;max-width:350px;box-shadow:0 1px 7px rgba(0,0,0,.65);background-color:#0f0e0ed0 ;z-index:1010;overflow-y:auto;overflow-x:hidden;margin-top:5px;border-radius:4px}

.leaflet-control-search .search-tip{margin:0;padding:2px 4px;display:block;color:#999;text-decoration:none;white-space:nowrap;vertical-align:middle;font-family:PFDinTextCondPro,Arial,sans-serif;font-size:14px;text-overflow:ellipsis;overflow:hidden;max-width:390px}

.leaflet-control-search .search-tip:last-child {
    border-bottom: none;
}

.leaflet-control-search .search-tip i {
    color: var(--gold-ui);
    width: 24px;
    text-align: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Stylizacja tytułu i opisu */
.leaflet-control-search .search-tip strong,
.leaflet-control-search .search-tip b {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: #fff;
    margin-bottom: 3px;
    font-weight: 700;
}

.leaflet-control-search .search-tip span.title {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: #fff;
    margin-bottom: 3px;
    font-weight: 700;
}

.leaflet-control-search .search-tip span.desc {
    display: block;
    font-size: 13px;
    color: var(--silver);
    line-height: 1.4;
}

/* Hover */
.leaflet-control-search .search-tip:hover,
.leaflet-control-search .search-tip-select {
    background-color: var(--red-cdpr) !important;
}

.leaflet-control-search .search-tip:hover i,
.leaflet-control-search .search-tip:hover strong,
.leaflet-control-search .search-tip:hover span,
.leaflet-control-search .search-tip-select i,
.leaflet-control-search .search-tip-select strong,
.leaflet-control-search .search-tip-select span {
    color: #fff !important;
}

/* OKNO PRZYWRACANIA KOPII (RESTORE) – ładniejsze */
div#restoreDiv {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    background: var(--bg-card) !important;
    border: 2px solid var(--gold-ui) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-family: 'Lato', sans-serif !important;
    color: var(--gold-ui) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8) !important;
    font-size: 14px !important;
    z-index: 1001 !important;
    backdrop-filter: blur(2px) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

div#restoreDiv span {
    color: var(--text-main);
    font-weight: 600;
}

div#restoreDiv > div > button {
    background: transparent;
    border: 1px solid var(--gold-ui);
    color: var(--gold-ui);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

div#restoreDiv > div > button:hover {
    background: var(--red-cdpr);
    border-color: var(--red-cdpr);
    color: #fff;
    box-shadow: 0 0 10px rgba(185,29,29,0.6);
}

/* EasyButton – zachowanie spójne */
.activeEasyButton {
    background-color: var(--red-cdpr) !important;
    color: #fff !important;
}

.easy-button-button .button-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Ukryte elementy */
li#show-all,
li#show-counts,
li#show-monsters {
    display: none;
}

/* Blokada zmiany rozmiaru w hover */
.leaflet-bar a:hover,
.leaflet-bar button:hover,
.leaflet-control-fullscreen a:hover,
.leaflet-control-search .search-button:hover {
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    border-width: 2px !important;
}

/* =========================================
   RESPONSYWNOŚĆ
   ========================================= */
@media all and (max-width: 768px) {
    div#logo {
        width: 140px;
        height: 72px;
        background: url('../images/logo-small.png') no-repeat center;
        background-size: contain;
        margin-left: 20px;
    }

    div#sidebar {
        width: 180px;
    }

    div#hide-sidebar {
        left: 210px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    div#map {
        left: 205px;
    }

    ul.key {
        -webkit-column-count: 1;
        column-count: 1;
        -webkit-column-gap: 0;
        column-gap: 0;
    }

    ul.key > li > a > div,
    ul.key > li > div {
        max-width: 100px;
    }

    div#note {
        display: none;
    }

    div#copyright,
    div#sfw {
        width: auto;
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    div#copyright {
        display: none;
    }

    div#popup-wrap {
        display: block;
        max-width: 95%;
        width: 95%;
        max-height: 95%;
        height: 95%;
        margin: 8px auto 0;
        overflow: hidden;
    }

    div#popup-wrap #popup-border {
        max-height: 100%;
        height: 100%;
    }

    div#popup-wrap #popup-content {
        max-height: none;
        height: calc(100% - 52px);
    }

    div#info-wrap {
        left: 205px;
        width: calc(100% - 205px);
    }

    div#info {
        width: calc(100% - 20px);
        padding: 10px;
        max-height: 80px;
        overflow: auto;
        font-size: 14px;
        margin-left: 10px;
        line-height: normal;
    }

    .leaflet-label {
        display: none !important;
    }
}

@media all and (max-width: 768px) and (orientation: portrait) {
    div#warn {
        display: block;
        margin: auto;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 200px;
        height: 46px;
        z-index: 1000;
        background: url('../images/paper.png') no-repeat center;
        background-size: contain;
        font-family: 'Cinzel', serif;
        color: #000;
        font-size: 14px;
        text-align: center;
        line-height: 42px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        cursor: pointer;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background-color: #050505;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-left: 1px solid #222;
}

::-webkit-scrollbar-thumb {
    background: var(--red-cdpr);
    border-radius: 4px;
    border: 2px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
    background: #e62424;
}