/* Face Map Container */
.face-map-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.face-map-image {
    width: 100%;
    display: block;
    border-radius: 8px;
    /* Removed box-shadow here to avoid double shadow with container */
}

/* Base Container with Scanning Line */
.face-map-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, rgba(196, 143, 86, 0) 0%, #c48f56 50%, rgba(196, 143, 86, 0) 100%);
    box-shadow: 0 0 15px #c48f56;
    z-index: 5;
    pointer-events: none;
    display: none;
}

.face-map-container.scanning .scan-line {
    display: block;
    animation: scanning 1.5s ease-in-out infinite;
}

@keyframes scanning {
    0% {
        top: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* SVG Overlays */
.face-map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: none;
}

.map-zone {
    fill: rgba(196, 143, 86, 0);
    stroke: rgba(196, 143, 86, 0);
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: all;
}

.map-zone:hover,
.map-zone.active {
    fill: rgba(196, 143, 86, 0.15);
    stroke: rgba(196, 143, 86, 0.6);
}

.map-zone.active {
    fill: rgba(211, 47, 47, 0.1);
    stroke: rgba(211, 47, 47, 0.8);
    filter: drop-shadow(0 0 5px rgba(211, 47, 47, 0.3));
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Pulse Animation */
.hotspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(196, 143, 86, 0.4);
    /* Gold/Skin tone */
    animation: pulse 2s infinite;
}

.hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #c48f56;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
}

.hotspot:hover,
.hotspot.active {
    transform: translate(-50%, -50%) scale(1.1);
}

.hotspot:hover::before,
.hotspot.active::before {
    background-color: rgba(211, 47, 47, 0.4);
    /* Red highlight */
    animation: none;
    width: 140%;
    height: 140%;
}

.hotspot:hover::after,
.hotspot.active::after {
    background-color: #d32f2f;
    width: 14px;
    height: 14px;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* Specific Positions */
.hotspot-forehead {
    top: 29%;
    left: 50%;
}

.hotspot-eyes_left {
    top: 44%;
    left: 35%;
}

.hotspot-eyes_right {
    top: 44%;
    left: 65%;
}

.hotspot-nose {
    top: 50%;
    left: 50%;
}

.hotspot-cheeks_left {
    top: 55%;
    left: 30%;
}

.hotspot-cheeks_right {
    top: 55%;
    left: 70%;
}

.hotspot-chin {
    top: 75%;
    left: 50%;
}

/* --- RIGHT PANEL: Medical Command Center Styles --- */

.info-panel {
    background: #fff;
    padding: 0;
    height: 100%;
    position: relative;
    /* Clean, no borders, just spacing */
}

.info-default {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px dashed #e0e0e0;
}

/* Header Section */
.zone-header {
    margin-bottom: 30px;
}

.zone-title-en {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.zone-title {
    font-size: 36px;
    font-weight: 700;
    color: #232323;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    /* Or system font if not avail */
}

/* Symptom Matrix Grid */
.symptom-matrix {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.condition-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    /* Square edgy look */
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.condition-tag:hover {
    border-color: #c48f56;
    color: #c48f56;
    background: #fff;
}

.condition-tag i {
    font-size: 6px;
    /* Dot */
    margin-right: 8px;
    color: #c48f56;
}

/* Doctor's Insight Card (Hero Card) */
.doctor-insight-card {
    background: linear-gradient(135deg, #fdfbf9 0%, #fff 100%);
    border-left: 5px solid #c48f56;
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    position: relative;
    margin-bottom: 40px;
}

.doctor-insight-card::before {
    content: '\f10d';
    /* Quote icon fontawesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #f0e6dc;
    z-index: 0;
}

.doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.insight-text {
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    font-style: italic;
}

.doctor-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #c48f56;
    text-transform: uppercase;
}

/* Treatment Protocol Timeline */
.protocol-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 40px;
}

.protocol-item {
    display: flex;
    margin-bottom: 20px;
}

.protocol-step {
    width: 30px;
    height: 30px;
    background: #232323;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.protocol-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 5px;
}

.protocol-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Condition Detail Container */
.condition-detail {
    display: none;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.condition-detail.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Responsive */
@media (max-width: 991px) {
    .info-panel {
        margin-top: 40px;
    }
}