/*
Theme Name: Chigo
Theme URI: https://chigo.com.ua
Author: Chigo Team
Author URI: https://chigo.com.ua
Description: Custom WordPress theme for Chigo air conditioning systems
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chigo
Tags: business, corporate, air-conditioning
*/

/* This file is intentionally left minimal as main styles are loaded from assets */

/* Archive Conditioners - Additional Styles */

/* Loading state */
#gridLayout.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No results styling */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
}

.no-products-found i {
    color: #ccc;
}

.no-products-found h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-products-found p {
    color: #666;
}

.no-products-found a {
    color: #007bff;
    text-decoration: underline;
}

/* Search & Filter Pro Pagination */
.wg-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.wg-pagination .page-numbers li {
    margin: 0;
}

.wg-pagination .page-numbers a,
.wg-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.wg-pagination .page-numbers a:hover {
    border-color: #007bff;
    color: #007bff;
}

.wg-pagination .page-numbers .current {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Search & Filter Pro Form Styles */
.searchandfilter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.searchandfilter li {
    margin-bottom: 20px;
}

.searchandfilter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.searchandfilter input[type="text"],
.searchandfilter select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.searchandfilter input[type="checkbox"],
.searchandfilter input[type="radio"] {
    margin-right: 8px;
}

.searchandfilter .sf-field-submit input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.searchandfilter .sf-field-submit input[type="submit"]:hover {
    background: #0056b3;
}

/* Filter sidebar - Desktop visible */
@media (min-width: 1200px) {
    .sidebar-filter.canvas-filter {
        display: block !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        background: #fff !important;
        z-index: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar-filter .canvas-wrapper {
        padding: 0 !important;
    }

    .sidebar-filter .canvas-body {
        display: block !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .sidebar-filter .canvas-header {
        display: none !important;
    }

    .sidebar-filter .canvas-bottom {
        display: none !important;
    }
}

/* Mobile styles - sidebar becomes offcanvas */
@media (max-width: 1199px) {
    .sidebar-filter {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100%;
        background: #fff;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .sidebar-filter.show {
        transform: translateX(0);
    }

    .sidebar-filter .canvas-wrapper {
        padding: 20px;
    }

    .sidebar-filter .canvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 20px;
    }

    .sidebar-filter .canvas-bottom {
        display: block;
        padding-top: 20px;
        border-top: 1px solid #e5e5e5;
        margin-top: 20px;
    }
}

#overlay-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#overlay-filter.show {
    opacity: 1;
    visibility: visible;
}

body.overflow-hidden {
    overflow: hidden;
}

/* Search & Filter Pro Results Container */
.search-filter-results {
    min-height: 200px;
    position: relative;
}

.search-filter-results.sf-loading {
    opacity: 0.5;
    pointer-events: none;
}

.search-filter-results.sf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: sf-spin 1s linear infinite;
}

@keyframes sf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* S&F Pro form styling in sidebar */
.searchandfilter > ul {
    margin: 0;
    padding: 0;
}

.searchandfilter li[data-sf-field-type] {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.searchandfilter li[data-sf-field-type]:last-child {
    border-bottom: none;
}

.searchandfilter li > label:first-child,
.searchandfilter li > h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.searchandfilter li ul {
    margin: 0;
    padding: 0;
}

.searchandfilter li ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.searchandfilter li ul li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.searchandfilter input[type="checkbox"],
.searchandfilter input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

/* Range slider styling */
.searchandfilter .sf-meta-range-slider {
    margin: 15px 0;
}

.searchandfilter .sf-range-min,
.searchandfilter .sf-range-max {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

/* Hide submit button if auto-submit is on */
.searchandfilter input[type="submit"] {
    display: none;
}

/* =============================================
   WHERE TO BUY PAGE STYLES
   ============================================= */

/* Filters */
.where-to-buy-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.where-to-buy-filters .row {
    gap: 15px;
}

.btn-geolocation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-geolocation:hover {
    border-color: #E53935;
    color: #E53935;
}

.btn-geolocation i {
    font-size: 16px;
}

.where-to-buy-filters .form-select {
    min-width: 200px;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.where-to-buy-filters .form-select:focus {
    border-color: #E53935;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Points List */
.points-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

.points-list::-webkit-scrollbar {
    width: 6px;
}

.points-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.points-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.points-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.point-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.3s;
}

.point-item:first-child {
    padding-top: 0;
}

.point-item:last-child {
    border-bottom: none;
}

.point-item.highlighted {
    background: #fff8e1;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 8px;
}

.point-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.point-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

.point-show-map {
    color: #E53935;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}

.point-show-map:hover {
    text-decoration: underline;
}

.point-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.point-address {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.point-phones {
    margin-bottom: 8px;
}

.point-phones a {
    display: block;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 4px;
}

.point-phones a:hover {
    color: #E53935;
}

.point-site a {
    color: #E53935;
    font-size: 14px;
    text-decoration: none;
}

.point-site a:hover {
    text-decoration: underline;
}

/* Map Container */
.map-container {
    position: sticky;
    top: 100px;
}

.points-map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
}

/* Map Info Window */
.map-info-window {
    padding: 10px;
    max-width: 280px;
}

.map-info-window h4 {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.map-info-window .status {
    font-size: 13px;
    color: #000;
    margin: 0 0 5px 0;
}

.map-info-window .address {
    font-size: 13px;
    color: #000;
    margin: 0 0 5px 0;
}

.map-info-window .phones {
    margin: 0 0 5px 0;
}

.map-info-window .phones a {
    color: #000;
    font-size: 13px;
    text-decoration: none;
}

.map-info-window .phones a:hover {
    color: #E53935;
}

.map-info-window .site a {
    color: #E53935;
    font-size: 13px;
    text-decoration: none;
}

/* No points message */
.no-points {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 1199px) {
    .points-list {
        max-height: 400px;
        margin-bottom: 30px;
    }

    .points-map {
        height: 400px;
    }

    .map-container {
        position: relative;
        top: 0;
    }
}

@media (max-width: 767px) {
    .where-to-buy-filters .row {
        flex-direction: column;
    }

    .where-to-buy-filters .col-auto {
        width: 100%;
    }

    .where-to-buy-filters .form-select {
        width: 100%;
    }

    .btn-geolocation {
        width: 100%;
        justify-content: center;
    }

    .point-header {
        flex-direction: column;
    }

    .point-show-map {
        margin-top: 5px;
    }
}
