/* =========================================================
   PORTAL OGŁOSZENIOWY
   GŁÓWNY ARKUSZ STYLÓW
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
}


body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f3f4f6;

    color: #202124;
}


/* =========================================================
   KONTENER
========================================================= */

.container {
    width: 100%;

    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   NAGŁÓWEK
========================================================= */

.site-header {

    background: #202124;

    color: white;

    padding-top: 20px;
    padding-bottom: 20px;
}


.logo {

    margin: 0;

    font-size: 28px;

}


.tagline {

    margin-top: 6px;
    margin-bottom: 0;

    color: #cfd1d4;

}


/* =========================================================
   GŁÓWNA ZAWARTOŚĆ
========================================================= */

main {

    padding-top: 30px;
    padding-bottom: 50px;

}


.welcome {

    background: white;

    padding: 25px;

    border-radius: 12px;

    margin-bottom: 25px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);

}


.welcome h2 {

    margin-top: 0;

}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 600px) {

    .container {

        padding-left: 12px;
        padding-right: 12px;

    }


    .logo {

        font-size: 23px;

    }

}

/* =========================================================
   KARTA OGŁOSZENIA
========================================================= */

.listing-card {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    margin-bottom: 25px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   ZDJĘCIE OGŁOSZENIA
========================================================= */

.listing-image {
    width: 100%;

    height: 280px;

    display: block;

    object-fit: cover;
}


/* =========================================================
   TREŚĆ OGŁOSZENIA
========================================================= */

.listing-content {
    padding: 20px;
}


.listing-title {
    margin-top: 0;

    margin-bottom: 12px;

    font-size: 24px;
}


.listing-price {
    font-size: 22px;

    font-weight: bold;

    margin-bottom: 10px;
}


.listing-location {
    margin-bottom: 8px;

    color: #555;
}


.listing-category {
    margin-bottom: 15px;

    color: #555;
}


.listing-description {
    line-height: 1.6;

    color: #444;
}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 600px) {

    .listing-image {
        height: 220px;
    }


    .listing-content {
        padding: 15px;
    }


    .listing-title {
        font-size: 20px;
    }

}

/* =========================================================
   OGRANICZENIE ZDJĘCIA OGŁOSZENIA
========================================================= */

.listing-card {
    width: 100%;
    max-width: 700px;
    margin-bottom: 25px;
    overflow: hidden;
}

.listing-card .listing-image {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 280px !important;
    max-height: 280px !important;

    object-fit: cover !important;
}
/* =========================================================
   ETAP 12 — POZIOMA KARTA OGŁOSZENIA
========================================================= */

.listing-card {
    width: 100%;
    max-width: 1100px;
    margin: 25px auto;

    display: flex;
    flex-direction: row;

    background: #ffffff;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   ZDJĘCIE
========================================================= */

.listing-card .listing-image {
    width: 42% !important;
    height: 220px !important;

    max-width: none !important;
    max-height: none !important;

    flex-shrink: 0;

    display: block !important;

    object-fit: cover !important;
}


/* =========================================================
   TREŚĆ
========================================================= */

.listing-content {
    flex: 1;
    padding: 18px 25px;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   TYTUŁ
========================================================= */

.listing-title {
    margin: 0 0 15px 0;

    font-size: 26px;

    line-height: 1.25;

    color: #202124;
}


/* =========================================================
   CENA
========================================================= */

.listing-price {
    margin-bottom: 15px;

    font-size: 25px;

    font-weight: 700;

    color: #d93025;
}


/* =========================================================
   LOKALIZACJA
========================================================= */

.listing-location {
    margin-bottom: 8px;

    font-size: 17px;

    color: #333333;
}


/* =========================================================
   KATEGORIA
========================================================= */

.listing-category {
    margin-bottom: 18px;

    font-size: 17px;

    color: #333333;
}


/* =========================================================
   OPIS
========================================================= */

.listing-description {
    margin: 0;

    padding-top: 15px;

    border-top: 1px solid #e0e0e0;

    font-size: 16px;

    line-height: 1.6;

    color: #444444;
}


/* =========================================================
   TELEFON / MAŁY EKRAN
========================================================= */

@media (max-width: 700px) {

    .listing-card {
        flex-direction: column;

        margin: 20px 0;
    }


    .listing-card .listing-image {
        width: 100% !important;

        height: 230px !important;
    }


    .listing-content {
        padding: 20px;
    }


    .listing-title {
        font-size: 21px;
    }


    .listing-price {
        font-size: 22px;
    }

}
/* =========================================================
   ETAP 13 — WYSZUKIWARKA
========================================================= */

.search-box {
    background: #ffffff;

    border-radius: 14px;

    padding: 28px 32px;

    margin-bottom: 30px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


.search-text h2 {
    margin: 0 0 8px 0;

    font-size: 30px;

    color: #202124;
}


.search-text p {
    margin: 0 0 20px 0;

    color: #555555;

    font-size: 17px;
}


.search-form {
    display: flex;

    gap: 12px;

    width: 100%;
}


#searchInput {
    flex: 1;

    min-width: 0;

    height: 50px;

    padding: 0 16px;

    border: 1px solid #d0d0d0;

    border-radius: 8px;

    font-size: 16px;

    box-sizing: border-box;
}


#searchInput:focus {
    outline: none;

    border-color: #1a73e8;

    box-shadow:
        0 0 0 2px rgba(26, 115, 232, 0.12);
}


#searchButton {
    height: 50px;

    padding: 0 28px;

    border: none;

    border-radius: 8px;

    background: #1a73e8;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}


#searchButton:hover {
    background: #1557b0;
}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 700px) {

    .search-box {
        padding: 20px;
    }


    .search-form {
        flex-direction: column;
    }


    #searchButton {
        width: 100%;
    }

}
/* =========================================================
   LISTA OGŁOSZEŃ
========================================================= */

