/* =========================================================================
 * Bayut sidebar sections - shared styles
 * Used by: Most Popular, Latest Posts, Top Searches
 * (Each plugin ships an identical copy of these shared rules so it works
 *  independently of the others.)
 * ====================================================================== */

/* Sticky sidebar on desktop (targets the alia-child sidebar widget area). */
@media screen and (min-width: 992px) {
    #default_sidebar_widget.widget_area {
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

.mybayut-side-section {
    margin: 0 0 0px;
}

/* Remove the empty <p> tags wpautop injects between shortcodes in the
   sidebar. :empty only matches truly empty paragraphs, so real content
   paragraphs (with text) are never affected. */
.widget_area p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.mybayut-side-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px;
}

.mybayut-side-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mybayut-side-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: #000000;
    text-decoration: none;
}

.mybayut-side-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.mybayut-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mybayut-side-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mybayut-side-title {
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: #000000;
}

.mybayut-side-item:hover .mybayut-side-title {
    text-decoration: underline;
}

.mybayut-side-date {
    font-size: 12px;
    line-height: 16px;
    color: #6b6b6b;
}

.mybayut-side-empty {
    font-size: 13px;
    color: #6b6b6b;
}

/* RTL tweaks */
body.rtl .mybayut-side-item {
    text-align: right;
}

@media screen and (max-width: 600px) {
    .mybayut-side-section .section-title {
        font-size: 16px;
    }
}

/* ---- Legacy classes kept for backwards compatibility ---- */
.mybayut-popular-posts.fixed { margin-top: 250px; }

/* ---- Top Searches specific ---- */
.mybayut-top-searches-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mybayut-top-search-location {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px;
    line-height: 22px;
}

.mybayut-top-search-location a {
    color: #000000;
    text-decoration: none;
}

.mybayut-top-search-location a:hover {
    text-decoration: underline;
}

.mybayut-top-search-links {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px !important; /* indent child links under the location */
    display: flex;
    flex-direction: column;
    /* gap: 8px; */
    margin-bottom: 16px !important;
}

body.rtl .mybayut-top-search-links {
    padding: 0 16px 0 0;
}

.mybayut-top-search-links a {
    font-size: 14px;
    line-height: 20px;
    color: #000000 !important;
    text-decoration: none;
    font-weight: 400 !important;
}

.mybayut-top-search-links a:hover {
    text-decoration: underline;
}

body.rtl .mybayut-top-search-links {
    text-align: right;
}
