/* ── Fonts ───────────────────────────────────────────────────── */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/Minecraftia.woff') format('woff');
    font-display: swap;
}

/* ── Design Tokens (exact copy from inpvp-website globals.css) ── */
:root {
    --color-bg:        #080818;
    --color-surface:   #111115;
    --color-surface-2: #1a1a28;
    --color-border:    #2a2a35;
    --color-border-2:  #252538;
    --color-text:      #f4f4f5;
    --color-text-2:    #d4d4d8;
    --color-muted:     #71717a;
    --color-muted-2:   #52525b;
    --color-accent:    #818cf8;
    --color-accent-2:  #a5b4fc;
    --color-nav-active: #efe365;
    --color-subnav-bg: #080818;
    --font-body: 'Gilroy', system-ui, -apple-system, sans-serif;
}

/* ── Global Reset (matches inpvp-website globals.css exactly) ── */
* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    font-size: 110%;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

ul, li {
    list-style-type: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

/* Scrollbar (matches inpvp-website) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-2); }
::-webkit-scrollbar-thumb:hover { background: var(--color-border); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#app {
    font-family: var(--font-body);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    color: var(--color-text-2);
}

/* ════════════════════════════════════════════════════════════════
   MAIN NAVBAR  (from Navbar.tsx)
   header: fixed top-0 left-0 right-0 z-50
   style: background: var(--color-bg), borderBottom: 1px solid rgba(239,227,101,0.2)
   ════════════════════════════════════════════════════════════════ */
#main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(239, 227, 101, 0.2);
    font-family: var(--font-body);
}

/* .navbar-inner: max-w-7xl mx-auto px-4 sm:px-6 h-16 flex items-center justify-between */
.navbar-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .navbar-inner { padding: 0 1.5rem; }
}

/* Logo: flex items-center gap-2 */
.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Image: h-8 w-auto object-contain */
.nav-logo-img {
    height: 2rem !important;
    width: auto !important;
    max-height: 2rem !important;
    object-fit: contain;
    display: block;
}

/* Desktop nav: hidden md:flex items-center gap-1 */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
    .mobile-toggle { display: none !important; }
}

/* Nav links: px-3 py-1.5 rounded-lg text-sm font-medium text-zinc-400 hover:text-white hover:bg-white/5 transition-colors */
.nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #a1a1aa;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Chevron: size={14}, transition-transform rotate-180 */
.nav-chevron {
    font-size: 10px;
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-chevron.rotated {
    transform: rotate(180deg);
}

/* ── Servers Dropdown ─────────────────────────────────────────── */
/* Container: relative */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

/* Menu: absolute top-full mt-2 left-0 w-48 rounded-xl overflow-hidden
   style: background: var(--color-surface-2), border: 1px solid var(--color-border), boxShadow: 0 16px 48px rgba(0,0,0,0.5) */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 12rem;
    overflow: hidden;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.nav-dropdown-menu.open {
    display: block;
}

/* Items: flex items-center gap-3 px-4 py-3 text-sm text-zinc-300 hover:text-white hover:bg-white/5 transition-colors cursor-pointer */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #d4d4d8;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdown icon: width: 16, height: 16, objectFit: contain, flexShrink: 0 */
.nav-dropdown-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

/* ── Mobile Toggle ────────────────────────────────────────────── */
/* p-2 rounded-lg text-zinc-400 hover:text-white hover:bg-white/5 transition-colors */
.mobile-toggle {
    padding: 0.5rem;
    color: #a1a1aa;
    font-size: 20px;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .mobile-toggle { display: none; }
}

/* ── Mobile Menu ──────────────────────────────────────────────── */
/* md:hidden px-4 pb-4 pt-2 space-y-1, borderTop: 1px solid rgba(255,255,255,0.06) */
.mobile-menu {
    display: none;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

/* Mobile links: block px-3 py-2.5 rounded-lg text-sm font-medium text-zinc-300 hover:text-white hover:bg-white/5 */
.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #d4d4d8;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Servers label: px-3 py-1.5 text-xs font-semibold text-zinc-600 uppercase tracking-wider */
.mobile-servers-label {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════════
   SUB-NAVBAR  (from MinevilleNav.tsx)
   Container: sticky top-16 z-40
   style: background: var(--color-subnav-bg), borderBottom: 1px solid var(--color-border)
   ════════════════════════════════════════════════════════════════ */
#sub-navbar {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 1999;
    background: var(--color-subnav-bg);
    border-bottom: 1px solid var(--color-border);
}

/* max-w-7xl mx-auto px-4 sm:px-6 */
.subnav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .subnav-inner { padding: 0 1.5rem; }
}

/* Desktop: hidden md:flex items-center gap-1 overflow-x-auto no-scrollbar py-1 */
.subnav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.subnav-desktop::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .subnav-desktop { display: flex; }
    .subnav-mobile { display: none !important; }
}