.listings-section {
    width: 100%;
}


.listings-heading {
    max-width: 1100px;

    margin: 25px auto 15px auto;

    font-size: 24px;

    color: #202124;
}
/* =========================================================
   ETAP 14C — FILTR CENY
========================================================= */

.filter-row {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 15px;
}


.filter-row select,
.filter-row input {
    height: 46px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d0d0d0;

    border-radius: 8px;

    background: #ffffff;

    font-size: 15px;

    color: #333333;
}


.filter-row select {
    min-width: 190px;
}


.filter-row input {
    width: 140px;
}


.filter-row input:focus,
.filter-row select:focus {
    outline: none;

    border-color: #1a73e8;

    box-shadow:
        0 0 0 2px rgba(26, 115, 232, 0.12);
}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 700px) {

    .filter-row {
        flex-direction: column;
    }


    .filter-row select,
    .filter-row input {
        width: 100%;
    }

}

/* =========================================================
   ETAP 15 — STRONA SZCZEGÓŁOWA OGŁOSZENIA
========================================================= */

.listing-details-page {
    max-width: 1100px;

    margin: 0 auto;

    padding: 30px 20px;
}


.back-button {
    display: inline-block;

    margin-bottom: 20px;

    color: #1a73e8;

    text-decoration: none;

    font-size: 16px;
}


.listing-details-card {
    background: #ffffff;

    border-radius: 14px;

    padding: 25px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


.details-image {
    display: block;

    width: 100%;

    max-width: 700px;

    height: 400px;

    object-fit: contain;

    margin: 0 auto 25px auto;

    border-radius: 10px;
}


.details-content h1 {
    margin: 0 0 15px 0;

    font-size: 30px;

    color: #202124;
}


.details-price {
    font-size: 26px;

    font-weight: 700;

    margin-bottom: 12px;
}


.details-location,
.details-category {
    margin-bottom: 10px;

    font-size: 16px;

    color: #555555;
}


.details-description {
    margin-top: 25px;

    border-top: 1px solid #eeeeee;

    padding-top: 20px;
}


.details-description h2 {
    font-size: 21px;

    margin-bottom: 10px;
}


.details-description p {
    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 700px) {

    .listing-details-page {
        padding: 15px;
    }


    .listing-details-card {
        padding: 15px;
    }


    .details-image {
        width: 100%;

        height: 260px;
    }


    .details-content h1 {
        font-size: 24px;
    }

}

/* =========================================================
   GALERIA ZDJĘĆ — MINIATURY
========================================================= */

.details-gallery {
    width: 100%;
}


.gallery-thumbnails {
    display: flex;

    gap: 10px;

    margin-top: 15px;

    flex-wrap: wrap;
}


.gallery-thumbnail {
    width: 90px;
    height: 70px;

    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

    border: 2px solid transparent;

    transition: 0.2s;
}


.gallery-thumbnail:hover {
    border-color: #1a73e8;

    transform: scale(1.03);
}

.gallery-thumbnail.active {
    border-color: #1a73e8;
}

/* =========================================================
   PRZYCISK DODAJ OGŁOSZENIE
========================================================= */

.add-listing-box {
    margin-top: 20px;
    text-align: center;
}


.add-listing-button {
    display: inline-block;

    padding: 12px 24px;

    border-radius: 8px;

    background: #1a73e8;

    color: #ffffff;

    text-decoration: none;

    font-size: 16px;

    font-weight: 600;
}


.add-listing-button:hover {
    opacity: 0.9;
}

/* =========================================================
   FORMULARZ — DODAJ OGŁOSZENIE
========================================================= */

.add-listing-page {
    max-width: 800px;

    margin: 0 auto;

    padding: 30px 20px;
}


.add-listing-form {
    background: #ffffff;

    padding: 30px;

    border-radius: 14px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


.add-listing-form h1 {
    margin-top: 0;

    margin-bottom: 25px;

    font-size: 30px;
}


.add-listing-form label {
    display: block;

    margin-top: 18px;

    margin-bottom: 7px;

    font-weight: 600;
}


.add-listing-form input,
.add-listing-form select,
.add-listing-form textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 12px;

    border: 1px solid #d0d0d0;

    border-radius: 8px;

    font-size: 16px;

    font-family: inherit;
}


.add-listing-form textarea {
    resize: vertical;
}


#saveListing {
    margin-top: 25px;

    padding: 13px 25px;

    border: none;

    border-radius: 8px;

    background: #1a73e8;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}


#saveListing:hover {
    opacity: 0.9;
}


#formMessage {
    margin-top: 15px;

    font-weight: 600;
}


@media (max-width: 700px) {

    .add-listing-page {
        padding: 15px;
    }


    .add-listing-form {
        padding: 20px;
    }

}

/* =========================================================
   PANEL ZDJĘĆ
========================================================= */

.image-drop-zone {
    width: 100%;
    padding: 30px 20px;
    margin-top: 10px;

    border: 2px dashed #c5c5c5;
    border-radius: 12px;

    background: #fafafa;

    text-align: center;

    transition: 0.2s;
}


.image-drop-zone:hover {
    border-color: #1a73e8;
    background: #f7faff;
}


.image-drop-zone.drag-over {
    border-color: #1a73e8;
    background: #eaf2ff;
}


.image-drop-icon {
    font-size: 38px;
    margin-bottom: 8px;
}


.image-drop-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}


.image-drop-text {
    color: #666;
    margin-bottom: 18px;
}


.choose-images-button {
    padding: 11px 22px;

    border: none;
    border-radius: 8px;

    background: #1a73e8;
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}


.choose-images-button:hover {
    background: #1557b0;
}


.images-info {
    margin-top: 12px;
    margin-bottom: 12px;

    font-weight: 600;
}


.image-preview {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 10px;
}


