:root {
    --goeth-orange: #F88C20;
    --goeth-green: #009DAC;
    --goeth-blue: #2B4250;
    --goeth-gray: #7A7A7A;
    --goeth-light-gray: #F9F9F9;
    --goeth-border: #E5E7EB;
}

.goeth-property-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.goeth-archive-layout .goeth-property-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Property Card Styling */
.goeth-property-card-new {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #2b4250;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.goeth-property-card-new:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.goeth-property-grid .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 232px;
    overflow: hidden;
}

.goeth-property-grid .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    mix-blend-mode: multiply;
}

.no-image-new {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #7A7A7A;
    font-weight: 600;
}

.status-badge-new {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 6px;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    height: 32px;
    display: flex;
    align-items: center;
    background: rgb(188, 228, 232);
}

.status-badge-new.state-available,
.status-badge-new.state-new,
.status-badge-new.state-reduced_in_price,
.status-badge-new.state-viewings_fully_booked,
.status-badge-new.state-pending,
.status-badge-new.state-inactive {
    background: rgb(188, 228, 232);
    color: #000;
}

.status-badge-new.state-rented_subject_to_contract {
    background: rgb(248, 140, 32);
    color: #fff;
}

.status-badge-new.state-rented {
    background: rgb(223, 72, 111);
    color: #fff;
}

.card-body-new {
    padding: 20px;
    flex-grow: 1;
}

.price-new {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #2b4250;
}

.address-row-new {
    display: flex;
    flex-direction: column;
}

.street-new {
    font-size: 16px;
    color: #7A7A7A;
    margin: 0;
    font-weight: 400;
}

.city-new {
    font-size: 14px;
    color: #7A7A7A;
    margin: 0;
    text-transform: uppercase;
}

.card-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: rgba(0,0,0,0.02);
}

.footer-item-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
}

.footer-icon-new {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    color: #2B4250;
}

.footer-icon-new svg {
    height: 18px;
    width: auto;
    max-width: 24px;
    display: block;
    flex-shrink: 0;
}

.footer-value-new {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.footer-value-new small {
    font-size: 11px;
    font-weight: 600;
    margin-left: 1px;
}

.footer-label-new {
    font-size: 12px;
    color: #7A7A7A;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .goeth-property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .goeth-property-grid,
    .goeth-archive-layout .goeth-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .goeth-property-grid,
    .goeth-archive-layout .goeth-property-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Module Styling */
.goeth-search-module {
    background: transparent;
    padding: 10px 20px;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    margin: 10px auto;
}

.goeth-search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-field label {
    font-weight: 700;
    font-size: 13px;
    color: #2B4250;
}

.search-field select, .search-field input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 14px;
    width: 100%;
}

body .goeth-search-module .search-submit-btn {
    background: #F88C20 !important;
    color: #fff !important;
    padding: 0 30px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

body .goeth-search-module .search-submit-btn:hover {
    background: #e67e17 !important;
}

/* Slider Styling */
.price-slider-wrapper {
    padding: 10px 5px 5px;
}

#price-slider {
    height: 6px;
    border: none;
    background: #e5e7eb;
    box-shadow: none;
}

#price-slider .noUi-connect {
    background: #F88C20;
}

#price-slider .noUi-handle {
    width: 16px;
    height: 16px;
    right: -8px;
    top: -6px;
    border-radius: 50%;
    background: #F88C20;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

#price-slider .noUi-handle:before,
#price-slider .noUi-handle:after {
    display: none;
}

.price-slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #7A7A7A;
    margin-top: 5px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .goeth-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Archive Layout Styling */
.goeth-archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.goeth-archive-header h1 {
    font-size: 32px;
    color: var(--goeth-blue);
    margin-bottom: 30px;
    font-weight: 800;
}

.goeth-archive-layout {
    display: flex;
    gap: 40px;
}

.goeth-archive-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.goeth-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--goeth-border);
    box-sizing: border-box;
}

