/* 
 * Maps Section CSS with Accordion
 * File: assets/css/maps.css
 */

.maps-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.maps-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 0 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

#indonesia-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

#schedule-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-headerr {
    background-color: #9e2020;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-headerr h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.sidebar-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    padding: 15px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    border: none;
    text-align: left;
    width: 100%;
    position: relative;
}

.accordion-button:not(.collapsed) {
    background-color: #e9f0f8;
    color: #2980b9;
}

.accordion-button:focus {
    box-shadow: none;
    outline: none;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: auto;
    content: '';
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 20px;
    transition: transform .3s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 15px;
    background-color: #fff;
}

.accordion-button .fw-bold {
    font-size: 16px;
    margin-bottom: 2px;
}

.accordion-button .small {
    font-size: 14px;
    color: #6c757d;
}

/* Event Details */
.accordion-body ul {
    margin-bottom: 15px;
}

.accordion-body ul li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.accordion-body hr {
    margin: 15px 0;
    border-color: #eee;
}

.accordion-body p {
    margin-bottom: 5px;
    font-size: 14px;
}

.accordion-body strong {
    color: #333;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.accordion-body a {
    color: #ffffff;
    text-decoration: none;
}

.accordion-body a:hover {
    text-decoration: underline;
}

.alert-info {
    background-color: #e8f4f8;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .maps-container, #schedule-sidebar {
        height: 500px;
    }
    
    #schedule-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .maps-container, #schedule-sidebar {
        height: 400px;
    }
}