/* === Zillow-style karty nemovitostí - VYLEPŠENÁ VERZE === */

.page-container {
    max-width: 1233px;
    width: 100%;
    margin: 150px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

.page-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: capitalize;
}

/* GRID */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 16px;
    justify-content: center;
}

/* Styl karty */
.property-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

/* Obrázek */
.property-image-wrapper {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Vizuální badge */
.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc2626;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-top-left,
.badge-top-right,
.badge-top-center {
    position: absolute;
    top: 8px;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-top-left { left: 10px; background-color: #111827; }
.badge-top-right { right: 10px; background-color: #2563eb; }
.badge-top-center { left: 50%; transform: translateX(-50%); background-color: #111827; }

/* Obsah karty */
.property-info {
    padding: 14px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

/* Titulek */
.property-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Lokalita */
.property-location {
    font-size: 20px;
    color: #6b7280;
    margin-top: 2px;
}

/* Cena */
.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 8px 0 0 0;
}

.discounted-price {
    color: red;
    font-size: 20px;
    font-weight: 800;
}

.original-price {
    font-size: 25px;
    text-decoration: line-through;
    color: #6b7280;
}

/* Typ transakce */
.property-transaction {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
}

/* Tlačítko */
.details-button {
    margin-top: auto;
    display: inline-block;
    background-color: #0056d2;
    color: white;
    padding: 10px 14px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.details-button:hover {
    background-color: #003ca8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Doplňkové prvky dole */
.property-features {
    font-size: 17px;
    color: #4b5563;
    margin-top: 8px;
}

/* Stránkování */
.pagination {
    text-align: center;
    margin: 30px 0;
    font-size: 16px;
    font-weight: bold;
    color: #003580;
}

.pagination-button {
    text-decoration: none;
    background-color: #003580;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    margin: 0 6px;
    transition: background 0.3s;
}

.pagination-button:hover {
    background-color: #0056b3;
}

.pagination-button.active {
    background-color: #1e40af;
}

/* -------------------------- */
/* 🟦 Responzivní úpravy */
/* -------------------------- */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .page-container {
        padding: 16px 12px;
        margin-top: 100px;
    }

    .property-image {
        height: 180px;
    }

    .property-title {
        font-size: 17px;
    }

    .property-location,
    .property-price,
    .property-transaction {
        font-size: 15px;
    }

    .details-button {
        font-size: 13px;
        padding: 8px 12px;
    }

    .property-features {
        font-size: 12px;
    }
}