.goeth-sidebar-header h3,
.goeth-archive-sidebar h3 {
    font-size: 18px;
    color: var(--goeth-blue);
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.goeth-sidebar-header h3 svg,
.goeth-archive-sidebar h3 svg {
    color: var(--goeth-orange);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    color: var(--goeth-orange);
    border: 1.5px solid var(--goeth-orange);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(248, 140, 32, 0.15);
    white-space: nowrap;
}

.filter-reset-btn:hover {
    background: var(--goeth-orange);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(248, 140, 32, 0.3);
}

.filter-reset-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.goeth-sidebar-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group > label,
.filter-group .filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--goeth-blue);
    margin-bottom: 2px;
}

.filter-group > label svg,
.filter-group .filter-title svg {
    width: 18px;
    height: 18px;
    color: var(--goeth-orange);
    flex-shrink: 0;
}

.show-more-toggle {
    color: var(--goeth-orange);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.show-more-toggle:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    font-size: 13px;
    color: var(--goeth-blue);
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.filter-group select, .filter-group input {
    padding: 8px 10px;
    border: 1px solid var(--goeth-border);
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    background-color: #fff;
}


.filter-submit-btn {
    background: var(--goeth-orange) !important;
    color: #fff !important;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.filter-submit-btn:hover {
    background: #e67e17 !important;
}

.goeth-main-content-new {
    flex-grow: 1;
}

.goeth-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--goeth-border);
    border-radius: 8px;
}

.goeth-active-filters-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--goeth-blue);
    margin-right: 4px;
}

.goeth-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--goeth-border);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--goeth-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.goeth-filter-chip:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.goeth-filter-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: 12px;
    line-height: 1;
    color: #64748b;
    transition: all 0.15s ease;
}

.goeth-filter-chip:hover .chip-remove {
    background: #ef4444;
    color: #fff;
}

.goeth-clear-all-chips {
    font-size: 12px;
    font-weight: 600;
    color: var(--goeth-orange);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 6px;
    background: none;
    border: none;
    padding: 0;
}

.goeth-clear-all-chips:hover {
    color: #e67e17;
}

.goeth-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--goeth-border);
    box-sizing: border-box;
}

.results-count {
    color: var(--goeth-gray);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    margin: 0;
}

.goeth-sort {
    display: flex;
    align-items: center;
    margin: 0;
}

.goeth-sort .sort-form {
    margin: 0;
    display: flex;
    align-items: center;
}

.goeth-sort select {
    padding: 6px 12px;
    border: 1px solid var(--goeth-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--goeth-blue);
    background-color: #fff;
    line-height: 1.4;
    height: 36px;
    box-sizing: border-box;
}

/* WPML Flag Fix */
.aw-wpml-flag {
    display: block !important;
    z-index: 9999;
}

.elementor-element.aw-wpml-flag {
    display: block !important;
}


@media (max-width: 1024px) {
    .aw-wpml-flag.elementor-hidden-tablet, 
    .aw-wpml-flag.elementor-hidden-mobile {
        display: block !important;
    }
}

.goeth-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.goeth-pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid var(--goeth-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--goeth-blue);
    font-weight: 600;
    transition: all 0.2s;
}

.goeth-pagination .page-numbers:hover,
.goeth-pagination .page-numbers.current {
    background: var(--goeth-blue);
    color: #fff;
    border-color: var(--goeth-blue);
}

@media (max-width: 1024px) {
    .goeth-archive-layout {
        flex-direction: column;
    }
    
    .goeth-archive-sidebar {
        width: 100%;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
    }
    
    .goeth-sidebar-filter-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-submit-btn, .filter-reset-btn {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .goeth-sidebar-filter-form {
        grid-template-columns: 1fr;
    }
    .filter-submit-btn, .filter-reset-btn {
        grid-column: span 1;
    }
}


/* Overrides for Elementor containers to remove excess padding and width restrictions */
.aw-form-wrap-search .e-con-inner {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 0 !important;
}

.aw-form-wrap-search .elementor-element {
    padding: 0 !important;
    width: 100% !important;
}

.aw-form-wrap-search .elementor-widget-container {
    padding: 0 !important;
}