.image-preview-item {
    position: relative;

    width: 130px;
    height: 100px;

    border-radius: 8px;

    overflow: hidden;

    background: #eee;

    border: 1px solid #ddd;
}


.image-preview-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.remove-image-button {
    position: absolute;

    top: 5px;
    right: 5px;

    width: 27px;
    height: 27px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);

    color: white;

    font-size: 18px;

    line-height: 27px;

    cursor: pointer;
}


.remove-image-button:hover {
    background: #d93025;
}


@media (max-width: 700px) {

    .image-preview-item {
        width: 105px;
        height: 85px;
    }

}

/* =========================================================
   MINIATURY ZDJĘĆ W OGŁOSZENIU
   ========================================================= */

#imagePreview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;

    width: 100% !important;
    margin-top: 15px !important;
    padding: 0 !important;
}


/* pojedyncza miniatura */

.listing-image-box {
    position: relative !important;

    width: 120px !important;
    height: 90px !important;

    flex: 0 0 120px !important;

    overflow: hidden !important;

    border: 1px solid #ccc !important;
    border-radius: 8px !important;

    background: #f3f3f3 !important;
}


/* zdjęcie */

.listing-image-box img {
    display: block !important;

    width: 120px !important;
    height: 90px !important;

    max-width: 120px !important;
    max-height: 90px !important;

    object-fit: cover !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* numer zdjęcia */

.listing-image-number {
    position: absolute !important;

    left: 5px !important;
    top: 5px !important;

    padding: 2px 6px !important;

    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;

    border-radius: 4px !important;

    font-size: 12px !important;
}


/* przycisk X */

.listing-image-remove {
    position: absolute !important;

    right: 4px !important;
    top: 4px !important;

    width: 24px !important;
    height: 24px !important;

    padding: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: #d00000 !important;
    color: white !important;

    font-size: 18px !important;
    font-weight: bold !important;

    line-height: 24px !important;

    cursor: pointer !important;
}


.listing-image-remove:hover {
    background: #a00000 !important;
}


/* informacja o liczbie zdjęć */

#imagesInfo {
    margin-top: 10px !important;
    margin-bottom: 10px !important;

    font-weight: 600 !important;
}

/* =========================================================
   STRONA SPRZEDAJĄCEGO - KARTY OGŁOSZEŃ
   ========================================================= */

.seller-listing-card {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.seller-listing-image-box {
    width: 160px;
    height: 120px;
    min-width: 160px;
    flex: 0 0 160px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f3f3;
}

.seller-listing-image {
    display: block;
    width: 160px;
    height: 120px;
    object-fit: cover;
}

.seller-listing-no-image {
    width: 160px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
}

.seller-listing-content {
    flex: 1;
    min-width: 0;
}

.seller-listing-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.seller-listing-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.seller-listing-location,
.seller-listing-category,
.seller-listing-date {
    margin-bottom: 5px;
}

.seller-listing-description {
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 600px) {

    .seller-listing-card {
        padding: 10px;
        gap: 10px;
    }

    .seller-listing-image-box,
    .seller-listing-image,
    .seller-listing-no-image {
        width: 110px;
        min-width: 110px;
        height: 85px;
    }

}

/* =========================================================
   MOJE WIADOMOŚCI
========================================================= */

.messages-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.messages-page h1 {
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: 32px;
    color: #202124;
}

.messages-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.messages-tab {
    padding: 12px 22px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 16px;
    cursor: pointer;
}

.messages-tab:hover {
    background: #f3f6f9;
}

.messages-tab.active {
    background: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

#messagesStatus {
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
    color: #444444;
}

.message-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.message-card.message-unread {
    border-left: 5px solid #1a73e8;
    background: #f7fbff;
}

.message-type {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.message-unread-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 700;
    font-size: 14px;
}

.message-listing {
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #f5f5f5;
}

.message-listing-link {
    display: block;
    margin-bottom: 6px;
    color: #1a73e8;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.message-listing-link:hover {
    text-decoration: underline;
}

.message-listing-price {
    font-weight: 700;
    margin-bottom: 4px;
}

.message-listing-location {
    color: #555555;
}

.message-text {
    padding: 12px 0;
    font-size: 17px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #202124;
}

.message-date {
    margin-top: 8px;
    color: #777777;
    font-size: 14px;
}

.message-read-button {
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid #1a73e8;
    border-radius: 7px;
    background: #ffffff;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.message-read-button:hover {
    background: #e8f0fe;
}

.message-read-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.messages-empty {
    padding: 30px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #ffffff;
    color: #666666;
    text-align: center;
    font-size: 17px;
}


/* =========================================================
   WIADOMOŚCI — TELEFON
========================================================= */

@media (max-width: 600px) {

    .messages-page {
        padding: 20px 12px;
    }

    .messages-page h1 {
        font-size: 27px;
    }

    .messages-tabs {
        flex-direction: column;
    }

    .messages-tab {
        width: 100%;
    }

    .message-card {
        padding: 14px;
    }

    .message-text {
        font-size: 16px;
    }
}

/* =========================================================
   LICZNIK NOWYCH WIADOMOŚCI
========================================================= */

.messages-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 7px;
    border-radius: 10px;
    background: #e53935;
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    vertical-align: middle;
}

/* =========================================================
   PANEL ADMINISTRATORA - ZGŁOSZENIA
   ========================================================= */

.admin-reports-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-reports-page h1 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.new-reports-counter {
    display: inline-block;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #fff3cd;
    font-weight: bold;
}


/* FILTRY */