/* Nav items: whitespace-nowrap flex flex-col px-3 py-2 rounded-lg text-sm font-medium transition-colors
   Inactive: text-zinc-500 hover:text-zinc-300 */
.subnav-link {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #71717a;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.subnav-link:hover {
    color: #d4d4d8;
}

/* Inner span: flex items-center gap-1.5 */
.subnav-link span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Back link: color: var(--color-nav-active), font-weight: 600 */
.subnav-back {
    color: var(--color-nav-active);
    font-weight: 600;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.subnav-back:hover {
    color: #fff;
}

/* Orebit icon: 14px pixelated */
.subnav-icon {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* Separator */
.subnav-sep {
    width: 1px;
    height: 20px;
    background: var(--color-border);
    margin: 0 0.25rem;
    flex-shrink: 0;
}

/* ── Mobile Sub-Nav ───────────────────────────────────────────── */
/* md:hidden flex items-center justify-between h-12 */
.subnav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
}

@media (min-width: 768px) {
    .subnav-mobile { display: none; }
}

/* Toggle button: p-1.5 rounded-lg text-zinc-400 hover:text-white hover:bg-white/5 */
.subnav-mobile-toggle {
    padding: 0.375rem;
    color: #a1a1aa;
    font-size: 18px;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.subnav-mobile-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile drawer: md:hidden px-4 pb-3 grid grid-cols-2 gap-1
   style: borderTop: 1px solid var(--color-border), background: var(--color-surface), boxShadow: 0 8px 24px rgba(0,0,0,0.15) */
.subnav-drawer {
    display: none;
    padding: 0 1rem 0.75rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.subnav-drawer.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .subnav-drawer { display: none !important; }
}

/* Drawer links: flex items-center gap-1.5 px-3 py-2 rounded-lg text-sm font-medium text-zinc-500 hover:text-zinc-300 */
.subnav-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #71717a;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.subnav-drawer-link:hover {
    color: #d4d4d8;
}

.subnav-drawer-link span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ── Render Disclaimer Banner ──────────────────────────────────── */
#render-banner {
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    z-index: 1998;
    background: rgba(0, 0, 0, 0.75);
    text-align: center;
    padding: 14px 16px;
    font-family: 'Minecraftia', monospace;
    font-size: 12px;
    color: #ef4444;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Sidebar Tab ───────────────────────────────────────────────── */
#sidebar-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-right: none;
    color: var(--color-text-2);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 14px 10px;
    cursor: pointer;
    transition: opacity 0.25s, background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    writing-mode: vertical-lr;
    letter-spacing: 0.5px;
}

#sidebar-tab:hover {
    background: var(--color-surface-2);
    color: #fff;
}

#sidebar-tab .fa-chevron-left {
    font-size: 10px;
    writing-mode: horizontal-tb;
}

/* ════════════════════════════════════════════════════════════════
   MAP
   ════════════════════════════════════════════════════════════════ */
#map {
    width: 100%;
    height: 100vh;
    background: black;
}

div#content {
    padding-top: 112px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#map {
    width: auto;
}

