/* Ogólne style dla całej strony */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Jasnoszary/beżowe tło */
    color: #333;
    line-height: 1.6;
}

/* Nagłówek */
header {
    background-color: #26415c; /* Ciemny granat */
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #1abc9c; /* Turkusowy - akcent */
}

/* Sekcja Hero */
.hero-section {
    /* Ustawienie obrazu tła, z kolorem bazowym #26415c, BEZ nakładania gradientu */
    background: url('images/hero_background.jpeg') no-repeat center center/cover;
    background-color: #26415c; /* To ustawia kolor, który będzie widoczny jeśli obraz jest przezroczysty/nie załaduje się */
    color: #ffffff;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-section button {
    background-color: #1abc9c; /* Turkusowy */
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.hero-section button:hover {
    background-color: #16a085; /* Ciemniejszy turkus */
    transform: translateY(-2px);
}

/* Główna zawartość */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Sekcje treści */
section {
    background-color: #ffffff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;d
    background-color: #1abc9c;
    margin: 10px auto 0;
}

/* Siatka nieruchomości */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.property-card h3 {
    color: #2c3e50;
    margin: 1rem 1rem 0.5rem 1rem;
    font-size: 1.4rem;
}

.property-card p {
    color: #555;
    margin: 0 1rem 0.5rem 1rem;
}

.property-card button {
    background-color: #3498db; /* Jasny niebieski */
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0 0 8px 8px; /* Zaokrąglone tylko dolne rogi */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: auto; /* Przycisk zawsze na dole */
    width: 100%; /* Przycisk na całą szerokość karty */
    box-sizing: border-box; /* Padding wewnątrz szerokości */
}

.property-card button:hover {
    background-color: #2980b9; /* Ciemniejszy niebieski */
}

/* Sekcja "O nas" - skrócona */
.about-us-short {
    text-align: center;
}

.about-us-short p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.about-us-short a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.about-us-short a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Stopka */
footer {
    background-color: #26415c;
    color: #ffffff;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Media Queries dla responsywności */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .property-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na małych ekranach */
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 1rem;
    }
}
/* Style dla stron szczegółów nieruchomości */
.property-detail-location,
.property-detail-price {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.property-detail-price {
    font-weight: bold;
    color: #28a745; /* Kolor zielony dla ceny */
    font-size: 1.3em;
}

.property-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.property-detail-gallery img {
    width: 100%;
    height: 200px; /* Stała wysokość dla zdjęć w galerii */
    object-fit: cover; /* Kadrowanie, aby wypełnić przestrzeń */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-detail-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.property-description h2,
.property-details-summary h2,
.contact-for-offer h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.property-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.property-description ul li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.property-description ul li::before {
    content: '✔️'; /* Symbol checkmark */
    position: absolute;
    left: 0;
    color: #28a745;
}

.property-details-summary ul {
    list-style: disc; /* Lista z kropkami */
    margin-left: 20px;
}

.property-details-summary ul li {
    margin-bottom: 5px;
}

.contact-for-offer {
    background-color: #f0f8ff;
    border-left: 5px solid #007bff;
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
}

/* Responsywność dla stron szczegółów */
@media (max-width: 768px) {
    .property-detail-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 576px) {
    .property-detail-gallery {
        grid-template-columns: 1fr; /* Pojedyncza kolumna na małych ekranach */
    }
    .property-detail-gallery img {
        height: 180px;
    }
    .property-detail-price {
        font-size: 1.1em;
    }
}
/* Nowe style dla sekcji filtrów */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Zwiększony odstęp między grupami filtrów */
    margin-bottom: 30px;
    background-color: #f8f9fa; /* Jaśniejsze tło */
    padding: 25px;
    border-radius: 10px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Delikatniejszy cień */
    align-items: flex-end; /* Elementy wyrównane do dołu */
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1; /* Pozwala grupom filtrów rozciągać się */
    min-width: 180px; /* Minimalna szerokość, aby nie były zbyt wąskie */
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #0056b3;
    font-size: 0.95em;
}

.filters input[type="text"],
.filters input[type="number"],
.filters select {
    width: 100%;
    padding: 12px; /* Większy padding */
    border: 1px solid #ced4da; /* Subtelniejsza ramka */
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters input:focus,
.filters select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.price-range {
    display: flex; /* Teraz price-range jest kontenerem flexowym */
    flex-direction: column; /* Ustawia elementy w kolumnie */
    flex: 1;
    min-width: 250px; /* Minimalna szerokość dla zakresu cen */
}

.price-range label {
    margin-bottom: 8px; /* Odstęp od pól input poniżej */
}

.price-inputs-container { /* Nowy kontener dla pól Min/Max */
    display: flex;
    gap: 10px;
    align-items: center; /* Wyrównuje Min, -, Max w pionie */
}

.price-inputs-container input {
    flex: 1; /* Pola input dzielą dostępną przestrzeń */
}

.price-inputs-container span {
    font-weight: bold;
    color: #555;
    /* Usunięto margin-top, ponieważ align-items: center załatwia wyrównanie */
}


.filter-actions {
    display: flex;
    gap: 10px;
    align-self: flex-end; /* Przyciski na dole, wyrównane z innymi inputami */
    min-width: 200px; /* Minimalna szerokość dla przycisków */
}

.filters button {
    padding: 12px 20px; /* Większy padding */
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1; /* Pozwala przyciskom dzielić przestrzeń */
}

.filters button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filters button.secondary-btn {
    background-color: #6c757d; /* Kolor dla przycisku "Wyczyść filtry" */
    color: #fff;
}

.filters button.secondary-btn:hover {
    background-color: #5a6268;
}

/* Dostosowanie responsywności dla filtrów */
@media (max-width: 768px) {
    .filters {
        flex-direction: column; /* Filtry układają się w kolumnę */
        gap: 15px;
        padding: 20px;
    }
    .filter-group {
        width: 100%; /* Grupy filtrów zajmują całą szerokość */
        min-width: unset;
    }
    .price-range {
        width: 100%;
    }
    .price-inputs-container {
        flex-wrap: nowrap; /* Zachowanie Min - Max na jednej linii */
    }
    .filter-actions {
        width: 100%;
        justify-content: stretch; /* Przyciski rozciągają się */
        align-self: auto;
    }
}