/* =========================================================
   APARTAMENTY PIESTA — Premium Redesign
   Concept: Dark luxury hero (logo on dark = perfect) + warm ivory body
   ========================================================= */

/* === SCROLL PROGRESS BAR === */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #c9a25c, #f2dfa0, #c9a25c);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* === DESIGN TOKENS === */
:root {
    --dark: #0e0e0f;
    --dark2: #161618;
    --ivory: #f7f4ee;
    --ivory2: #ede9e0;
    --text: #1a1a1c;
    --muted: #6b6560;
    --gold: #c9a25c;
    --gold2: #f2dfa0;
    --line-light: rgba(255,255,255,0.12);
    --line-dark: rgba(0,0,0,0.1);
    --r: 16px;
    --shadow-card: 0 24px 64px rgba(0,0,0,0.1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--ivory);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.1;
    font-weight: 600;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }

.eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}
.lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.7;
}

/* === LAYOUT === */
.container { width: min(1140px, 92vw); margin: 0 auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { margin-bottom: 3rem; }
.section-head h2 { margin-top: 0.6rem; }

/* === FLOATING NAV === */
.floatnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.9rem 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    background: rgba(14,14,15,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-light);
}
.floatnav.visible { transform: translateY(0); }
.floatnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.floatnav-logo {
    height: 52px;
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(1.38) contrast(1.14) saturate(1.06) drop-shadow(0 0 10px rgba(201,162,92,0.28));
}
.floatnav-links { display: flex; gap: 1.5rem; align-items: center; }
.floatnav-links a {
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease;
}
.floatnav-links a:hover { color: var(--gold2); }
.floatnav .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-light);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    min-height: 44px;
    min-width: 44px;
}