.admin-reports-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-report-filter {
    padding: 9px 14px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.admin-report-filter:hover {
    background: #f1f1f1;
}

.admin-report-filter.active {
    font-weight: bold;
    border-color: #333;
    background: #e9e9e9;
}


/* KARTA ZGŁOSZENIA */

.admin-report-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.admin-report-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.admin-report-card p {
    margin: 10px 0;
    line-height: 1.5;
}

.admin-report-card a {
    font-weight: bold;
}


/* ZMIANA STATUSU */

.admin-report-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.report-status-select {
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
}

.save-report-status-button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.save-report-status-button:hover {
    background: #555;
}

.save-report-status-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.report-save-status {
    font-weight: bold;
}


/* USUWANIE OGŁOSZENIA */

.admin-report-delete {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.delete-reported-listing-button {
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    background: #c62828;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.delete-reported-listing-button:hover {
    background: #a91f1f;
}

.delete-reported-listing-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.report-delete-status {
    margin-left: 10px;
    font-weight: bold;
}


/* TELEFON */

@media (max-width: 600px) {

    .admin-reports-page {
        padding: 10px;
    }

    .admin-report-card {
        padding: 15px;
    }

    .admin-reports-filters {
        flex-direction: column;
    }

    .admin-report-filter {
        width: 100%;
    }

    .admin-report-status {
        align-items: stretch;
        flex-direction: column;
    }

    .report-status-select,
    .save-report-status-button {
        width: 100%;
        box-sizing: border-box;
    }

    .delete-reported-listing-button {
        width: 100%;
    }

    .report-delete-status {
        display: block;
        margin: 10px 0 0;
    }
}


/* ================================
   GŁÓWNY PANEL ADMINISTRATORA
   ================================ */

.admin-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-page h1 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.admin-page-description {
    color: #666;
    margin-bottom: 25px;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-menu-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.admin-menu-card:hover {
    border-color: #999;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.admin-menu-icon {
    font-size: 32px;
    line-height: 1;
}

.admin-menu-card h2 {
    margin: 0 0 8px;
}

.admin-menu-card p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.admin-menu-card span {
    display: inline-block;
    color: #777;
    font-size: 14px;
}

.admin-menu-disabled {
    opacity: .65;
    cursor: default;
}

@media (max-width: 600px) {

    .admin-menu {
        grid-template-columns: 1fr;
    }

    .admin-menu-card {
        padding: 15px;
    }
}

/* ================================
   ZDJĘCIA W PANELU ADMINISTRATORA
   ================================ */

.admin-listing-card {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.admin-listing-image-box {
    width: 180px;
    height: 135px;
    min-width: 180px;
    flex: 0 0 180px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f3f3;
}

.admin-listing-image {
    display: block;
    width: 180px;
    height: 135px;
    object-fit: cover;
}

.admin-listing-no-image {
    width: 180px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
}

.admin-listing-content {
    flex: 1;
    min-width: 0;
}

.admin-listing-content h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.admin-listing-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.admin-listing-location,
.admin-listing-category,
.admin-listing-status,
.admin-listing-views,
.admin-listing-date {
    margin-bottom: 5px;
}

.admin-listing-delete {
    margin-top: 12px;
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    background: #c62828;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.admin-listing-delete:hover {
    background: #a91f1f;
}

.admin-listing-delete:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    .admin-listing-card {
        padding: 10px;
        gap: 10px;
    }

    .admin-listing-image-box,
    .admin-listing-image,
    .admin-listing-no-image {
        width: 110px;
        min-width: 110px;
        height: 85px;
    }
}


/* =========================================
   WYSZUKIWANIE I FILTR W PANELU ADMINA
   ========================================= */

.admin-listings-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 10px;
}

.admin-listings-search input {
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 7px;
    font-size: 15px;
}

.admin-listings-search button {
    padding: 10px 16px;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.admin-listings-search button:hover {
    background: #f1f1f1;
}

.admin-listings-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-listings-filter label {
    font-weight: bold;
}

.admin-listings-filter select {
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
}

.admin-listings-count {
    margin: 10px 0 15px;
    font-weight: bold;
    color: #555;
}

@media (max-width: 600px) {

    .admin-listings-search {
        flex-direction: column;
    }

    .admin-listings-search input,
    .admin-listings-search button {
        width: 100%;
    }

    .admin-listings-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-listings-filter select {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   DOPRACOWANIE KART OGŁOSZEŃ ADMINA
   ========================================= */

.admin-listing-card {
    align-items: stretch;
    transition: box-shadow 0.2s ease,
                transform 0.2s ease;
}

.admin-listing-card:hover {
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.admin-listing-content {
    padding: 2px 5px 2px 0;
}

.admin-listing-content h2 {
    font-size: 24px;
    line-height: 1.25;
}

.admin-listing-price {
    margin-bottom: 12px;
}

.admin-listing-location,
.admin-listing-category {
    color: #444;
}

.admin-listing-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.admin-listing-status label {
    font-weight: bold;
}

.admin-listing-status-select {
    margin-left: 5px;
    padding: 7px 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

.admin-listing-status-save {
    padding: 7px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.admin-listing-status-save:hover {
    background: #f1f1f1;
}

.admin-listing-status-message {
    font-weight: bold;
}

.admin-listing-views,
.admin-listing-date {
    color: #666;
    font-size: 14px;
}

.admin-listing-delete {
    margin-top: 15px;
}

/* =========================================
   STATYSTYKI ADMINISTRATORA
   ========================================= */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.admin-stat-card {
    display: flex;
    gap: 15px;
    align-items: center;

    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.admin-stat-icon {
    font-size: 34px;
    line-height: 1;
}

.admin-stat-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.admin-stat-number {
    font-size: 30px;
    font-weight: bold;
}


/* TELEFON */

@media (max-width: 600px) {

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-stat-card {
        padding: 15px;
    }

}

@media (max-width: 600px) {

    .admin-listing-card {
        align-items: flex-start;
    }

    .admin-listing-content h2 {
        font-size: 20px;
    }

    .admin-listing-status {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-listing-status-select {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-listing-status-save {
        width: 100%;
    }

    .admin-listing-status-message {
        display: block;
    }
}

/* =========================================
   KARTY UŻYTKOWNIKÓW ADMINA
   ========================================= */

.admin-user-card {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.admin-user-icon {
    font-size: 36px;
    line-height: 1;
    min-width: 45px;
}

.admin-user-content {
    flex: 1;
    min-width: 0;
}

.admin-user-content h2 {
    margin: 0 0 15px;
    font-size: 22px;
}

.admin-user-content p {
    margin: 7px 0;
    line-height: 1.5;
}

@media (max-width: 600px) {

    .admin-user-card {
        padding: 15px;
        gap: 10px;
    }

    .admin-user-icon {
        font-size: 30px;
        min-width: 35px;
    }

    .admin-user-content h2 {
        font-size: 20px;
    }
}

/* =========================================================
   JASNE TŁO GŁÓWNEGO NAGŁÓWKA
========================================================= */

.topbar {
    background: #eef1f5 !important;
    color: #202124 !important;

    border-bottom: 1px solid #d6d9de;
}

.topbar .logo {
    color: #202124 !important;
}

/* =========================================================
   ZMIANA KOLORU GŁÓWNEGO NAGŁÓWKA
========================================================= */

.site-header {
    background: #dfe3e8 !important;
    color: #202124 !important;
    border-bottom: 1px solid #d6d9de;
}

.site-header .logo {
    color: #202124 !important;
}

.site-header .tagline {
    color: #555555 !important;
}

/* =========================================================
   UPORZĄDKOWANIE PRZYCISKÓW W NAGŁÓWKU
========================================================= */

.topbar a.my-listings-button,
.topbar .add-listing-button,
.topbar #logoutButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 16px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    box-sizing: border-box;
}

/* Odstępy między przyciskami */

.topbar a.my-listings-button,
.topbar .add-listing-button {
    margin-right: 8px;
}

/* Wylogowanie */

.topbar #logoutButton {
    cursor: pointer;
}

/* Na małym ekranie */

@media (max-width: 700px) {

    .topbar a.my-listings-button,
    .topbar .add-listing-button,
    .topbar #logoutButton {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 14px;
    }

}

/* =========================================================
   KOLORY PRZYCISKÓW W NAGŁÓWKU
========================================================= */

/* Przyciski nawigacyjne */

.topbar a.my-listings-button {
    background: #7c3aed !important;
    color: #ffffff !important;
}

/* Najechanie myszą */

.topbar a.my-listings-button:hover {
    background: #6d28d9 !important;
}

/* Wylogowanie */

.topbar #logoutButton {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Najechanie myszą */

.topbar #logoutButton:hover {
    background: #b91c1c !important;
}

/* =========================================================
   PRZYCISKI GŁÓWNEJ STRONY
========================================================= */

/* Wszystkie przyciski/nawigacja w nagłówku */

.site-header a:not(.logo) {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    margin: 4px;

    border-radius: 8px;

    background: #7c3aed;
    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.2;

    box-sizing: border-box;
}

/* Efekt po najechaniu */

.site-header a:not(.logo):hover {
    background: #6d28d9;
    color: #ffffff;
}

/* Przycisk Wyloguj */

.site-header #logoutButton {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    margin: 4px;

    border: none;
    border-radius: 8px;

    background: #dc2626;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

/* Najechanie na Wyloguj */

.site-header #logoutButton:hover {
    background: #b91c1c;
}

/* =========================================================
   ODDZIELENIE INFORMACJI O UŻYTKOWNIKU OD NAWIGACJI
========================================================= */

.site-header #userInfo {
    display: block !important;

    margin-bottom: 12px !important;
    padding-bottom: 12px !important;

    border-bottom: 1px solid #c8cdd4;
}

/* Przyciski nawigacji */

.site-header a:not(.logo) {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* =========================================================
   WYRÓŻNIENIE WYSZUKIWARKI
========================================================= */

.search-box {
    border: 1px solid #d6d9de;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08);
}

#searchInput {
    height: 54px;

    font-size: 17px;

    border: 2px solid #c9ced6;
}

#searchInput:focus {
    border-color: #7c3aed;

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.12);
}

#searchButton {
    height: 54px;

    min-width: 120px;
}

/* =========================================================
   UKRYTE ELEMENTY NIE SĄ WYŚWIETLANE
========================================================= */

.site-header a[hidden] {
    display: none !important;
}

/* ===== KARTY OGŁOSZEŃ ===== */

.listing-card {
    background: #ffffff;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.listing-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #202124;
}

.listing-content p {
    margin: 7px 0;
    color: #444;
}

.listing-content a {
    color: #6d28d9;
    font-weight: 600;
    text-decoration: none;
}

.listing-content a:hover {
    text-decoration: underline;
}

/* ===== ZDJĘCIA OGŁOSZEŃ ===== */

.listing-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

/* ===== CENA I LOKALIZACJA ===== */

.listing-price {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #16a34a;
}

.listing-location {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.listing-category {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.listing-description {
    line-height: 1.5;
}

/* ===== UKŁAD OGŁOSZEŃ ===== */

.listings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.listings-container .listing-card {
    margin-bottom: 0;
}

/* Komputer i większe ekrany */
@media (min-width: 800px) {
    .listings-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Bardzo szeroki ekran */
@media (min-width: 1200px) {
    .listings-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== UKŁAD LISTY OGŁOSZEŃ ===== */

#listings {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
}

#listings .listing-card {
    margin-bottom: 0;
}

@media (min-width: 800px) {
    #listings {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    #listings {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ===== OGRANICZENIE DŁUGOŚCI OPISU NA KARCIE ===== */

.listing-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    line-height: 1.5;
}

/* ===== POPRAWIONY UKŁAD KART OGŁOSZEŃ ===== */

@media (min-width: 1200px) {

    #listings .listing-card {
        display: grid !important;
        grid-template-columns: 180px minmax(0, 1fr) !important;
        grid-template-rows: auto auto;
        gap: 0 18px;
        align-items: start;
    }

    #listings .listing-image {
        grid-column: 1;
        grid-row: 1;
        width: 180px !important;
        height: 180px !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    #listings .listing-content {
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    #listings .listing-description {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 14px 0 0 0;
        padding-top: 12px;
        border-top: 1px solid #e0e0e0;
    }
}


/* ===== DOPASOWANIE TYTUŁÓW W KARTACH ===== */

@media (min-width: 1200px) {

    #listings .listing-title {
        font-size: 21px !important;
        line-height: 1.25;
    }

}

/* ===== STAŁA WYSOKOŚĆ TYTUŁU OGŁOSZENIA ===== */

@media (min-width: 1200px) {

    #listings .listing-title {
        font-size: 21px !important;
        line-height: 1.25 !important;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;

        min-height: calc(21px * 1.25 * 3);
        max-height: calc(21px * 1.25 * 3);
    }

}

/* ===== WIĘKSZY TYTUŁ OGŁOSZENIA ===== */

@media (min-width: 1200px) {

    #listings .listing-title {
        font-size: 23px !important;
        line-height: 1.25 !important;

        min-height: calc(23px * 1.25 * 3);
        max-height: calc(23px * 1.25 * 3);
    }

}

