/* Map Custom Styles */
.map-section {
    position: relative;
    width: 100%;
    background: #fff;
    padding-bottom: 80px;
    margin-top: 80px;
}

#amap-map {
    width: 100%;
    height: 600px;
    background-color: #f0f2f5;
    border-radius: 4px;
}

/* Custom Info Window Style for AMap */
.custom-info-window {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* Soft shadow */
    padding: 30px;
    width: 400px;
    position: relative;
    /* Changed from absolute to relative for AMap */
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: fadeIn 0.5s;
    cursor: default;
    white-space: normal;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-info-window h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #4080FF;
    /* Bright blue */
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon-box {
    width: 30px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 3px;
    margin-right: 15px;
}

.info-icon-box i {
    font-size: 16px;
    color: #333;
}

.info-icon-box .fa-map-marker-alt {
    font-size: 18px;
}

.info-icon-box .fa-envelope {
    font-size: 16px;
}

.info-icon-box .fa-phone-alt {
    font-size: 16px;
}

.info-content-box {
    flex-grow: 1;
}

.info-label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1;
}

.info-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

/* Sharp bottom pointer */
.custom-info-window::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Hide AMap default close button if needed */
.amap-info-close {
    display: none;
}