body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: #0f172a;
}
.form-group { margin-bottom: 16px; }
label {
    display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #475569;
}
select, input {
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 12px;
    font-size: 16px; box-sizing: border-box; transition: border-color 0.2s;
}
select:focus, input:focus {
    outline: none; border-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}
select:disabled { background-color: #f1f5f9; cursor: not-allowed; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-search {
    width: 100%; background-color: #d97706; color: white; border: none;
    padding: 16px; border-radius: 12px; font-size: 16px; font-weight: bold;
    cursor: pointer; margin-top: 16px; transition: background-color 0.2s;
}
.btn-search:hover { background-color: #b45309; }

.karta-ogloszenia {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 16px; margin-bottom: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex; flex-direction: column; gap: 8px;
    border-left: 6px solid #d97706;
}
.karta-tytul { font-size: 18px; font-weight: bold; color: #0f172a; }
.karta-wymiary { color: #d97706; font-weight: 800; font-size: 18px; }
.karta-detale { font-size: 14px; color: #64748b; display: flex; justify-content: space-between; }
.btn-kontakt {
    background-color: #0f172a; color: white; border: none; padding: 12px;
    border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 8px; text-align: center;
}
.brak-wynikow { text-align: center; color: #64748b; padding: 20px; font-weight: 600; }

/* --- STYLE DLA FORMULARZA DODAWANIA --- */
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 32px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}
.upload-box:hover {
    border-color: #d97706;
    background-color: #fffbeb;
    color: #d97706;
}
.upload-box .ikona {
    font-size: 32px;
    margin-bottom: 8px;
}
.podglad-zdjecia {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 16px;
    display: none; /* Ukryte, dopóki nie wgramy zdjęcia */
}
/* --- Style dla Modala (Okienka ze szczegółami) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff; padding: 25px; border-radius: 10px;
    width: 90%; max-width: 500px; position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-height: 90vh; overflow-y: auto;
}
.zamknij-modal {
    position: absolute; 
    top: 0px; 
    right: 5px;
    font-size: 32px; 
    cursor: pointer; 
    color: #555;
    font-weight: bold;
    z-index: 999; /* Wymusza bycie nad tytułem */
    padding: 10px; /* Powiększa strefę kliknięcia dla palca */
    touch-action: manipulation; /* Optymalizuje klikanie na ekranach dotykowych */
}
.zamknij-modal:hover { color: #000; }
.modal-body p { margin-bottom: 8px; }