:root {
    --primary: #1e293b;
    --accents-aqua: #00b4d8;
    --accents-aria: #90e0ef;
    --accents-ignis: #e85d04;
    --accents-terra: #2d6a4f;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Playfair Display', serif;
}

.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accents-aqua);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.navbar.scrolled .menu-toggle { color: var(--primary); }

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

@keyframes slowZoom {
    to { transform: scale(1); }
}

.hero-content h1 {
    font-size: 4rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--glass-bg);
    color: var(--primary);
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Base sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature i {
    color: var(--accents-terra);
    font-size: 1.5rem;
}

/* Apartment Cards */
.apartment-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
    min-height: 400px;
    transition: var(--transition);
}

.apartment-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.apt-image-wrapper {
    position: relative;
    overflow: hidden;
}

.apt-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    min-height: 350px;
}

.apartment-card:hover .apt-image {
    transform: scale(1.05);
}

.gallery-preview {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.gallery-preview .thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.gallery-preview .thumb:hover {
    transform: scale(1.1);
}

.apt-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.element-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.2;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.apartment-card.aqua h3 { color: var(--accents-aqua); }
.apartment-card.aria h3 { color: #5dade2; } 
.apartment-card.ignis h3 { color: var(--accents-ignis); }
.apartment-card.terra h3 { color: var(--accents-terra); }

.apt-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    background: var(--bg-light);
    color: var(--text-dark);
}

.apt-desc { margin-bottom: 1.5rem; font-size: 0.9rem; max-height: 250px; overflow-y: auto; padding-right: 10px; }
.apt-desc p { margin-bottom: 0.8rem; }
/* Scrollbar styling for apt-desc */
.apt-desc::-webkit-scrollbar { width: 6px; }
.apt-desc::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.apt-desc::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.apt-desc::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.equip-text { font-size: 0.85rem; color: #64748b; margin-top: 1.5rem; }

.apt-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.apt-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.reserve-btn {
    margin-top: 2rem;
    align-self: flex-start;
    color: white;
}

.btn-aqua { background: var(--accents-aqua); }
.btn-aria { background: #5dade2; }
.btn-ignis { background: var(--accents-ignis); }
.btn-terra { background: var(--accents-terra); }

.reserve-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

/* Okolica section */
.okolica-section .container { position: relative; }

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.attr-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.attr-box:hover {
    transform: translateY(-5px);
}

.attr-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.attr-box ul {
    list-style: none;
}

.attr-box li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.attr-box li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.border-aqua { border-top-color: var(--accents-aqua); }
.border-terra { border-top-color: var(--accents-terra); }
.border-ignis { border-top-color: var(--accents-ignis); }

.price-info {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover { color: var(--primary); }

.modal-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem;}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="date"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accents-aqua);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;  
    background: #e2e8f0;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%; 
    background: var(--primary);
    cursor: pointer;
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.submit-res-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    margin-top: 1rem;
}

.form-notice {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.footer-info p { margin-bottom: 0.5rem; color: #cbd5e1;}
.footer-info i { margin-right: 10px; color: var(--accents-aqua); }

.footer-social h4 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; margin-bottom: 1rem; }
.social-icon { color: white; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition);}
.social-icon:hover { color: var(--accents-aqua); }

.footer-bottom {
    background: #0f172a;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .apartment-card { grid-template-columns: 1fr; }
    .apartment-card.left .apt-image-wrapper { grid-row: 1; }
    .attractions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 1rem 2rem; color: var(--primary); }
    .menu-toggle { display: block; }
    
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; }
    
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .date-inputs { flex-direction: column; align-items: stretch; }
    .date-inputs span { text-align: center; }
}
/* Ukrycie modułu rezerwacji dla klienta publicznego */
.reserve-btn {
    display: none !important;
}
.availability-section { padding: 60px 0; }
.calendar-container { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.apt-bar {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* Kolory wywodzące się z żywiołów */
.apt-aqua { background-color: rgba(3, 169, 244, 0.8); }
.apt-aria { background-color: rgba(0, 188, 212, 0.8); }
.apt-ignis { background-color: rgba(255, 87, 34, 0.8); }
.apt-terra { background-color: rgba(76, 175, 80, 0.8); }
