/* ==========================================================================
   1. 基础设置 & 变量
   ========================================================================== */
:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2d2d2d;
  --tertiary-bg: #3a3a3a;
  --border-color: #3a3a3a;
  --accent-color: #8bc34a;
  --accent-dark: #689f38;
  --text-primary: #d0d0d0;
  --text-secondary: #a5a5a5;
  --danger-color: #5d4037;
  --scrollbar-thumb: #555;
  
  /* 地点颜色定义 */
  --yizhan-color: rgba(139, 87, 42, 0.8);
  --gangkou-color: rgba(41, 128, 185, 0.8);
  --juzhu-all-color: rgba(46, 125, 50, 0.8);
  --juzhu-color: rgba(198, 40, 40, 0.8);
  --dibiao-color: rgba(156, 39, 176, 0.8);
  --qiguan-color: rgba(255, 152, 0, 0.8);
  --fish-color: rgba(0, 150, 136, 0.9); /* 特殊鱼：薄荷青 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
    left: 0;
    top: 0;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* ==========================================================================
   2. 地图容器 & Leaflet
   ========================================================================== */
#map, .leaflet-container {
    width: 100%;
    height: 100%;
    text-align: left !important;
    background: #1a1a1a;
    outline: 0;
    touch-action: none !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 修复渲染模糊问题 */
.leaflet-image-layer {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* ==========================================================================
   3. 顶部导航栏
   ========================================================================== */
.header {
    background-color: var(--secondary-bg);
    padding: 0 10px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border-color);
    z-index: 2001;
    width: 100%;
    flex-shrink: 0;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    flex: 1;
}

.monitor-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: rgba(139, 195, 74, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    height: 28px;
    max-width: 100px;
}

.monitor-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.4);
    transform: translateY(-1px);
}

.team-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: rgba(255, 0, 0, 0.381);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    height: 28px;
    max-width: 100px;
}

.team-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.666);
    transform: translateY(-1px);
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

.stat-count {
    color: var(--accent-color);
    font-weight: bold;
}

/* ==========================================================================
   4. 侧边控制面板
   ========================================================================== */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.control-panel {
    width: 250px;
    background-color: var(--secondary-bg);
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    z-index: 500;
}

.panel-section {
    margin-bottom: 25px;
}

.panel-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    padding-left: 30px;
    color: #c8c8c8;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--tertiary-bg);
    border: 1px solid #555;
    border-radius: 3px;
    transition: all 0.2s;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent-color);
    background-color: #454545;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--accent-dark);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--secondary-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* 搜索容器 */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#search-input {
    flex: 1;
    padding: 8px;
    background-color: var(--tertiary-bg);
    border: 1px solid #555;
    border-radius: 4px;
    color: var(--text-primary);
    transition: border-color 0.15s ease-in-out;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
}

#search-input::placeholder {
    color: #888;
}

.search-buttons {
    display: flex;
    gap: 8px;
    justify-content: stretch;
}

.search-buttons button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

#search-btn {
    background-color: var(--accent-dark);
    color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    font-weight: 600;
}

#search-btn:hover {
    background-color: var(--accent-color);
    border-color: #9ccc65;
}

#reset-btn {
    background-color: var(--danger-color);
    color: var(--text-primary);
    border: 1px solid #795548;
}

#reset-btn:hover {
    background-color: #795548;
    border-color: #8d6e63;
}

/* 坐标显示 */
#coords-display {
    background-color: var(--tertiary-bg);
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    text-align: center;
    border: 1px solid #555;
    color: var(--accent-color);
    font-weight: bold;
}