/* ── Map Tiles ──────────────────────────────────────────────── */
img.leaflet-tile {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

/* ── Nameplates ─────────────────────────────────────────────── */
div.leaflet-nameplate-pane div {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-weight: 700;
    padding: 2px 5px 1px;
    margin: 0;
    border-color: rgba(0, 0, 0, 0.75);
}

div.leaflet-nameplate-pane div:before {
    border-color: transparent;
}

div.leaflet-nameplate-pane div img.head {
    vertical-align: middle;
    margin-right: 6px;
}

div.leaflet-nameplate-pane div img.armor,
div.leaflet-nameplate-pane div img.health {
    display: block;
}

div.leaflet-nameplate-pane div,
div.leaflet-marker-pane img {
    transition: all 0.25s;
}

/* ── Leaflet Controls ───────────────────────────────────────── */
.leaflet-bottom.leaflet-left .link,
.leaflet-bottom.leaflet-left .coordinates {
    display: inline-block;
    float: none;
}

.leaflet-bottom,
.coordinates {
    bottom: 64px;
}

.coordinates {
    left: 64px;
}

div.leaflet-control-layers.link img {
    width: 34px;
    height: 34px;
    vertical-align: bottom;
    bottom: 0;
    background-image: url("../images/link.png");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

div.leaflet-control-layers.coordinates {
    vertical-align: bottom;
    padding: 2px 5px;
    line-height: 14px;
    height: 30px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
#sidebar {
    display: flex;
    flex-flow: column;
    position: fixed;
    top: 112px;
    bottom: 0;
    right: 0;
    width: 0;
    padding-left: 10px;
    z-index: 10000;
    font: 12px/1.5 var(--font-body);
    border-left: 1px solid #000000;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    text-align: right;
    transition: all 0.25s;
    overflow: hidden;
}


#sidebar.show {
    width: 314px !important;
    padding-left: 0;
    background: var(--color-surface);
    border: none;
    border-left: 4px solid #ef4444;
}

#sidebar fieldset {
    clear: right;
    margin: 12px 0;
    border: none;
    border-top: 1px solid rgba(196, 196, 196, 0.4);
    text-align: left;
    transition: all 0.25s;
    white-space: nowrap;
}

#sidebar fieldset#worlds {
    display: none;
}

#sidebar #pin {
    display: none;
}

#sidebar fieldset#players {
    margin: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    border-top: none;
}

#sidebar fieldset#players::-webkit-scrollbar {
    width: 6px;
}

#sidebar fieldset#players::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 0;
}

#sidebar fieldset#players::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0);
    border-right: 2px solid rgba(112, 128, 144, 0.75);
    border-radius: 1px;
}

#sidebar fieldset#players::-webkit-scrollbar-thumb:hover {
    border-radius: 3px;
    border: 0;
    background-color: rgba(112, 128, 144, 0.75);
}

#sidebar legend {
    display: block;
    margin: 0;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    border-bottom: 1px solid rgba(196, 196, 196, 0.2);
}

#sidebar fieldset a,
#sidebar fieldset a:visited {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.25s;
}

#sidebar fieldset a.following {
    background-color: rgba(128, 128, 255, 0.25);
}

#sidebar fieldset a:hover,
#sidebar fieldset a.following:hover {
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

#sidebar fieldset a .other-world {
    filter: brightness(50%) !important;
    font-style: italic;
}

#sidebar fieldset a img {
    vertical-align: middle;
    padding-right: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    -webkit-filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

#sidebar fieldset#players a {
    padding: 8px 16px !important;
}

.player-profile-link {
    margin-left: auto;
    padding: 4px 8px !important;
    color: var(--color-muted) !important;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

#sidebar fieldset#players a:hover .player-profile-link {
    opacity: 1;
}

.player-profile-link:hover {
    color: var(--color-nav-active) !important;
}

#sidebar #pin {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 23px;
    height: 23px;
    margin: 0;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    -webkit-filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    cursor: pointer;
    z-index: 1;
}

#sidebar #pin.pinned:hover {
    background: rgba(0, 128, 0, 0.5);
    border: 1px solid rgba(0, 128, 0, 0.75);
}

#sidebar #pin.unpinned:hover {
    background: rgba(128, 0, 0, 0.5);
    border: 1px solid rgba(128, 0, 0, 0.75);
}

/* ── Search Bar ─────────────────────────────────────────────── */
#searchbar {
    position: relative;
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border);
    height: 44px;
    min-width: 128px;
    cursor: pointer;
    padding: 0px 12px;
    transition: all 0.15s ease;
    font-size: 14px;
    color: var(--color-text) !important;
    z-index: 100 !important;
    display: flex;
    flex-direction: column;
    outline: none;
    box-shadow: none !important;
}

