.pro-map-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.pro-map-tabs {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pro-map-tab {
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.pro-map-tab:hover {
    background-color: #f9f9f9;
    color: #333;
}

.pro-map-tab.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
    background-color: #f5f7fa;
}

.pro-map-tab-content {
    flex: 1;
    position: relative;
}

.pro-map-tab-pane {
    display: none;
    width: 100%;
}

.pro-map-tab-pane.active {
    display: block;
}

.pro-map-static-map {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.pro-map-static-map img {
    width: 100%;
    height: auto;
    display: block;
}

.pro-map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -24px;
    background-color: #4285f4;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pro-map-pin:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
}

.pro-map-pin.current {
    background-color: #fbbc04;
    border-color: #fff;
    transform: scale(1.2);
    z-index: 6;
}

.pro-map-pin.current:hover {
    transform: scale(1.3);
}

.pro-map-pin.locked {
    background-color: #9aa0a6;
    border-color: #dadce0;
    opacity: 0.8;
}

.pro-map-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 150px;
    max-width: 250px;
    background-color: white;
    color: #333;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    font-size: 14px;
    line-height: 1.4;
}

.pro-map-pin:hover .pro-map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.pro-map-tooltip:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.pro-map-tooltip h4 {
    margin: 0 0 5px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
}

.pro-map-tooltip p {
    margin: 0;
    padding: 0;
}

.pro-map-tooltip .level-requirement {
    color: #d93025;
    font-weight: 500;
}

.pro-map-error {
    color: #d93025;
    padding: 10px;
    border: 1px solid #fadcd9;
    background-color: #fef7f6;
    border-radius: 4px;
}

.pro-map-message {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 100;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.pro-map-message.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

body.pro-location-changing {
    cursor: wait;
}

body.pro-location-changing .pro-map-pin {
    pointer-events: none;
    opacity: 0.5;
}

.pro-action-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 80%;
    text-align: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pro-action-message.active {
    opacity: 1;
    visibility: visible;
}

body.location-loading {
    cursor: wait;
}

body.location-loading .location-item,
body.location-loading .pro-map-pin {
    pointer-events: none;
    opacity: 0.7;
}

.travel-cost {
    color: #3498db;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.travel-cost .energy-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="%233498db" d="M13.5 0h-7C5.675 0 5 .675 5 1.5v17c0 .825.675 1.5 1.5 1.5h7c.825 0 1.5-.675 1.5-1.5v-17c0-.825-.675-1.5-1.5-1.5zm-1 17h-5V3h5v14zm-2.5-15h-1c-.275 0-.5-.225-.5-.5s.225-.5.5-.5h1c.275 0 .5.225.5.5s-.225.5-.5.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.current-location-indicator {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-weight: 500;
    display: inline-block;
}

.pro-map-locations-list {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pro-map-locations-list h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #333;
}

.pro-map-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.pro-map-location-item {
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pro-map-location-item:hover {
    background-color: #f0f7ff;
    border-color: #d0e3ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.pro-map-location-item.active {
    background-color: #e8f4ff;
    border-left: 4px solid #4285f4;
}

.pro-map-location-item.locked {
    opacity: 0.7;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.pro-map-location-item h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.pro-map-location-item .location-description {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.pro-map-location-item .level-requirement {
    color: #e53935;
    font-weight: 500;
    font-size: 13px;
}

.pro-map-location-item .travel-button {
    display: inline-block;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.pro-map-location-item .travel-button:hover {
    background-color: #3367d6;
}

.pro-map-locations-list.loading {
    position: relative;
}

.pro-map-locations-list.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><circle cx="50" cy="50" fill="none" stroke="%234285f4" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform></circle></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50px;
    z-index: 10;
}

@media (max-width: 767px) {
    .pro-map-static-map {
        display: none;
    }
    
    .pro-map-tabs.single-tab {
        display: none;
    }
    
    .pro-map-locations-grid {
        display: block;
    }
    
    .pro-map-location-item {
        margin-bottom: 10px;
    }
}