* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
}

/* Pasek górny */
.topbar {
    background-color: #343a40;
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
}

/* wyrównanie napisu w banerze do konteenera */
.topbar-inner {
    max-width: 900px;   /* taki sam jak .container */
    margin: 0 auto;
    padding: 0 15px;    /* taki sam padding jak container */
}



/* Główny kontener */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Nagłówek */
.page-heading {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
}

.page-heading span {
    font-size: 26px;
    color: #6c757d;
    margin-left: 10px;
}

/* Obraz */
.hero-image {
    width: 250px;
    height: 200px;
    background-color: #dedede;
    border: 1px solid #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    margin-bottom: 0;
}

/* Karta posta */
.post-card {
    background-color: #fff;
    border: 1px solid #dedede;
    border-top: none;
    padding: 25px;
}

.post-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.hero-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-card {
    flex: 1;
}


.post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.post-meta {
    font-size: 13px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
    padding-top: 15px;
}

.post-meta a {
    color: #007bff;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

.hero-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-card {
    flex: 1;
}


/* baner wg IG*/
.offer-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    transition: box-shadow .2s;
}

.offer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.offer-thumb img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-size: 18px;
    margin-bottom: 6px;
    color: #222;
}

.offer-price {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}

.price-m2 {
    font-size: 13px;
    color: #888;
    margin-left: 6px;
}

.offer-details {
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
}

.offer-link {
    margin-top: auto;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.offer-link:hover {
    text-decoration: underline;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 600px) {
    .offer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .offer-thumb img {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .offer-content {
        align-items: center;
    }
}


/* Wyrównanie topbara do kontenera */
.topbar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Lista ofert */
.offer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Kafelek oferty */
.offer-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow .2s;
}

.offer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.offer-thumb img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.offer-thumb-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
}

.offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-size: 18px;
    margin-bottom: 6px;
    color: #222;
}

.offer-price {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.offer-price span {
    font-size: 13px;
    font-weight: normal;
    color: #6c757d;
    margin-left: 6px;
}

.offer-details {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
}

.offer-location {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
}

.offer-link {
    margin-top: auto;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.offer-link:hover {
    text-decoration: underline;
}

/* Minimalna responsywność */
@media (max-width: 600px) {
    .offer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .offer-thumb img,
    .offer-thumb-placeholder {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .offer-content {
        align-items: center;
    }
}

