/* Base Styles */
h1 {
    font-size: 30px;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 30px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

button, 
button:focus {
    outline: none;
}

.calender_icon {
    display: none;
}

/* Container & Layout */
.ygc-container {    
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0px 8px 16px rgba(17, 24, 39, .06) !important;
    margin-bottom: 15px !important;
}

/* Transitions */
.ygc-transition-duration-0-4 { transition-duration: .4s !important; }
.ygc-transition-duration-0-6 { transition-duration: .6s !important; }
.ygc-transition-duration-0-8 { transition-duration: .8s !important; }
.ygc-transition-duration-1-0 { transition-duration: 1s !important; }
.ygc-transition-duration-1-2 { transition-duration: 1.2s !important; }
.ygc-transition-duration-1-4 { transition-duration: 1.4s !important; }
.ygc-transition-duration-1-6 { transition-duration: 1.6s !important; }
.ygc-transition-duration-1-8 { transition-duration: 1.8s !important; }

/* Icon styles */
.contact-icon::before {
    font-family: "Dashicons";
    display: inline-block;
    font-size: 18px;
    color: #fff;
    margin-right: 8px;
}

.location-icon::before {
    content: "\f231"; /* Dashicons: location */
}

.phone-icon::before {
    content: "\f525"; /* Dashicons: phone */
}

/* Astra Theme Styles */
.site-content .ast-container {
    min-height: 760px;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 20px;
    padding: 0;
}
.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0;
}

.ast-left-sidebar #secondary {
    padding-right: 20px;
}

.ast-left-sidebar #primary {
    padding-left: 20px;
}

.ast-single-post .entry-content a, 
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a), 
.woocommerce-js .woocommerce-product-details__short-description a {
    text-decoration: none;
}

.ast-builder-grid-row-3-equal .ast-builder-grid-row {
    grid-template-columns: 4fr 3fr 1fr;
}

.ast-mobile-header-content {
    box-shadow: 6px 0 28px #666;
}

.ast-woo-sidebar-widget {    
    margin-top: 30px;
}

/* Filter Styles */
.ast-filter-wrap h3 {
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 36px;
    letter-spacing: 1px;
}

.ast-filter-wrap label {
    font-weight: 400;
}

.ygc-filters-container {
    display: none;
    border-top: 1px solid #ddd;
}

.ygc-filters-container.open {
    display: block;
}

.ygc-form-field.filter-field {
    border: none;
}

.ygc-filter-item {
    margin-bottom: 1.25em;
}

.ygc-filter-checkbox-list {
    margin: 0;
    width: 100%;
}

.ygc-filter-checkbox-list li {
    list-style: none outside;
    margin: 0 0 4px;
    padding: 0;
}

.ygc-filter-checkbox-list li label {
    align-items: flex-start;
    cursor: pointer;
    display: inline-flex;
    font-size: .875em;
    margin-bottom: 0 !important;
    position: relative;
}

.ygc-filter-checkbox {
    line-height: 1;
    margin-top: 1em;
}

.ygc-filter-checkbox-input[type=checkbox] {
    appearance: none;
    background-color: #fff;
    border: 1px solid #91908d;
    border-radius: 4px;
    font-size: 1em;
    height: 1.5em;
    margin: 0 1em 0 0;
    overflow: hidden;
    position: static;
    vertical-align: middle;
    width: 1.5em;
    cursor: pointer;
    position: relative;
    top: 1px;
}

.ygc-filter-checkbox-input[type=checkbox]:checked, 
.ygc-filter-checkbox-input[type=checkbox]:hover {
    background-color: #fff !important;
    border-color: #91908d !important;
}

.ygc-filter-checkbox-mark {
    fill: #000;
    height: 1.125em;
    margin-left: .1875em;
    margin-top: .0625em;
    pointer-events: none;
    position: absolute;
    width: 1.125em;
}

.ygc-filter-checkbox-input[type=checkbox]:not(:checked) + .ygc-filter-checkbox-mark {
    display: none;
}

.ygc-filter-checkbox-label {
    line-height: 1.5em;
    vertical-align: middle;
}

.wc-block-attribute-filter__actions {
    display: none !important;
}

/* Header Styles */
.header.entry-header.entry-title {
    margin-top: 0;
}

