/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Common styles */
.hayc-re-property-clear {
    clear: both;
}

/* Property listings container */
.hayc-re-property-listings {
    margin: 40px 0;
}

.hayc-re-property-listings-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Property grid layout */
.hayc-re-property-grid {
    display: flex;
    gap: 20px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.hayc-re-property-column-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hayc-re-property-column-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hayc-re-property-column-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive grid */
@media (max-width: 1024px) {
    .hayc-re-property-column-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hayc-re-property-column-3,
    .hayc-re-property-column-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hayc-re-property-column-2,
    .hayc-re-property-column-3,
    .hayc-re-property-column-4 {
        grid-template-columns: 1fr;
    }
}

/* Property card - Modern design matching screenshot */
.hayc-re-property-card {
    /* background: #fff;
    border-radius: 8px; */
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    /* border: 1px solid #f0f0f0; */
    width: 302px;
}

.hayc-re-property-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-radius: 0 0 10px 10px;
}

.hayc-re-property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hayc-re-property-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Property card image */
.hayc-re-property-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
}

.hayc-re-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hayc-re-property-card:hover .hayc-re-property-image {
    transform: scale(1.02);
}

.hayc-re-property-no-image {
    width: 100%;
    height: 100%;
    background-color: #d3d3d3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.hayc-re-property-no-image i {
    font-size: 40px;
    opacity: 0.5;
}

/* Red status indicator (small circle) */
.hayc-re-property-status-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

/* Property card content */
.hayc-re-property-card-content {
    /* padding: 20px; */
    padding-top: 10px;
    transition: all 0.3s ease-in-out;
}