/* ===== TYTUŁ - NIE DZIEL WYRAZÓW ===== */

#listings .listing-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* ===== TYTUŁ NAD ZDJĘCIEM ===== */

@media (min-width: 1200px) {

    #listings .listing-card {
        display: grid !important;

        grid-template-columns:
            180px minmax(0, 1fr) !important;

        grid-template-rows:
            auto auto auto;

        column-gap: 18px;
        row-gap: 0;
    }


    #listings .listing-title {
        grid-column: 1 / -1;
        grid-row: 1;

        width: 100%;

        margin: 0 0 14px 0 !important;

        font-size: 21px !important;
        line-height: 1.25 !important;
    }


    #listings .listing-image {
        grid-column: 1;
        grid-row: 2;

        width: 180px !important;
        height: 180px !important;

        margin: 0 !important;

        object-fit: cover !important;
    }


    #listings .listing-content {
        grid-column: 2;
        grid-row: 2;

        padding: 0 !important;

        display: flex;
        flex-direction: column;
    }


    #listings .listing-description {
        grid-column: 1 / -1;
        grid-row: 3;

        width: 100%;

        margin: 14px 0 0 0;

        padding-top: 12px;

        border-top: 1px solid #e0e0e0;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;

        line-height: 1.5;
    }
}

/* ===== SERDUSZKO NA KARCIE OGŁOSZENIA ===== */

