/* ZMIENNE KOLORYSTYCZNE - PREMIUM PALETTE */
:root {
    --bg-color: #F9F9F7;      /* Złamana biel / Krem */
    --text-color: #2C2C2C;    /* Ciemny grafit */
    --gold-color: #C5A059;    /* Przygaszone złoto / Mosiądz */
    --gold-hover: #A88645;    /* Ciemniejsze złoto */
    --dark-bg: #1A1A1A;       /* Prawie czarny */
    --light-grey: #E5E5E5;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* RESET & BAZA */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* UTILITY CLASSES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.bg-cream { background-color: #F2F2EF; }

/* BUTTONS */
.btn-gold {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--gold-color);
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.btn-gold:hover { background-color: var(--gold-hover); transform: translateY(-2px); }

.btn-gold-outline {
    padding: 10px 25px;
    border: 1px solid var(--gold-color);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}
.btn-gold-outline:hover { background-color: var(--gold-color); color: #fff; }

.link-gold {
    color: var(--gold-color);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
}
.link-gold::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0%; height: 1px; background: var(--gold-color); transition: 0.3s;
}
.link-gold:hover::after { width: 100%; }

/* LOADER */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: #fcfcfc;
    transition: opacity 0.5s ease-out;
}

.logo-container {
    width: 420px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    margin-bottom: 0px;
}

/* STYL LINII SVG */
.svg-path {
    fill: none;
    opacity: 1;
}

/* Góry */
.path-mountains {
    stroke: #2c3e50;
    stroke-width: 2.5;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

/* Róża */
.path-rose {
    stroke: #c0392b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* TEKST LOADERA */
.text-container {
    text-align: center;
    margin-top: -5px;
    opacity: 0;
    animation: fadeInMove 1.5s ease-out forwards;
    animation-delay: 1.2s;
}

.loader-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #2c3e50;
    letter-spacing: 4px;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.loader-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #95a5a6;
    letter-spacing: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 400;
}

@keyframes fadeInMove {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

#loader-wrapper.loaded {
    opacity: 0;
    pointer-events: none;
}

/* NAVBAR */
#navbar {
    position: fixed; top: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.4s;
    background: transparent;
}
#navbar:not(.scrolled) {
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    color: #fff;
}
#navbar:not(.scrolled) .logo {
    color: #fff;
}
#navbar:not(.scrolled) .nav-links a {
    color: #fff;
}
#navbar:not(.scrolled) .btn-gold-outline {
    border-color: #fff;
    color: #fff;
}
#navbar:not(.scrolled) .btn-gold-outline:hover {
    background-color: #fff;
    color: var(--text-color);
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    text-shadow: none;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 1px; font-weight: 600; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* HERO SECTION */
.hero {
    height: 100vh;
    position: relative;
    display: flex; justify-content: center; align-items: center;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: -2;
    /* Placeholder fallback */
    background-color: #333; 
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); /* Przyciemnienie zdjęcia */
    z-index: -1;
}
.hero-content h1 {
    font-size: 4rem; line-height: 1.1; margin: 20px 0 30px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}
.hero-content .subtitle {
    font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-color);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.hero-content .description {
    font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; font-weight: 300;
}

/* O NAS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.separator { width: 60px; height: 2px; background: var(--gold-color); margin: 20px 0; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: #555; }
.img-frame {
    box-shadow: 20px 20px 0px var(--light-grey); /* Ozdobna ramka */
}

