/* =============================================
 * Стили для location-contact.php
 * =============================================
 */

/* --- Стили Аккордеона --- */
#accordion .container {
    max-width: 1236px;
    margin: 40px auto;
    padding: 0 15px;
}

#accordion .border-1 {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
#accordion button {
    display: flex;
    width: 100%;
    padding: 15px 20px;
    background-color: #f8f8f8; /* bg-cream-500 */
    border: none;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}
#accordion button:hover {
    background-color: #eee; /* hover:bg-cream-600 */
}

#accordion h4 {
    flex-grow: 1;
    font-family: "Raleway", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    margin: 0;
}

#accordion .collapse p, 
#accordion .collapse ul, 
#accordion .collapse li,
#accordion .collapse a,
#accordion .collapse strong {
    font-family: "EB Garamond", serif;
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
    text-decoration: none;
}

#accordion .collapse p {
    margin-top: 10px;
    margin-bottom: 15px;
}

#accordion .collapse ul {
    list-style: disc;
    padding-left: 40px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#collapse-car-sixt a {
    font-family: "Raleway", sans-serif;
    font-size: 17px;
    color: #333333 !important;
    text-decoration: underline;
}

#accordion button img { transition: transform 0.3s ease; }
#accordion button[aria-expanded="true"] img { transform: rotate(45deg); }
#accordion .collapse {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-out;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Стили Контактов и Карты --- */
.article--map .list-contacts-secondary { list-style: none; padding: 0; margin: 0 0 30px 0; }
.article--map .list-contacts-secondary li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.article--map .list-contacts-secondary .list__icon { flex: 0 0 35px; width: 35px; height: 35px; margin-right: 20px; color: #333; }
.article--map .list-contacts-secondary .list__content { font-family: "EB Garamond", serif; font-size: 17px; line-height: 1.6; color: #333; }
.article--map .list-contacts-secondary .list__content a { color: #333; text-decoration: none; font-weight: 600; }
.article--map .list-contacts-secondary .list__content a:hover { text-decoration: underline; }
.article--map .btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #90c8b6;
    background: #90c8b6;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.article--map .btn:hover { background: #7ab9a4; border-color: #7ab9a4; }
.section-halfpane .section__aside .ratio-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-halfpane .section__aside .ratio-container { width: 100%; height: 100%; position: relative; }


/* --- Адаптация для Location & Contact --- */
@media (max-width: 992px) {
    
    /* Блок 50/50 (Карта + Контакты) */
    .section-halfpane {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    .section__container {
        flex-direction: column-reverse; /* Сначала Карта, потом Контакты */
    }
    .section__aside,
    .section__content {
        width: 100%;
    }
    .section__content {
        padding: 30px;
    }

    /* Аккордеон */
    #accordion .container {
        margin-top: 20px;
    }
    #accordion h4 {
        font-size: 18px;
    }
    #accordion button img {
        width: 24px;
        height: 24px;
    }
    #accordion .collapse p, 
    #accordion .collapse ul, 
    #accordion .collapse li {
        font-size: 16px;
    }
}