/* === HERO (DARK FULL-SCREEN) === */
.site-hero {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}
.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}
.site-hero::after {
    content: '';
    position: absolute;
    width: 60vw; height: 60vw;
    max-width: 700px; max-height: 700px;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(201,162,92,0.13) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.site-hero > * { position: relative; z-index: 1; }

.hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: clamp(3rem, 8vw, 5rem) 1rem clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.hero-logo {
    width: min(420px, 72vw);
    height: auto;
    display: block;
    animation: logoReveal 1.4s cubic-bezier(0.16,1,0.3,1) both;
    mix-blend-mode: screen;
    filter: brightness(1.25) contrast(1.1) drop-shadow(0 0 48px rgba(201,162,92,0.5));
}
@keyframes logoReveal {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-tagline {
    margin-top: 1.4rem;
    font-size: clamp(0.75rem, 1.5vw, 0.88rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    animation: fadeUp 1s 0.9s ease both;
}
.hero-divider {
    width: min(480px, 76vw);
    height: 1px;
    margin: 1.6rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    animation: drawLine 1.2s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes drawLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-nav {
    border-top: 1px solid var(--line-light);
    padding: 1.1rem 0;
}
.hero-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3.5vw, 3rem);
    flex-wrap: wrap;
}
.hero-nav-inner a {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
    padding: 0.2rem 0;
    position: relative;
}
.hero-nav-inner a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.hero-nav-inner a:hover { color: #fff; }
.hero-nav-inner a:hover::after { transform: scaleX(1); }

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.67rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    animation: fadeUp 1s 1.6s ease both;
}
.scroll-arrow {
    width: 20px; height: 34px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    position: relative;
}
.scroll-arrow::after {
    content: '';
    position: absolute;
    left: 50%; top: 6px;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
    0%   { top: 6px; opacity: 1; }
    80%  { top: 20px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/* === INTRO STATS BAND === */
.intro-band {
    background: var(--dark2);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    position: relative;
}
.intro-band::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.intro-band-inner {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}
.intro-sep { background: var(--line-light); height: 60px; width: 1px; }
.intro-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--gold2);
    line-height: 1;
    display: block;
}
.intro-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 0.4rem;
    display: block;
}

/* === HERO BELOW (main content strip) === */
.hero-below { padding-top: clamp(3.5rem, 7vw, 6rem); }
.hero-below-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-below-text h1 { margin: 0.8rem 0 1.2rem; }
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}
.hero-below-image {
    border-radius: 2px 24px 2px 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-card);
    position: relative;
}
.hero-below-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.hero-below-image:hover img { transform: scale(1.04); }
.img-tag {
    position: absolute;
    bottom: 1.2rem; left: 1.2rem;
    background: rgba(14,14,15,0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,162,92,0.35);
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    color: var(--gold2);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 8px 24px rgba(201,162,92,0.3);
}
.btn-gold:hover { background: var(--gold2); box-shadow: 0 12px 32px rgba(201,162,92,0.45); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(0,0,0,0.18);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* === OPINIONS === */
.opinions-section {
    background: var(--dark);
    position: relative;
    padding: 5rem 0 5.5rem;
    overflow: hidden;
}
.opinions-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.opinions-section .section-head h2 { color: #fff; }
.opinions-section .section-head .eyebrow { color: var(--gold); }

/* Badge Booking.com */
.opinions-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.8rem;
    flex-wrap: wrap;
}
.booking-logo { height: 28px; width: auto; }
.opinions-score {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.opinions-score-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-end;
    padding-bottom: 0.15rem;
}
.opinions-stars {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    align-self: flex-end;
    padding-bottom: 0.1rem;
}

/* Marquee wrapper */
.opinions-marquee-wrap {
    position: relative;
    overflow: hidden;
    /* fade edges */
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.opinions-marquee {
    display: flex;
    width: max-content;
    animation: marquee 42s linear infinite;
    will-change: transform;
}
.opinions-marquee:hover { animation-play-state: paused; }
.opinions-track {
    display: flex;
    gap: 1.4rem;
    padding: 0.5rem 0.7rem;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Opinion cards */
.opinion-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r);
    padding: 1.8rem 1.8rem 1.4rem;
    width: 320px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
}
.opinion-card:hover {
    background: rgba(201,162,92,0.08);
    border-color: rgba(201,162,92,0.3);
    transform: translateY(-4px);
}
.opinion-card::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
    position: absolute;
    top: 0.2rem; left: 1.2rem;
    opacity: 0.25;
    pointer-events: none;
}
.opinion-text {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin-top: 1.8rem;
}
.opinion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
}
.opinion-author {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.opinion-author::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--gold);
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.5;
}
.opinion-stars {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* === APARTMENTS === */
.apt-stack { display: grid; gap: 2.5rem; }
.apartment-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}
.apartment-entry:hover { box-shadow: 0 40px 80px rgba(0,0,0,0.16); }
.apartment-entry.flip { direction: rtl; }
.apartment-entry.flip > * { direction: ltr; }
.apt-image-pane { overflow: hidden; position: relative; }
.apt-image-pane img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.apartment-entry:hover .apt-image-pane img { transform: scale(1.06); }
.apt-content-pane {
    background: var(--dark);
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.apt-content-pane::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: radial-gradient(ellipse at top right, rgba(201,162,92,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.apt-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    position: absolute;
    top: 0.8rem; right: 1.2rem;
    user-select: none;
}
.apt-content-pane .eyebrow { margin-bottom: 0.5rem; }
.apt-content-pane h2 { color: #fff; margin: 0 0 1.2rem; }
.apt-content-pane p { color: rgba(255,255,255,0.58); font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.8rem; }
.apt-address { color: rgba(255,255,255,0.88) !important; font-weight: 600; font-size: 0.86rem !important; }
.apt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold2);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    margin-top: 1.2rem;
    transition: gap 0.2s ease;
}
.apt-link:hover { gap: 0.9rem; }
.apt-link::after { content: '→'; }

/* === CONTACT === */
.contact-section {
    background: var(--dark);
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contact-section .eyebrow { color: var(--gold); }
.contact-section h2 { color: #fff; margin: 0.6rem 0 1rem; }
.contact-section .lead { color: rgba(255,255,255,0.5); margin-bottom: 2.5rem; }
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r);
    padding: 1.6rem 1.8rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { background: rgba(201,162,92,0.08); border-color: rgba(201,162,92,0.3); }
.contact-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.contact-card p, .contact-card a { color: rgba(255,255,255,0.72); }
.contact-card a:hover { color: var(--gold2); }

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    border-top: 1px solid rgba(201,162,92,0.18);
    padding: 1.6rem 0 2rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-inner p { font-size: 0.78rem; color: rgba(255,255,255,0.32); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.42); font-weight: 500; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold2); }

.footer-powered {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
    letter-spacing: 0.04em;
}
.footer-powered strong {
    color: var(--gold);
    font-weight: 600;
}