.card-favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    border: 1px solid #d6d9de;
    border-radius: 50%;

    background: #ffffff;
    color: #777777;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);

    z-index: 10;
}

.card-favorite-button:hover {
    color: #dc2626;
    transform: scale(1.08);
}

.listing-card {
    position: relative;
}

/* ===== ULUBIONE OGŁOSZENIE ===== */

.card-favorite-button.is-favorite {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff5f5;
}

.card-favorite-button.is-favorite:hover {
    color: #b91c1c;
    background: #fee2e2;
}

/* ===== PRZYCISK UDOSTĘPNIANIA ===== */

.card-share-button {
    position: absolute;
    top: 60px;
    right: 12px;

    width: 42px;
    height: 42px;

    border: 1px solid #d6d9de;
    border-radius: 50%;

    background: #ffffff;
    color: #555555;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);

    z-index: 10;
}

.card-share-button:hover {
    color: #2563eb;
    background: #eff6ff;
    transform: scale(1.08);
}

/* ===== CHMURKI PODPOWIEDZI ===== */

.card-favorite-button::after,
.card-share-button::after {
    position: absolute;

    right: 50px;
    top: 50%;

    transform: translateY(-50%);

    padding: 7px 10px;

    border-radius: 6px;

    background: #202124;
    color: #ffffff;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;

    z-index: 100;
}

.card-favorite-button::after {
    content: "Dodaj do ulubionych";
}

.card-favorite-button.is-favorite::after {
    content: "Usuń z ulubionych";
}

.card-share-button::after {
    content: "Udostępnij ogłoszenie";
}

.card-favorite-button:hover::after,
.card-share-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   BRAK ZDJĘCIA W OGŁOSZENIU
========================================================= */

.listing-no-image {
    display: flex !important;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 8px;

    background: #eeeeee;

    color: #777777;

    font-size: 42px;

    text-align: center;
}


/* Napis "Brak zdjęcia" */

.listing-no-image span {
    font-size: 17px;

    font-weight: 500;

    color: #777777;
}


/* Telefon */

@media (max-width: 700px) {

    .listing-no-image {
        width: 100% !important;

        height: 230px !important;
    }

}

/* =========================================================
   CENA NA STRONIE OGŁOSZENIA
========================================================= */

.listing-details-price {
    font-size: 30px;
    font-weight: 700;
    margin: 12px 0 18px 0;
}

/* =========================================================
   LOKALIZACJA OGŁOSZENIA
========================================================= */

.listing-details-location {
    font-size: 18px;
    margin-bottom: 12px;
}

/* =========================================================
   KATEGORIA OGŁOSZENIA
========================================================= */

.listing-details-category {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
}

/* =========================================================
   STATUS OGŁOSZENIA
========================================================= */

.listing-details-status {
    font-size: 15px;
    margin-bottom: 8px;
    color: #666;
}

/* =========================================================
   DATA DODANIA OGŁOSZENIA
========================================================= */

.listing-details-date {
    font-size: 14px;
    margin-bottom: 10px;
    color: #777;
}

/* =========================================================
   LICZNIK WYŚWIETLEŃ
========================================================= */

