body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.popup {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.store-info {
    margin-bottom: 15px;
}

.store-info img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.store-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.store-address, .store-hours, .store-category {
    margin-bottom: 5px;
}

.nav-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
}

.marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .popup-content {
        margin: 25% auto;
        width: 90%;
        padding: 15px;
    }
    
    .store-name {
        font-size: 16px;
    }
    
    .store-address, .store-hours, .store-category {
        font-size: 14px;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}


/* Add these styles for the city selector */
.city-selector {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#city-dropdown {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Keep your existing styles below */
/* 现代化的city-switcher样式 */
.city-switcher {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.city-switcher select {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    background-color: white;
    cursor: pointer;
    width: 100%;
    color: #333;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right;
    background-size: 15px;
    padding-right: 20px!important;
}

.city-switcher select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.city-switcher select:hover {
    background-color: #f8f9fa;
}

/* 默认收起 maplibregl-ctrl-attrib */
.maplibregl-ctrl-attrib {
    display: none;
}

.maplibregl-ctrl-attrib-button {
    display: block;
}

/* 底部信息按钮样式 */
#info-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

#info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#info-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#info-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* 信息面板样式 */
#info-panel {
    display: none;
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 20;
    overflow: hidden;
    max-height: 80vh;
}

#info-panel-content {
    padding: 20px;
    position: relative;
}

#info-panel .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

#info-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

#info-panel p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

#info-panel .qr-code {
    text-align: center;
    margin: 15px 0;
}

#info-panel .qr-code img {
    max-width: 100%;
}

#info-panel strong {
    color: #4285f4;
    font-weight: 600;
}

.style-switcher{
    display: none;
}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#popup.active {
    display: flex;
}

#popup-content {
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    max-width: 90%;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e0e0e0;
}

@media (max-width: 480px) {
    #popup-content {
        width: 85%;
        padding: 20px;
    }
}

.nav-button {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border: none;
    color: white;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.nav-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}
.store-open, .store-closed {
    min-width: fit-content;
}
.store-open {
    color: #4CAF50;
    font-weight: bold;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(76, 175, 80, 0.1);
}

.store-closed {
    color: #F44336;
    font-weight: bold;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(244, 67, 54, 0.1);
}

/* City switcher styles */
.city-switcher {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 8px;
}

.city-switcher select {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

/* 地图样式选择器 */
.style-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 8px;
}

.style-switcher select {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}