/* Properties Tabs Styles - Modern Design Based on Example */
/* Save this as css/properties-tabs.css in your theme directory */

.properties-tabs-container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0;
    margin-top: 2rem;
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Tab Navigation - Modern Horizontal Design */
.properties-tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    justify-content: center;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: none;
    color: #54595f;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border-radius: 0;
    background-color: transparent !important;
}


.tab-button:hover {
    color: #fff;
    background-color: transparent;
}

.tab-button.active {
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    background-color: transparent;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffffff;
    z-index: 1;
}

.tab-count {
    background: rgb(100 116 139 / 25%);
    color: #54595f;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.tab-button.active .tab-count {color: #fff;}

/* Tab Content */
.properties-tabs-content {
    overflow: hidden;
}

.tab-content {
    display: none;
    padding: 32px;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Properties Grid - 4 Column Layout Like Example */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Property Card - Sleek Design */
.property-card {
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-3px);
}

/* Property Image - Large and Prominent */
.property-image {
    position: relative;
    height: 632px;
    overflow: hidden;
}

.property-card .property-image img {
	height: 100%;
}

.property-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-thumb {
    transform: scale(1.03);
}

.property-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
}

.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

/* Property Content - Clean and Minimal */
.property-content {
    padding: 20px;
}

.property-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
}

.property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.property-title a:hover {
    color: #3b82f6;
}

.property-excerpt {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Property Meta - Compact */
.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.property-meta span {
    color: #64748b;
    font-weight: 500;
}

.property-price {
    color: #059669 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Property Link - Subtle */
.property-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.property-link:hover {
    color: #1d4ed8;
}

.property-link::after {
    content: '→';
    margin-left: 4px;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.property-link:hover::after {
    transform: translateX(2px);
}

/* View All Button - Prominent */
.view-all-container {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #fff;
}

.view-all-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.view-all-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    padding-top: 3px;
}

.view-all-btn:hover svg {
    transform: translateX(2px);
}

/* No Properties */
.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-properties p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .properties-tabs-container {
        margin: 0 16px;
    }
    
    .properties-tabs-nav {
        border-radius: 8px 8px 0 0;
    }
    
    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .tab-button:first-child {
        border-radius: 8px 0 0 0;
    }
    
    .tab-button:last-child {
        border-radius: 0 8px 0 0;
    }
    
    .properties-tabs-content {
        border-radius: 0 0 8px 8px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .property-image {
        height: 160px;
    }
    
    .property-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .properties-tabs-nav {
        flex-direction: column;
        border-radius: 8px;
        margin-bottom: 16px;
    }
    
    .properties-tabs-content {
        border-radius: 8px;
    }
    
    .tab-button {
        border-radius: 0 !important;
        padding: 16px;
        justify-content: space-between;
    }
    
    .tab-button:first-child {
        border-radius: 8px 8px 0 0 !important;
    }
    
    .tab-button:last-child {
        border-radius: 0 0 8px 8px !important;
    }
    
    .tab-button.active::after {
        display: none;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-image {
        height: 180px;
    }
}


.property-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, #000000ba, transparent);
    color: #fff;
    padding: 16px 12px;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.property-image a {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
}