.header-contacts {
    display: flex;
    line-height: 22px;
    color: #12d729;
    letter-spacing: 1px;
}

.header-contacts .dashicons {
    margin: 0px 15px 0 33px;
    padding: 8px;
    display: block;
    color: #3375f3;
    border: 2px solid #3375f3;
    border-radius: 50%;
    font-size: 24px;
    width: 44px;
    height: 44px;
}

/* Home Page Styles */
.ygc-home-car-class {
    transition: transform .45s ease-out !important;
}

.ygc-home-car-class:hover {
    transform: translateY(-6px) !important;
}

/* Footer Styles */
.ygc-footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.ygc-footer-container {
    display: flex;
    width: 46%;
    align-items: flex-start;
}

.ygc-footer-logo-container {
    width: 36%;
    padding-top: 7px;
    padding-right: 15px;
}

.ygc-footer-logo {
    width: 100%;
    height: auto;
    display: block;
}

.ygc-footer-info-container {
    width: 64%;
    padding: 0 40px 0 5px;
}

.ygc-footer-title {
    color: #eee;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.ygc-footer-description {
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 0;
}

.ygc-footer-contacts {
    width: 30%;
}

.ygc-footer-contacts-col {
    width: 24%;
    min-width: 220px;
}

.ygc-footer-contacts-title {
    color: #d1d5db;
    margin-bottom: 15px;
}

.ygc-footer-contacts-text,
.ygc-footer-contacts-text a {
    color: #ccc;
    line-height: 1.5;
    text-decoration: none;
}

.ygc-footer-contacts-text a:hover {
    text-decoration: underline;
}

.ygc-footer-links {
    width: 10%;
}

/* Form Horizontal Styles */
.ygc-search-form-container-horizontal {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#ygc-search-form-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: flex-end;
}

.ygc-search-form-field-horizontal {
    flex: 1 1 200px;
    min-width: 200px;
}

.ygc-search-form-field-horizontal label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.ygc-search-form-field-horizontal select,
.ygc-search-form-field-horizontal input[type="text"] {
    width: 100%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Custom Select Styling */
.ygc-custom-select-horizontal {
    position: relative;
    width: 100%;
}

.ygc-custom-select-horizontal .select-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: auto;
    z-index: 1;
}

.ygc-select-selected {
    background-color: white;
    padding: 8px 16px;
    padding-left: 40px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
}

.ygc-select-selected:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 18px;
    border: 6px solid transparent;
    border-top: 6px solid #999;
}

.ygc-custom-select-horizontal.active .ygc-select-selected:after {
    border-top: none;
    border-bottom: 6px solid #999;
}

.ygc-select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ygc-select-hide {
    display: none;
}

.ygc-select-items div {
    padding: 8px 16px;
    cursor: pointer;
}

.ygc-select-items div:hover {
    background-color: #f8f8f8;
}

.ygc-custom-select-horizontal.active .ygc-select-selected {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    padding-bottom: 9px;
}

/* Date Picker Styles */
.ygc-date-picker-with-icon {
    position: relative;
    width: 100%;
}

.ygc-date-picker-with-icon img {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    pointer-events: none;
    z-index: 2;
}

#daterange {
    width: 100%;
    padding: 8px 16px;
    padding-left: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    height: 44px;
    caret-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.ygc-search-form-button-horizontal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ygc-search-form-button-horizontal button:hover {
    background-color: #005f8d;
}

.ygc-search-form-button-horizontal .select-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.ygc-search-form-button-horizontal button[type="submit"] { 
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 13px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ygc-search-form-button-horizontal button[type="submit"]:hover { 
    background-color: #45a049;
}

/* Form Vertical Styles */
.ygc-form-field {
    border-bottom: 1px solid #ddd;
    padding: 10px 0 5px;
    position: relative;
    cursor: pointer;
}

.ygc-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    width: 24px;
    height: 24px;
}

.ygc-form-title {
    flex-grow: 1;
    font-size: 15px;
}

.ygc-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.ygc-form-content {
    padding-left: 32px;
}

.ygc-selected-value {
    padding: 5px 0;
    font-weight: 600;
}

.ygc-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    width: 100%;
    z-index: 10;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 1px 1px 16px #55555533;
    left: 0;
    top: 78px;
}

