/* ---------- Sites For Sale Section ---------- */
.sites-for-sale {
    background: #fafafa;
    padding: 60px 0;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 40px;
}

/* ---------- Site Card ---------- */
.site-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.site-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ---------- Image Wrapper ---------- */
.site-card .image-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
}

.site-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.site-card:hover img {
    transform: scale(1.05);
}

/* ---------- Price Badge ---------- */
.site-card .price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4ca1af, #2c3e50);
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.site-card:hover .price-badge {
    transform: scale(1.1);
}

/* ---------- Card Content ---------- */
.site-card .site-info {
    padding: 18px 20px;
    text-align: center;
}

.site-card .site-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #212121;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card:hover .site-title {
    color: #4ca1af;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background: #fff;
    color: #4ca1af;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #4ca1af;
    color: #fff;
    border-color: #4ca1af;
}

.pagination .active {
    background: #4ca1af;
    color: #fff;
    border-color: #4ca1af;
    pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .sites-grid {
        grid-template-columns: 1fr;
    }
    .site-card .site-title {
        font-size: 1.1em;
    }
}
