/**
 * Properties Styles
 * 
 * @package Pro Estate Agents
 */

/* Properties Grid Widget */
.properties-grid-widget {
    margin: 0;
    padding: 0;
}

/* Filter Section - Clean Design */
.properties-filter {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Ensure Elementor widget filter matches archive page exactly */
.properties-grid-widget .properties-filter {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Ensure Elementor widget filter buttons match archive page exactly */
.properties-grid-widget .filter-submit {
    background: #791093;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(121, 16, 147, 0.2);
}

.properties-grid-widget .filter-submit:hover {
    background: #6a0f7d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 16, 147, 0.3);
}

.properties-grid-widget .filter-submit i {
    font-size: 12px;
}

.properties-grid-widget .filter-reset {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.properties-grid-widget .filter-reset:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    text-decoration: none;
    transform: translateY(-2px);
}

.properties-grid-widget .filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ensure Elementor widget filter form elements match archive page exactly */
.properties-grid-widget .filter-form {
    margin: 0;
}

.properties-grid-widget .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.properties-grid-widget .filter-group {
    position: relative;
}

.properties-grid-widget .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.properties-grid-widget .filter-group input,
.properties-grid-widget .filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #495057;
}

.properties-grid-widget .filter-group input:focus,
.properties-grid-widget .filter-group select:focus {
    outline: none;
    border-color: #791093;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(121, 16, 147, 0.1);
    transform: translateY(-2px);
}

.properties-grid-widget .filter-group input::placeholder {
    color: #6c757d;
}

.properties-grid-widget .searchable-select {
    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 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.archive-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.archive-description {
    margin-top: 20px;
}

.archive-description p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
}

.active-filters {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 15px;
    display: inline-block;
}

.active-filters strong {
    color: #495057;
    margin-right: 10px;
}

.filter-tags {
    color: #791093;
    font-weight: 500;
}

.filter-form {
    margin: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #495057;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #791093;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(121, 16, 147, 0.1);
    transform: translateY(-2px);
}

.filter-group input::placeholder {
    color: #6c757d;
}

/* Searchable Select Styling */
.searchable-select {
    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 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-submit {
    background: #791093;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(121, 16, 147, 0.2);
}

.filter-submit:hover {
    background: #6a0f7d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 16, 147, 0.3);
}

.filter-submit i {
    font-size: 12px;
}

.filter-reset {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Ensure Elementor widget grid matches archive page exactly */
.properties-grid-widget .properties-grid {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.properties-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.properties-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.properties-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.properties-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Property Card */
.property-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform: translateY(0);
}

/* Ensure Elementor widget property cards match archive page exactly */
.properties-grid-widget .property-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform: translateY(0);
}

.property-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.property-card:hover::before {
    opacity: 1;
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-image::after {
    opacity: 1;
}

.property-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.property-card:hover .property-price {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.property-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

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

.property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(45deg, #791093, #6a0f7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-title a:hover {
    background: linear-gradient(45deg, #6a0f7d, #791093);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-categories {
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
}

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

.property-features {
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.property-link {
    display: inline-block;
    background: linear-gradient(45deg, #791093, #6a0f7d);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(121, 16, 147, 0.3);
    position: relative;
    overflow: hidden;
}

.property-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6a0f7d, #791093);
    transition: left 0.3s ease;
    z-index: -1;
}

.property-link:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 16, 147, 0.4);
}

.property-link:hover::before {
    left: 0;
}

/* Property Footer Layout */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    gap: 15px;
}

.property-price-inline {
    font-size: 16px;
    font-weight: 700;
    color: #791093;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.property-footer .property-link {
    margin: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Pagination */
.properties-pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.pagination-list li {
    margin: 0;
}

.pagination-list a,
.pagination-list span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination-list a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.pagination-list .current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* No Properties Message */
.no-properties {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

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

.property-header {
    margin-bottom: 30px;
}

.property-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.property-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.property-meta-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(121, 16, 147, 0.15);
    border-color: #791093;
}

.property-meta-item svg {
    margin-right: 6px;
    color: #791093;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.property-meta-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.property-meta-item a:hover {
    color: #791093;
}

/* Location hierarchy styling */
.location-separator {
    color: #6c757d;
    font-weight: 400;
    margin: 0 4px;
    opacity: 0.7;
}

.property-meta-item .location-hierarchy {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.property-meta-item .location-hierarchy a {
    transition: color 0.3s ease;
}

.property-meta-item .location-hierarchy a:first-child {
    color: #495057;
    font-weight: 500;
}

.property-meta-item .location-hierarchy a:last-child {
    color: #791093;
    font-weight: 600;
}

/* Responsive location hierarchy */
@media (max-width: 768px) {
    .property-meta-item .location-hierarchy {
        gap: 2px;
    }
    
    .location-separator {
        margin: 0 2px;
        font-size: 12px;
    }
    
    .property-meta-item .location-hierarchy a {
        font-size: 13px;
    }
}

/* Hierarchical dropdown styling */
select option[value*="—"] {
    color: #6c757d;
    font-style: italic;
    padding-left: 20px;
}

/* Custom select styling for better hierarchy display */
.searchable-select option {
    padding: 8px 12px;
}

.searchable-select option[value*="—"] {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 400;
    padding-left: 24px;
    border-left: 2px solid #dee2e6;
}

.searchable-select option:not([value*="—"]) {
    background-color: #ffffff;
    color: #212529;
    font-weight: 600;
    border-left: 2px solid transparent;
}

/* Hover effects for dropdown options */
.searchable-select option:hover {
    background-color: #e9ecef;
}

.searchable-select option[value*="—"]:hover {
    background-color: #e9ecef;
    color: #495057;
}

@media (max-width: 480px) {
    .property-meta-item .location-hierarchy {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }
    
    .location-separator {
        display: none;
    }
    
    .property-meta-item .location-hierarchy a:first-child {
        font-size: 12px;
        opacity: 0.8;
    }
    
    .property-meta-item .location-hierarchy a:last-child {
        font-size: 14px;
        font-weight: 600;
    }
}

.property-gallery {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #f1f3f4;
}

.property-gallery-main {
    margin-bottom: 20px;
    position: relative;
}

.property-gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Gallery Image Click Indicator */
.property-gallery-main::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.property-gallery-main:hover::after {
    opacity: 1;
}

/* Enhanced gallery image interactions */
.property-gallery-main img {
    transition: all 0.3s ease;
}

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

/* Loading state for images */
.property-gallery-main img.loading {
    opacity: 0.6;
    filter: blur(1px);
}

.property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.property-gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-gallery-thumbs img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Lightbox/Popup Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #791093;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

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

/* Smooth transitions for lightbox */
.lightbox-overlay,
.lightbox-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects for navigation buttons */
.lightbox-nav:hover,
.lightbox-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Focus states for accessibility */
.lightbox-nav:focus,
.lightbox-close:focus {
    outline: 2px solid #791093;
    outline-offset: 2px;
}

/* Social Sharing Styles */
.property-sharing {
    padding: 20px 0;
}

.property-sharing h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 40px;
    position: relative;
    overflow: hidden;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
    z-index: 1;
}

.share-btn:hover::before {
    left: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.share-btn span {
    z-index: 2;
    position: relative;
    white-space: nowrap;
}

/* Social Platform Colors */
.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #0d6efd;
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #128c7e;
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0c85d0;
}

.share-email {
    background: #ea4335;
}

.share-email:hover {
    background: #d33f2f;
}

.share-copy {
    background: #791093;
}

.share-copy:hover {
    background: #6a0f7d;
}

/* Copy button states */
.share-copy.copied {
    background: #28a745;
    animation: pulse 0.6s ease;
}

.share-copy.error {
    background: #dc3545;
    animation: shake 0.6s ease;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design for Sharing */
@media (max-width: 768px) {
    .sharing-buttons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-btn {
        padding: 10px 16px;
        min-height: 36px;
        font-size: 12px;
    }
    
    .share-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .sharing-buttons {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        padding: 10px 20px;
        min-height: 40px;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .property-sharing h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

.property-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.property-content-sections {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    order: 1;
}

.property-sidebar {
    order: 2;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Property layout container */
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.property-main-content {
    order: 1;
}

.property-sidebar {
    order: 2;
}

.content-section {
    background: #fff;
    padding: 40px 30px;
    border-bottom: 1px solid #f1f3f4;
    width: 100%;
}

/* First content section (gallery) should have top padding */
.content-section:first-child {
    padding-top: 40px;
}

/* Gallery section specific styling */
.content-section:has(.property-gallery) {
    padding-bottom: 30px;
}

/* Alternative approach for browsers that don't support :has() */
.content-section .property-gallery {
    margin-bottom: 0;
}

/* Gallery within content section styling */
.content-section .property-gallery {
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 0 -30px 0 -30px;
    border: 1px solid #e9ecef;
    border-left: none;
    border-right: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.content-section .property-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #791093, #6a0f7d);
    border-radius: 12px 12px 0 0;
}

.content-section .property-gallery-main {
    margin-bottom: 25px;
}

.content-section .property-gallery-thumbs {
    gap: 12px;
}

/* Gallery section title */
.content-section .property-gallery::after {
    content: '📸 Property Gallery';
    position: absolute;
    top: 15px;
    right: 30px;
    background: rgba(121, 16, 147, 0.1);
    color: #791093;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(121, 16, 147, 0.2);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.property-content-main h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.property-description {
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

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

.property-features-section h2 {
    width: 100%;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.property-features-list {
    width: 100%;
}

.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;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.property-feature-item svg {
    color: #fff;
    background: #28a745;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
}

/* Property Amenities Styles */
.property-amenities-section {
    margin-bottom: 40px;
}

.property-amenities-section h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #791093;
}

.property-amenities-list {
    width: 100%;
}

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

.property-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.property-amenity-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-amenity-item svg {
    color: #fff;
    background: #791093;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
}

.amenity-name {
    font-weight: 500;
    color: #333;
}

/* Property Amenities Widget Styles */
.property-amenities-widget {
    margin: 15px 0;
}

.amenities-list-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amenity-tag {
    background: #791093;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amenity-more {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    height: fit-content;
}

.property-price-large {
    background: #791093;
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(121, 16, 147, 0.2);
    position: relative;
    overflow: hidden;
}

.property-price-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-price-large:hover::before {
    opacity: 1;
}

.price-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
}

.property-contact {
    margin-bottom: 30px;
}

.property-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.contact-item svg {
    color: #007cba;
    width: 20px;
    flex-shrink: 0;
}

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

.property-map h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.property-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.property-video {
    margin-bottom: 30px;
}

.property-video h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.property-video iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* Loading Animation */
.properties-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.properties-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #791093;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Results Styling */
.no-properties {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: 40px 0;
}

.no-properties::before {
    content: '🏠';
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.no-properties p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* Floating Contact Buttons */
.floating-contact-buttons {
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background: #25d366;
    color: #fff;
}

.call-btn {
    background: #007cba;
    color: #fff;
}

.email-btn {
    background: #ea4335;
    color: #fff;
}

.floating-btn::before {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .properties-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .property-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-content-sections {
        order: 2;
    }
    
    .property-sidebar {
        order: 1;
        position: relative;
        top: auto;
        display: block;
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .filter-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    /* Mobile Floating Buttons */
    .floating-contact-buttons {
        bottom: 75px;
        right: 15px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-btn::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .properties-grid[data-columns="3"],
    .properties-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Amenities responsive */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .property-amenity-item {
        padding: 8px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .properties-grid-widget .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .properties-grid-widget .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .property-header h1 {
        font-size: 24px;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-gallery-main img {
        height: 250px;
    }
    
    .property-content-main,
    .property-sidebar {
        padding: 20px;
    }
    
    /* Mobile Property Details Optimizations */
    .property-details {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        order: 1;
        position: relative;
        top: auto;
        display: block;
        flex: none;
        width: 100%;
        z-index: 10;
        background: #fff;
        border-radius: 8px;
        margin: 0 0 20px 0;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .property-content-sections {
        order: 2;
    }
    
    .property-contact {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        border: 2px solid #007cba;
    }
    
    .property-categories-sidebar {
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .property-contact h3 {
        color: #007cba;
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .contact-item {
        background: #fff;
        margin-bottom: 10px;
    }
    
    .property-price-large {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .content-section {
        padding: 20px 0;
    }
    
    .property-scrollspy-nav {
        display: none; /* Hide scrollspy on mobile */
    }
    
    .scrollspy-list {
        justify-content: center;
        gap: 10px;
    }
    
    .scrollspy-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Responsive Lightbox */
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .lightbox-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr !important;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 15px;
    }
    
    .property-title {
        font-size: 16px;
    }
    
    .property-price {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .property-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .pagination-list a,
    .pagination-list span {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Responsive Lightbox */
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .lightbox-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Property Details Layout */
.property-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Responsive styles for gallery within content sections */
@media (max-width: 768px) {
    .content-section .property-gallery {
        margin: 0 -20px 0 -20px;
        padding: 20px;
        border-radius: 0;
    }
    
    .content-section .property-gallery-main img {
        height: 300px;
    }
    
    .content-section .property-gallery-thumbs {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .content-section .property-gallery {
        margin: 0 -15px 0 -15px;
        padding: 15px;
    }
    
    /* Amenities mobile */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .property-amenity-item {
        padding: 6px;
    }
    
    .amenity-name {
        font-size: 14px;
    }
    
    .content-section .property-gallery-main img {
        height: 250px;
    }
    
    .content-section .property-gallery-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .content-section .property-gallery-thumbs img {
        height: 60px;
    }
}

.property-content-sections {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    order: 1;
}

.property-sidebar {
    order: 2;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    height: fit-content;
    position: sticky;
    top: 20px;
}