.ygc-options-list li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
}

.ygc-options-list li:hover {
    background: #f0f0f0;
}

.ygc-form-container-vertical #daterange {
    border: none;
    outline: none;
    padding: 10px 0;
    font-weight: 600;
}

/* DateRangePicker Styles */
.daterangepicker {
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.3);
    min-width: 634px;
    z-index: 99999;
}

.daterangepicker .drp-calendar {
    padding: 10px;
    max-width: 306px !important;
}

.daterangepicker .drp-calendar.left,
.daterangepicker .drp-calendar.right {
    padding-left: 16px !important;
}

.daterangepicker .drp-buttons {
    border-top: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

.daterangepicker .drp-buttons .applyBtn,
.daterangepicker .drp-buttons .cancelBtn {
    background-color: #007bff;
    color: white;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    border: none;
    cursor: pointer;
    margin: 3px 8px !important;
    font-size: 14px !important;
}

.daterangepicker .drp-buttons .cancelBtn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

.daterangepicker td.in-range {
    background-color: #e9ecef;
}

.daterangepicker td.active {
    background-color: #007bff !important;
    color: white !important;
    font-weight: bold;
}

.daterangepicker td.off {
    color: #ccc !important;
}

.daterangepicker td:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.daterangepicker .prev,
.daterangepicker .next {
    cursor: pointer;
    color: #007bff;
}

.daterangepicker select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.daterangepicker.show-calendar .ranges {
    margin: 0 !important;
}

.daterangepicker .calendar-table table thead tr:last-child th {
    border-bottom: 1px solid #e3e3e3;
    font-size: 12px;
    padding: 0 0 5px;
}

.daterangepicker .calendar-table table thead tr:first-child th {
    font-size: 16px;
}

.daterangepicker .calendar-table td {
    font-size: 14px !important;
    padding: 0.4em 0.9em !important;
}

.daterangepicker td.end-date {
    border-radius: 0 20px 20px 0 !important;
}

.daterangepicker td.start-date {
    border-radius: 20px 0 0 20px !important;
}

.daterangepicker td.start-date.end-date {
    border-radius: 20px !important;
}

.daterangepicker .drp-selected {
    float: left;
    font-size: 14px;
    padding: 14px;
    letter-spacing: 1px;
}

/* Contact Form Styles */
.ygc-contact-form input, 
.ygc-contact-form textarea {
    border-radius: 6px !important;
    padding: 22px 15px !important;
}

/* Test Elements */
.test-form {
    width: 200px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ygc-search-form-button-horizontal {
        width: 100%;
        padding: 8px 0 6px;
    }
    
    .ygc-search-form-button-horizontal button[type="submit"] { 
        width: 100%;
    }
    
    .daterangepicker {
        left: 15px !important;
        top: 48px !important;
        min-width: 330px;
        margin: 0 !important;
    }
    
    .daterangepicker::before,
    .daterangepicker::after {
        content: none !important;
        display: none !important;
    }
    
    .daterangepicker .drp-selected {
        display: none !important;
    }
}

@media (max-width: 750px) {
    .header.entry-header.entry-title {
        margin-top: 50px;
    }
    
    .ygc-order-1 {
        order: 1 !important;
    }
    
    .ygc-order-2 {
        order: 2 !important;
    }
    
    .ygc-justify-center {
        justify-content: center !important;
    }
    
    .ygc-footer-wrapper {
        flex-direction: column;
    }
    
    .ygc-footer-container, 
    .ygc-footer-contacts-col {
        align-items: center;
        flex-direction: column;
    }
    
    .ygc-footer-logo-container {
        padding-bottom: 20px;
    }
    
    .ygc-footer-info-container {
        padding: 0 10px;
    }
    
    .ygc-footer-container, 
    .ygc-footer-contacts-col, 
    .ygc-footer-info-container, 
    .ygc-footer-contacts, 
    .ygc-footer-links {
        width: 100%;
        margin-bottom: 15px;
    }
    .ygc-footer-description {
        line-height: 2;
    }
    .ygc-footer-contacts-text {    
        padding: 5px;
    }
}

@media (min-width: 768px) {
    .ygc-filters-container {
        display: block !important;
        border-top: none;
    }
    
    #ygc-filters-header {
        display: none;
    }
}