.map-container {
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ==========================================================================
   5. 信息面板 (Info Panel)
   ========================================================================== */
.info-panel {
    width: 300px;
    background-color: var(--secondary-bg);
    padding: 15px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 500;
}

.info-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.info-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* ==========================================================
   === 手风琴列表 (Accordion List) ===
   ========================================================== */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #333;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* 选中/展开状态 */
.accordion-item.active {
    background-color: var(--tertiary-bg);
    border-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 头部：总是显示，可点击 */
.accordion-header {
    padding: 10px 12px;
    cursor: pointer;
    position: relative;
    border-left: 4px solid #555;
    transition: background-color 0.2s;
}

.accordion-item.active .accordion-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-color);
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* 详情主体：默认隐藏 */
.accordion-body {
    display: none; /* 默认折叠 */
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.accordion-item.active .accordion-body {
    display: block; /* 展开 */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头部信息排版 */
.header-name {
    font-weight: bold;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.header-sub {
    font-size: 12px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

/* --- 详情内容样式 (Inside Accordion Body) --- */

/* 图片容器 */
.detail-hero-image {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid #444;
}

/* 图片限制 (关键修改: max-height 150px) */
.detail-hero-image img {
    width: 100%;
    max-height: 150px; 
    object-fit: contain; 
    display: block;
}

/* 详情行布局 */
.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    /* 字体控制：不要过大 */
    font-size: 13px; 
    line-height: 1.4;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

/* 标签列 */
.detail-label {
    color: var(--text-secondary);
    width: 70px;
    flex-shrink: 0;
    font-size: 12px; /* 标签字体略小 */
}

/* 内容列 */
.detail-value {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    font-size: 13px; /* 内容字体标准 */
}

.highlight-coords {
    font-family: monospace;
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

.effect-text {
    color: #81c784;
    font-weight: 500;
}

/* 备注信息 (全宽显示) */
.detail-note {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-style: italic;
    background: rgba(255,255,255,0.05);
    padding: 6px;
    border-radius: 4px;
}

/* 分页组件 */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
    min-height: 36px;
    align-items: center;
    padding: 5px 0;
}

.page-btn {
    padding: 6px 10px;
    border: 1px solid #555;
    background-color: var(--tertiary-bg);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    min-width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.page-btn:hover {
    background-color: #4a4a4a;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-btn.active {
    background-color: var(--accent-dark);
    color: var(--primary-bg);
    border-color: var(--accent-color);
    font-weight: 600;
}

.pagination span {
    padding: 0 8px;
    color: #666;
    font-size: 13px;
    flex-shrink: 0;
}

.no-selection {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

/* ==========================================================================
   6. 地图标记与标签 (Markers & Labels)
   ========================================================================== */

/* 1. 外层容器：透明，忽略点击事件 (虚空点击修复) */
.marker-label {
    background: transparent !important;
    border: none !important;
    width: 0 !important;  /* 强制 0 宽 */
    height: 0 !important; /* 强制 0 高 */
    overflow: visible !important; 
    pointer-events: none; /* 穿透 */
}

/* 2. 内层内容：有颜色，恢复点击事件 */
.label-content {
    pointer-events: auto; /* 恢复点击 */
    
    position: relative; 
    left: 0;
    top: 0; 
    transform: translateX(-50%);
    margin-top: 14px; 
    
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    line-height: 1.2;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* 各类型标签颜色 */
.marker-label-yizhan .label-content { background-color: var(--yizhan-color); border-color: #8B572A; }
.marker-label-gangkou .label-content { background-color: var(--gangkou-color); border-color: #2980b9; }
.marker-label-juzhu_all .label-content { background-color: var(--juzhu-all-color); border-color: #2e7d32; }
.marker-label-juzhu .label-content { background-color: var(--juzhu-color); border-color: #c62828; }
.marker-label-dibiao .label-content { background-color: var(--dibiao-color); border-color: #7b1fa2; }
.marker-label-qiguan .label-content { background-color: var(--qiguan-color); border-color: #f57c00; }
.marker-label-fish .label-content { background-color: var(--fish-color) !important; border-color: #00796b !important; }

/* 高亮样式 */
.label-content.highlighted, 
.label-content.search-highlighted {
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.8);
    z-index: 1000;
    border: 2px solid;
    transform: scale(1.2);
    transition: all 0.2s ease;
    opacity: 1 !important;
}

.label-content.search-highlighted {
    padding: 4px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.7);
    z-index: 900;
    transform: scale(1.03);
}

/* 高亮时的边框颜色覆盖 */
.marker-label-yizhan .label-content.highlighted, .marker-label-yizhan .label-content.search-highlighted { background-color: #ffa94d !important; border-color: #8B572A !important; color: var(--secondary-bg) !important; }
.marker-label-gangkou .label-content.highlighted, .marker-label-gangkou .label-content.search-highlighted { background-color: #4fc3f7 !important; border-color: #2980b9 !important; color: var(--secondary-bg) !important; }
.marker-label-juzhu_all .label-content.highlighted, .marker-label-juzhu_all .label-content.search-highlighted { background-color: #81c784 !important; border-color: #2e7d32 !important; color: var(--secondary-bg) !important; }
.marker-label-juzhu .label-content.highlighted, .marker-label-juzhu .label-content.search-highlighted { background-color: #ef5350 !important; border-color: #c62828 !important; color: var(--secondary-bg) !important; }
.marker-label-dibiao .label-content.highlighted, .marker-label-dibiao .label-content.search-highlighted { background-color: #ce93d8 !important; border-color: #7b1fa2 !important; color: var(--secondary-bg) !important; }
.marker-label-qiguan .label-content.highlighted, .marker-label-qiguan .label-content.search-highlighted { background-color: #ffb74d !important; border-color: #f57c00 !important; color: var(--secondary-bg) !important; }
.marker-label-fish .label-content.highlighted, .marker-label-fish .label-content.search-highlighted { background-color: #03a9f4 !important; border-color: #0288d1 !important; color: var(--secondary-bg) !important; }

/* 侧边栏旧样式兼容 (防止JS报错，实际用手风琴样式) */
.marker-info.highlighted {
    background-color: var(--danger-color);
    border-left: 4px solid #ff9800;
}

/* ==========================================================================
   7. 弹窗 (Popups)
   ========================================================================== */
.leaflet-popup-content-wrapper {
    background: rgb(45 45 45 / 90%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    padding: 0;
    overflow: hidden;
    min-width: 220px;
}

.leaflet-popup-content {
    margin: 0;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
    background: transparent;
    width: auto !important;
}

.leaflet-popup-tip {
    background: rgb(45 45 45 / 90%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.popup-content {
    min-width: 180px;
}

.popup-content strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.popup-content br {
    margin-bottom: 4px;
}

.leaflet-popup-close-button {
    color: var(--text-primary) !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    right: 8px !important;
    top: 8px !important;
    transition: all 0.2s;
}

.leaflet-popup-close-button:hover {
    background-color: #d32f2f !important;
    color: white !important;
    transform: scale(1.1);
}

/* 鱼类 Popup 图片样式 */
.fish-popup-img {
    width: 100%;
    text-align: center;
    margin: 5px 0;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 4px;
}

.fish-popup-img img {
    max-width: 100%;
    max-height: 120px; 
    object-fit: contain;
}

/* ==========================================================================
   8. 滚动条美化
   ========================================================================== */
.info-content::-webkit-scrollbar,
.control-panel::-webkit-scrollbar,
.info-panel::-webkit-scrollbar {
    width: 6px;
}

.info-content::-webkit-scrollbar-track,
.control-panel::-webkit-scrollbar-track,
.info-panel::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 3px;
}

.info-content::-webkit-scrollbar-thumb,
.control-panel::-webkit-scrollbar-thumb,
.info-panel::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.info-content::-webkit-scrollbar-thumb:hover,
.control-panel::-webkit-scrollbar-thumb:hover,
.info-panel::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ==========================================================================
   9. 热力图组件
   ========================================================================== */
.heatmap-control {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--accent-dark);
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.heatmap-control:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.heatmap-control.active {
    background-color: #ff9800;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.3);
}

.heatmap-info {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
    margin-top: 5px;
}

.heatmap-info small {
    opacity: 0.8;
}

.heatmap-legend {
    background: rgba(30, 30, 30, 0.95) !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    border: 2px solid var(--accent-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7) !important;
    min-width: 220px;
}

.legend-title {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: center;
}

.legend-stats {
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0.9;
}

.heatmap-gradient {
    width: 100%;
    height: 16px;
    background: linear-gradient(to right, 
        rgba(30, 60, 200, 0.8),
        rgba(0, 180, 255, 0.8),
        rgba(0, 255, 150, 0.8),
        rgba(255, 255, 0, 0.9),
        rgba(255, 140, 0, 0.95),
        rgba(255, 0, 0, 1.0)
    );
    border-radius: 4px;
    margin: 8px 0;
    border: 1px solid rgba(255,255,255,0.3);
}

.heatmap-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 9px;
    margin-top: 5px;
}

.heatmap-labels span {
    flex: 1;
    text-align: center;
    line-height: 1.2;
}

.leaflet-heatmap-layer {
    z-index: 200 !important;
}

/* ==========================================================================
   10. 移动端适配
   ========================================================================== */
.mobile-fab { display: none; }
.overlay-backdrop { display: none; }
.mobile-drag-handle { display: none; }

@media (max-width: 768px) {
    .container { height: 100vh; width: 100vw; overflow: hidden; }
    .header { height: 50px; padding: 0 10px; position: relative; z-index: 2001; width: 100%; max-width: 100vw; box-sizing: border-box; }
    .title-group h1 { font-size: 16px; }
    .stats { display: none; }
    .main-content { display: block; height: calc(100vh - 50px); width: 100%; position: relative; }
    .map-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
    
    .mobile-fab { 
        display: flex; align-items: center; justify-content: center; 
        position: absolute; top: 15px; left: 15px; z-index: 2000; 
        background: var(--accent-dark); color: white; border: none; 
        padding: 8px 16px; border-radius: 20px; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.4); 
        font-weight: bold; font-size: 14px; 
        border: 1px solid var(--accent-color); 
    }
    .mobile-fab:active { transform: scale(0.95); }
    
    .control-panel { position: absolute; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100%; background-color: var(--secondary-bg); z-index: 3000; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 2px 0 15px rgba(0,0,0,0.7); padding-bottom: 80px; }
    .control-panel.active { left: 0; }
    
    .info-panel { position: absolute; bottom: -100%; left: 0; width: 100%; height: 45vh; z-index: 2500; transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 20px 20px 0 0; border-top: 1px solid var(--accent-color); box-shadow: 0 -4px 15px rgba(0,0,0,0.6); background-color: var(--secondary-bg); padding-top: 10px; }
    .info-panel.active { bottom: 0; }
    
    .mobile-drag-handle { display: block; width: 40px; height: 4px; background-color: #555; border-radius: 2px; margin: 0 auto 10px auto; }
    .info-content { max-height: calc(45vh - 100px); }
    
    .overlay-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2900; display: none; backdrop-filter: blur(2px); }
    .overlay-backdrop.active { display: block; }
    
    .page-btn { padding: 4px 8px; min-width: 32px; height: 30px; font-size: 12px; }
    .heatmap-legend { bottom: 20px !important; left: 10px !important; max-width: 200px; padding: 8px !important; }
    .search-buttons { flex-direction: row; }
    #coords-display { font-size: 12px; }
}