/* Tongxiang Map QR Code Scanning System - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #ececc1;
    overflow: hidden;
}

/* Map Container - Full Screen */
#map {
    width: 100vw;
    height: 100vh;
    background: #ececc1;
}

/* Loading Indicator */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ececc1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-size: 16px;
    color: #666;
}

/* Invisible Marker - no visual footprint */
.invisible-marker {
    background: transparent !important;
    border: none !important;
}

/* Zoom Controls */
.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

/* Landmark Tooltip */
.landmark-tooltip {
    background: rgba(44, 62, 80, 0.95);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.landmark-tooltip::before {
    border-top-color: rgba(44, 62, 80, 0.95);
}

/* 地标列表面板 */
#list-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(44, 62, 80, 0.9);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#list-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

#list-panel.open {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #2c3e50;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.town-group {
    margin-bottom: 4px;
}

.town-name {
    padding: 10px 16px 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    background: #f0f0f0;
    border-left: 4px solid #2c3e50;
}

.landmark-item {
    padding: 12px 16px 12px 24px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.landmark-item:hover,
.landmark-item:active {
    background: #e8f4fd;
}
