/* ========================================
   GRID
   ======================================== */

.property-card {
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-m);
    overflow: hidden;
}

.property-card-grid {
    display: grid;
    grid-template-columns: var(--grid-4);
    grid-template-rows: var(--grid-1);
    gap: var(--grid-gap);
}

.property-card {
    display: grid;
}

.property-card__link {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
}
 .property-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card__header, .property-card__body, .property-card__footer {
    padding: 1rem 1rem;
}

.property-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
}

.property-card__title {
    font-size: var(--text-l);
}

.property-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card__meta {    
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;

}


.property-card__meta svg {
    width: 2rem;
    height: 2rem;
    padding-right: 0.5rem;
}


/* ========================================
   ANIMATION
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card:nth-child(1) { animation-delay: 0ms; }
.property-card:nth-child(2) { animation-delay: 100ms; }
.property-card:nth-child(3) { animation-delay: 200ms; }
.property-card:nth-child(4) { animation-delay: 300ms; }
.property-card:nth-child(5) { animation-delay: 400ms; }
.property-card:nth-child(6) { animation-delay: 500ms; }
.property-card:nth-child(7) { animation-delay: 600ms; }
.property-card:nth-child(8) { animation-delay: 700ms; }
.property-card:nth-child(9) { animation-delay: 800ms; }


/* ============================================
   Pagination Styles
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 4rem 0;
    padding: 2rem 0;
}

.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    height: 4.4rem;
    padding: 0 1.2rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-m);
    background: #ffffff;
    color: var(--base);
    font-size: var(--text-m);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination .page-btn:hover:not(.active):not(.prev):not(.next) {
    border-color:var(--base);
    background: #fafafa;
}

.pagination .page-btn.active {
    background: var(--base);
    border-color: var(--base);
    color: #ffffff;
    font-weight: 600;
}

.pagination .page-btn.prev,
.pagination .page-btn.next {
    background: #f5f5f5;
    border-color: #e0e0e0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pagination .page-btn.prev:hover,
.pagination .page-btn.next:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

/* Disabled state for prev on first page */
.pagination .page-btn.prev.disabled,
.pagination .page-btn.prev[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}



/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .property-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .property-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 487px) {
    .pagination {
        gap: 6px;
    }
    
    .pagination .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
        font-size: 13px;
    }
}