#searchbar:focus-within {
    border-color: var(--color-accent);
}

#searchbar img {
    height: 28px;
}

.input-and-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

#searchbar input {
    font-family: var(--font-body);
    border: none;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    color: var(--color-text) !important;
    z-index: 100 !important;
    background: transparent;
    outline: none;
    box-shadow: none !important;
}

#searchbar input::placeholder {
    color: var(--color-muted);
}

.search-results {
    z-index: 9999 !important;
}

.search-result-item {
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    position: relative;
    cursor: pointer;
    padding: 0px 12px;
    transition: all 0.15s ease;
    font-size: 14px;
    color: var(--color-text) !important;
    margin-top: 4px;
    outline: none;
    box-shadow: none !important;
}

.search-result-item:hover {
    background: var(--color-surface) !important;
    border-color: var(--color-accent);
}

/* ── Leaflet Controls (Zoom, Layer, etc.) ───────────────────── */
.leaflet-right {
    pointer-events: all !important;
    z-index: 1000 !important;
    padding-top: 55px;
    right: 32px;
}

.leaflet-touch .leaflet-bar a {
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border) !important;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: none !important;
    color: var(--color-text) !important;
}

.leaflet-touch .leaflet-bar a:hover {
    background: var(--color-surface) !important;
    border-color: var(--color-accent) !important;
}

.leaflet-touch .leaflet-bar a:last-child {
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border) !important;
}

.leaflet-touch .leaflet-bar a:last-child:hover {
    background: var(--color-surface) !important;
    border-color: var(--color-accent) !important;
}

.leaflet-control-zoom.leaflet-bar.leaflet-control {
    display: flex;
    flex-direction: column;
    border: none !important;
    gap: 8px;
    margin: 20px;
    padding-top: 5px;
}

.leaflet-control-layers.leaflet-control {
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border) !important;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: none !important;
    margin-left: 20px;
}

.leaflet-control-layers.leaflet-control:hover {
    border-color: var(--color-accent) !important;
}

.leaflet-control-layers.coordinates.leaflet-control {
    display: block;
    background: rgba(8, 8, 24, 0.85) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-2) !important;
    font-family: var(--font-body);
    font-size: 12px;
}

.leaflet-control-layers.leaflet-control.link a {
    display: inline-block;
}

.leaflet-bottom.leaflet-left .link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-bottom.leaflet-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.leaflet-top.leaflet-left {
    padding-top: 115px;
}

.leaflet-top.leaflet-right {
    display: flex;
    gap: 12px;
}

div.leaflet-control-layers.link img {
    filter: invert(1);
}

.leaflet-left label span * {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
}

.leaflet-left label > span {
    position: relative;
    top: -2px;
}

.leaflet-control-layers-selector {
    margin-right: 6px;
}

/* ── Tooltips ───────────────────────────────────────────────── */
.leaflet-tooltip {
    white-space: break-spaces;
}

.leaflet-tooltip ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.leaflet-tooltip ul li:last-child {
    flex: 1;
}

.leaflet-tooltip li:first-child {
    width: 16px;
}

/* ── Marker Cluster ─────────────────────────────────────────── */
.marker-cluster-custom {
    background-image: url('../images/itemframe.png');
    background-size: cover;
    border: none;
}

.marker-cluster-custom span {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-weight: bold;
    font-family: 'Minecraftia', sans-serif;
}

/* ── FAQ Section ────────────────────────────────────────────── */
.faq-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 48px 24px;
    align-items: center;
    background: var(--color-bg);
}

.faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.faq-header h1 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 2rem;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.faq-header h2 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-muted);
    margin: 0;
}

.faq-list {
    width: 100%;
    max-width: 720px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: block;
    padding: 20px 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.15s;
    list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ""; }

.faq-question:hover {
    color: var(--color-nav-active);
}

.faq-item[open] .faq-question {
    color: var(--color-nav-active);
}

.faq-answer {
    padding: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-2);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media only screen and (max-width: 768px) {
    .leaflet-top.leaflet-right {
        padding-top: 16px;
        flex-direction: column;
        right: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .input-and-icon input {
        width: 100%;
    }

    .faq-header h1 {
        font-size: 1.5rem;
    }

    .faq-header h2 {
        font-size: 0.95rem;
    }
}
