/* 醫療地圖頁面樣式 */
.medical-map-header {
    background: linear-gradient(135deg, #004767, #2c3e50);
    color: white;
}

#map-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

#map {
    width: 100%;
    height: 100%;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
}

.control-panel {
    background: #f8f9fa;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
}

.panel-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.panel-title {
    color: #004767;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.location-info {
    background: #e3f2fd;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #004767;
}

.location-details p {
    margin-bottom: 5px;
    font-size: 14px;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.hospital-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .hospital-item:hover {
        border-color: #004767;
        box-shadow: 0 2px 8px rgba(0, 71, 103, 0.15);
        transform: translateY(-2px);
    }

.hospital-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hospital-name {
    color: #2c3e50;
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}

.hospital-rating {
    color: #ffc107;
    font-size: 14px;
}

.hospital-address {
    font-size: 14px;
    margin-bottom: 8px;
}

.hospital-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.hospital-services {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

    .no-results i {
        font-size: 48px;
        margin-bottom: 15px;
    }

/* 演示模式樣式 */
.demo-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.demo-map-content {
    text-align: center;
    padding: 40px 20px;
}

.demo-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.demo-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

    .demo-feature i {
        font-size: 24px;
    }

    .demo-feature span {
        font-size: 14px;
        color: #6c757d;
    }

@media (max-width: 768px) {
    .control-panel {
        height: auto;
        max-height: 50vh;
    }

    #map-container {
        height: 50vh;
        min-height: 300px;
    }

    .demo-features {
        flex-direction: column;
        gap: 10px;
    }

    .demo-feature {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
    }
}