/* === SUBPAGE HEADER === */
.page-hero {
    background: var(--dark);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-logo {
    height: min(160px, 28vw);
    width: auto;
    margin-bottom: 2.2rem;
    mix-blend-mode: screen;
    filter: brightness(1.5) contrast(1.1) drop-shadow(0 0 40px rgba(201,162,92,0.5));
}
.page-hero .eyebrow { color: var(--gold); margin-bottom: 0.6rem; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,0.48); margin-top: 0.8rem; }
.page-nav {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    border-top: 1px solid var(--line-light);
    padding-top: 1.4rem;
}
.page-nav a { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.07em; color: rgba(255,255,255,0.48); transition: color 0.2s ease; }
.page-nav a:hover, .page-nav a.active { color: var(--gold2); }

/* === GALLERY PAGE === */
.gallery-page { padding-top: 0; }

/* Tab bar */
.gallery-tabs-bar {
    position: sticky;
    top: 72px;
    z-index: 90;
    background: var(--ivory);
    border-bottom: 1px solid var(--line-dark);
    backdrop-filter: blur(12px);
}.gallery-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-tabs::-webkit-scrollbar { display: none; }
.gtab {
    flex-shrink: 0;
    padding: 1.1rem 2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.gtab:hover { color: var(--text); }
.gtab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Gallery sections */
.gallery-section {
    display: none;
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.gallery-section.active { display: block; }

.gallery-eyebrow {
    margin-bottom: 2.5rem;
}
.gallery-eyebrow h2 { margin-top: 0.4rem; }

/* Masonry grid — CSS columns */
.gmasonry {
    columns: 3;
    column-gap: 0.8rem;
}
.gitem {
    margin: 0 0 0.8rem;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}
.gitem img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), filter 0.3s ease;
    filter: brightness(1);
}
.gitem:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
}
.gitem::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,14,15,0);
    transition: background 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}
.gitem:hover::after { background: rgba(14,14,15,0.08); }

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10,10,11,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}
.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}
.lb-img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.lightbox.open .lb-img {
    opacity: 1;
    transform: scale(1);
}
.lb-close {
    position: fixed;
    top: 1.4rem; right: 1.6rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-prev, .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(201,162,92,0.25); }
.lb-counter {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-family: 'Outfit', sans-serif;
}

/* === ATTRACTIONS PAGE === */
.attractions-grid { display: grid; gap: 1.5rem; }
.attraction-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.attraction-card:hover { transform: translateY(-4px); box-shadow: 0 32px 64px rgba(0,0,0,0.12); }
.attraction-card img { width: 100%; height: 100%; object-fit: cover; }
.attraction-body { padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.attraction-body h3 { margin-bottom: 0.7rem; }
.attraction-body p { color: var(--muted); }

/* === REGULAMIN PAGE === */
.rules-page {
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.rules-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 5rem;
}
.rules-intro h2 { margin-top: 0.6rem; }
.rules-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 1rem;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto 5rem;
    padding: 0.5rem 0;
}

/* The vertical line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold), rgba(201,162,92,0.2));
    transition: height 0.1s linear;
    z-index: 0;
}

/* Each timeline row */
.tl-item {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    gap: 0;
    align-items: start;
    margin-bottom: 3rem;
    position: relative;
}

/* Dot on the centre line */
.tl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid rgba(201,162,92,0.3);
    margin: 1.4rem auto 0;
    position: relative;
    z-index: 1;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    grid-column: 2;
}
.tl-item.visible .tl-dot {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(201,162,92,0.15), 0 0 20px rgba(201,162,92,0.3);
}

