/*
Theme Name: Aralya Child
Description: Child theme for Aralya. You can now safely customize it and not risk losing your customizations.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: aralya
Version: 1.0
*/

/* ========================================
   Filtres Aralya - Style original
   ======================================== */

.arl-filter-bar {
    padding: 0 0 20px;
}

.arl-filter-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.arl-filter-row--secondary {
    margin-top: 5px;
}

/* ---- Search filter (artistes) ---- */
.arl-filter-bar .search-filter {
    text-align: right;
    width: 100%;
    position: relative;
}

.arl-filter-bar .search-filter input {
    border: none;
    border-bottom: 1px solid #000;
    font-style: italic;
    color: #000;
    background-color: transparent;
    width: 325px !important;
    text-align: left;
    font-size: 1.25em;
    padding: 4px 0;
    outline: none;
    font-family: inherit;
}

/* ---- Calendar filter (expositions) ---- */
.arl-filter-bar .calendar-filter {
    float: left;
    font-size: 1.25em;
    position: relative;
}

.arl-filter-bar .calendar-filter .arl-datepicker {
    border: none;
    border-bottom: 1px solid #000;
    padding: 0;
    font-weight: bold;
    width: 150px;
    text-align: center;
    font-size: 1em;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
    outline: none;
    color: #000;
}

.arl-filter-bar .calendar-filter .arl-datepicker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.arl-filter-bar .calendar-filter .arl-datepicker:hover {
    border-bottom-width: 2px;
}

/* ---- Category filter (spots) ---- */
.arl-filter-bar .category-filter {
    text-decoration: none;
    font-size: 1.25em;
    float: left;
    position: relative;
}

.arl-filter-bar .category-filter a {
    text-decoration: none;
    color: inherit;
}

.arl-filter-bar .category-filter span {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    margin-right: 40px;
}

.arl-filter-bar .category-filter span:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 0;
    background: #000;
    height: 1px;
    transition: right 0.3s ease-out;
}

.arl-filter-bar .category-filter span:hover:before,
.arl-filter-bar .category-filter span.active:before {
    right: 0;
}

.arl-filter-bar .category-filter span.active {
    font-weight: bold;
}

/* ---- Location filter (spots) ---- */
.arl-filter-bar .location-filter {
    font-size: 1.25em;
    position: relative;
    float: right;
}

/* ---- Sort filter ---- */
.arl-filter-bar .sort-filter {
    float: right;
    font-size: 1.25em;
    position: relative;
}

/* ---- Dropdown component ---- */
.arl-dropdown {
    display: inline-block;
    position: relative;
}

.arl-dropdown__toggle {
    border: none;
    padding: 0;
    font-weight: bold;
    display: inline-block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    font-size: 1em;
    font-family: inherit;
    color: #000;
}

.arl-dropdown__toggle:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    background: #000;
    height: 1px;
    right: 0;
}

.arl-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.arl-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 160px;
    padding: 8px 15px;
    margin: 4px 0 0;
    list-style: none;
    background-color: #fff;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.arl-dropdown.open .arl-dropdown__menu {
    display: block;
}

.arl-dropdown__menu li {
    padding: 0;
}

.arl-dropdown__menu li a {
    display: block;
    padding: 4px 0;
    color: #000;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.9em;
    white-space: nowrap;
}

.arl-dropdown__menu li a:hover {
    font-weight: bold;
}

.arl-dropdown__search {
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.arl-dropdown__search input {
    border: none;
    border-bottom: 1px solid #ccc;
    width: 100%;
    padding: 4px 0;
    font-size: 0.85em;
    outline: none;
    font-family: inherit;
}

/* ---- Reset date button ---- */
.arl-reset-date {
    display: inline-block;
    margin-left: 4px;
    color: #999;
    text-decoration: none;
    font-size: 1.1em;
    line-height: 1;
    vertical-align: middle;
}

.arl-reset-date:hover {
    color: #e74c3c;
}

/* ---- Show past expos link ---- */
.arl-show-past {
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
    font-style: italic;
}

.arl-show-past:hover {
    color: #000;
}

.arl-past-toggle {
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Badge Coup de Coeur ---- */
.arl-badge--coup-de-coeur {
    display: inline-block;
    padding: 3px 10px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    font-weight: 600;
}

/* ---- Clearfix ---- */
.arl-filter-bar .clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ---- Responsive ---- */
@media screen and (max-width: 991px) {
    .arl-filter-bar .category-filter {
        margin-bottom: 25px;
        float: none;
    }

    .arl-filter-bar .category-filter span {
        margin-right: 20px;
    }

    .arl-filter-bar .sort-filter,
    .arl-filter-bar .location-filter {
        float: none;
    }

    .arl-filter-bar .search-filter input {
        width: 100% !important;
    }

    .arl-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