/* OFERTA */
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: #777; font-family: var(--font-serif); font-style: italic; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2-centered {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .grid-2-centered {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}
.card { background: #fff; transition: 0.3s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.card-img { height: 250px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 30px; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 5px; }
.card-body .details { font-size: 0.8rem; text-transform: uppercase; color: #888; margin-bottom: 15px; letter-spacing: 1px; }
.card-body .desc { font-size: 0.95rem; color: #555; margin-bottom: 25px; }

/* GALERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 10px;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* REZERWACJA */
.reservation-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.reservation-card {
    text-align: center;
    padding: 40px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.reservation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.reservation-icon {
    color: var(--gold-color);
    margin-bottom: 20px;
}
.reservation-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.reservation-link {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}
.reservation-link:hover {
    color: var(--gold-color);
    border-bottom-color: var(--gold-color);
}

/* HOTRES BOOKING BAR */
.hotres-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hotresSearchBar {
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 20px;
    height: 60px;
    overflow: hidden;
    min-width: 340px;
    max-width: 450px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.hotresSearchBar:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.hotresSearchBar > div {
    padding: 0px 20px;
    min-width: 100px;
    transition: 0.3s;
    color: var(--text-color);
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    display: flex;
}

.hotresSearchBar .arrival {
    position: relative;
}

.hotresSearchBar .arrival::after,
.hotresSearchBar .arrival::before {
    content: '';
    width: 10px;
    border: 1px solid #000;
    transform: rotate(45deg);
    position: absolute;
    top: 11px;
    right: -12px;
}

.hotresSearchBar .arrival::before {
    top: 18px;
    transform: rotate(-45deg);
}

.hotresSearchBar > div:last-child {
    padding: 0;
    height: 100%;
    flex-grow: 2;
}

.hotresSearchBar button {
    height: 100%;
    width: 100%;
    border-radius: 0px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    background: var(--gold-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.hotresSearchBar button:hover {
    background: var(--gold-hover);
}

.hotresSearchBar .day {
    font-size: 32px;
    padding-right: 10px;
    font-weight: bold;
}

.hotresSearchBar .month {
    font-size: 13px;
    line-height: 14px;
}

.hotresSearchBar .month small {
    font-size: 11px;
    color: grey;
    display: block;
}

.reservation-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.reservation-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-grey);
}

.reservation-divider span {
    background: #F2F2EF;
    padding: 0 20px;
    position: relative;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .hotresSearchBar {
        min-width: 280px;
        max-width: 100%;
        height: auto;
        flex-wrap: wrap;
        border-radius: 15px;
        padding: 10px;
    }

    .hotresSearchBar > div {
        padding: 10px;
    }

    .hotresSearchBar > div:last-child {
        width: 100%;
        height: 50px;
    }

    .hotresSearchBar button {
        border-radius: 10px;
    }
}

/* MAPA */
#map-section { position: relative; height: 450px; }
.map-overlay-content {
    position: absolute; top: 50%; left: 20%; transform: translateY(-50%);
    background: #fff; padding: 40px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 300px;
}
.map-overlay-content h3 { font-size: 1.8rem; margin-bottom: 10px; }
.map-overlay-content p { margin-bottom: 20px; color: #555; }

/* FOOTER */
.footer-dark { background: var(--dark-bg); color: #fff; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid #333; }
.footer-col h3, .footer-col h4 { font-family: var(--font-serif); margin-bottom: 20px; color: var(--gold-color); }
.footer-col p { color: #aaa; margin-bottom: 10px; font-size: 0.9rem; }
.socials a { color: #fff; margin-right: 20px; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.socials a:hover { border-bottom: 1px solid var(--gold-color); }
.copyright { padding: 20px 0; font-size: 0.8rem; color: #555; }

/* ANIMACJE SCROLLOWANIA */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#scrollTopBtn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
}
#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

/* APARTMENT MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--bg-color);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--gold-color);
}
.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
}
.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
}
.modal-header .details {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-gallery {
    padding: 0 40px;
}
.modal-main-img {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.modal-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    color: var(--text-color);
}
.gallery-nav:hover {
    background: var(--gold-color);
    color: #fff;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.modal-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.modal-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border 0.3s;
    border: 2px solid transparent;
}
.modal-thumbs img:hover,
.modal-thumbs img.active {
    opacity: 1;
    border-color: var(--gold-color);
}
.modal-body {
    padding: 30px 40px 40px;
    text-align: center;
}
.modal-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}
.modal-reserve {
    display: inline-block;
}
.card-clickable {
    cursor: pointer;
}
.card-clickable:hover {
    opacity: 0.9;
}

/* GALLERY LIGHTBOX */
.gallery-clickable {
    cursor: pointer;
    position: relative;
}
.gallery-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    pointer-events: none;
}
.gallery-clickable:hover::after {
    background: rgba(0,0,0,0.2);
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: lightboxZoom 0.3s ease;
}
@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}
.lightbox-close:hover {
    color: var(--gold-color);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.lightbox-nav:hover {
    background: var(--gold-color);
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    .modal-header {
        padding: 30px 20px 15px;
    }
    .modal-header h2 {
        font-size: 1.5rem;
    }
    .modal-gallery {
        padding: 0 20px;
    }
    .modal-main-img {
        height: 250px;
    }
    .modal-body {
        padding: 20px;
    }
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
    }
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s ease;
}
#navbar:not(.scrolled) .hamburger .line {
    background-color: #fff;
}
#navbar .hamburger.active .line {
    background-color: var(--text-color);
}
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0;
    }
    #navbar .nav-links a {
        font-size: 16px;
        color: var(--text-color);
        text-shadow: none;
    }
    #navbar:not(.scrolled) .nav-links a {
        color: var(--text-color);
    }
    #navbar .nav-links a.btn-gold-outline,
    #navbar:not(.scrolled) .nav-links a.btn-gold-outline {
        border-color: var(--gold-color);
        color: var(--text-color);
        padding: 12px 30px;
        background: transparent;
    }
    #navbar .nav-links a.btn-gold-outline:hover,
    #navbar:not(.scrolled) .nav-links a.btn-gold-outline:hover {
        background-color: var(--gold-color);
        color: #fff;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .g-wide, .g-tall { grid-column: span 1; grid-row: span 1; }
    .map-overlay-content { position: relative; top: 0; left: 0; transform: none; width: 100%; max-width: 100%; margin-bottom: 20px; }
    #map-section { height: auto; display: flex; flex-direction: column-reverse; }
}