/* Bałtycka Przystań 2025
    Autor: Zuzanna Teszke
    Data: 2025
    Wersja: 38.0 - Poprawki CSS dla galerii i kontrolek nagłówka
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #4DB6AC;      
    --color-secondary: #80CBC4;    
    --color-text-primary: #263238; 
    --color-text-secondary: #546E7A;
    --color-surface: #ffffff;
    --color-border: #CFD8DC;      
    --color-glass-border: rgba(255, 255, 255, 0.4);
    --color-footer-bg: #1f2937; 
    --color-footer-text: #9ca3af; 
    --color-footer-heading: #e5e7eb; 

    --color-available: #E8F5E9; 
    --color-available-hover: #C8E6C9;
    --color-reserved: #FFEBEE; 
    --color-reserved-text: #B71C1C;
    
    --background-gradient: linear-gradient(135deg, #f0f7f7 0%, #f6f9fc 100%);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --container-width: 1280px;
    --border-radius: 20px; 
    --shadow-soft: 0 8px 32px rgba(77, 182, 172, 0.15);
    --shadow-medium: 0 12px 40px rgba(77, 182, 172, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--background-gradient);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}
h2 { font-size: 2.8rem; }
h3 { font-size: 1.5rem; font-family: var(--font-body); font-weight: 600; }
p { color: var(--color-text-secondary); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--color-primary); transition: var(--transition-smooth); font-weight: 500;}
a:hover { color: #26A69A; }
img { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }

.py-section { padding: 6rem 0; }
.bg-light { background-color: transparent; }
.section-title { margin-bottom: 1.5rem; }
.section-subtitle { max-width: 700px; margin: 0 auto 3.5rem auto; font-size: 1.1rem; line-height: 1.8; }
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}
.btn-primary:hover:not(:disabled) {
    background-color: #26A69A;
    border-color: #26A69A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 182, 172, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    padding: 0.9rem 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-glass:hover::before { left: 150%; }
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.btn-glass i { transition: transform 0.3s ease; }
.btn-glass:hover i { transform: scale(1.1) rotate(5deg); }


header { position: relative; height: 0; }
.menu-toggle-btn { position: fixed; top: 2rem; left: 2rem; z-index: 1005; background: rgba(20, 20, 20, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; width: 56px; height: 56px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; }
.menu-toggle-btn:hover { transform: scale(1.1); }
.menu-toggle-btn .hamburger { width: 28px; height: 28px; transition: transform 0.4s ease; }
.menu-toggle-btn .line { fill: #fff; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), y 0.4s cubic-bezier(0.22, 1, 0.36, 1), x 0.4s cubic-bezier(0.22, 1, 0.36, 1); transform-origin: center; }
.menu-toggle-btn.active .hamburger { transform: rotate(180deg); }
.menu-toggle-btn.active .line.top { transform: rotate(45deg); x: 18; y: 32; }
.menu-toggle-btn.active .line.middle { opacity: 0; transform: scale(0); }
.menu-toggle-btn.active .line.bottom { transform: rotate(-45deg); x: -12; y: 38; }

.header-controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1005;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.guest-panel-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    background: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.guest-panel-button:hover {
    transform: scale(1.05);
    background: rgba(30, 30, 30, 0.5);
}
.language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}
.lang-btn.active {
    color: white;
    cursor: default;
}

.side-menu { position: fixed; top: 0; left: 0; width: 380px; height: 100%; background: rgba(38, 50, 56, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-right: 1px solid rgba(255, 255, 255, 0.1); z-index: 1002; display: flex; flex-direction: column; justify-content: center; padding: 0 3.5rem; transform: translateX(-100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.side-menu.active { transform: translateX(0); }
#menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s 0.5s; }
#menu-overlay.active { opacity: 1; visibility: visible; transition-delay: 0s; }
.side-menu-nav ul { list-style: none; padding: 0; margin: 0; }
.side-menu-nav li { opacity: 0; transform: translateX(-20px); transition: opacity 0.4s ease, transform 0.4s ease; margin: 1.2rem 0; }
.side-menu.active li { opacity: 1; transform: translateX(0); }
.side-menu.active li:nth-child(1) { transition-delay: 0.15s; }
.side-menu.active li:nth-child(2) { transition-delay: 0.2s; }
.side-menu.active li:nth-child(3) { transition-delay: 0.25s; }
.side-menu.active li:nth-child(4) { transition-delay: 0.3s; }
.side-menu.active li:nth-child(5) { transition-delay: 0.35s; }
.side-menu.active li:nth-child(6) { transition-delay: 0.4s; }
.side-menu.active li:nth-child(7) { transition-delay: 0.45s; }
.side-menu.active li:nth-child(8) { transition-delay: 0.5s; }
.side-menu-nav a { display: inline-block; font-family: var(--font-body); font-size: 1.8rem; font-weight: 500; color: rgba(255,255,255,0.8); padding: 0.5rem 0; text-decoration: none; position: relative; transition: color 0.3s ease; }
.side-menu-nav a:hover { color: #fff; }
.side-menu-nav a.active { color: #B2DFDB; font-weight: 600; }

#hero { position: relative; height: 100vh; display: flex; justify-content: center; align-items: center; color: var(--color-surface); overflow: hidden; background-image: url('images/APA3/MAIN-APA3.jpg'); background-size: cover; background-position: center center; }
#hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 1rem; animation: fadeInHero 1.5s ease-out; }
@keyframes fadeInHero { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-brand-name { font-family: var(--font-heading); font-style: italic; color: var(--color-surface); font-size: 6rem; font-weight: 700; line-height: 1.1; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.hero-subtitle { font-family: var(--font-body); font-weight: 400; color: rgba(255, 255, 255, 0.95); font-size: 1.5rem; margin-top: 1.5rem; margin-bottom: 3rem; max-width: 650px; margin-left: auto; margin-right: auto; min-height: 3em; }
.hero-subtitle .cursor { display: inline-block; background-color: var(--color-surface); margin-left: 5px; width: 3px; animation: blink 1s infinite; }
.hero-subtitle .cursor.typing { animation: none; }
@keyframes blink { 0%  { background-color: var(--color-surface); } 49% { background-color: var(--color-surface); } 50% { background-color: transparent; } 99% { background-color: transparent; } 100%{ background-color: var(--color-surface); } }
.btn-hero-new { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1.2rem 2.8rem; font-size: 1.1rem; font-weight: 600; border-radius: 50px; color: var(--color-surface); background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-hero-new i { transition: transform 0.3s ease; }
.btn-hero-new:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.3); color: var(--color-surface); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-hero-new:hover i { transform: translateX(5px); }
.scroll-down-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--color-surface); animation: bounce 2s infinite; cursor: pointer; z-index: 2; opacity: 0.7; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } 60% { transform: translateY(-5px) translateX(-50%); } }

.apartament-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(128, 203, 196, 0.2);
    transition: var(--transition-smooth);
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
}
.apartament-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 45px rgba(128, 203, 196, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}
.apartamenty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.card-image-wrapper { height: 280px; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.apartament-card:hover .card-image-wrapper img { transform: scale(1.05); }
.card-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 1rem; }
.card-body p { flex-grow: 1; }

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.price-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 1rem; 
    color: var(--color-text-primary); 
    gap: 1rem; 
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}
.price-info strong { font-weight: 700; color: var(--color-text-primary); }

.btn-price-check {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.6);
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
.btn-price-check:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.6);
}

.booking-action-wrapper .btn { width: 100%; }

.udogodnienia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; text-align: center; margin-top: 4rem;}
.udogodnienie-item i { color: var(--color-primary); width: 48px; height: 48px; margin-bottom: 1.5rem; }
.udogodnienie-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; color: var(--color-text-primary); margin-bottom: 0.5rem; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.info-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}
.info-card-icon i {
    width: 28px;
    height: 28px;
}
.info-card-title {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.info-card-text {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 110px;
}
.info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.info-card-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.info-card-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.galeria-dekoracyjna-grid {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 4rem auto 0;
}
.galeria-dekoracyjna-item {
    position: absolute;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s 0.2s;
    border: 6px solid #fff;
}
.galeria-dekoracyjna-item:hover {
    transform: scale(1.05) rotate(0) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 10;
    transition-delay: 0s;
}
.galeria-dekoracyjna-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.galeria-dekoracyjna-item.item-1 {
    width: 45%;
    height: 60%;
    top: 0;
    left: 5%;
    transform: rotate(-8deg);
    z-index: 1;
}
.galeria-dekoracyjna-item.item-2 {
    width: 55%;
    height: 70%;
    top: 15%;
    right: 5%;
    transform: rotate(5deg);
    z-index: 2;
}
.galeria-dekoracyjna-item.item-3 {
    width: 35%;
    height: 50%;
    bottom: 0;
    left: 25%;
    transform: rotate(10deg);
    z-index: 3;
}


.calendar-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; }
.current-month-year-display { font-size: 1.8rem; font-weight: 600; color: var(--color-text-primary); min-width: 220px; font-family: var(--font-heading); text-transform: capitalize; }
.btn-icon { background: transparent; border: none; padding: 0.5rem; cursor: pointer; color: var(--color-text-primary); }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-icon:hover:not(:disabled) { color: var(--color-primary); }
.year-selector-wrapper { position: relative; display: flex; align-items: center; }
.year-selector-wrapper i { position: absolute; left: 12px; pointer-events: none; color: var(--color-text-secondary); width: 20px; }
.year-select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.year-select:hover { border-color: var(--color-primary); }
.year-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2); }

.calendars-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.calendar-wrapper { padding: 1.5rem; text-align: center; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--color-glass-border); border-radius: var(--border-radius); box-shadow: var(--shadow-soft); transition: var(--transition-smooth); overflow: hidden; border-top-width: 5px; }
.calendar-wrapper:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.calendar-wrapper[data-apartment-style="parter"] { border-top-color: #66BB6A; }
.calendar-wrapper[data-apartment-style="pietro2"] { border-top-color: #42A5F5; }
.calendar-wrapper[data-apartment-style="pietro3"] { border-top-color: #7E57C2; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 1.5rem; }
.calendar-day { display: flex; justify-content: center; align-items: center; height: 42px; border-radius: 50%; font-weight: 500; transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease; }
.calendar-day.weekday { font-weight: 600; color: var(--color-text-secondary); height: auto; }
.calendar-day.available { background-color: var(--color-available); color: #388E3C; cursor: pointer; }
.calendar-day.available:hover { transform: scale(1.1); background-color: var(--color-available-hover); }
.calendar-day.reserved { background-color: var(--color-reserved); color: var(--color-reserved-text); text-decoration: none; font-weight: 400; opacity: 0.9; cursor: not-allowed; }
.calendar-day.past {
    background-color: #ECEFF1;
    color: #90A4AE;
    cursor: not-allowed;
    font-weight: 400;
}
.calendar-day.today { border: 2px solid var(--color-primary); }
.calendar-legend { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; font-size: 0.9rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-color { width: 18px; height: 18px; border-radius: 50%; }
.legend-available { background-color: var(--color-available); border: 1px solid var(--color-available-hover); }
.legend-reserved { background-color: var(--color-reserved); border: 1px solid #FFCDD2; }
.legend-past { background-color: #ECEFF1; border: 1px solid #CFD8DC; }
.closed-info { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(2px); z-index: 2; padding: 1rem; opacity: 0; transform: translateY(20px); animation: fadeInInfo 0.6s 0.2s forwards cubic-bezier(0.25, 0.8, 0.25, 1); }
.closed-info i { color: var(--color-primary); width: 48px; height: 48px; margin-bottom: 1rem; }
.closed-info h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; color: var(--color-primary); margin-bottom: 0.5rem; }
@keyframes fadeInInfo { to { opacity: 1; transform: translateY(0); } }

.lokalizacja-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.lokalizacja-content h2 { text-align: left; }
.address { display: flex; align-items: start; gap: 1rem; margin-top: 2rem; font-size: 1.1rem; }
.address i { color: var(--color-primary); margin-top: 5px; }
.map-container { height: 450px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-medium); }
.kontakt-info-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.kontakt-info-item { padding: 2.5rem 2rem; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--color-glass-border); border-radius: var(--border-radius); box-shadow: var(--shadow-soft); transition: var(--transition-smooth); }
.kontakt-info-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.kontakt-info-icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: var(--color-surface); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; transition: var(--transition-smooth); }
.kontakt-info-item:hover .kontakt-info-icon { transform: scale(1.1) rotate(15deg); box-shadow: 0 4px 15px rgba(77, 182, 172, 0.4); }
.kontakt-info-icon i { width: 28px; height: 28px; }
.kontakt-info-item h4 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text-primary); }
.kontakt-info-item p { font-size: 0.95rem; color: var(--color-text-secondary); min-height: 55px; }
.kontakt-info-link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 1.1rem; color: var(--color-primary); background-image: linear-gradient(currentColor, currentColor); background-position: 0% 100%; background-repeat: no-repeat; background-size: 0% 2px; transition: background-size .3s, color .3s; }
.kontakt-info-link:hover { background-size: 100% 2px; color: var(--color-primary); }
.kontakt-info-link-static { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 1.1rem; color: var(--color-text-primary); }

.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 5rem 0 0 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}
.footer-column {
    padding: 0 1rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--color-surface);
    margin-bottom: 1rem;
}
.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.footer-socials a {
    display: inline-block;
    color: var(--color-footer-text);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: var(--transition-smooth);
}
.footer-socials a:hover {
    color: var(--color-surface);
    background-color: var(--color-primary);
    transform: translateY(-2px);
}
.footer-heading {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-footer-heading);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--color-footer-text);
    transition: color 0.3s ease;
    font-weight: 400;
}
.footer-links a:hover {
    color: var(--color-surface);
    padding-left: 5px;
}
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--color-footer-text);
}
.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.footer-contact-info i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    margin-top: 3px;
    color: var(--color-secondary);
}
.footer-contact-info a {
    color: var(--color-footer-text);
}
.footer-contact-info a:hover {
    color: var(--color-surface);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-footer-text);
}
.footer-signature {
    font-style: italic;
    opacity: 0.7;
}

.modal-overlay, .gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 50, 56, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.modal-overlay.active, .gallery-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.modal-content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 95vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-content h2 { text-align: center; margin-bottom: 0.5rem; font-size: 2rem;}
.modal-content p { text-align: center; margin-bottom: 1.5rem; }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; cursor: pointer; padding: 0.5rem; color: var(--color-text-secondary); z-index: 10; }
.modal-close-btn:hover { color: var(--color-primary); }
.modal-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.modal-form-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.modal-form-group input, .modal-form-group select { width: 100%; padding: 0.8rem; border: 1px solid var(--color-border); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background-color: var(--color-surface); }
.modal-form-group input:disabled, .modal-form-group select:disabled { background-color: #f8f9fa; color: #6c757d; cursor: not-allowed; }
.modal-price-display { text-align: center; background-color: rgba(255,255,255,0.5); padding: 1.5rem; border-radius: var(--border-radius); }
.modal-price-display .price-label { display: block; font-size: 1rem; color: var(--color-text-secondary); }
.modal-price-display .price-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--color-text-primary); font-family: var(--font-heading); }

.gallery-modal-overlay { background: rgba(240, 247, 247, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gallery-modal-content { width: 100%; height: 100%; padding: 2rem; display: flex; flex-direction: column; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s; }
.gallery-modal-overlay.active .gallery-modal-content { opacity: 1; transform: translateY(0); }
.gallery-modal-header { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.gallery-modal-header h2 { margin-bottom: 1.5rem; }
.gallery-modal-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.gallery-tab { background: transparent; border: 1px solid var(--color-border); padding: 0.6rem 1.2rem; border-radius: 30px; font-family: var(--font-body); font-weight: 600; cursor: pointer; transition: var(--transition-smooth); }
.gallery-tab:hover { background-color: #E0F2F1; border-color: #B2DFDB; }
.gallery-tab.active { background-color: var(--color-primary); color: var(--color-surface); border-color: var(--color-primary); }
.gallery-modal-body { flex-grow: 1; overflow-y: auto; padding: 2rem 0; }
.gallery-grid-container { display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-grid-container.active { display: grid; }
.gallery-grid-container img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); transition: transform 0.3s ease; cursor: pointer; }
.gallery-grid-container img:hover { transform: scale(1.03); }
.gallery-loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--color-primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 4rem auto;
    display: block;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.gallery-error { text-align: center; padding: 2rem; color: var(--color-reserved-text); }


#online-booking-modal-overlay .modal-content { max-width: 580px; }
.booking-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.booking-progress .step { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.8rem; color: var(--color-text-secondary); transition: color 0.4s ease; }
.booking-progress .step span:first-child { width: 30px; height: 30px; border-radius: 50%; background-color: #B0BEC5; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.5rem; transition: background-color 0.4s ease; }
.booking-progress .step.active { color: var(--color-text-primary); font-weight: 600; }
.booking-progress .step.active span:first-child { background-color: var(--color-primary); }
.booking-progress .progress-bar { flex-grow: 1; height: 4px; background-color: #B0BEC5; margin: 0 1rem; margin-bottom: 1.5rem; }
.booking-progress .progress-bar-fill { width: 0%; height: 100%; background-color: var(--color-primary); transition: width 0.4s ease; }
.booking-step { display: none; }
.booking-step.active { display: block; animation: fadeInStep 0.5s ease-in-out; }
@keyframes fadeInStep { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.reservation-result-display { text-align: center; padding: 1rem; border-radius: var(--border-radius); border: 1px solid transparent; transition: all 0.3s ease; display: none; flex-direction: column; align-items: center; justify-content: center;}
.reservation-result-display:not(:empty) { display: flex; }
.reservation-result-display.available { border-color: #4CAF50; background-color: #E8F5E9; }
.reservation-result-display.unavailable { border-color: #F44336; background-color: #FFEBEE; }
.reservation-result-display .status-text { font-weight: 700; font-size: 1.1rem; }
.reservation-result-display.available .status-text { color: #2E7D32; }
.reservation-result-display.unavailable .status-text { color: #C62828; }
.reservation-result-display .price-details { margin-top: 0.5rem; font-size: 0.9rem; }
.reservation-result-display .price-details .tourist-tax { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 0.25rem; }
.reservation-result-display .total-price { font-weight: 700; color: var(--color-text-primary); }
.payment-choice-wrapper { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.payment-choice-option { display: block; border: 2px solid rgba(255,255,255,0.4); border-radius: var(--border-radius); padding: 1rem; cursor: pointer; transition: var(--transition-smooth); background-color: rgba(255,255,255,0.4); }
.payment-choice-option:hover { border-color: var(--color-secondary); }
.payment-choice-option input[type="radio"] { display: none; }
.payment-choice-option input[type="radio"]:checked + .payment-choice-content { border-left: 4px solid var(--color-primary); padding-left: 1rem; }
.payment-choice-content { border-left: 4px solid transparent; transition: var(--transition-smooth); }
.payment-choice-title { font-weight: 700; font-size: 1.1rem; color: var(--color-text-primary); display: block; }
.payment-choice-price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); display: block; margin: 0.25rem 0; }
.payment-choice-info { font-size: 0.8rem; color: var(--color-text-secondary); }
.booking-summary { background-color: rgba(255,255,255,0.4); padding: 1.5rem; border-radius: var(--border-radius); margin-bottom: 1.5rem; }
.booking-summary hr { border: none; border-top: 1px solid rgba(255,255,255,0.4); margin: 0.75rem 0; }
.booking-summary h4, .booking-summary p { margin-bottom: 0.5rem; }
.booking-summary p { font-size: 0.9rem; }
.booking-summary p:last-child { margin-top: 0.75rem; margin-bottom: 0; }
.booking-summary #summary-total-price { font-size: 1.2rem; color: var(--color-primary); }
#payment-methods-container { display: none; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.payment-option { border: 2px solid rgba(255,255,255,0.4); border-radius: var(--border-radius); padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: var(--transition-smooth); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background-color: rgba(255,255,255,0.4); }
.payment-option:hover { border-color: var(--color-secondary); transform: translateY(-5px); }
.payment-option.selected { border-color: var(--color-primary); background-color: rgba(77, 182, 172, 0.1); box-shadow: 0 0 0 2px var(--color-primary); }
.payment-option img { height: 30px; width: auto; margin-bottom: 0.5rem; object-fit: contain; }
.payment-option span { font-weight: 600; color: var(--color-text-primary); }
.modal-buttons { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem;}
.modal-buttons .btn { flex: 1; }
.modal-buttons .btn-secondary { background-color: #ECEFF1; color: var(--color-text-primary); border-color: #ECEFF1; }
.modal-buttons .btn-secondary:hover { background-color: #CFD8DC; border-color: #CFD8DC; }
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.booking-notice {
    background-color: var(--color-reserved);
    border-left: 4px solid var(--color-reserved-text);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.booking-notice i {
    color: var(--color-reserved-text);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}
.booking-notice h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-reserved-text);
    margin-bottom: 0.25rem;
}
.booking-notice p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-reserved-text);
    margin-bottom: 0;
}
.booking-notice p strong {
    font-weight: 700;
}
.disabled-section {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}
#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}
.lightbox-loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: var(--color-surface);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
}
.lightbox-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 3001;
}
.lightbox-close-btn:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 3001;
}
.lightbox-nav-btn.prev {
    left: 2rem;
}
.lightbox-nav-btn.next {
    right: 2rem;
}
.lightbox-nav-btn:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    z-index: 3001;
    transition: opacity 0.3s ease;
}


/* ================================================================ */
/* ===== MEDIA QUERIES DLA RESPONSIVE DESIGN                  ===== */
/* ================================================================ */

