/* all-properties.css */
/* ========================================
   PROPERTY STATUS FILTER BUTTONS
   ======================================== */

/* Status Filter Container */
.all-properties__status-filters {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Filter Label */
.all-properties__filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    margin: 0;
}

.all-properties__filter-label i {
    color: #6366f1;
    font-size: 1rem;
}

/* Status Buttons Group */
.all-properties__status-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Individual Status Button */
.all-properties__status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 100px;
    text-transform: capitalize;
}

/* Button Icon */
.all-properties__status-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

/* Hover State */
.all-properties__status-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.15);
}

.all-properties__status-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Active State */
.all-properties__status-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.all-properties__status-btn.active i {
    animation: bounce 0.6s ease;
}

/* Focus State (Accessibility) */
.all-properties__status-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Active Button Focus */
.all-properties__status-btn.active:focus {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35), 
                0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Button Press Effect */
.all-properties__status-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific Button Variants (Optional) */
.all-properties__status-btn[data-status="all"] i {
    color: inherit;
}

.all-properties__status-btn[data-status="new"]:hover {
    border-color: #10b981;
    color: #10b981;
}

.all-properties__status-btn[data-status="new"].active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.all-properties__status-btn[data-status="resale"]:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.all-properties__status-btn[data-status="resale"].active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
}

/* Animation Keyframes */
@keyframes bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Loading State (Optional) */
.all-properties__status-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.all-properties__status-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Disabled State (Optional) */
.all-properties__status-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .all-properties__status-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .all-properties__status-buttons {
        width: 100%;
        gap: 0.5rem;
    }
    
    .all-properties__status-btn {
        flex: 1;
        min-width: 90px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .all-properties__status-filters {
        padding: 1rem 0;
    }
    
    .all-properties__filter-label {
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .all-properties__status-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .all-properties__status-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .all-properties__status-btn i {
        font-size: 0.75rem;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .all-properties__status-buttons {
        grid-template-columns: 1fr;
    }
    
    .all-properties__status-btn {
        width: 100%;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .all-properties__status-filters {
        border-top-color: #374151;
    }
    
    .all-properties__filter-label {
        color: #e5e7eb;
    }
    
    .all-properties__status-btn {
        background: #1f2937;
        border-color: #374151;
        color: #9ca3af;
    }
    
    .all-properties__status-btn:hover {
        background: #374151;
        border-color: #6366f1;
        color: #a5b4fc;
    }
    
    .all-properties__status-btn.active {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: #ffffff;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .all-properties__status-filters {
        display: none;
    }
}

/* Property Status Badge on Cards */
.property-card__status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.property-card__status--new {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

.property-card__status--resale {
    background: rgba(251, 146, 60, 0.9);
    color: #ffffff;
}

.property-card__status i {
    font-size: 0.7rem;
}

/* ========================
   ALL PROPERTIES BASE
   ======================== */
.all-properties {
    background: #f8f9fa;
    min-height: 100vh;
}

.all-properties__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   PAGE HEADER
   ======================== */
.all-properties__header {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a2a35 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--color-white);
}

.all-properties__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
}

.all-properties__subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.8);
}

/* ========================
   FILTER SECTION
   ======================== */
.all-properties__filter-section {
    background: var(--color-white);
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.all-properties__filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ========================
   SEARCH BOX
   ======================== */
.all-properties__search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.all-properties__search-box i {
    position: absolute;
    left: 20px;
    color: #999;
    font-size: 18px;
}

.all-properties__search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.all-properties__search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(228, 195, 32, 0.1);
}

/* ========================
   CATEGORY FILTERS
   ======================== */
.all-properties__category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.all-properties__filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-white);
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-properties__filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.all-properties__filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-black);
}

.all-properties__filter-btn i {
    font-size: 16px;
}

/* ========================
   TOOLBAR
   ======================== */
.all-properties__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.all-properties__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-properties__sort label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.all-properties__sort-select {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-properties__sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.all-properties__view-toggle {
    display: flex;
    gap: 5px;
}

.all-properties__view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-properties__view-btn:hover,
.all-properties__view-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-black);
}

/* ========================
   ACTIVE FILTERS
   ======================== */
.all-properties__active-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.all-properties__filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.all-properties__filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.all-properties__filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.all-properties__filter-tag i {
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.all-properties__filter-tag i:hover {
    color: #dc3545;
}

.all-properties__clear-filters {
    padding: 6px 16px;
    background: #dc3545;
    color: var(--color-white);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-properties__clear-filters:hover {
    background: #c82333;
}

/* ========================
   RESULTS INFO
   ======================== */
.all-properties__results-info {
    padding: 30px 0 20px;
}

.all-properties__count {
    font-size: 16px;
    color: #666;
}

.all-properties__count span {
    font-weight: 700;
    color: var(--color-primary);
}

/* ========================
   PROPERTIES GRID
   ======================== */
.all-properties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.all-properties__grid.list-view {
    grid-template-columns: 1fr;
}

/* ========================
   PROPERTY CARD
   ======================== */
.property-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card__image img {
    transform: scale(1.1);
}

.property-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
}

.property-card__badge--featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.property-card__badge--new {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.property-card__badge--popular {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.property-card__badge--luxury {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.property-card__content {
    padding: 25px;
}

.property-card__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.property-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.property-card__features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.property-card__feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.property-card__feature i {
    color: var(--color-primary);
}

.property-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.property-card__link {
    padding: 10px 20px;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.property-card__link:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

/* List View */
.property-card.list-view {
    display: grid;
    grid-template-columns: 350px 1fr;
}

.property-card.list-view .property-card__image {
    height: 100%;
}

/* ========================
   LOADING & NO RESULTS
   ======================== */
.all-properties__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.all-properties__loading i {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.all-properties__loading p {
    font-size: 18px;
    color: #666;
}

.all-properties__no-results {
    text-align: center;
    padding: 80px 20px;
}

.all-properties__no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.all-properties__no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
}

.all-properties__no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.all-properties__btn-primary {
    padding: 14px 28px;
    background: var(--color-primary);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-properties__btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .all-properties__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .all-properties__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-card.list-view {
        grid-template-columns: 1fr;
    }
    
    .property-card.list-view .property-card__image {
        height: 250px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .all-properties__header {
        padding: 60px 0 40px;
    }
    
    .all-properties__filter-section {
        position: static;
    }
    
    .all-properties__category-filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .all-properties__filter-btn {
        white-space: nowrap;
    }
    
    .all-properties__grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .all-properties__toolbar {
        width: 100%;
    }
    
    .all-properties__sort {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .all-properties__sort-select {
        width: 100%;
    }
}