.listing-details-views {
    font-size: 14px;
    margin-bottom: 15px;
    color: #777;
}

.listing-details-views strong {
    font-weight: 600;
    color: #555;
}

/* =========================================================
   ULUBIONE — STRONA OGŁOSZENIA
========================================================= */

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #d6d9de;
    border-radius: 8px;

    background: #ffffff;
    color: #555555;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.favorite-button:hover {
    background: #fff5f5;
    border-color: #fca5a5;
    color: #dc2626;
}

/* =========================================================
   UDOSTĘPNIJ — STRONA OGŁOSZENIA
========================================================= */

.share-listing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #d6d9de;
    border-radius: 8px;

    background: #ffffff;
    color: #555555;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.share-listing-button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

/* =========================================================
   WIADOMOŚĆ — STRONA OGŁOSZENIA
========================================================= */

.contact-seller-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #2563eb;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.contact-seller-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* =========================================================
   NAPISZ DO SPRZEDAJĄCEGO — STRONA OGŁOSZENIA
========================================================= */

.message-seller-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #2563eb;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.message-seller-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* =========================================================
   WYŚLIJ WIADOMOŚĆ — STRONA OGŁOSZENIA
========================================================= */

.send-message-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    margin-top: 8px;

    border: 1px solid #2563eb;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.send-message-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.send-message-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   ZGŁOŚ OGŁOSZENIE — STRONA OGŁOSZENIA
========================================================= */

.report-listing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    margin-top: 14px;

    border: 1px solid #f0b4b4;
    border-radius: 8px;

    background: #ffffff;
    color: #b42318;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.report-listing-button:hover {
    background: #fff5f5;
    border-color: #dc2626;
    color: #dc2626;
}

.report-listing-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   POKAŻ TELEFON — STRONA OGŁOSZENIA
========================================================= */

.show-phone-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #d6d9de;
    border-radius: 8px;

    background: #ffffff;
    color: #555555;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.show-phone-button:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.show-phone-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   NUMER TELEFONU — STRONA OGŁOSZENIA
========================================================= */

.seller-phone {
    margin-top: 10px;
    margin-bottom: 10px;
}

.seller-phone-link {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    border-radius: 8px;

    background: #f0fdf4;
    border: 1px solid #86efac;

    color: #15803d;

    font-size: 17px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.seller-phone-link:hover {
    background: #dcfce7;
    border-color: #4ade80;
}

/* =========================================================
   NAZWA SPRZEDAJĄCEGO — STRONA OGŁOSZENIA
========================================================= */

.seller-name {
    margin-top: 8px;
    margin-bottom: 18px;

    font-size: 18px;
    font-weight: 600;

    color: #444444;
}

/* =========================================================
   OPIS OGŁOSZENIA — STRONA SZCZEGÓŁOWA
========================================================= */

.listing-details-description {
    margin-top: 25px;
    margin-bottom: 25px;
}

.listing-details-description h2 {
    margin-bottom: 12px;
}

.listing-details-description p {
    margin: 0;

    font-size: 17px;
    line-height: 1.6;

    color: #444444;
}

/* =========================================================
   KONTAKT ZE SPRZEDAJĄCYM — STRONA OGŁOSZENIA
========================================================= */

.seller-contact {
    margin-top: 25px;
}

.seller-contact h2 {
    margin-bottom: 16px;
}

.seller-message {
    margin-top: 14px;
}

.listing-report {
    margin-top: 14px;
}

/* =========================================================
   POLE WIADOMOŚCI — STRONA OGŁOSZENIA
========================================================= */

#messageText {
    display: block;

    width: 100%;
    max-width: 500px;

    min-height: 120px;

    padding: 12px 14px;

    margin-top: 10px;
    margin-bottom: 10px;

    box-sizing: border-box;

    border: 1px solid #d6d9de;
    border-radius: 8px;

    background: #ffffff;
    color: #333333;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;

    resize: vertical;
}

#messageText:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* =========================================================
   FORMULARZ WIADOMOŚCI — ODSTĘPY
========================================================= */

#messageFormContainer {
    margin-top: 10px;
}

#messageFormContainer .send-message-button {
    margin-top: 4px;
}

/* =========================================================
   STATUS WIADOMOŚCI — STRONA OGŁOSZENIA
========================================================= */

#messageStatus {
    margin-top: 8px;
    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.4;

    color: #666666;
}

/* =========================================================
   KOMUNIKAT WIADOMOŚCI — WYRÓŻNIENIE
========================================================= */

#messageStatus {
    padding: 8px 0;

    font-size: 15px;
    line-height: 1.4;
    color: #555555;
}

/* =========================================================
   ODSTĘP PRZED ZGŁOSZENIEM OGŁOSZENIA
========================================================= */

.listing-report {
    margin-top: 25px;
    padding-top: 5px;
}

/* =========================================================
   NAGŁÓWEK SPRZEDAJĄCEGO — STRONA OGŁOSZENIA
========================================================= */

.seller-info h2 {
    margin-bottom: 8px;

    font-size: 20px;
    font-weight: 700;

    color: #222222;
}

/* =========================================================
   NAZWA SPRZEDAJĄCEGO — DOPRACOWANIE
========================================================= */

.seller-name {
    padding: 8px 12px;

    border-radius: 6px;

    background: #f7f7f7;

    font-size: 17px;
    font-weight: 600;

    color: #444444;
}

/* =========================================================
   NAGŁÓWEK KONTAKTU ZE SPRZEDAJĄCYM
========================================================= */

.seller-contact h2 {
    font-size: 20px;
    font-weight: 700;

    color: #222222;

    margin-bottom: 16px;
}

/* =========================================================
   POKAŻ TELEFON — DOPRACOWANIE
========================================================= */

.show-phone-button {
    min-width: 170px;
    box-sizing: border-box;
}

