*{
    margin: 0;
    padding: 0;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 防止横向滚动条 */
  overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    border-radius: 8px;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", "Lucida Console", "Courier New";
}

.mapboxgl-popup {
    z-index: 1000;
}

.mapboxgl-popup-content {
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.mapboxgl-popup-close-button {
    font-size: 20px;
    color: #666;
    padding: 5px 8px;
    right: 5px;
    top: 5px;
}

.mapboxgl-popup-close-button:hover {
    background: none;
    color: #333;
}

.popup-content {
    position: relative;
    padding: 5px;
}

.popup-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #5a5a5a;
}

.popup-description {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.coordinates {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.image-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image {
    max-width: 280px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 1;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

.image-counter {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

#loading {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
