* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}


/* GÓRA */

.hero {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.35)
        ),
        url("/images/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 8%;
}

.logo {
    font-size: 22px;
    font-weight: 600;
}

.menu {
    display: flex;
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
}

.hero-content {
    min-height: calc(100vh - 100px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0 8% 100px;
}

h1 {
    font-size: 60px;
    line-height: 1.05;

    margin: 0 0 25px;
}

.hero-content p {
    font-size: 22px;
    margin: 0;
}

.button {
    margin-top: 30px;

    background: white;
    color: #333;

    padding: 14px 30px;

    width: max-content;

    text-decoration: none;
}


/* SEKCJE */

section {
    padding: 90px 10%;
}

h2 {
    font-size: 42px;
    line-height: 1.1;

    margin-top: 0;
    margin-bottom: 40px;
}

.about p {
    max-width: 800px;
}


/* INFORMACJE */

.features {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    text-align: center;

    background: #f7f5f0;

    gap: 30px;
}

.features strong {
    display: block;

    font-family: 'Cormorant Garamond', serif;

    font-size: 38px;
    font-weight: 500;
}

.features span {
    display: block;
    color: #777;
}


/* POKOJE */

.rooms {
    display: grid;

    grid-template-columns: repeat(3,minmax(0,1fr));

    gap: 35px;
}

.room-card {
    min-width: 0;

    background: #fafafa;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.room-image {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eee;
}

.room-image img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.room-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #888;
}

.room-info {
    padding: 25px;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.room-info h3 {
    font-size: 28px;

    margin: 0 0 12px;
}

.room-description {
    margin: 0 0 18px;

    color: #777;

    font-size: 14px;
}

.room-info .price {
    margin: auto 0 0;

    padding-top: 10px;

    font-weight: 500;
}


/* GALERIA GŁÓWNA */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(5,minmax(0,1fr));

    gap: 12px;
}

.gallery-grid img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    cursor: pointer;

    display: block;

    transition: transform .25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}


/* PIANKOWE */

.apartments {
    background: #f7f5f0;
}

.piankowe-heading {
    margin-bottom: 70px;
}

.piankowe-heading p {
    max-width: 750px;
}

.mini-apart {
    background: white;

    padding: 40px;

    margin-bottom: 50px;
}

.mini-apart:last-child {
    margin-bottom: 0;
}

.mini-apart-title {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 30px;
}

.apart-number {
    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #888;
}

.mini-apart-title h3 {
    font-size: 38px;

    margin: 3px 0 0;
}

.apart-size {
    font-family: 'Cormorant Garamond', serif;

    font-size: 30px;
}

.apart-gallery {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 12px;
}

.apart-main-photo {
    min-height: 500px;
}

.apart-main-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    cursor: pointer;
}

.apart-thumbnails {
    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 12px;
}

.apart-thumbnails img {
    width: 100%;
    height: 100%;

    min-height: 0;

    object-fit: cover;

    display: block;

    cursor: pointer;

    transition: opacity .2s ease;
}

.apart-thumbnails img:hover,
.apart-main-photo img:hover {
    opacity: .9;
}


/* LIGHTBOX */

.lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,.92);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 50px 100px;

    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    border: 0;
    background: none;

    color: white;

    font-size: 50px;

    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 60px;
    height: 80px;

    border: 0;

    background: rgba(0,0,0,.25);

    color: white;

    font-size: 42px;

    cursor: pointer;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* CENNIK */

.price-section {
    background: white;
}


/* KONTAKT */

.contact {
    background: #f7f5f0;
}

.contact a {
    color: #333;
}

.contact h3 {
    margin-top: 40px;

    font-size: 26px;
}


/* MAPA GOOGLE */

.map-section {
    margin-top: 60px;
}

.map-section h3 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 30px;
}

.google-map {
    width: 100%;

    overflow: hidden;

    background: #eaeaea;
}

.google-map iframe {
    display: block;

    width: 100%;
    height: 450px;

    border: 0;
}


/* STOPKA */

footer {
    padding: 30px;

    text-align: center;

    background: #222;
    color: white;
}

footer p {
    margin: 0;
}


/* TABLET */

@media(max-width:1000px) {

    .rooms {
        grid-template-columns: repeat(2,1fr);
    }

    .features {
        grid-template-columns: repeat(2,1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .apart-gallery {
        grid-template-columns: 1fr;
    }

    .apart-main-photo {
        min-height: 450px;
    }

    .apart-thumbnails {
        grid-template-columns: repeat(3,1fr);
    }

    .apart-thumbnails img {
        aspect-ratio: 4 / 3;
    }

}


/* TELEFON */

@media(max-width:700px) {

    nav {
        padding: 25px 6%;
    }

    .logo {
        font-size: 19px;
    }

    .menu {
        display: none;
    }

    .hero-content {
        padding: 0 7% 70px;
    }

    h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    section {
        padding: 65px 7%;
    }

    h2 {
        font-size: 35px;
    }

    .rooms {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,1fr);

        gap: 8px;
    }


    /* PIANKOWE TELEFON */

    .mini-apart {
        padding: 20px;

        margin-bottom: 30px;
    }

    .mini-apart-title {
        align-items: center;
    }

    .mini-apart-title h3 {
        font-size: 32px;
    }

    .apart-size {
        font-size: 25px;
    }

    .apart-main-photo {
        min-height: 0;
    }

    .apart-main-photo img {
        aspect-ratio: 4 / 3;
    }

    .apart-thumbnails {
        grid-template-columns: repeat(2,1fr);

        gap: 8px;
    }

    .apart-thumbnails img {
        aspect-ratio: 4 / 3;
    }


    /* MAPA TELEFON */

    .map-section {
        margin-top: 45px;
    }

    .google-map iframe {
        height: 350px;
    }


    /* LIGHTBOX TELEFON */

    .lightbox {
        padding: 60px 10px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox-arrow {
        width: 45px;
        height: 65px;

        font-size: 30px;

        background: rgba(0,0,0,.4);
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

}