/* =====================================================================
   frontstyle.css
   ===================================================================== */
body {
    background-color: #f4ffdc;
    font-family: "Google Sans", sans-serif;
    margin-top: 50px;
    background-image: url('bg.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto; 
	 background-attachment: fixed;
}   

h1 {
    text-align: center;
    font-family: "Host Grotesk", sans-serif;
    color: #bfbca0;
    font-size:4em;
    line-height: 0.4;
}

.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.div1 {
    grid-column: span 1;
}

.div2 {
    grid-column: span 3;
}

/* Zintegrowany Blok filtrów i wyszukiwarki */
.filtry-baner {
    box-shadow: 0px 0px 16px -7px rgba(0, 0, 0, 0.24);
    border-radius: 14px;
    padding: 10px;
    font-weight: 400;
    font-family: "Google Sans", sans-serif;
    font-size: 0.9em;
    margin-bottom: 30px;
    background-color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; 
    margin-bottom:100px;
    outline: 15px solid #FFFFFF70;
}

.filtr {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Formularze wewnątrz paska */
.filtr select, .input-szukaj {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: "Google Sans", sans-serif;
    background-color: #fff;
}

.input-szukaj {
    width: 100%;
}

.btn-szukaj {
    background-color: #607868;
    width:100%;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Host Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-szukaj:hover {
    background-color: #36423c;
}

/* Wrapper na całą listę ofert */
.lista-ofert {
    padding-top: 20px;
    max-width: 999px;
    margin: 20px auto;
}

/* Pojedyncza oferta (karta ogłoszenia) */
.oferta {
    box-shadow: 0px 0px 15px -4px rgba(29, 53, 45, 0.41);
    border-radius: 14px;
    padding: 0;
    font-weight: 400;
    font-family: "Google Sans", sans-serif;
    margin-bottom: 60px;
    background-color: white;
    overflow: hidden; /* zapobiega wystawaniu tła poza border-radius */
    
}

/* Sekcja danych wyjazdu wewnątrz pojedynczej oferty */
.oferta-wyjazd {
    padding: 15px;
    background: linear-gradient(180deg, rgba(96, 120, 104, 1) 0%, rgba(54, 66, 60, 1) 100%);
    color: white;
}

/* Sekcja danych seniora / zlecenia wewnątrz pojedynczej oferty */
.oferta-senior {
    padding: 10px 23px 10px 15px;
    display: flex;
    flex-direction: column;
}

.senior-spec {
    font-family: "Google Sans", sans-serif;
    font-size: 0.9em;
    line-height: 0.5;
    margin-bottom: 10px;
    color: #506458;

}

.umowa-spec {
    font-family: "Google Sans", sans-serif;
    font-size: 0.8em;
    line-height: 1.5;
    color: #878787;
    margin-top: auto;
    padding-right:23px;
    padding-left: 15px
}

/* Sekcja danych kontaktowych wewnątrz pojedynczej oferty */
.oferta-kontakt {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
}

.kontakt-tekst {
    font-family: "Google Sans", sans-serif;
}

.oferta-dane {
    margin-bottom: 8px;
    font-size: 1.1em;
    text-transform: uppercase;
    font-family: "Host Grotesk", sans-serif;
}
    
.oferta-stawka {
    font-family: "Host Grotesk", sans-serif;
    font-size: 2.3rem; 
    font-weight: 700;
    margin-top: 10px;
}

.oferta-stawka p {
    margin: 0;
}

.oferta-opis {
font-size: 0.9em;
line-height: 1.4;
margin-bottom:40px;
}

.zgloszenie {
font-size: 0.9em;
line-height: 1.4;
margin-top:40px;
display: flex;
justify-content: center; 
align-items: center;
}

/* Komunikat gdy brak ofert */
.brak-ofert {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 14px;
    border: 1px solid #ccc;
    font-weight: bold;
}
    
#opis {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #bfbca0;
    font-weight: 700;
}

#fbaner {
    font-size: 0.9em;
    text-transform: uppercase;
    color: grey;
    font-weight: 700;
}

#lub {margin: 0 10px;
	 font-size:small;
	 color: grey;}

hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 10px 0;
}

/* Przycisk WhatsApp wewnątrz oferty */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* Zielony WhatsApp */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-family: "Host Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1em;
    border-radius: 8px;
    box-shadow: 0px 4px 10px -3px rgba(37, 211, 102, 0.5);
    transition: background-color 0.2s, transform 0.1s;
    margin: 10px auto;
    text-align: center;
    
}

.btn-tel {
    display: inline-flex;
    align-items: center;
    background-color: #607868;
    text-decoration: none;
    padding: 10px 20px;
    font-family: "Host Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1em;
    border-radius: 8px;
    
    transition: background-color 0.2s, transform 0.1s;
    margin: 10px auto;
    text-align: center;
    color: white;
    
}

.btn-whatsapp:hover {
    background-color: #128C7E; 
    transform: translateY(-1px);
    color: white;
}

.btn-whatsapp active {
    transform: translateY(0);
}

.btn-tel:hover {
    background-color: #38443e; 
    transform: translateY(-1px);
    color: white;
}

.btn-tel active {
    transform: translateY(0);
}

hr.cienka { border: 1px solid grey;}
hr.cienka2 { border: 1px solid #bfbca0;display: none;}

/* =====================================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ===================================================================== */
@media (max-width: 882px) {
    .parent {
        grid-template-columns: 1fr;   
        gap: 0px;
    }

    .div1, .div2 {
        grid-column: span 1; 
    }

    .filtry-baner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        outline: 5px solid #FFFFFF70;
    }

    .filtr {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .filtr select, .input-szukaj {
        width: 100%;
        box-sizing: border-box;
    }

    .btn-szukaj {
        width: 100%;
    }
    .senior-spec {
    	line-height: 1.5;
}
	 .oferta {
	 outline: 5px solid #FFFFFF70;
	 
	 }

	 .zgloszenie {flex-direction: column;}

	 hr.cienka2 {display: block;}
	 h1 {font-size:2em; line-height: 1;}
	 body {background-image: url('BGmb.png'); margin-top: 0; position: static}
}