@media (max-width: 1024px) { 
    .lokalizacja-wrapper { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) { 
    .hero-brand-name { font-size: 4rem; } 
    .hero-subtitle { font-size: 1.3rem; } 
    h2 { font-size: 2.2rem; } 
    .py-section { padding: 4rem 0; } 
    .side-menu-nav a { font-size: 2rem; } 
    .side-menu { width: 320px; } 
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center;}
    .lightbox-content { padding: 40px 10px; }
    .lightbox-nav-btn { width: 40px; height: 40px; }
    .lightbox-nav-btn.prev { left: 1rem; }
    .lightbox-nav-btn.next { right: 1rem; }
    .lightbox-close-btn { top: 1rem; right: 1rem; }
    .lightbox-counter { bottom: 1rem; left: 1rem; }

    .galeria-dekoracyjna-grid {
        height: 400px;
    }
    
    .guest-panel-button span {
        display: none;
    }
    .guest-panel-button {
        padding: 0.8rem;
    }
    .header-controls {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) { 
    .hero-brand-name { font-size: 3rem; } 
    .hero-subtitle { font-size: 1.1rem; } 
    .btn-hero-new { padding: 1rem 2.2rem; font-size: 1rem; } 
    .side-menu-nav a { font-size: 1.5rem; } 
    .side-menu { width: 100%; border-right: none; padding: 0 2rem; }
    .menu-toggle-btn { top: 1.5rem; left: 1.5rem; width: 50px; height: 50px; } 
    .current-month-year-display { min-width: auto; font-size: 1.5rem; }
    .calendar-controls { gap: 0.5rem; }
    .footer-grid { text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-contact-info li { justify-content: center; }
    .modal-content { padding: 2rem 1.5rem; }
    .modal-form-group-grid { grid-template-columns: 1fr; }

    .galeria-dekoracyjna-grid {
        height: 350px;
    }
    .galeria-dekoracyjna-item.item-1 { width: 50%; height: 55%; top: 5%; left: 0%; transform: rotate(-10deg); }
    .galeria-dekoracyjna-item.item-2 { width: 60%; height: 65%; top: 20%; right: 0%; transform: rotate(6deg); }
    .galeria-dekoracyjna-item.item-3 { width: 45%; height: 45%; bottom: 5%; left: 20%; transform: rotate(12deg); }

}
