/* =========================
   IMPORT CZCIONEK
========================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@500;600;700&display=swap');

/* =========================
   RESET / PODSTAWY
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #14303a;
    background: #f6f6f6;
}

a {
    color: #14303a;
    text-decoration: none;
}

a:hover {
    color: #cfb579;
}
img {max-width:100%;}
/* =========================
   NAGŁÓWKI
========================= */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}
h1 {text-align: center; margin:1em 0;}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* =========================
   TOP BAR (login / rejestracja)
========================= */
.topbar {
    background: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.topbar strong {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}

/* =========================
   FILTR
========================= */
.filter {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter input,
.filter select {
    padding: 6px;
    font-family: 'Open Sans', sans-serif;
}

/* =========================
   PRZYCISKI
========================= */
button,
.btn {
    background: #cfb579;
    border: none;
    padding: 8px 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    color: white;

}

button:hover,
.btn:hover {
    opacity: 0.85;
}

/* =========================
   LISTA OGŁOSZEŃ
========================= */
.ads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.ad {
    background: #ffffff;
    padding: 15px;
    border-radius: 4px;
    transition: 0.2s;
}

.ad:hover {
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    transform: scale(1.02);
}

.ad img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.ad h3 {
    margin-bottom: 5px;
}

.ad small {
    color: #555;
}

.price {
    font-weight: bold;
    /* margin: 8px 0; */
}

/* =========================
   SZCZEGÓŁY OGŁOSZENIA
========================= */
.offer-view {
    background: #ffffff;
    padding: 25px;
}

.offer-view img {
    max-width: 100%;
    margin: 20px 0;
}

.meta {
    color: #555;
    font-size: 14px;
}

/* =========================
   LINK POWROTU
========================= */
.back-link {
    display: inline-block;
    margin-bottom: 15px;
}

/* =========================
   LISTA OGŁOSZEŃ – POZIOME KARTY JEDNA POD DRUGĄ
========================= */
.offer-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: 0.2s;
    text-decoration: none;
    color: #14303a;

    width: 100%; /* pełna szerokość kontenera */
    box-sizing: border-box;
}

.offer-horizontal:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    transform: scale(1.01);
}

.offer-horizontal img {
    width: 250px;
    height: 155px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.offer-horizontal .title {
    flex: 1; /* zajmuje całą dostępną przestrzeń między zdjęciem a ceną */
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.offer-horizontal .price {
    font-weight: bold;
    font-size: 22px;
    min-width: 100px;
    text-align: right;
}

.offer-location {
    font-size: 14px;
    color: #14303a;
    margin-top: 4px;
    font-family: 'Open Sans', sans-serif;
}

.view-image {
    max-width:600px;
}

/* =========================
   STRONA SZCZEGÓŁÓW OGŁOSZENIA
========================= */
.offer-view-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    color: #14303a;
}

.offer-view-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align:left;
    margin-bottom: 25px;
}

/* dwie kolumny */
.offer-view-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* lewa kolumna – zdjęcie + opis */
.offer-view-left {
    flex: 2; /* szersza */
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.offer-view-left img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.offer-view-description {
    font-size: 16px;
    line-height: 1.5;
}

/* prawa kolumna – cena i dane */
.offer-view-right {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    height: auto;      /* dopasowanie wysokości do zawartości */
}

.offer-view-right .price {
    font-size: 26px;
    font-weight: 700;
    color: #cfb579;
    margin-bottom: 15px;
}

.offer-view-right .details {
    font-size: 15px;
    line-height: 1.5;
}

.offer-view-right .details strong {
    display: inline-block;
    width: 120px;
}

.main-footer {
    margin-top: 40px;
    padding: 20px 20px 100px;
    color: #555;
    font-size: 0.9em;
}

.main-footer hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-section p {
    margin: 5px 0;
    line-height: 1.4;
}

.footer-section a {
    text-decoration: none;
}

/* Styl wyróżnionego boksu kontaktu */
.contact-highlight-box {
    background-color: #f8faff;
    border: 2px solid #cfb579;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.contact-highlight-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-item .icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.phone-number {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.contact-item a {
    text-decoration: none;
    color: #333;
}


.working-hours {
    font-size: 0.85rem;
    color: #666;
    margin: 15px 0;
}