/* Card */
.tl-card {
    background: #fff;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tl-card:hover {
    border-color: rgba(201,162,92,0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Left item — card on left, empty right */
.tl-left .tl-card {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.tl-left .tl-dot { grid-column: 2; grid-row: 1; }

/* Right item — empty left, card on right */
.tl-right .tl-card {
    grid-column: 3;
    grid-row: 1;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.tl-right .tl-dot { grid-column: 2; grid-row: 1; }

.tl-item.visible .tl-card {
    opacity: 1;
    transform: translateX(0);
}

/* Connector line from dot to card */
.tl-left .tl-card::after,
.tl-right .tl-card::before {
    content: '';
    position: absolute;
    top: 1.6rem;
    width: 28px;
    height: 1px;
    background: rgba(201,162,92,0.3);
}
.tl-left .tl-card::after  { right: -28px; }
.tl-right .tl-card::before { left: -28px; }

.tl-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.35rem;
}
.tl-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.tl-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}
.tl-card p strong { color: var(--text); font-weight: 600; }

/* CTA */
.rules-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(201,162,92,0.08), rgba(201,162,92,0.03));
    border: 1px solid rgba(201,162,92,0.2);
    border-radius: 18px;
    max-width: 560px;
    margin: 0 auto;
}
.rules-cta p {
    color: var(--muted);
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
}
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-gold:hover {
    background: var(--gold2);
    transform: translateY(-2px);
}

/* Mobile — stack single column */
@media (max-width: 700px) {
    .timeline-line { left: 16px; }
    .tl-item {
        grid-template-columns: 28px 1fr;
        margin-bottom: 2rem;
    }
    .tl-left .tl-card,
    .tl-right .tl-card {
        grid-column: 2;
        grid-row: 1;
        transform: translateX(20px);
    }
    .tl-item.visible .tl-card { transform: translateX(0); }
    .tl-left .tl-dot,
    .tl-right .tl-dot { grid-column: 1; grid-row: 1; }
    .tl-left .tl-card::after,
    .tl-right .tl-card::before { display: none; }
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* === MOBILE === */
@media (max-width: 800px) {
    /* Sizing — ogólne zmniejszenie na mobile */
    .section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
    .section-head { margin-bottom: 1.8rem; }
    .lead { font-size: 0.95rem; }
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.6rem, 5.5vw, 2.6rem); }
    h3 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }

    /* Nav */
    .floatnav .menu-toggle { display: block; }
    .floatnav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: rgba(14,14,15,0.97);
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--line-light);
    }
    .floatnav-links.open { display: flex; }
    .floatnav-logo { height: 58px; }

    /* Hero */
    .hero-logo { width: min(280px, 72vw); }
    .hero-nav-inner { gap: 0.5rem 1.2rem; font-size: 0.78rem; }
    .hero-scroll-hint { margin-top: 0.8rem; gap: 0.35rem; font-size: 0.6rem; }
    .scroll-arrow { width: 16px; height: 28px; }

    /* Intro band */
    .intro-band-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .intro-sep { display: none; }

    /* Hero below */
    .hero-below-grid { grid-template-columns: 1fr; }
    .hero-below-image { aspect-ratio: 16/9; }
    .hero-below-content { padding: 2rem 0; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Opinions */
    .opinions-badge { gap: 0.7rem; }
    .opinions-score { font-size: 1.8rem; }
    .opinion-card { width: 280px; }

    /* Apartments */
    .apartment-entry, .apartment-entry.flip {
        grid-template-columns: 1fr;
        direction: ltr;
        min-height: unset;
    }
    .apt-image-pane { aspect-ratio: 16/9; }
    .apt-number { display: none; }
    .apt-content-pane { padding: 1.6rem 1.4rem; }

    /* Contact */
    .contact-cards { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery-tabs-bar { top: 0; position: sticky; }
    .gtab { padding: 0.9rem 1.2rem; font-size: 0.8rem; }
    .gmasonry { columns: 2; }

    /* Attractions */
    .attraction-card { grid-template-columns: 1fr; }
    .attraction-card img { aspect-ratio: 16/9; width: 100%; height: auto; }
    .attraction-body { padding: 1.4rem 1.5rem; }

    /* Page hero (subpages) */
    .page-hero-logo { height: min(120px, 30vw); margin-bottom: 1.4rem; }
    .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 540px) {
    /* Gallery */
    .gmasonry { columns: 2; column-gap: 0.4rem; }
    .gitem { margin-bottom: 0.4rem; }

    /* Hero nav — hide on tiny screens */
    .hero-nav-inner a { font-size: 0.72rem; }

    /* Section headings */
    h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
    h1 { font-size: clamp(1.75rem, 8vw, 2.6rem); }

    /* Opinions marquee card narrower */
    .opinion-card { width: 260px; }

    /* Lightbox arrows */
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
    .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 1.4rem; }

    /* Timeline mobile */
    .tl-card { padding: 1.2rem 1.2rem; }
    .tl-card h3 { font-size: 1.1rem; }
}
