/* ─────────────────────────── RESET & BASICS ─────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

ul {
    margin-left: 15px;
    margin-bottom: 15px;
}

/* ─────────────────────────── NAVBAR ─────────────────────────── */
.navbar {
    background: #2d3748;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 1rem;
    transition: color .3s;
    font-size: 18px;
}

.nav-links a:hover {
    color: #a0aec0;
}

/* Po otwarciu menu */
/* .nav-links.open {
    max-height: 300px; /* Dopasuj do liczby elementów w menu */
/* } */

/* Ikona hamburgera - domyślnie ukryta */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* Dla telefonów */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 10px;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        /* Upewnia się, że menu jest widoczne */
    }
}


/* ─────────────────────────── HERO ─────────────────────────── */
.hero {
    background: url('images/hero.webp') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    text-shadow:
    /* -1px -1px 0 black, Cień w lewo-góra */
     /* 1px -1px 0 black, Cień w prawo-góra */
    /* -1px  1px 0 black, Cień w lewo-dół */
     1px  2px 0 black;  /* Cień w prawo-dół */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ─────────────────────────── BUTTONS ─────────────────────────── */
.btn,
.btn-gallery,
.btn-contact {
    background: #0073ec;
    color: #fff;
    padding: .75rem 1.5rem;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .3s;
}

.btn:hover,
.btn-gallery:hover,
.btn-contact:hover {
    background: #2b6cb0;
}

/* ─────────────────────────── SECTIONS ─────────────────────────── */
.section {
    padding: 4rem 0;
    text-align: center;
}

.section:nth-child(even) {
    background: #f7fafc;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* ─────────────────────────── PROPERTY / OFFER CARDS ─────────────────────────── */
/* .property-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
} */
/* .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: calc(3 * 250px + 2 * 2rem);
    margin: 0 auto;
} */

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 91%; 
  margin: 0 auto;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.property-card,
.offer-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    text-align: left;
}

/* główne zdjęcie karty */
.property-cover-image,
.offer-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: .5rem;
    margin-bottom: 1rem;
    transition: transform .3s ease;
}

.property-cover-image:hover {
    transform: scale(1.02);
}

/* tytuł / opis */
.property-card h3,
.offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

/* .property-card p,  .offer-card p  { color: #718096; margin-bottom: 1rem; } */
.property-card p,
.offer-card p {
    color: #4F5669;
    margin-bottom: 1rem;
}

/* przyciski w karcie */
.property-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ─────────────────────────── MODAL KONTAKT ─────────────────────────── */

.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 0.5rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#modalProperty {
    color: #718096;
    margin-bottom: 1rem;
}

#contactForm {
    display: block;
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-group label {
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-group button {
    background-color: #3182ce;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
    /* opcjonalnie: wyrównanie do lewej */
}

.form-group button:hover {
    background-color: #2b6cb0;
}

/* ─────────────────────────── MODAL KONTAKT ─────────────────────────── */
/* .modal {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,.5);
    z-index: 60;
}
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    max-width: 500px;
    border-radius: .5rem;
    position: relative;
}
.close {
    position: absolute;
    top: .75rem; right: 1rem;
    font-size: 1.75rem; font-weight: 700;
    color: #aaa; cursor: pointer;
    transition: color .3s;
}
.close:hover { color: #000; } */

/* ─────────────────────────── LIGHTBOX ─────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox-main-image {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border: 2px solid #fff;
    border-radius: .5rem;
}

.close-button,
.prev-button,
.next-button {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
}

.close-button {
    top: 1rem;
    right: 2rem;
    font-size: 2.5rem;
}

.prev-button {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.next-button {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-thumbnails {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.lightbox-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    opacity: .6;
    border: 2px solid transparent;
    border-radius: .25rem;
    cursor: pointer;
    transition: opacity .3s, border .3s;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: #fff;
}

/* ─────────────────────────── RESPONSYWNOŚĆ ─────────────────────────── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .section h2 {
        font-size: 2rem;
    }

    .property-grid,
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 15% 1rem;
        width: auto;
    }

    .lightbox-main-image {
        max-height: 60vh;
    }
}

/* ─────────────────────────── STOPKA ─────────────────────────── */
.footer {
    background: #2d3748;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}

/* Dla tabletów - obraz zajmuje większą część ekranu */
@media (max-width: 1024px) {
    img {
        width: 90%;
        max-width: 800px;
    }
}

/* Dla telefonów - obraz na pełną szerokość ekranu */
@media (max-width: 600px) {
    img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        /* Opcjonalnie: dodanie zaokrąglonych rogów */
    }
}