/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f9f6;
    color: #333;
    line-height: 1.6;
}

/* Baner główny (Hero) z Twoim zdjęciem tlo.jpg */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), 
                url('zdjecia/tlo.jpg') no-repeat center center/cover;
    height: 65vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

header p {
    font-size: 1.4rem;
    max-width: 750px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    font-style: italic;
}

/* Główny kontener */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sekcja O nas / O domku */
.details-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    margin-bottom: 40px;
}

h2 {
    color: #2c4c38;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Styl dla sekcji i przycisku kalendarza */
.calendar-btn-container {
    text-align: center;
    margin: 30px 0 10px 0;
}

.btn-calendar {
    display: inline-block;
    background-color: #2c4c38;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(44, 76, 56, 0.3);
    transition: all 0.3s ease;
}

.btn-calendar:hover {
    background-color: #1e3527;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(44, 76, 56, 0.4);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.feature-item {
    background: #f0f4f1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #2c4c38;
    box-shadow: inset 0 0 0 1px rgba(44, 76, 56, 0.1);
}

/* Rozbudowana Galeria zdjęć */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    height: 260px;
    background-color: #eaeaea;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.06);
}

/* STYLE POWIĘKSZENIA (LIGHTBOX) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto; 
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-width: 100%;
    min-height: 100%;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 95vw; 
    max-height: 85vh;
    object-fit: contain;
    display: block;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    cursor: grab;
}

.lightbox-content img:active {
    cursor: grabbing;
}

.close-lightbox {
    color: rgba(255, 255, 255, 0.7);
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.close-lightbox:hover {
    color: #fff;
}

.zoom-tip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    pointer-events: none; 
    z-index: 10001;
}

/* Sekcja Dojazd / Zdjęcie + Mapa Google */
.map-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    margin-bottom: 40px;
    text-align: center;
}

.map-image-container {
    max-width: 900px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.map-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-google-container {
    max-width: 900px;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    height: 450px;
}

.map-google-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Kontakt i stopka */
footer {
    background-color: #2c4c38;
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
}

footer h2 {
    color: white;
    border: none;
    margin-bottom: 15px;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-info {
    font-size: 1.2rem;
    margin: 25px 0;
    line-height: 2;
}

.contact-info a {
    color: #a3c7ad;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- STYLE DLA KALENDARZA --- */
body.calendar-page {
    padding: 20px;
    text-align: center;
}

.nav-back {
    margin-bottom: 20px;
    display: inline-block;
    color: #2c4c38;
    text-decoration: none;
    font-weight: bold;
}

.calendar-box {
    max-width: 450px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #2c4c38;
    font-size: 1.2rem;
}

.calendar-header button {
    background: #2c4c38;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    padding: 12px 0;
    background: #f0f4f1;
    border-radius: 6px;
    cursor: default;
    font-weight: 600;
    user-select: none;
    transition: background 0.2s;
}

.day.empty {
    background: transparent;
    cursor: default;
}

/* Statusy dni w kalendarzu */
.day.available {
    background: #e2f0e5;
    color: #2c4c38;
}

.day.booked {
    background: #fce8e6;
    color: #a83232;
    text-decoration: line-through;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}