.hayc-re-property-card:hover .hayc-re-property-card-content{
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hayc-re-property-card:hover .hayc-re-property-meta{
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hayc-re-property-meta{
    padding-top: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hayc-re-budge-commission {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background-color: #ff7a00;
    border-radius: 12px;
    padding: 6px 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    height: auto;
}

/* Position commission badge as overlay on image */
.hayc-re-property-card-image { position: relative; }
.hayc-re-property-card-image .hayc-re-budge-commission {
    position: absolute;
    top: 10px;
    right: 10px;
    line-height: 1;
}

.hayc-re-property-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.hayc-re-property-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.hayc-re-property-location i {
    margin-right: 8px;
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.hayc-re-location-text {
    flex: 1;
    word-break: break-word;
}

/* Meta row under address */
.hayc-re-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.hayc-re-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
    white-space: nowrap;
}

.hayc-re-meta-item i {
    color: #000000;
    font-size: 14px;
}

/* Property Code Display */
.property-code {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.property-code i {
    margin-right: 8px;
    color: #1a73e8;
    font-size: 12px;
}

.property-code-label {
    font-weight: 600;
    margin-right: 6px;
}

.property-code-value {
    font-weight: 700;
    color: #000000;
    background: #f0f7ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Pagination */
.hayc-re-property-pagination {
    margin-top: 30px;
    text-align: center;
}

.hayc-re-property-pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hayc-re-property-pagination .page-numbers.current {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.hayc-re-property-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Modern Property Search Form - Full Width 3-Row Layout */
.hayc-re-property-search-form {
    margin-bottom: 40px;
    width: 100% !important;
    max-width: none !important;
    min-width: 800px;
    box-sizing: border-box;
}

.hayc-re-property-search-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.hayc-re-search-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-width: 1400px !important;
    margin: 0 auto;
    width: 100% !important;
    min-width: 750px;
    box-sizing: border-box;
}

.hayc-re-property-search-modern {
    width: 100%;
}

/* Search Rows */

/* Add 12px of vertical space between every pair of rows */
.hayc-re-search-row + .hayc-re-search-row {
    margin-top: 12px;
}

/* (Optional) Remove margin after the last row */
.hayc-re-search-row:last-child {
    margin-bottom: 0;
}

.hayc-re-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hayc-re-search-row:last-child {
    margin-bottom: 0;
}

/* Row 1: Toggles */
.hayc-re-search-row-toggles {
    justify-content: space-between;
}

.hayc-re-search-toggles-left {
    display: flex;
    align-items: center;
}

.hayc-re-search-toggles-right {
    display: flex;
    align-items: center;
}

.hayc-re-search-toggle-buttons {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.hayc-re-search-toggle-buttons input[type="radio"] {
    display: none;
}

.hayc-re-toggle-btn {
    padding: 12px 28px;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    background: transparent;
    border: none;
    margin: 0;
    display: inline-block;
    text-align: center;
    min-width: 90px;
}

.hayc-re-search-toggle-buttons input[type="radio"]:checked + .hayc-re-toggle-btn {
    background: #495057;
    color: #ffffff;
    font-weight: 600;
}

.hayc-re-toggle-btn:hover {
    color: #495057;
}

/* Map Toggle */
.hayc-re-map-toggle input[type="checkbox"] {
    display: none;
}

.hayc-re-map-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.hayc-re-map-toggle input[type="checkbox"]:checked + .hayc-re-map-toggle-btn {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.hayc-re-map-toggle-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.hayc-re-map-toggle input[type="checkbox"]:checked + .hayc-re-map-toggle-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Row 2: Main Fields */

.hayc-re-search-field-main {
    flex: 1;
    min-width: 200px;
}

.hayc-re-search-button-container {
    flex: 0 0 auto;
    min-width: 140px;
}

/* Row 3: Filters */

.hayc-re-search-field-filter {
    flex: 1;
    min-width: 150px;
}

/* Form Elements */
.hayc-re-search-select,
.hayc-re-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.hayc-re-search-select:focus,
.hayc-re-search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.hayc-re-search-select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Buttons */
.hayc-re-more-filters-btn {
    width: 100%;
    padding: 14px 18px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.hayc-re-more-filters-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.hayc-re-search-submit-btn {
    width: 100%;
    padding: 14px 28px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.hayc-re-search-submit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Force full width overrides */
.hayc-re-property-search-form,
.hayc-re-property-search-form * {
    box-sizing: border-box !important;
}

.hayc-re-property-search-form {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
    clear: both !important;
}

.hayc-re-search-form-wrapper {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
    clear: both !important;
}

/* Override any theme or plugin constraints */
div.hayc-re-property-search-form {
    max-width: none !important;
    width: 100% !important;
}

div.hayc-re-search-form-wrapper {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hayc-re-search-form-wrapper {
        padding: 25px;
        max-width: 100% !important;
        min-width: 700px;
    }
    
    .hayc-re-search-row {
        gap: 15px;
    }
    
    .hayc-re-search-field-main,
    .hayc-re-search-field-filter {
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .hayc-re-property-search-form {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .hayc-re-search-form-wrapper {
        padding: 20px;
        min-width: auto !important;
        width: 100% !important;
    }
    
    .hayc-re-search-row-toggles {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .hayc-re-search-toggles-left,
    .hayc-re-search-toggles-right {
        justify-content: center;
    }
    
    .hayc-re-search-row-main,
    .hayc-re-search-row-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .hayc-re-search-field-main,
    .hayc-re-search-field-filter {
        min-width: auto;
        width: 100%;
    }
    
    .hayc-re-property-search-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hayc-re-search-form-wrapper {
        padding: 15px;
        margin: 0 -10px;
    }
    
    .hayc-re-toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 75px;
    }
    
    .hayc-re-map-toggle-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .hayc-re-search-select,
    .hayc-re-search-input,
    .hayc-re-more-filters-btn,
    .hayc-re-search-submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .hayc-re-property-search-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Advanced Search Modal */
.hayc-re-advanced-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.hayc-re-advanced-search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.hayc-re-advanced-search-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hayc-re-advanced-search-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.hayc-re-advanced-search-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.hayc-re-advanced-search-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hayc-re-advanced-search-modal-close:hover {
    opacity: 1;
}

.hayc-re-advanced-search-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.hayc-re-property-search-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.hayc-re-property-search-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.hayc-re-property-search-feature:hover {
    background-color: #f8f9fa;
}

.hayc-re-property-search-feature input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

.hayc-re-property-search-feature label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.hayc-re-advanced-search-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background: #f8f9fa;
}

.hayc-re-advanced-search-clear-filters,
.hayc-re-advanced-search-apply {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.hayc-re-advanced-search-clear-filters {
    background: #6c757d;
    color: #fff;
}

.hayc-re-advanced-search-clear-filters:hover {
    background: #5a6268;
}

.hayc-re-advanced-search-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.hayc-re-advanced-search-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Search Results */
.hayc-re-property-search-results {
    margin-top: 30px;
}

.hayc-re-property-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.hayc-re-property-search-results-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.hayc-re-property-search-results-count {
    color: #667eea;
    font-weight: 600;
}

.hayc-re-property-search-pagination {
    margin-top: 30px;
    text-align: center;
}

/* Single Property */
.hayc-re-property-single {
    margin-bottom: 40px;
}

.hayc-re-property-title-area {

}

.hayc-re-property-title-area .hayc-re-property-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.hayc-re-property-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hayc-re-property-address {
    font-size: 16px;
    color: #777;
}

.hayc-re-property-meta-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hayc-re-property-status-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 5px;
    justify-content: flex-end;
}

.hayc-re-property-meta-price .hayc-re-property-status {
    position: static;
    margin-right: 10px;
}

.hayc-re-property-transaction-type {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
}

.hayc-re-property-transaction-type i {
    margin-right: 5px;
}

.hayc-re-property-for-sale {
    background-color: #4CAF50;
    color: #fff;
}

.hayc-re-property-for-rent {
    background-color: #2196F3;
    color: #fff;
}

.hayc-re-property-meta-price .hayc-re-property-price {
    margin-bottom: 0;
    font-size: 22px;
}

.hayc-re-property-single-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.hayc-re-property-main {
    flex: 3;
    min-width: 300px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.hayc-re-property-sidebar {
    flex: 1;
    min-width: 450px;
    padding: 0 15px;
    margin-bottom: 30px;
    position: relative;
}

.hayc-re-property-sidebar-sticky {
    position: sticky;
    top: 30px;
}

/* Property Carousel */
.hayc-re-property-carousel-container {
    margin-bottom: 30px;
}

.hayc-re-property-carousel {
    position: relative;
    height: 400px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    overflow: hidden;
    border-radius: 5px;
}

.hayc-re-property-carousel-main {
    position: relative;
    height: 100%;
    width: 100%;
}

.hayc-re-property-carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.hayc-re-property-carousel-main img.active {
    opacity: 1;
    z-index: 1;
    display: block;
}

.hayc-re-property-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.hayc-re-property-carousel-arrow:hover {
    background-color: #fff;
    color: #4CAF50;
}

.hayc-re-property-carousel-prev {
    left: 15px;
}

.hayc-re-property-carousel-next {
    right: 15px;
}

.hayc-re-property-carousel-thumbs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.hayc-re-property-carousel-thumb {
    width: calc(20% - 10px);
    height: 80px;
    margin: 0 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hayc-re-property-carousel-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #4CAF50;
}

.hayc-re-property-carousel-thumb:hover {
    opacity: 1;
}

.hayc-re-property-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hayc-re-property-featured-image {
    margin-bottom: 30px;
}

.hayc-re-property-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Property Details */
.hayc-re-property-details {
    color: #666;
}

.hayc-re-property-meta-overview {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 30px;
}

.hayc-re-property-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: fit-content;
    padding: 0 10px;
    margin-bottom: 15px;
}

.hayc-re-property-meta-item i {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 5px;
}

.hayc-re-property-meta-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

.hayc-re-property-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.hayc-re-property-energy-class {
    padding: 3px 8px;
    border-radius: 3px;
    color: #fff;
}

.hayc-re-property-energy-class-a\+ {
    background-color: #4CAF50;
}

.hayc-re-property-energy-class-a {
    background-color: #8BC34A;
}

.hayc-re-property-energy-class-b\+ {
    background-color: #CDDC39;
}

.hayc-re-property-energy-class-b {
    background-color: #FFEB3B;
}

.hayc-re-property-energy-class-c {
    background-color: #FFC107;
}

.hayc-re-property-energy-class-d {
    background-color: #FF9800;
}

.hayc-re-property-energy-class-e {
    background-color: #FF5722;
}

.hayc-re-property-energy-class-f {
    background-color: #F44336;
}

.hayc-re-property-energy-class-g {
    background-color: #E91E63;
}

.hayc-re-property-description {
    margin-bottom: 30px;
}

.hayc-re-property-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.hayc-re-property-features-section {
    margin-bottom: 30px;
}

.hayc-re-property-features-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.hayc-re-property-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.hayc-re-property-features li {
    width: 50%;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.hayc-re-property-features li i {
    color: #4CAF50;
    margin-right: 10px;
}

.hayc-re-property-map-section {
    margin-bottom: 30px;
}

.hayc-re-property-map-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* Contact Form */
.hayc-re-property-contact-form {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.hayc-re-property-contact-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.hayc-re-property-contact-field {
    margin-bottom: 15px;
}

.hayc-re-property-contact-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.hayc-re-property-contact-field .hayc-re-required {
    color: #F44336;
}

.hayc-re-property-contact-field input,
.hayc-re-property-contact-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #555;
    box-sizing: border-box;
}

.hayc-re-property-contact-field input:focus,
.hayc-re-property-contact-field textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.hayc-re-property-contact-submit {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hayc-re-property-contact-submit:hover {
    background-color: #3d8b40;
}

.hayc-re-property-contact-messages {
    margin-top: 15px;
}

.hayc-re-property-contact-success,
.hayc-re-property-contact-error {
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hayc-re-property-contact-success {
    background-color: #E8F5E9;
    color: #4CAF50;
}

.hayc-re-property-contact-error {
    background-color: #FFEBEE;
    color: #F44336;
}

.hayc-re-property-contact-success i,
.hayc-re-property-contact-error i {
    margin-right: 5px;
}

.hayc-re-property-contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.hayc-re-property-contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.hayc-re-property-contact-info-item i {
    margin-right: 10px;
    color: #4CAF50;
    font-size: 16px;
    margin-top: 2px;
}

/* Property Share */
.hayc-re-property-share {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.hayc-re-property-share h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.hayc-re-property-share-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hayc-re-property-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hayc-re-property-content{
    display: flex;
    flex-direction: column;
}

.hayc-re-property-share-button:hover {
    opacity: 0.8;
    color: #fff;
}

.hayc-re-property-share-button.facebook {
    background-color: #3b5998;
}

.hayc-re-property-share-button.twitter {
    background-color: #1da1f2;
}

.hayc-re-property-share-button.email {
    background-color: #757575;
}

.hayc-re-property-share-button.whatsapp {
    background-color: #25d366;
}

/* Related Properties */
.hayc-re-property-related {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.hayc-re-property-related h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hayc-re-search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .hayc-re-search-field {
        min-width: auto;
    }
    
    .hayc-re-price-range,
    .hayc-re-area-range {
        flex-direction: column;
        gap: 8px;
    }
    
    .hayc-re-separator {
        display: none;
    }
    
    .hayc-re-property-columns-2 .hayc-re-property-card,
    .hayc-re-property-columns-3 .hayc-re-property-card,
    .hayc-re-property-columns-4 .hayc-re-property-card {
        width: calc(100% - 30px);
    }
    
    .hayc-re-advanced-search-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .hayc-re-property-search-features {
        grid-template-columns: 1fr;
    }
    
    .hayc-re-advanced-search-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hayc-re-search-container {
        padding: 15px;
    }
    
    .hayc-re-search-main-container {
        padding: 15px;
    }
    
    .hayc-re-status-buttons label {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .hayc-re-property-search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


@media (min-width: 992px) {
    .hayc-re-property-single {
        max-width: 1280px;
    }
}

@media (min-width: 1060px) {
    .hayc-re-property-content{
        flex-direction: row;
    }
}

/* Header Search Form Styles */
.hayc-re-header-search-container {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 65px 0 15px 0;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hayc-re-header-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hayc-re-header-search-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hayc-re-header-search-form form {
    flex: 1;
}

.hayc-re-header-map-toggle-container {
    flex: 0 0 auto;
}

.hayc-re-header-map-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.hayc-re-header-map-toggle-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.hayc-re-header-map-toggle-btn.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.hayc-re-header-map-toggle-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Property Details Page Styles */
.property-details-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.property-details-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.property-details-main {
    flex: 2;
    min-width: 0;
}

.property-details-sidebar {
    flex: 0 0 350px;
    position: relative;
}

/* Property Gallery Section */
.property-gallery-section {
    margin-bottom: 30px;
}

.property-gallery-container {
    display: flex;
    gap: 15px;
    height: 400px;
}

.property-main-image {
    flex: 2;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-main-image:hover img {
    transform: scale(1.02);
}

.property-thumbnails-grid {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-thumbnail {
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.property-thumbnail:hover {
    transform: scale(1.05);
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-thumbnail.more-images-btn {
    position: relative;
}

.more-images-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

.property-single-image {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.property-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Info Section */
.property-info-section {
    margin-bottom: 30px;
}

.re-hayc-property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.property-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.property-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.property-price {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.property-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.property-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.property-status-badge i {
    font-size: 12px;
}

.property-status-badge.property-for-sale {
    background-color: #27ae60;
    color: #ffffff;
    border-color: #27ae60;
}

.property-status-badge.property-for-rent {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

.property-status-badge.property-other-status {
    background-color: #95a5a6;
    color: #ffffff;
    border-color: #95a5a6;
}

.property-location {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 16px;
    gap: 8px;
    margin-top: -20px!important;
}

.property-location i {
    color: #95a5a6;
}

/* Property Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    padding-top: 20px;
}

.property-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 18px;
    color: #34495e;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 2px;
}

/* Property Features Section */
.property-features-section {
    margin-bottom: 30px;
}

.property-features-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.property-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.property-feature-item i {
    color: #27ae60;
    font-size: 14px;
}

.property-feature-item span {
    color: #2c3e50;
    font-weight: 500;
}

/* Property Description Section */
.property-description-section {
    margin-bottom: 30px;
}

.property-description-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.property-description {
    line-height: 1.7;
    color: #5a6c7d;
    font-size: 16px;
}

/* Property Map Section */
.property-map-section {
    margin-bottom: 30px;
}

.property-map-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.property-map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

/* Sidebar Styles */
.property-sidebar-sticky {
    position: sticky;
    top: 30px;
}

.property-share-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.property-share-section-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.property-share-section-title h3 {
    font-size: 18px;
    margin-top: 10px;
    text-align: center!important;
}

.property-contact-section {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ecf0f1;
}

.property-contact-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: start;
}

.property-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit-btn:hover {
    background: #2980b9;
}

/* Similar Properties Section */
.similar-properties-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ecf0f1;
}

.similar-properties-section h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.similar-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Image Gallery Modal */
.image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-main-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 400px;
}

.modal-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-nav:hover {
    background: white;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    background: #f8f9fa;
}

.modal-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.modal-thumb:hover,
.modal-thumb.active {
    opacity: 1;
    border-color: #3498db;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-details-container {
        flex-direction: column;
    }
    
    .property-details-sidebar {
        flex: none;
    }
    
    .property-sidebar-sticky {
        position: static;
    }
    
    .property-gallery-container {
        flex-direction: column;
        height: auto;
    }
    
    .property-main-image {
        height: 300px;
    }
    
    .property-thumbnails-grid {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 0;
    }
    
    .property-thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
    
    .property-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .property-details-page {
        padding: 15px;
    }
    
    .re-hayc-property-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-price-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .property-status-badges {
        justify-content: flex-start;
    }
    
    .property-title {
        font-size: 24px;
    }
    
    .property-price {
        font-size: 22px;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        height: 90vh;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .property-contact-section {
        padding: 20px;
    }
    
    .property-gallery-container {
        gap: 10px;
    }
    
    .property-main-image {
        height: 250px;
    }
    
    .similar-properties-grid {
        grid-template-columns: 1fr;
    }
}

/* Advanced Filters Modal */
.hayc-re-advanced-filters-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.hayc-re-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.hayc-re-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hayc-re-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
}

.hayc-re-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.hayc-re-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hayc-re-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.hayc-re-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.hayc-re-filters-grid {
    display: grid;
    gap: 25px;
}

.hayc-re-filter-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.hayc-re-filter-group h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.hayc-re-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hayc-re-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hayc-re-filter-field label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.hayc-re-advanced-select,
.hayc-re-advanced-input {
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.hayc-re-advanced-select:focus,
.hayc-re-advanced-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Features Grid */
.hayc-re-features-group {
    grid-column: 1 / -1;
}

.hayc-re-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.hayc-re-feature-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.hayc-re-feature-checkbox:hover {
    background: #f0f8ff;
    border-color: #007bff;
}

.hayc-re-feature-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hayc-re-feature-checkbox input:checked ~ .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hayc-re-feature-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.hayc-re-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background: #f8f9fa;
}

.hayc-re-btn-secondary,
.hayc-re-btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.hayc-re-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.hayc-re-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.hayc-re-btn-primary {
    background: #007bff;
    color: #ffffff;
}

.hayc-re-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .hayc-re-advanced-filters-modal {
        padding: 10px;
    }
    
    .hayc-re-modal-content {
        max-height: 95vh;
    }
    
    .hayc-re-modal-header {
        padding: 15px 20px;
    }
    
    .hayc-re-modal-header h3 {
        font-size: 18px;
    }
    
    .hayc-re-modal-body {
        padding: 20px;
    }
    
    .hayc-re-filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hayc-re-features-grid {
        grid-template-columns: 1fr;
    }
    
    .hayc-re-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .hayc-re-btn-secondary,
    .hayc-re-btn-primary {
        width: 100%;
    }
}

/* Status Toggle Buttons */
.hayc-re-header-status-toggles {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hayc-re-header-toggle-buttons {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
    border: 1px solid #e9ecef;
}

.hayc-re-header-toggle-buttons input[type="radio"] {
    display: none;
}

.hayc-re-header-toggle-btn {
    padding: 8px 20px;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    background: transparent;
    border: none;
    margin: 0;
    display: inline-block;
    text-align: center;
    min-width: 80px;
    text-decoration: none;
}

.hayc-re-header-toggle-buttons input[type="radio"]:checked + .hayc-re-header-toggle-btn {
    background: #495057;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hayc-re-header-toggle-btn:hover {
    color: #495057;
}

/* Header Search Form */
.hayc-re-header-search-form {
    width: 100%;
    margin: 0;
}

.hayc-re-header-search-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    /* background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

/* Header Search Fields */
.hayc-re-header-field {
    display: flex;
    align-items: center;
    position: relative;
}

.hayc-re-header-type-field {
    flex: 1;
    min-width: 130px;
}

.hayc-re-header-location-field {
    flex: 2.5;
    min-width: 200px;
    position: relative;
}

.hayc-re-header-price-field {
    flex: 1.2;
    min-width: 140px;
    position: relative;
}

.hayc-re-header-rooms-field {
    flex: 1;
    min-width: 100px;
}

.hayc-re-header-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    font-size: 14px;
    pointer-events: none;
}

.hayc-re-header-price-field .hayc-re-header-search-select {
    padding-left: 35px;
}

/* Price Range Picker */
.hayc-re-price-range-trigger {
    width: 100%;
    padding: 12px 25px 12px 35px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
    /* height: -webkit-fill-available; */
}

.hayc-re-price-range-trigger:hover {
    border-color: #007bff;
}

.hayc-re-price-range-trigger.active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-range-text {
    flex: 1;
}

.hayc-re-price-range-trigger i {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.hayc-re-price-range-trigger.active i {
    transform: rotate(180deg);
}

.hayc-re-price-range-inputs {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 10;
    margin-top: 2px;
}


/* 1) Make the header‐fields container a flex row and stretch all children */
.hayc-re-header-search-fields {
    display: flex;
    align-items: stretch;               /* if you want consistent gaps */
  }
  
  /* 2) Ensure each field wrapper stretches too */
  .hayc-re-header-field {
    display: flex;
    align-items: center;      /* center icon/text vertically */
  }
  
  /* 3) Force the button to fill its wrapper's full height */
  .hayc-re-header-more-filters-btn {
    height: 100%;
    padding: 0 1rem;          /* adjust left/right padding to match other controls */
    box-sizing: border-box;   /* include border/padding in height calculation */
    background: #fff;         /* match your inputs' background */
    border: 1px solid #ccc;   /* match your inputs' border */
    border-radius: 4px;       /* match your inputs' radius */
    cursor: pointer;
  }
  
  /* Safari-only fixes (not Chrome): Remove height 100% and webkit-fill-available */
  @supports (-webkit-hyphens:none) {
    .hayc-re-header-more-filters-btn {
      height: auto !important;
    }
    
    .hayc-re-header-search-btn {
      height: 44px !important;
      min-height: 44px !important;
      max-height: 44px !important;
    }
    
    /* Ensure all header search select fields have consistent height on Safari */
    .hayc-re-header-search-select {
      height: 49px !important;
      -webkit-appearance: none;
    }
    
    /* Remove default Safari styling for advanced select fields */
    .hayc-re-advanced-select {
      -webkit-appearance: none;
    }
  }
  


.price-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.hayc-re-price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.hayc-re-price-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.price-separator {
    color: #6c757d;
    font-weight: 500;
}

.price-range-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.price-range-clear,
.price-range-apply {
    padding: 6px 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-range-clear {
    background: #f8f9fa;
    color: #6c757d;
}

.price-range-clear:hover {
    background: #e9ecef;
}

.price-range-apply {
    background: #495057;
    color: #ffffff;
    border-color: #495057;
}

.price-range-apply:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.hayc-re-header-search-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.hayc-re-header-search-select:focus {
    background-color: #f8f9fa;
}

.hayc-re-header-filters-field {
    flex: 0 0 auto;
}

.hayc-re-header-more-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.hayc-re-header-more-filters-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.hayc-re-header-more-filters-btn.filters-applied {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    position: relative;
}

.hayc-re-header-more-filters-btn.filters-applied:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
}

.hayc-re-header-more-filters-btn .filter-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hayc-re-header-search-btn-field {
    flex: 0 0 auto;
}

.hayc-re-header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #007bff;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hayc-re-header-search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.hayc-re-header-map-field {
    flex: 0 0 auto;
}

.hayc-re-header-map-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.hayc-re-header-map-toggle-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

#header-property-search-form {
    width: -webkit-fill-available;
}  

/* Responsive Design for Header Search */
@media (max-width: 1024px) {
    .hayc-re-header-search-wrapper {
        padding: 0 15px;
    }
    
    .hayc-re-header-search-fields {
        gap: 8px;
    }
    
    .hayc-re-header-location-field {
        flex: 2;
        min-width: 180px;
    }
    
    .hayc-re-header-type-field {
        min-width: 120px;
    }
    
    .hayc-re-header-price-field {
        min-width: 130px;
    }
    
    .hayc-re-header-rooms-field {
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .hayc-re-header-search-wrapper {
        padding: 0 10px;
        gap: 10px;
    }
    
    .hayc-re-header-search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .hayc-re-header-search-fields {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .hayc-re-header-location-field {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .hayc-re-header-type-field,
    .hayc-re-header-price-field {
        flex: 1 1 calc(50% - 4px);
        min-width: auto;
    }
    
    .hayc-re-header-rooms-field {
        flex: 1 1 calc(33.333% - 6px);
        min-width: auto;
    }
    
    .hayc-re-header-filters-field {
        flex: 1 1 calc(33.333% - 6px);
    }
    
    .hayc-re-header-search-btn-field {
        flex: 1 1 calc(33.333% - 6px);
    }
    
    .hayc-re-header-more-filters-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .hayc-re-header-map-toggle-container {
        width: 100%;
    }
    
    .hayc-re-header-map-toggle-btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Price range picker responsive */
    .hayc-re-price-range-inputs {
        left: -5px;
        right: -5px;
    }
}

@media (max-width: 480px) {
    .hayc-re-header-search-container {
        padding: 10px 0;
    }

    .hayc-re-header-status-toggles {
        justify-content: center;
    }
    
    .hayc-re-header-search-wrapper {
        padding: 0 10px;
        margin-top: 80px;
    }
    
    .hayc-re-header-search-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .hayc-re-header-location-field,
    .hayc-re-header-type-field,
    .hayc-re-header-price-field,
    .hayc-re-header-rooms-field,
    .hayc-re-header-filters-field,
    .hayc-re-header-search-btn-field {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .hayc-re-header-search-btn {
        width: 100%;
        height: 44px;
        justify-content: center;
    }
}

/* Page Content Adjustments for Fixed Header Search */
.property-search-results-page,
.property-archive-page,
.property-taxonomy-page,
.property-single-page {
    padding-top: 40px; 
}

@media (max-width: 768px) {
    .property-search-results-page,
    .property-archive-page,
    .property-taxonomy-page,
    .property-single-page {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .property-search-results-page,
    .property-archive-page,
    .property-taxonomy-page,
    .property-single-page {
        padding-top: 80px; 
    }
}

/* Hide existing search forms in templates that now use the header search - KEEP SEARCH BAR VISIBLE */
.property-archive-page .dublin-style-search-container,
.property-taxonomy-page .dublin-style-search-container,
.property-single-page .dublin-style-search-container {
    display: none;
}

/* Ensure search bar on results page is visible and constrained */
.property-search-results-page .dublin-style-search-bar {
    display: block !important;
}

.property-search-results-page .dublin-style-search-bar .dublin-search-fields {
    height: 56px !important;
    max-height: 56px !important;
}

/* Ensure body has no margin/padding that could interfere */
body.has-header-search {
    margin-top: 0 !important;
    padding-top: 0 !important;
}