.show-phone-button:hover {
    transform: translateY(-1px);
}

/* =========================================================
   WYŚLIJ WIADOMOŚĆ — DOPRACOWANIE
========================================================= */

.send-message-button {
    min-width: 190px;
    box-sizing: border-box;
}

.send-message-button:hover {
    transform: translateY(-1px);
}

/* =========================================================
   ULUBIONE — DOPRACOWANIE
========================================================= */

.favorite-button {
    min-width: 190px;
    box-sizing: border-box;
}

.favorite-button:hover {
    transform: translateY(-1px);
}

/* =========================================================
   UDOSTĘPNIJ OGŁOSZENIE — DOPRACOWANIE
========================================================= */

.share-listing-button {
    min-width: 210px;
    box-sizing: border-box;
}

.share-listing-button:hover {
    transform: translateY(-1px);
}

/* =========================================================
   ODSTĘP — ULUBIONE / UDOSTĘPNIJ
========================================================= */

.listing-share {
    margin-top: 10px;
}

/* =========================================================
   ODSTĘP — SPRZEDAJĄCY / NAZWA
========================================================= */

.seller-name {
    margin-top: 10px;
}

/* =========================================================
   ODSTĘP — SPRZEDAJĄCY / OPIS
========================================================= */

.listing-details-description {
    margin-top: 30px;
}

/* =========================================================
   NAGŁÓWEK OPISU — STRONA OGŁOSZENIA
========================================================= */

.listing-details-description h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 12px;
}

/* =========================================================
   ZGŁOŚ OGŁOSZENIE — DOPRACOWANIE
========================================================= */

.report-listing-button {
    min-width: 200px;
    box-sizing: border-box;
}

.report-listing-button:hover {
    transform: translateY(-1px);
}

/* =========================================================
   WYRÓWNANIE NAGŁÓWKA OPISU
========================================================= */

.listing-details-description h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 12px;
}

/* =========================================================
   ODSTĘP — OPIS / KONTAKT
========================================================= */

.seller-contact {
    margin-top: 30px;
}

/* =========================================================
   ODSTĘP — NAGŁÓWEK KONTAKTU / PRZYCISK
========================================================= */

.seller-contact h2 {
    margin-bottom: 20px;
}

/* =========================================================
   ODSTĘP — POKAŻ TELEFON / NUMER
========================================================= */

.seller-phone {
    margin-top: 14px;
}

/* =========================================================
   ODSTĘP — NUMER / NAPISZ DO SPRZEDAJĄCEGO
========================================================= */

.seller-message {
    margin-top: 18px;
}

/* =========================================================
   ODSTĘP — NAPISZ DO SPRZEDAJĄCEGO / FORMULARZ
========================================================= */

#messageFormContainer {
    margin-top: 14px;
}

/* =========================================================
   NOWY UKŁAD STRONY OGŁOSZENIA — KROK 1
   ZDJĘCIE + INFORMACJE OBOK SIEBIE
========================================================= */

.listing-details-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    column-gap: 40px;
    align-items: start;
}

.details-gallery {
    width: 100%;
}

.details-image {
    width: 100%;
    max-width: none;
    height: 430px;
    margin: 0;
    object-fit: contain;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.listing-details-content {
    min-width: 0;
}

/* Na telefonie wracamy do jednej kolumny */

@media (max-width: 800px) {

    .listing-details-card {
        grid-template-columns: 1fr;
        row-gap: 25px;
    }

    .details-image {
        height: 300px;
    }

    .listing-details-content {
        width: 100%;
    }
}

/* =========================================================
   NOWY UKŁAD GALERII — MINIATURY W JEDNYM RZĘDZIE
========================================================= */

.gallery-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;

    margin-top: 15px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 5px;
}

.gallery-thumbnail {
    flex: 0 0 90px;
}

/* =========================================================
   UKŁAD OGŁOSZENIA — USUNIĘCIE PUSTEJ PRZESTRZENI
========================================================= */

.listing-details-content {
    display: contents;
}

/* INFORMACJE — PRAWA KOLUMNA */

.listing-details-title,
.listing-details-price,
.listing-details-location,
.listing-details-category,
.listing-details-status,
.listing-details-date,
.listing-details-views,
.listing-favorite,
.listing-share {
    grid-column: 2;
}

/* SEKCJE PONIŻEJ — PEŁNA SZEROKOŚĆ */

.seller-info,
.listing-details-description,
.seller-contact {
    grid-column: 1 / -1;
}

/* =========================================================
   COFNIĘCIE KROKU 3
========================================================= */

.listing-details-content {
    display: block;
    grid-column: auto;
}

.listing-details-title,
.listing-details-price,
.listing-details-location,
.listing-details-category,
.listing-details-status,
.listing-details-date,
.listing-details-views,
.listing-favorite,
.listing-share,
.seller-info,
.listing-details-description,
.seller-contact {
    grid-column: auto;
}

/* =========================================================
   DOLNE SEKCJE — PEŁNA SZEROKOŚĆ
========================================================= */

.seller-info,
.listing-details-description,
.seller-contact {
    grid-column: 1 / -1;
}


/* =========================================================
   DOLNA CZĘŚĆ OGŁOSZENIA — ŚCIŚNIĘCIE SEKCJI
========================================================= */

.seller-info {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.seller-info h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.listing-details-description {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.listing-details-description h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.listing-details-description p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.seller-contact {
    margin-top: 10px !important;
}

.seller-contact h2 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

/* NAJCZĘŚCIEJ OGLĄDANE OGŁOSZENIA */

.admin-popular-listings {
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.admin-popular-listings h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
}

.admin-popular-listings ol {
    margin: 0;
    padding-left: 30px;
}

.admin-popular-listings li {
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
}

.admin-popular-listings li:last-child {
    border-bottom: none;
}