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

body {
    font-family: 'Inter', sans-serif;
    color: #1e2a3e;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: none;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #1e2a3e;
    letter-spacing: -0.02em;
}

.logo span {
    color: #2C5F8A;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #1e2a3e;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2C5F8A;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e2a3e;
}

/* Przycisk Rezerwuj online w nawigacji */
.booking-nav-link {
    background: #2C5F8A;
    color: white !important;
    padding: 8px 24px;
    border-radius: 40px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.booking-nav-link:hover {
    background: #1E4564;
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2632 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: #2C5F8A;
    color: white;
    border: 2px solid #2C5F8A;
}

.btn-primary:hover {
    background: #1E4564;
    border-color: #1E4564;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1e2a3e;
    color: #1e2a3e;
}

.btn-outline:hover {
    background: #1e2a3e;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: #1e2a3e;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(44, 95, 138, 0.1);
    color: #2C5F8A;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e2a3e;
}

.section-desc {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-content p {
    margin-bottom: 16px;
    color: #334155;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.about-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e2a3e;
}

.about-features i {
    color: #2C5F8A;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Apartments Grid */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.apartment-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.apartment-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.apartment-image .gallery-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.apartment-info {
    padding: 24px;
}

.apartment-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #1e2a3e;
}

.apartment-info .apartment-desc {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.apartment-tag {
    display: inline-block;
    background: rgba(44, 95, 138, 0.1);
    color: #2C5F8A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.apartment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.apartment-features span {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #1e2a3e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.apartment-features span i {
    font-size: 0.7rem;
    color: #2C5F8A;
}

.apartment-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.apartment-buttons .btn {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.amenity-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #2C5F8A;
}

.amenity-card i {
    font-size: 2.5rem;
    color: #2C5F8A;
    margin-bottom: 16px;
}

.amenity-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.amenity-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Location */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.location-address {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.location-address i {
    font-size: 1.5rem;
    color: #2C5F8A;
}

.location-distances div {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 16px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2C5F8A;
}

.contact-item a {
    text-decoration: none;
    color: #334155;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2C5F8A;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2C5F8A;
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.1);
}

/* Footer */
.footer {
    background: #1e2a3e;
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo span {
    color: #2C5F8A;
}

.footer-logo p {
    margin-top: 12px;
    color: #94a3b8;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #2C5F8A;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #2C5F8A;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.85rem;
}

/* Panel widgetu rezerwacyjnego pod nawigacją - kompaktowy, bez przerwy */
.booking-panel {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-bottom: none;
}

.booking-panel.open {
    max-height: 200px;
    padding: 20px 0;
}

.booking-panel .container {
    display: flex;
    justify-content: center;
}

/* Widget w panelu - odstęp 4px */
.booking-panel .mcbe-widget-searchbar {
    gap: 4px;
}

/* Skalowanie overlay z widgetu rezerwacyjnego - taki sam jak iframe z apartamentów */
.mcbe-modal-overlay {
    background: rgba(0,0,0,0.85) !important;
    z-index: 9999 !important;
}

.mcbe-modal-container {
    background: white !important;
    border-radius: 16px !important;
    width: 98% !important;
    max-width: 1600px !important;
    height: 96vh !important;
    max-height: 96vh !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.mcbe-booking-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

.mcbe-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    background: rgba(0,0,0,0.5) !important;
    border: none !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s !important;
}

.mcbe-modal-close:hover {
    background: rgba(0,0,0,0.8) !important;
}

.mcbe-modal-close svg {
    stroke: white !important;
    width: 20px !important;
    height: 20px !important;
}

/* Modal dla iframe (rezerwacja apartamentów) - praktycznie cały ekran */
.iframe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.iframe-modal.active {
    display: flex;
}

.iframe-modal-content {
    background: white;
    border-radius: 16px;
    width: 98%;
    max-width: 1600px;
    height: 96vh;
    max-height: 96vh;
    overflow: hidden;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.iframe-modal-content .close-iframe-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.iframe-modal-content .close-iframe-modal:hover {
    background: rgba(0,0,0,0.8);
    color: white;
}

.iframe-modal-content h3 {
    display: none;
}

#iframeContainer {
    width: 100%;
    flex: 1;
    min-height: 0;
}

#iframeContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Modal dla widgetu dostępności - szeroki na 90% ekranu */
.widget-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.widget-modal.active {
    display: flex;
}

.widget-modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 30px 24px 24px;
}

.widget-modal-content .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #64748b;
    transition: color 0.3s;
}

.widget-modal-content .close-modal:hover {
    color: #1e2a3e;
}

.widget-modal-content h3 {
    margin-bottom: 24px;
    padding-right: 30px;
    color: #1e2a3e;
    font-size: 1.3rem;
}

#widgetContainer {
    width: 100%;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.lightbox-main-image {
    max-width: 85%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-arrow {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close-lightbox:hover {
    opacity: 0.7;
}

.lightbox-caption {
    color: white;
    text-align: center;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        min-width: 160px;
        font-size: 0.9rem;
    }

    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 32px;
        gap: 24px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .booking-panel {
        top: 68px;
    }

    .booking-panel.open {
        max-height: 250px;
    }

    .booking-panel .container {
        padding: 0 16px;
    }

    #bookingPanelWidget {
        min-width: auto;
        width: 100%;
    }

    .booking-panel .mcbe-widget-searchbar {
        min-width: auto;
        width: 100%;
        gap: 4px;
    }

    .mcbe-modal-container {
        width: 98% !important;
        height: 94vh !important;
        border-radius: 12px !important;
    }

    .iframe-modal-content {
        width: 98%;
        height: 94vh;
        border-radius: 12px;
    }

    .widget-modal-content {
        width: 95%;
        padding: 20px 16px 16px;
    }

    .lightbox-controls {
        gap: 15px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
    }

    .lightbox-main-image {
        max-width: 90%;
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 200px;
    }

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

    .apartment-buttons {
        flex-direction: column;
    }

    .booking-panel.open {
        max-height: 300px;
    }

    .mcbe-modal-container {
        width: 98% !important;
        height: 92vh !important;
        border-radius: 8px !important;
    }

    .iframe-modal-content {
        width: 98%;
        height: 92vh;
        border-radius: 8px;
    }
}