html {
    scroll-behavior: smooth;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1A1A1A;
    line-height: 1.5;
    background-color: #FFFFFF;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title span {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

:root {
    --gold-primary: #b97e1d;
    --gold-dark: #8E6B34;
    --gold-light: #D9B87A;
    --navy-dark: #0F1C26;
    --text-dark: #1A1A1A;
    --text-soft: #4A4A4A;
    --bg-warm: #F9F6F0;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

/* Navbar - ciemne tło */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0F1C26;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

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

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.booking-btn {
    background: #8E6B34 !important;
    color: #FFFFFF !important;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600 !important;
}

.booking-btn:hover {
    background: #6E4F25 !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    color: var(--white);
    display: inline-block;
    background-color: rgba(10, 30, 51, 0.45);
    padding: 8px 16px;
    border-radius: 8px;
    text-shadow: 0 6px 18px rgba(10, 30, 51, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-title .star {
    font-size: 1.8rem;
    vertical-align: middle;
    letter-spacing: 4px;
    color: #8B6141;
    text-shadow: 0 4px 12px rgba(10, 30, 51, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-left: 8px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    display: inline-block;
    background-color: rgba(10, 30, 51, 0.35);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--white);
}

.btn {
    display: inline-block;
    background-color: #8E6B34 !important;
    color: #FFFFFF !important;
    padding: 14px 42px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 40px;
}

.btn:hover {
    background-color: #6E4F25 !important;
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid #604210;
    color: #604210;
    padding: 10px 28px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: #604210;
    color: white;
}

/* Style for room detail buttons: no background, specific brown color */
.room-info .btn-outline {
    position: relative;
    z-index: 2;
    color: #604210;
    border: 2px solid #604210;
    background: transparent;
    text-shadow: none;
}

/* Specific override for the "Czytaj więcej" button */
#readMoreBtn {
    color: #6A4811 !important;
    border-color: #6A4811;
    background-color: transparent !important;
    text-shadow: none;
}

/* Rozwijanie sekcji "Czytaj więcej" — działa z poprawionym JS bez odczytu scrollHeight */
#hotelMoreText.open {
    max-height: 900px !important;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 3;
}

/* Sekcje */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-dark);
}

.section-title span {
    color: var(--gold-primary);
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--gold-primary);
    margin: 0 auto 48px auto;
}

/* Grid ofert - 3 kolumny na desktop */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.room-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.room-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
}

.room-info {
    padding: 28px;
}

.room-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: #1A1A1A;
}

.room-features {
    list-style: none;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.room-features li {
    background: var(--bg-warm);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #4A4A4A;
}

/* Slider w karcie pokoju - strzałki na zdjęciu */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.slider-img-wrapper {
    position: relative;
}

.slider-nav-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border: none;
    color: #1A1A1A;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
}

.slider-nav-img:hover {
    background: var(--gold-primary);
    color: white;
    opacity: 1;
}

.slider-nav-img.prev {
    left: 10px;
}

.slider-nav-img.next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0 20px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--gold-primary);
    width: 24px;
    border-radius: 4px;
}

/* SEKCJA OFERTY - eleganckie przezroczyste panele */
.offers-section {
    background: var(--bg-warm);
    padding: 60px 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.offer-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: block;
    border: 1px solid rgba(184, 143, 75, 0.15);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
    background: white;
}

.offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1A1A1A;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.offer-card p {
    font-size: 0.85rem;
    color: #2C2C2C;
    line-height: 1.5;
}

/* Grid 2 kolumny */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-premium p {
    margin-bottom: 20px;
    color: #4A4A4A;
    line-height: 1.7;
}

/* Galeria - 5 kolumn na desktop */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: transparent;
    line-height: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Kontakt - estetyczna wersja z rozwijaną listą */
