/* ======================================================
   Podstrona /nieruchomosci — OLX real estate
   ====================================================== */

/* Hero */
.prop-hero {
    color: white;
    padding: 60px 0 40px;
}

.prop-hero nav        { font-size: 13px; margin-bottom: 12px; opacity: 0.8; }
.prop-hero nav a      { color: white; text-decoration: none; }
.prop-hero h1         { font-size: 36px; font-weight: 900; margin: 0 0 10px; }
.prop-hero p          { font-size: 16px; opacity: 0.85; margin: 0 0 20px; }

/* Tabs wynajem/sprzedaż */
.prop-tabs {
    display: flex;
    gap: 10px;
}

.prop-tab {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.prop-tab.active-rent  { background: white; color: #0891b2; border-color: white; }
.prop-tab.active-sale  { background: white; color: #d97706; border-color: white; }
.prop-tab:hover        { background: rgba(255,255,255,0.35); }

/* Info bar */
.prop-infobar {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.prop-infobar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.prop-infobar p     { margin: 0; font-size: 14px; color: #6b7280; }
.prop-infobar small { font-size: 12px; color: #9ca3af; }

/* Strefa treści */
.prop-body {
    background: #f8f9fa;
    padding: 40px 0 60px;
    min-height: 400px;
}

/* Grid */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Karta nieruchomości */
.prop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.prop-card.promoted {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.prop-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.prop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.prop-card:hover .prop-img img {
    transform: scale(1.04);
}

.prop-img-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prop-img-placeholder i {
    font-size: 40px;
    opacity: 0.4;
}

.prop-promoted-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    color: white;
}

.prop-body-inner {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prop-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prop-attrs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.prop-attr-area {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}

.prop-attr-rooms { font-size: 12px; color: #6b7280; font-weight: 600; }
.prop-attr-floor { font-size: 12px; color: #9ca3af; }

.prop-district {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.prop-card-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prop-price { font-size: 18px; font-weight: 900; }

.prop-link-hint {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Paginacja */
.prop-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prop-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.prop-page-num:hover { border-color: #0891b2; color: #0891b2; }
.prop-page-num.active-rent { background: #0891b2; color: white; border-color: #0891b2; box-shadow: 0 4px 12px rgba(8,145,178,0.3); }
.prop-page-num.active-sale { background: #d97706; color: white; border-color: #d97706; box-shadow: 0 4px 12px rgba(217,119,6,0.3); }

/* Stan pusty */
.prop-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prop-empty i       { font-size: 48px; color: #d1d5db; display: block; margin-bottom: 20px; }
.prop-empty h2      { font-size: 22px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.prop-empty p       { color: #6b7280; margin: 0; }

/* Modal */
.prop-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prop-modal-overlay.open { display: flex; }

.prop-modal {
    background: white;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.prop-modal-head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.prop-modal-head h3 {
    font-size: 17px;
    font-weight: 900;
    color: var(--text);
    margin: 0;
    flex: 1;
    padding-right: 12px;
    line-height: 1.3;
}

.prop-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
    padding: 0;
}

.prop-modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.prop-modal-go {
    flex: 1;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
}

.prop-modal-go:hover { opacity: 0.9; }
.prop-modal-go.rent  { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.prop-modal-go.sale  { background: linear-gradient(135deg, #d97706, #f59e0b); }

.prop-modal-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 640px) {
    .prop-hero h1  { font-size: 26px; }
    .prop-grid     { grid-template-columns: 1fr; }
    .prop-tabs     { flex-direction: column; }
}
