/**
 * Modern design styles for Greek Real Estate plugin
 * These styles override the base styles with a more contemporary look
 */

/* Ultra-Simple Property Gallery Styling */
.basic-property-gallery {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Main image container */
.main-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* Maintains 3:2 aspect ratio consistently */
    position: relative;
    background: #f0f0f0; /* Background color for empty areas */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation arrows - professional styling */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: bold;
    opacity: 0.9;
    text-align: center;
    /* Ensure arrow is centered properly */
    line-height: 0;
    padding: 0;
}

.image-nav:hover {
    background: rgb(0, 0, 0);
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.prev-image {
    left: 15px;
}

.next-image {
    right: 15px;
}

.main-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes all images cover the container area evenly */
    object-position: center; /* Centers the image in the container */
    display: block;
    transition: transform 0.3s ease; /* Smooth transition for any image changes */
}

/* Thumbnails styling */
.property-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f8f8;
}

.property-thumb {
    width: calc(20% - 8px);
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.property-thumb:hover {
    border-color: #4CAF50;
}

.property-thumb.active {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.property-thumb img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-thumb {
        width: calc(25% - 8px);
    }
}

@media (max-width: 480px) {
    .property-thumb {
        width: calc(33.33% - 8px);
    }
}

/* Global spacing for better readability */
.greek-real-estate-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.property-archive,
.property-single,
.property-search-form,
.property-related,
.property-search-results {
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.property-archive .properties-grid {
    margin-top: 30px;
}

/* Single property page specific spacing */
.property-single-header {
    padding: 0 20px;
}

/* Content padding improvements */
.property-single-content {
    padding: 0 20px;
}


/* Improved responsive margins */
@media (max-width: 768px) {
    .greek-real-estate-container {
        padding: 0 25px;
    }

    .property-archive,
    .property-single,
    .property-search-form,
    .property-related,
    .property-search-results {
        padding: 30px 20px;
    }
}

/* Modern Property Card */
.property-card {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: none;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.property-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.property-thumbnail img {
    transition: transform 0.6s ease;
}

.property-card:hover .property-thumbnail img {
    transform: scale(1.08);
}

.property-status {
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.property-status-sale {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.property-status-rent {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.property-status-sold {
    background: linear-gradient(135deg, #F44336, #C62828);
}

.property-status-rented {
    background: linear-gradient(135deg, #FF9800, #EF6C00);
}

.property-transaction-type {
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

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

.property-for-sale {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.property-for-rent {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.property-card-content {
    padding: 24px;
}

.property-price {
    color: #1a73e8;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.property-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
    color: #212121;
}

.property-location {
    color: #616161;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.property-location i {
    color: #757575;
    margin-right: 8px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.property-meta > div {
    margin-right: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: #616161;
}

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

.property-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #616161;
    margin-bottom: 20px;
}

.property-view-button {
    display: inline-block;
    padding: 10px 20px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.property-view-button:hover {
    background: #1557b0;
    color: #fff;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

/* Single Property Page */
.property-single {
    margin-bottom: 60px;
}

.property-title-area .property-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #212121;
    line-height: 1.3;
}

.property-address {
    font-size: 16px;
    display: flex;
    align-items: center;
}

.property-address i {
    color: #1a73e8;
    margin-right: 8px;
}

.property-status-badges {
    margin-bottom: 10px;
}

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

.property-carousel {
    position: relative;
    height: 450px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.property-carousel-main img {
    transition: opacity 0.6s ease;
}

.property-carousel-arrow {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.property-carousel-arrow:hover {
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.property-carousel-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -5px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #bdbdbd #f5f5f5;
}

.property-carousel-thumbs::-webkit-scrollbar {
    height: 6px;
}

.property-carousel-thumbs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.property-carousel-thumbs::-webkit-scrollbar-thumb {
    background-color: #bdbdbd;
    border-radius: 10px;
}

.property-carousel-thumb {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    margin: 0 5px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.property-carousel-thumb.active {
    opacity: 1;
    border-color: #1a73e8;
    box-shadow: 0 3px 6px rgba(26, 115, 232, 0.3);
}

/* Property Details */
.property-meta-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.property-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.property-meta-item i {
    font-size: 28px;
    color: #1a73e8;
    margin-bottom: 10px;
}

.property-meta-title {
    font-size: 12px;
    color: #757575;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-meta-value {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
}

.property-energy-class {
    padding: 4px 10px;
    border-radius: 50px;
}

.property-description h3,
.property-features-section h3,
.property-map-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212121;
    position: relative;
    padding-bottom: 12px;
    margin-top: 60px;
}

.property-description h3:after,
.property-features-section h3:after,
.property-map-section h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #1a73e8;
    border-radius: 3px;
}

.property-description {
    margin-bottom: 40px;
    line-height: 1.7;
    color: #424242;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #424242;
}

.property-features li i {
    color: #1a73e8;
    margin-right: 12px;
    font-size: 16px;
}

.property-map-section {
    margin-bottom: 40px;
}

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

.property-contact-form {
    background-color: #fff;
    /* border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px; */
}

.property-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background-color: #fff;
}

.property-contact-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 24px;
    color: #212121;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.property-contact-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1a73e8;
    border-radius: 3px;
}

.property-contact-field {
    margin-bottom: 20px;
}

.property-contact-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #424242;
}

.property-contact-field input,
.property-contact-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #424242;
    transition: all 0.3s ease;
}

.property-contact-field input:focus,
.property-contact-field textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.property-contact-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.property-contact-submit:hover {
    background: #1557b0;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.property-share {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
}

.property-share h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: #212121;
    font-weight: 600;
    text-align: center;
}

.property-share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.property-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 8px 8px;
    color: #e1e1e1;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.property-share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.property-share-button.facebook {
    background: linear-gradient(135deg, #3b5998, #1e2e4f);
}

.property-share-button.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8ecf);
}

.property-share-button.email {
    background: linear-gradient(135deg, #757575, #424242);
}

.property-share-button.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

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

.property-related h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #212121;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.property-related h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #1a73e8;
    border-radius: 3px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .property-single-content {
        flex-direction: column;
    }

    .property-main {
        order: 2;
    }

    .property-sidebar {
        order: 1;
        margin-bottom: 30px;
    }

    .property-carousel, 
    .property-gallery-main {
        height: 350px;
    }

    .property-meta-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-sidebar-sticky {
        position: static !important;
        top: auto !important;
        width: auto !important;
    }

    .property-status-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .property-transaction-type {
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .property-title-area .property-title {
        font-size: 26px;
    }

    .property-carousel {
        height: 300px;
    }

    .property-carousel-thumb {
        width: 80px;
        height: 60px;
    }

    .property-carousel-arrow {
        width: 40px;
        height: 40px;
    }

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

    .property-meta-item i {
        font-size: 24px;
    }

    .property-meta-value {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .property-meta-overview {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    .property-carousel {
        height: 250px;
    }

    .property-contact-form {
        padding: 20px;
    }
}

/* Side-by-Side Gallery Layout */
.gallery-side-layout {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    align-items: stretch;
}

.gallery-side-layout .main-image-container {
    flex: 0 0 75%;
    width: 75%;
    height: 0;
    padding-bottom: 50%; /* 3:2 aspect ratio for side layout */
}

/* Vertical thumbnails sidebar */
.property-thumbnails-sidebar {
    flex: 0 0 25%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.property-thumbnails-sidebar .property-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 0 0 calc(50% - 3px);
    width: calc(50% - 3px);
    aspect-ratio: 1;
    position: relative;
}

.property-thumbnails-sidebar .property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.property-thumbnails-sidebar .property-thumb:hover {
    border-color: #4CAF50;
    transform: scale(1.05);
}

.property-thumbnails-sidebar .property-thumb.active {
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Custom scrollbar for thumbnails */
.property-thumbnails-sidebar::-webkit-scrollbar {
    width: 6px;
}

.property-thumbnails-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.property-thumbnails-sidebar::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.property-thumbnails-sidebar::-webkit-scrollbar-thumb:hover {
    background: #3d8b40;
}

/* Mobile layout - stack vertically */
@media (max-width: 768px) {
    .gallery-side-layout {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-side-layout .main-image-container {
        flex: none;
        width: 100%;
        padding-bottom: 66.67%; /* Back to 3:2 aspect ratio for mobile */
    }

    .property-thumbnails-sidebar {
        flex: none;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .property-thumbnails-sidebar .property-thumb {
        flex: 0 0 80px;
        min-width: 80px;
        height: 80px;
        aspect-ratio: 1;
    }

    /* Horizontal scrollbar for mobile thumbnails */
    .property-thumbnails-sidebar::-webkit-scrollbar {
        height: 6px;
        width: auto;
    }
}

/* Compact Property Search Form - 820px width */
.property-search-compact {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.search-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Status Toggle Row */
.status-toggle-row {
    margin-bottom: 15px;
    text-align: left;
}

.status-buttons {
    display: inline-flex;
    gap: 10px;
}

.status-buttons input[type="radio"] {
    display: none;
}

.status-buttons label {
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.status-buttons input[type="radio"]:checked + label {
    background: #000000;
    color: #ffffff;
    border-color: #fff;
}

/* Main Search Container */
.search-main-container {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Search Rows */
.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

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

/* Search Fields */
.search-field {
    flex: 1;
}

.search-field-type {
    flex: 1;
}

.search-field-location {
    flex: 2;
}

.search-field-price,
.search-field-area {
    flex: 1;
}

.search-field select,
.search-field input[type="number"],
.search-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
}

.search-field select:focus,
.search-field input[type="number"]:focus,
.search-field input[type="text"]:focus {
    outline: none;
    border-color: #ff7a00;
}

.search-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    height: 49px;
}

/* Price and Area Range Fields */
.price-range,
.area-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input,
.area-range input {
    flex: 1;
    min-width: 0;
}

.separator {
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
}

/* Location Autocomplete */
.location-autocomplete-container {
    position: relative;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.location-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.location-suggestion:hover {
    background-color: #f9fafb;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.selected-locations-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.selected-location-tag {
    background: #ff7a00;
    color: #fff;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-location {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.remove-location:hover {
    opacity: 0.7;
}

/* Search Button */
.search-button-container {
    flex: 0 0 auto;
}

.search-button {
    background: #ff7a00;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 48px;
}

.search-button:hover {
    background: #e66a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Additional filters row */
.property-search-filters-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.property-search-filter-button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.property-search-filter-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 820px) {
    .search-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

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

    .search-field {
        flex: none;
        width: 100%;
    }

    .search-field-type,
    .search-field-location,
    .search-field-price,
    .search-field-area {
        flex: none;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }

    .status-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .search-main-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .status-buttons label {
        padding: 8px 16px;
        font-size: 13px;
    }

    .price-range,
    .area-range {
        flex-direction: column;
        gap: 8px;
    }

    .separator {
        display: none;
    }

    .search-main-container {
        border-radius: 10px;
        padding: 12px;
    }
}

/* Compact Property Cards Override */
.property-card {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 15px 20px !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    position: relative !important;
    width: 240px !important;
    max-width: 240px !important;
    min-width: 240px !important;
}

.property-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

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

.property-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 160px !important;
}

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

.property-card:hover .property-card-image img {
    transform: scale(1.05) !important;
}

.property-no-image {
    width: 100% !important;
    height: 100% !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ccc !important;
    flex-direction: column-reverse;
    gap: 10px;
}

.property-no-image i {
    font-size: 32px !important;
}

.property-status {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 4px 8px !important;
    color: #fff !important;
    z-index: 2 !important;
}

.property-card-info {
    padding: 16px !important;
}

.property-card-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-commission {
    background-color: #ff7a00 !important;
    border-radius: 20px !important;
    padding: 4px 8px !important;
}

.property-price {
    color: black !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

.property-location {
    font-size: 18px !important;
    color: #AEB0B4 !important;
}

.fa-map-marker-alt:before {
    color: black !important;
}

.property-location i {
    margin-right: 4px !important;
    color: #999 !important;
}

/* Responsive adjustments for compact cards */
@media (max-width: 768px) {
    .property-columns-2 .property-card,
    .property-columns-3 .property-card,
    .property-columns-4 .property-card {
        width: 240px !important;
        max-width: 240px !important;
        min-width: 240px !important;
    }
}

@media (max-width: 480px) {
    .property-columns-2 .property-card,
    .property-columns-3 .property-card,
    .property-columns-4 .property-card {
        width: 240px !important;
        max-width: 240px !important;
        min-width: 240px !important;
    }
}

/* Dublin-style search form - OLD STYLES REMOVED - See Enhanced version below at line 1637 */

/* Results Content */
.search-results-content {
    margin-top: 30px;
}

.results-count-bar {
    margin-bottom: 20px;
    padding: 0;
}

.results-count-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Properties Grid for Results */
.properties-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Search Results Page Styling */
.property-search-results-page {
    min-height: 70vh;
    padding: 20px 0 40px;
    background: #f8f9fa;
}

.property-search-results-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.no-results-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px 0;
}

.no-results p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* Override page title positioning */
.property-search-results-page .page-header {
    display: none;
}

.property-search-results-page #primary {
    width: 100%;
}

.property-search-results-page #main {
    width: 100%;
}

/* Responsive adjustments for search results */
@media (max-width: 768px) {
    .property-search-results-page {
        padding: 20px 0;
    }

    .property-search-results-page .container {
        padding: 0 15px;
    }

    .search-results-header {
        padding: 20px;
        margin-bottom: 30px;
    }

    .search-results-title {
        font-size: 24px;
    }

    .search-criteria {
        font-size: 14px;
        padding: 12px;
    }

    .no-results {
        padding: 40px 20px;
    }

    .no-results-icon {
        font-size: 36px;
    }

    .no-results h3 {
        font-size: 20px;
    }

    .no-results p {
        font-size: 14px;
    }
}

/* Search Success Message */
.search-results-success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-results-success-message .success-icon {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 10px;
}

.search-results-success-message h3 {
    margin: 10px 0;
    color: #155724;
    font-size: 24px;
}

.search-results-success-message p {
    margin: 5px 0 0 0;
    font-size: 16px;
}

/* Search Error Messages */
.search-success-message,
.search-error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Dublin-style Horizontal Search Form */
.dublin-style-search-container,
.dublin-style-search-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dublin-style-search-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.dublin-search-form {
    margin: 0;
}

.dublin-search-fields {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
}

.dublin-search-fields:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}

.dublin-field {
    flex: 1;
    position: relative;
    background: #ffffff;
    border-right: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    display: flex;
    align-items: center;
}

.dublin-field:last-child {
    border-right: none;
}

.dublin-field:hover {
    background: #f8f9fa;
}

.dublin-field.location-field {
    flex: 2.5;
    position: relative;
}

.dublin-field.search-field {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    border-radius: 0 12px 12px 0;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden;
}

.dublin-field.search-field:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
}

/* Search Icon */
.search-icon {
    position: absolute;
    left: 16px;
    color: #6b7280;
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.dublin-field:focus-within .search-icon {
    color: #1a73e8;
}

/* Location Input */
.location-input {
    border: none;
    outline: none;
    padding: 0 16px 0 48px;
    font-size: 15px;
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    background: transparent;
    color: #374151;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: normal;
}

.location-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.location-input:focus {
    color: #1a73e8;
}

/* Add Locations Text */
.add-locations {
    position: absolute;
    right: 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dublin-field:focus-within .add-locations {
    opacity: 0.3;
}

/* Select Fields */
.dublin-select {
    border: none;
    outline: none;
    padding: 0 40px 0 16px;
    font-size: 15px;
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: normal;
}

.dublin-select:focus {
    color: #1a73e8;
    background-color: #f8f9fa;
}

.dublin-select.has-selection {
    color: #1a73e8;
    font-weight: 600;
}

/* Dropdown Arrow */
.dropdown-arrow {
    position: absolute;
    right: 16px;
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dublin-field:focus-within .dropdown-arrow {
    color: #1a73e8;
    transform: rotate(180deg);
}

/* Search Button */
.dublin-search-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: normal;
}

.dublin-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.dublin-search-btn:active {
    transform: translateY(0);
}

.dublin-search-btn i {
    font-size: 14px;
}

/* Safari-only fixes for Dublin search form (not Chrome) */
@supports (-webkit-hyphens:none) {
    .dublin-select {
        -webkit-appearance: none;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        line-height: normal;
    }
    
    .dublin-search-btn {
        -webkit-appearance: none;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        line-height: normal;
    }
    
    .location-input {
        -webkit-appearance: none;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        line-height: normal;
    }
    
    .dublin-field {
        -webkit-box-align: center;
        -webkit-align-items: center;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }
    
    .dublin-field.search-field {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }
    
    .dublin-search-fields {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }
}

/* Location Suggestions */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-top: 2px;
}

.location-suggestion {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-weight: 500;
}

.location-suggestion:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.location-suggestion i {
    color: #1a73e8;
    font-size: 14px;
    opacity: 0.8;
}

.location-suggestion:hover i {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dublin-search-fields {
        flex-wrap: wrap;
        gap: 8px;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .dublin-field {
        border: 2px solid #e9ecef;
        border-radius: 12px;
        min-width: 200px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .dublin-field.location-field {
        flex: 1 1 100%;
    }

    .dublin-field.search-field {
        border-radius: 12px;
        background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    }
}

@media (max-width: 768px) {
    .dublin-style-search-container {
        padding: 16px;
        border-radius: 12px;
    }

    .dublin-search-fields {
        flex-direction: column;
        gap: 12px;
    }

    .dublin-field {
        width: 100%;
        min-width: auto;
        border-radius: 12px !important;
    }

    .dublin-field.search-field {
        order: -1;
    }
}

@media (max-width: 480px) {
    .dublin-style-search-container {
        padding: 12px;
    }

    .dublin-field {
        min-height: 48px;
    }

    .location-input,
    .dublin-select {
        font-size: 14px;
    }

    .dublin-search-btn {
        font-size: 14px;
        padding: 0 16px;
    }
}

/* Custom Scrollbar for Suggestions */
.location-suggestions::-webkit-scrollbar {
    width: 6px;
}

.location-suggestions::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.location-suggestions::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.location-suggestions::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Additional Search Results Page Styling */
.property-search-results-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-results-header {
    text-align: center;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.search-results-count {
    font-size: 16px;
    font-weight: 600;
    color: #ff7a00;
    margin-bottom: 10px;
    text-align: center;
}

.search-criteria {
    color: #666;
    font-size: 14px;
    margin: 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
    display: inline-block;
}

/* 3-Column Search Results Layout */
.search-results-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.property-search-result-item {
    width: 100%;
}

.property-search-result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-search-result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.property-search-result-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.property-search-result-card:hover .property-search-result-image img {
    transform: scale(1.05);
}

.property-no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.property-no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.property-result-status-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.property-result-status {
    background: rgba(255, 122, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
    display: inline-block;
}

.property-search-result-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-result-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.property-result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-result-title a:hover {
    color: #ff7a00;
}

.property-result-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.property-result-location i {
    margin-right: 8px;
    color: #ff7a00;
}

.property-result-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff7a00;
    margin-bottom: 16px;
}

.property-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.property-result-meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.property-result-meta-item i {
    margin-right: 6px;
    color: #ff7a00;
    font-size: 16px;
}

.property-result-view-btn {
    background: #ff7a00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-block;
}

.property-result-view-btn:hover {
    background: #e66a00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.search-results-count {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    border-left: 4px solid #ff7a00;
}

.search-results-pagination {
    margin-top: 40px;
    text-align: center;
}

.search-results-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-results-pagination .page-numbers:hover,
.search-results-pagination .page-numbers.current {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #fff;
}

/* Responsive adjustments for search results */
@media (max-width: 992px) {
    .search-results-three-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .search-results-three-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-search-result-image {
        height: 200px;
    }

    .property-search-result-content {
        padding: 20px;
    }

    .property-result-title {
        font-size: 16px;
    }

    .property-result-price {
        font-size: 20px;
    }
}