body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

main {

}

footer {
    display: flex; justify-content: center; align-items: center; max-height: 10vh; padding-top: 2vh;
}

img { max-width: 100%; }

.mh10 { max-height: 10vh; }
.p2 { padding: 2vmin; }
.m2 { margin: 2vmin; }

.logo {
    height: 90px;
    z-index: 100;
    -webkit-user-select: none;
    user-select: none;
    margin-left: 1.3rem;
}

#n,
#n::before,
#n::after {
    transition: all 420ms ease;
    color: black;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

#n {
    position: relative;
    min-width: 40px;
    min-height: 40px;
    z-index: 100;
    padding: 10px;
    margin-right: 1.3rem;
}

#n::before,
#n::after {
    content: '';
    min-width: 32px;
    min-height: 4px;
    background-color: black;
    position: absolute;
}

#n::before {
    top: 22px;
    left: 14px
}

#n::after {
    top: 34px;
    left: 14px;
}

#n:active {
    transform: scale(1.1);
}

#n.visible::before {
    transform: rotate(45deg);
    top: 28px;
}

#n.visible::after {
    transform: rotate(135deg);
    top: 28px;
}

@media (max-width: 834px) {
    nav {
        flex-direction: column;
        height: 0px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 90;
        padding: 0;
    }

    nav.visible {
        height: 100vh;
        display: flex;
    }

    nav.visible .link {
        font-size: 1.5rem;
        padding: 1.2rem;
    }
}

@media (min-width: 834px) {
    #n {
        display: none;
    }
}

nav {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

nav.visible {
    position: absolute;
    height: 100vh;
    overflow: hidden;
    width: 100vw;
    background-color: #fff;
}

.link {
    padding: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease-in-out;
    -webkit-user-select: none;
    user-select: none;
}

.link.active,
.link:hover {
    text-decoration: underline;
}

.page {
    display: none;
    flex-direction: column;
    padding: 0 1rem 3rem 1rem;
}

.visible {
    display: flex;
}

.hidden {
    display: none;
}

.pointer {
    cursor: pointer;
}

/* Apie Page */
.headline {
    text-align: center;
    margin: 3rem 0;
    font-size: 2em;
    line-height: 1.4;
    font-weight: 300;
}

.hero-img {
    width: 100%;
    border-radius: 8px;
}

.apie-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 2rem 5rem 2rem;
    text-align: center;
}

.apie-item.right {
    flex-direction: row-reverse;
}

.apie-item img {
    flex: 1;
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.apie-item .text-content {
    flex: 1;
}

.apie-item h2 {
    margin-top: 0;
    color: #222;
    font-size: 1.8em;
    letter-spacing: 1px;
    font-weight: light;
}

.apie-item p {
    line-height: 1.4;
    font-size: 1.2em;
    color: #000;
    white-space: pre-line;
}

/* Rental Page */
.rental-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.02);
}

.gallery-indicator {
    display: none;
}

@media (max-width: 768px) {
    .gallery-indicator {
        display: block;
        text-align: center;
        margin-top: -1rem;
        margin-bottom: 1rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: #666;
    }
    .gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 10px;
        grid-template-columns: none;
    }

    .gallery img {
        flex: 0 0 80%;
        scroll-snap-align: center;
        aspect-ratio: 1 / 1;
    }
}

.rental-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.description {
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    
}

.tag {
    background-color: #00b161;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contacts Page */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Contact Highlight for Rental Pages */
.contact-highlight {
    background-color: rgb(31, 78, 120);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0 0 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-highlight h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.contact-content .name {
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-content a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.contact-content a:hover {
    border-bottom-color: white;
}

iframe { border-radius: 8px; }

@media (max-width: 768px) {
    .apie-item, .apie-item.right {
        flex-direction: column;
        margin: 0 0 3rem 0;
        gap: 1rem;
    }
    .apie-item img {
        width: 100%;
    }
}

/* Gallery Overlay */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-img-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-img-container img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.gallery-close, .gallery-prev, .gallery-next {
    position: absolute;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: opacity 0.2s;
    z-index: 1001;
}

.gallery-close:hover, .gallery-prev:hover, .gallery-next:hover {
    opacity: 0.7;
}

.gallery-close {
    top: 1rem;
    right: 1rem;
}

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

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

@media (max-width: 768px) {
    .gallery-prev, .gallery-next {
        font-size: 2rem;
        padding: 0.5rem;
    }
}

