/* ====== GLOBAL ====== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #fdfcf9;
    color: #333;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ====== SIDEBAR / MENU ====== */

.sidebar {
    width: 240px;
    background-color: #faf7f0;
    padding: 32px 24px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    border-right: 1px solid #e0d9c8;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
}

.logo {
    font-family: 'Playfair Display', serif;
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.logo-sub {
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin: 16px 0;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 4px;
}

.sidebar nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #c09b6c;
    transition: width 0.25s ease;
}

.sidebar nav ul li a:hover::after {
    width: 100%;
}

/* ====== MAIN CONTENT ====== */

main {
    margin-left: 260px;
    padding: 40px 40px 60px;
    flex: 1;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d2a24;
}

p {
    line-height: 1.6;
}

/* ====== SLIDER ====== */

#hero-slider {
    margin-bottom: 40px;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 650px; /* główna szerokość na desktopie (ok. połowa ekranu) */
    margin: 0 auto;
}

.slider img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    display: block;
}

.slider-caption {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.92);
    border: none;
    padding: 8px 13px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.prev:hover,
.next:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.prev {
    left: 10px;
}
.next {
    right: 10px;
}

/* ====== GALERIA ====== */

#galeria {
    margin-bottom: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 8px 10px 10px;
    font-size: 0.9rem;
    color: #555;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ====== KALENDARZ ====== */

#kalendarz {
    margin-bottom: 50px;
}

.calendar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.calendar-controls button {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #c7b79d;
    background-color: #faf7f0;
    cursor: pointer;
    font-size: 0.85rem;
}

#cal-range {
    font-weight: 600;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.calendar-month {
    background: #fff;
    border-radius: 10px;
    padding: 12px 12px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.calendar-month h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.8rem;
}

.calendar-grid .weekday {
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    color: #777;
}

.day {
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
}

.day-empty {
    background: transparent;
}

.day-available {
    background-color: #f3f8f3;
    color: #2f6b2f;
}

.day-booked {
    background-color: #ffe5e5;
    color: #a53333;
}

.day-past {
    background-color: #f0f0f0;
    color: #888;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-available {
    background-color: #f3f8f3;
    border: 1px solid #2f6b2f33;
}

.legend-booked {
    background-color: #ffe5e5;
    border: 1px solid #a5333333;
}

.legend-past {
    background-color: #f0f0f0;
    border: 1px solid #9993;
}

/* ====== MAPA ====== */

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.map-wrapper iframe {
    width: 100%;
    height: 75vh; /* ok. 3/4 wysokości ekranu */
}

/* ====== RESPONSYWNOŚĆ ====== */

@media screen and (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0d9c8;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    main {
        margin-left: 0;
        padding: 24px 18px 40px;
    }

    .sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .sidebar nav ul li {
        margin: 0;
    }

    .slider {
        max-width: 100%;
    }

    #calendar {
        grid-template-columns: 1fr;
    }

    .map-wrapper iframe {
        height: 55vh;
    }
}

@media screen and (max-width: 600px) {
    h2 {
        font-size: 1.6rem;
    }

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

    .map-wrapper iframe {
        height: 50vh;
    }
}