.contact-premium {
    background: var(--bg-warm);
    padding: 60px;
    border-radius: 24px;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.contact-info-card .hotel-stars {
    color: var(--gold-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.contact-detail-row:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    flex-shrink: 0;
}

.contact-detail-content {
    flex: 1;
}

.contact-detail-content strong {
    display: block;
    font-size: 0.8rem;
    color: #2C2C2C;
    font-weight: 600;
}

.contact-detail-content a,
.contact-detail-content span {
    font-size: 1rem;
    color: #1A1A1A;
    text-decoration: none;
}

.contact-detail-content a:hover {
    color: var(--gold-primary);
}

.contact-hours {
    font-size: 0.7rem;
    color: #4A4A4A;
    margin-top: 2px;
}

.contact-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #4A4A4A;
}

.expandable-contacts {
    margin-top: 20px;
    border-top: 2px dashed var(--gold-light);
    padding-top: 20px;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.expand-btn:hover {
    color: var(--gold-dark);
}

.expand-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Enforce darker brown for contact labels and expand controls */
.expand-btn,
.expand-btn .expand-icon,
.contact-person .position {
    color: #553B11 !important;
}

.expand-btn.active .expand-icon {
    transform: rotate(180deg);
}

.contacts-list {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contacts-list.show {
    display: grid;
}

.contact-person {
    background: #f5f2ec;
    border-radius: 12px;
    padding: 15px;
}

.contact-person h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--navy-dark);
}

.contact-person .position {
    font-size: 0.7rem;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.contact-person .person-phone,
.contact-person .person-email {
    font-size: 0.8rem;
}

.contact-person .person-phone a,
.contact-person .person-email a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-person .person-phone a:hover,
.contact-person .person-email a:hover {
    color: var(--gold-primary);
}

.map-modern {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* (removed map iframe styles — map is no longer embedded) */

/* SEKCJA SOCIAL MEDIA - bez ikon, tylko tekst */
.social-section {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-icon-link {
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
    color: #4A4A4A;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
}

.social-icon-link:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

.main-footer {
    background: linear-gradient(rgba(15, 28, 38, 0.7), rgba(15, 28, 38, 0.8)), url('/img/mazury-bg.webp');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    color: #E8ECEF;
    padding: 60px 0 35px;
}

.main-footer .footer-copyright-main,
.main-footer .footer-social h3,
.main-footer .footer-links h3 {
    color: #FFFFFF;
}

.main-footer a {
    color: #E8ECEF;
    text-decoration: none;
    transition: var(--transition);
}

.main-footer a:hover {
    color: var(--gold-primary);
}

/* Sekcja flag - płynne przejście */
.lang-section {
    background: rgba(26, 44, 58, 0.92);
    backdrop-filter: blur(2px);
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
    list-style: none;
}

.lang-grid li a {
    color: #E0E5EA;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-grid li a:hover {
    color: var(--gold-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-copyright-main {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    font-family: Georgia, "Times New Roman", serif;
}

.footer-copyright-main span {
    color: var(--gold-primary);
}

.footer-social h3,
.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.social-icons-footer {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.social-icons-footer a {
    color: #E8ECEF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons-footer a:hover {
    color: var(--gold-primary);
}

.footer-links a {
    color: #D0D5D9;
    text-decoration: none;
    line-height: 2.2;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .grid-2col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .contacts-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #0F1C26;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: 0.3s;
        gap: 25px;
        z-index: 999;
    }

    .nav-links.open {
        left: 0;
    }

    .container {
        padding: 0 20px;
    }

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

    .contact-premium {
        padding: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .social-icons-grid {
        gap: 20px;
    }

    .hero-title .star {
        font-size: 1.2rem;
    }

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

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

/* Modal galerii - strzałki, przycisk X */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    cursor: default;
}

.gallery-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.8rem;
    color: white;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: 0.2s;
    z-index: 10;
    background: none;
    border: none;
}

.gallery-modal .modal-close:hover {
    color: var(--gold-primary);
    transform: scale(1.1);
}

.gallery-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}

.gallery-modal .modal-nav:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.gallery-modal .modal-nav.prev {
    left: 20px;
}

.gallery-modal .modal-nav.next {
    right: 20px;
}

.gallery-modal .modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.gallery-modal .modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    font-weight: 300;
}

@media (max-width: 600px) {
    .gallery-modal .modal-nav {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .gallery-modal .modal-nav.prev {
        left: 8px;
    }

    .gallery-modal .modal-nav.next {
        right: 8px;
    }

    .gallery-modal .modal-close {
        right: 16px;
        font-size: 2.2rem;
    }
}
