/*
Theme Name: Listivo Child
Theme URI: https://listivotheme.com/
Author: TangibleDesign
Author URI: https://tangibledesign.net/
Description: Listivo
Template: listivo
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: translation-ready
Text Domain: listivo
*/

/* === WRAPPER === */

.listivo-menu-v2--light .listivo-menu-v2__account-link {
    color: #374B5C !important;
}
.custom-listivo-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}


.cl-cat-list input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

.cl-cat-list input[type="radio"]:checked {
    border-color: #e87722;
}

.cl-cat-list input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e87722;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* === SIDEBAR === */
.custom-listivo-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.filter-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: space-between;
    color: #333;
}

.filter-dot { color: #e87722; }

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 5px 0;
    font-size: 14px;
    color: #555;
}

.category-list label { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.category-list input[type="radio"]:checked + * { color: #e87722; font-weight: 600; }

.price-inputs { display: flex; flex-direction: column; gap: 10px; }

.price-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* === MAIN AREA === */
.custom-listivo-main { flex: 1; min-width: 0; }

/* === RESULTS HEADER === */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.layout-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.layout-btn.active,
.layout-btn:hover {
    background: #e87722;
    color: #fff;
    border-color: #e87722;
}

/* === LISTING CARDS === */
.listings-container { display: flex; flex-direction: column; gap: 16px; }
.listings-container.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.listing-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    position: relative;
    transition: box-shadow 0.2s;
}

.listing-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.13); }

.listing-card.grid-card { flex-direction: column; }

/* Image */
.listing-image-wrap {
    width: 240px;
    flex-shrink: 0;
    display: block;
    background: #f0f0f0;
    overflow: hidden;
}

.grid-card .listing-image-wrap { width: 100%; height: 180px; }

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.listing-image:hover { transform: scale(1.04); }

.listing-no-photo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    background: #f5f5f5;
}

/* Details */
.listing-details {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.listing-category-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.cat-tag {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.listing-title a { color: #222; text-decoration: none; }
.listing-title a:hover { color: #e87722; }

.listing-meta { font-size: 13px; color: #888; display: flex; gap: 14px; flex-wrap: wrap; }

.listing-excerpt {
    font-size: 13px;
    color: #777;
    margin: 4px 0;
    line-height: 1.5;
}

.listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}

.listing-price {
    font-size: 20px;
    font-weight: 700;
    color: #e87722;
}

.listing-price small { font-size: 13px; font-weight: 400; color: #888; }

.listing-views { font-size: 12px; color: #bbb; }

/* Wishlist */
.listing-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.listing-wishlist:hover { color: #e87722; border-color: #e87722; }
.listing-wishlist.active { color: #e87722; }

/* Pagination */
.custom-listivo-pagination { text-align: center; margin-top: 30px; }
.custom-listivo-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 3px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.custom-listivo-pagination .page-numbers.current { background: #e87722; color: #fff; border-color: #e87722; }

/* Responsive */
@media (max-width: 768px) {
    .custom-listivo-wrapper { flex-direction: column; }
    .custom-listivo-sidebar { width: 100%; }
    .listing-image-wrap { width: 120px; }
}