/* Main Events Section Styles */
#events {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
#events h1.display-4 {
    color: #343a40;
    font-weight: 700;
    margin-bottom: 10px;
}

#events h4 {
    color: #6c757d;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 8px;
}

/* Accordion Styles */
#events .accordion {
    background: none;
    margin-top: 20px;
}

#events .accordion-item {
    border: none;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#events .accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Accordion Button Styles */
#events .accordion-button {
    background-color: #0176D5;
    color: #ffffff;
    font-size: 1em;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s ease;
}

#events .accordion-button:hover {
    background-color: #0056b3;
}

#events .accordion-button:not(.collapsed) {
    background-color: #0056b3;
}

#events .accordion-header span.fs-4 {
    color: #ffffff;
}

/* Accordion Body Styles */
#events .accordion-body {
    background-color: #e9ecef;
    color: #495057;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 0 0 8px 8px;
}

/* Link Styles */
#events .accordion-body ul {
    padding-left: 20px;
}

#events .accordion-body ul li {
    margin-bottom: 8px;
}

#events .accordion-body a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

#events .accordion-body a:hover {
    text-decoration: underline;
    color: #0056b3;
}

#events .event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333; /* Dark color for readability */
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Soft shadow for a subtle lift */
    margin-top: 10px;
    display: block; /* Ensures it takes up the full width */
}

#events .event-links {
    margin-top: 15px;
    padding: 15px;
    background-color: #f1f1f1; /* Light background for contrast */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#events .event-links p {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

#events .event-links ul {
    list-style-type: none; /* Remove default bullet points */
    padding-left: 0; /* Remove padding */
}

#events .event-links ul li {
    margin-bottom: 5px;
    font-size: 1rem;
}

#events .event-links a {
    color: #007bff; /* Blue color for links */
    text-decoration: none;
    font-weight: 500;
}

#events .event-links a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline;
}


.person-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-position: top;
}

#notable-people .table-container {
    max-height: 600px; /* Limit the height to 400px or any desired value */
    height: 600px; /* Limit the height to 400px or any desired value */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Enable vertical scrolling */
}


@media (hover: hover) and (pointer: fine) {
    #tbl-people tbody tr:not(.no-more-results):hover td {
        background-color: #f1f1f1 !important;
    }
}


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

.map-tooltip-heading {
    margin: 0;
    font-size: 16px;
}

#map.unavailable {
    position: relative;
    pointer-events: none; /* disables interaction */
    filter: grayscale(100%) brightness(0.7); /* greys out the map */
}

#map.unavailable::after {
    content: "No coordinates for this place";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 5px;
    z-index: 999;
    pointer-events: none;
    white-space: nowrap;
}
