body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: #f8f8f8;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Horní lišta */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 15px;
}

.logo-text {
    font-weight: 600;
    color: #b8860b;
    font-size: 18px;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

nav a:hover {
    color: #b8860b;
}

/* Detail inzerátu */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.property {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.property img.main {
    flex: 1 1 40%;
    max-width: 400px;
    height: 350px;
    object-fit: cover;
    border-right: 2px solid #f0f0f0;
}

.property-details {
    flex: 1 1 60%;
    padding: 30px;
}

.property-details h1 {
    margin-top: 0;
    color: #333;
}

.property-details p {
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.price {
    font-weight: 700;
    font-size: 22px;
    color: #b8860b;
    margin: 20px 0;
}

.buttons {
    margin-top: 25px;
}

.buttons a {
    display: inline-block;
    padding: 12px 18px;
    margin-right: 10px;
    background: linear-gradient(135deg, #daa520, #b8860b);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: black;
    transition: all 0.3s;
}

.buttons a:hover {
    background: linear-gradient(135deg, #b8860b, #8b6508);
    transform: translateY(-2px);
}

/* Galerie */
.gallery {
    margin-top: 30px;
}

.gallery h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.lightbox .close {
    top: 20px;
    right: 30px;
}

.lightbox .prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.contact {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: url("bcg.png") center/cover no-repeat;
    padding: 60px 20px;
}

.contact .info {
    margin-right: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    color: #b8860b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.contact .info img {
    max-width: 180px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact .info p {
    font-size: 16px;
    margin: 8px 0;
}

.contact form {
    display: flex;
    flex-direction: column;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.contact form input,
.contact form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.contact form input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 6px rgba(184, 134, 11, 0.6);
}

.contact form button {
    padding: 14px;
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: black;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.contact form button:hover {
    background: linear-gradient(135deg, #b8860b, #8b6508);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.5);
}

.map {
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 50%;
    /* jen půlka stránky */
}

.map iframe {
    border: 0;
    width: 100%;
    height: 450px;
}

.property-info {
    max-width: 800px;
    margin: 30px auto;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.property-info h2 {
    padding: 10px 15px;
    margin: 0;
    background: #b8860b;
    color: white;
    font-size: 16px;
}

.property-info table {
    width: 100%;
    border-collapse: collapse;
}

.property-info th,
.property-info td {
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.property-info th {
    width: 30%;
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

.property-info tr:nth-child(even) td {
    background: #fdfdfd;
}

/* Mobilní úpravy */
@media (max-width: 768px) {
    .map {
        width: 100%;
        /* na mobilu celá šířka */
    }

    /* Horní lišta a menu */
    header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    nav a {
        margin: 0;
        font-size: 14px;
    }

    /* Property vertikálně na mobilu */
    .property {
        flex-direction: column;
    }

    .property img.main {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
        max-height: 250px;
        /* omezení výšky na mobilu */
        object-fit: cover;
        /* aby se nedeformovala */
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        border-radius: 15px 15px 0 0;
    }

    .property-details {
        flex: 1 1 100%;
        padding: 15px;
    }

    .buttons a {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        padding: 10px;
        font-size: 13px;
    }

    /* Galerie menší obrázky */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }

    /* Kontakt - formulář a info */
    .contact {
        flex-direction: column;
        padding: 25px 15px;
        align-items: center;
        /* vycentrované */
    }

    .contact .info {
        margin: 0 0 15px 0;
        width: 100%;
        max-width: 300px;
        padding: 15px;
        text-align: center;
    }

    .contact .info img {
        max-width: 120px;
        margin-bottom: 10px;
    }

    .contact .info p {
        font-size: 13px;
        margin: 4px 0;
    }

    .contact form {
        width: 100%;
        max-width: 300px;
        padding: 15px;
    }

    .contact form input,
    .contact form textarea {
        padding: 8px;
        font-size: 13px;
    }

    .contact form button {
        padding: 10px;
        font-size: 13px;
    }

    /* Property info table */
    .property-info {
        margin: 15px 10px;
    }

    .property-info table {
        font-size: 13px;
        /* menší text */
    }

    .property-info table th,
    .property-info table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 8px;
    }

    .property-info table th {
        background: #f5f5f5;
    }

    /* Mapa menší výška */
    .map iframe {
        height: 250px;
    }
}