/* Person Page Styles */

.custom-marker {
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-marker div {
    margin-top: 2px;
}

.hp-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin: 20px 0;
}

.hp-tab-button {
    background: #f8f9fa;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-top: 3px solid transparent;
    font-weight: 500;
}

.hp-tab-button:hover {
    background: #e9ecef;
}

.hp-tab-button.active {
    background: #fff;
    border-top-color: #007cba;
    color: #007cba;
}

.hp-tab-content {
    display: none;
}

.hp-tab-content.active {
    display: block;
}

.hp-collapsible {
    margin: 15px 0;
}

.hp-collapsible-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
}

.hp-collapsible-btn:hover {
    background: #e9ecef;
}

.hp-collapsible-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
}

.hp-accordion {
    margin: 10px 0;
}

.hp-accordion-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
}

.hp-accordion-btn:hover {
    background: #e9ecef;
}

.hp-accordion-content {
    display: none;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}



.hp-source-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.hp-source-link:hover {
    text-decoration: underline;
}

/* Timeline Styles */
.hp-timeline {
    position: relative;
    padding: 20px 0;
}

.hp-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.hp-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.hp-timeline-marker {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 3px solid #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hp-timeline-icon {
    font-size: 30px;
}

.hp-timeline-content {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hp-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.hp-timeline-header h4 {
    margin: 0;
    color: #007cba;
    font-size: 16px;
    font-weight: 600;
}

.hp-timeline-date {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.hp-timeline-place {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.hp-timeline-place a {
    color: #007cba;
    text-decoration: none;
}

.hp-timeline-place a:hover {
    text-decoration: underline;
}

.hp-timeline-description {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
}

@media (max-width: 768px) {
    .hp-timeline-item {
        padding-left: 60px;
    }

    .hp-timeline::before {
        left: 20px;
    }

    .hp-timeline-marker {
        left: 5px;
        width: 25px;
        height: 25px;
    }

    .hp-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}