/* Krytyczne style dla szybszego renderowania */
:root {
    --bg-primary: #e5e7eb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #374151;
    --accent-primary: #166534;
    --accent-secondary: #1e40af;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    --footer-bg: #111827;
    --footer-text: #e5e7eb;
    --feature-tag-bg: #d1d5db;
    --feature-icon-color: #111827;
    --feature-text-color: #111827;
}

[data-theme="dark"] {
    --bg-primary: #1f2937;
    --bg-secondary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --accent-primary: #16a34a;
    --accent-secondary: #2563eb;
    --card-bg: #374151;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --footer-bg: #111827;
    --footer-text: #f9fafb;
    --feature-tag-bg: #4b5563;
    --feature-icon-color: #f9fafb;
    --feature-text-color: #f9fafb;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
}

/* === Galeria === */
.gallery-grid {
    display: grid;
    gap: 1rem;
    padding: 0.5rem;
}

@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(1, 1fr); }
    .gallery-item { aspect-ratio: 4/3; }
}
@media (min-width: 641px) and (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item { aspect-ratio: 4/3; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item { aspect-ratio: 16/10; }
}
@media (min-width: 1025px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-item { aspect-ratio: 16/10; }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: var(--bg-secondary);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 
                0 10px 10px -5px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.gallery-item button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-grid > .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-grid > .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-item.loading {
    background: linear-gradient(90deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%, 
        var(--bg-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.gallery-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* === Lightbox === */
.lightbox {
    touch-action: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    display: flex;
    opacity: 1;
    touch-action: none;
    overscroll-behavior: contain;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    will-change: transform, opacity;
}

.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

@media (hover: hover) {
    .lightbox img { cursor: grab; }
    .lightbox img:active { cursor: grabbing; }
}

.lightbox-close, .lightbox-nav {
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-close:hover, .lightbox-close:focus,
.lightbox-nav:hover, .lightbox-nav:focus {
    color: var(--accent-primary);
    transform: scale(1.2);
    outline: 2px solid var(--accent-primary);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .lightbox-nav {
        background: rgba(0, 0, 0, 0.5);
        padding: 15px 10px;
        border-radius: 50%;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 85%;
    }
}

/* === Pozostałe style === */
.bg-white { background-color: var(--bg-secondary) !important; }
.bg-gray-100 { background-color: var(--bg-primary) !important; }
.text-gray-800 { color: var(--text-primary) !important; }
.text-gray-600 { color: var(--text-secondary) !important; }
.bg-gray-200 { background-color: var(--feature-tag-bg) !important; }
.bg-gray-800 { background-color: var(--footer-bg) !important; }
.text-gray-400 { color: var(--footer-text) !important; }

.hero {
    background-image: url('../../narzedzia/pok.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,100,0,0.4) 0%, rgba(0,0,50,0.4) 100%);
    pointer-events: none;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: white !important;
    transition: color 0.3s ease;
}

#navbar.bg-white .nav-link {
    color: var(--text-primary) !important;
}

.nav-link:hover, .nav-link:focus {
    color: var(--accent-primary) !important;
    outline: 2px solid var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}

.cabin-card, .feature-card, .pricing-table td, .testimonial .bg-gray-100, .faq-answer, .contact .bg-white {
    background-color: var(--card-bg) !important;
    box-shadow: var(--card-shadow);
}

.pricing-table tr:nth-child(even) td {
    background-color: var(--bg-primary) !important;
}

.cabin-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cabin-card:hover, .cabin-card:focus-within {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 0.3; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0.3; }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid var(--bg-primary);
    border-top: 5px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.parallax-section {
    position: relative;
    height: 400px;
    background-image: url('../../narzedzia/parallax.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-position 0.5s ease;
}

.parallax-section h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.parallax-section p {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s, opacity 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

.parallax-section.visible h2,
.parallax-section.visible p {
    transform: translateY(0);
    opacity: 1;
}

.bg-green-700 {
    background-color: var(--accent-primary) !important;
}

.bg-blue-600 {
    background-color: var(--accent-secondary) !important;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    border: 1px solid var(--bg-primary);
    padding: 12px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.pricing-table th {
    background-color: var(--accent-primary);
    color: #ffffff;
    font-weight: 600;
}

.pricing-table tr:hover td {
    background-color: rgba(22, 101, 52, 0.1);
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: var(--accent-primary);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover, .theme-toggle:focus {
    background-color: var(--accent-secondary);
    transform: rotate(360deg);
    outline: 2px solid var(--accent-secondary);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--feature-tag-bg);
    color: var(--feature-text-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 9999px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-tag:hover {
    transform: scale(1.05);
}

.feature-tag i {
    color: var(--feature-icon-color);
    font-size: 1.2rem;
    margin-right: 6px;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-tag:hover i {
    transform: rotate(5deg);
}

a:focus, button:focus, .faq-question:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.faq-question {
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-question:hover {
    transform: translateY(-2px);
}

.faq-answer {
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.faq-answer:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.regulations-link {
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.regulations-link:hover, .regulations-link:focus {
    color: var(--accent-secondary);
    transform: scale(1.05);
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.regulations-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

.regulations-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.regulations-content li {
    margin-bottom: 5px;
}

.reservation-terms {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    line-height: 1.5;
    font-size: 0.9rem;
    position: relative;
    z-index: 100000;
}

/* =============================================
   REVIEW SLIDER (rs-)
   ============================================= */

/* --- Google badge --- */
.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 14px 26px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
}
.google-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.google-rating-badge__logo { height: 36px; width: auto; }
.google-rating-badge__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.google-rating-badge__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.google-rating-badge__stars {
    display: flex;
    gap: 2px;
    color: #facc15;
    font-size: .88rem;
}
.google-rating-badge__score {
    font-size: .82rem;
    color: var(--text-secondary);
}

/* --- Wrapper --- */
.rs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Arrows --- */
.rs-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    z-index: 2;
}
.rs-arrow:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(22,101,52,.35);
}
.rs-arrow:active { transform: scale(.94); }
.rs-arrow:focus-visible {
    outline: 3px solid #86efac;
    outline-offset: 3px;
}
.rs-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}
@media (max-width: 640px) {
    .rs-arrow { display: none; }
}

/* --- Viewport / track --- */
.rs-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 18px;
}
.rs-track {
    display: flex;
    gap: 20px;
    padding: 8px 4px;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    cursor: grab;
}
.rs-track.is-dragging {
    cursor: grabbing;
    transition: none;
}

/* --- Card --- */
.rs-card {
    flex: 0 0 100%;
    min-width: 0;
    background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,0,0,.05);
    transition: transform .35s, box-shadow .35s;
}
.rs-card::before {
    content: '\201C';
    position: absolute;
    top: -12px;
    left: 14px;
    font-size: 7rem;
    font-family: Georgia, serif;
    color: var(--accent-primary);
    opacity: .08;
    line-height: 1;
    pointer-events: none;
}
.rs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(0,0,0,.12);
}
@media (min-width: 768px) {
    .rs-card { flex: 0 0 calc(50% - 10px); }
}
@media (min-width: 1024px) {
    .rs-card { flex: 0 0 calc(33.333% - 14px); }
}

/* --- Card header --- */
.rs-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.rs-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #22c55e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(22,101,52,.25);
}
.rs-card__meta { min-width: 0; }
.rs-card__author {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-card__date {
    font-size: .78rem;
    color: var(--text-secondary);
    opacity: .7;
    margin-top: 1px;
}
.rs-card__stars {
    display: flex;
    gap: 2px;
    color: #facc15;
    font-size: .85rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Card body --- */
.rs-card__body {
    position: relative;
    z-index: 1;
    flex: 1;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.rs-card__body.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rs-card__toggle {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    padding: 6px 0 0;
    transition: color .2s;
    position: relative;
    z-index: 1;
}
.rs-card__toggle:hover { color: #166534; text-decoration: underline; }

/* --- Google corner icon --- */
.rs-card__gicon {
    position: absolute;
    bottom: 16px;
    right: 18px;
    width: 22px;
    height: 22px;
    opacity: .2;
    transition: opacity .3s;
    z-index: 1;
}
.rs-card:hover .rs-card__gicon { opacity: .5; }

/* --- Controls --- */
.rs-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.rs-progress {
    width: 220px;
    height: 3px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}
.rs-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #22c55e);
    border-radius: 3px;
    transition: width .55s cubic-bezier(.4,0,.2,1);
    width: 0%;
}
.rs-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
}
.rs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.rs-dot:hover { background: #86efac; transform: scale(1.25); }
.rs-dot.active {
    background: var(--accent-primary);
    width: 30px;
    border-radius: 5px;
}

/* --- CTA --- */
.rs-google-cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent-primary);
    color: #fff;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 18px rgba(22,101,52,.3);
}
.rs-google-cta:hover {
    background: #166534;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22,101,52,.4);
    color: #fff;
}

/* --- Dark mode overrides --- */
[data-theme="dark"] .rs-card {
    background: linear-gradient(160deg, var(--card-bg) 0%, #1f2937 100%);
    border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .rs-card::before { color: #22c55e; opacity: .06; }
[data-theme="dark"] .google-rating-badge {
    background: var(--card-bg);
    border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .rs-dot { background: #4b5563; }
[data-theme="dark"] .rs-arrow {
    background: var(--card-bg);
    border-color: #22c55e;
    color: #22c55e;
}
[data-theme="dark"] .rs-arrow:hover {
    background: #22c55e;
    color: #fff;
}

.tippy-box {
    max-width: 600px !important;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
    z-index: 99999 !important;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
}

.tippy-box[data-state="visible"] {
    transform: scale(1);
    opacity: 1;
}

.tippy-arrow {
    color: var(--bg-secondary);
}

/* ============================================
   NOWE ULEPSZENIA UX
   ============================================ */

/* === SKIP TO CONTENT === */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent-secondary);
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #22c55e);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* === NAVBAR ENHANCEMENTS === */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

#navbar.scrolled {
    background: var(--bg-secondary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-link.active {
    color: var(--accent-primary) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* === MOBILE MENU ANIMATIONS === */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

#mobile-menu.closing {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#mobile-menu a {
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 12px 16px !important;
}

#mobile-menu a:hover,
#mobile-menu a:focus {
    background: var(--bg-primary);
    color: var(--accent-primary) !important;
    transform: translateX(8px);
}

/* Hamburger animation */
#mobile-menu-button.is-active .fa-bars::before {
    content: '\f00d'; /* X icon */
}

/* === TOAST NOTIFICATIONS === */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === REVEAL ANIMATIONS === */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === COUNTER ENHANCEMENTS === */
.counter {
    position: relative;
}

.counter.counted::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    animation: counterLine 0.5s ease-out;
}

@keyframes counterLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 30px;
        opacity: 1;
    }
}

/* === BUTTON ENHANCEMENTS === */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-animated:hover::after {
    width: 300px;
    height: 300px;
}

.btn-animated:active {
    transform: scale(0.98);
}

/* === BOOKING BUTTON PULSE === */
.booking-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(22, 101, 52, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0);
    }
}

/* === COPYABLE ELEMENTS === */
.copyable {
    position: relative;
    padding-right: 30px !important;
}

.copyable::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.copyable:hover {
    background: var(--bg-primary);
    border-radius: 4px;
}

.copyable:hover::after {
    opacity: 1;
}

/* === IMAGE LOAD ANIMATIONS === */
img.loaded {
    animation: imageReveal 0.5s ease-out;
}

@keyframes imageReveal {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating {
        animation: none;
    }
    
    .scroll-down {
        animation: none;
    }
    
    .booking-btn {
        animation: none;
    }
}

/* === FOCUS VISIBLE IMPROVEMENTS === */
:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* === BETTER HOVER STATES FOR CARDS === */
.feature-card,
.cabin-card {
    position: relative;
}

.feature-card::before,
.cabin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), #22c55e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.feature-card:hover::before,
.cabin-card:hover::before {
    transform: scaleX(1);
}

/* === ICON HOVER EFFECTS === */
.feature-icon {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* === PRICING TABLE IMPROVEMENTS === */
.pricing-table tbody tr {
    transition: all 0.2s ease;
}

.pricing-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === CONTACT INFO HOVER === */
.contact .flex.items-start {
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact .flex.items-start:hover {
    background: var(--bg-primary);
    transform: translateX(8px);
}

/* === BETTER SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166534;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

/* === SELECTION COLOR === */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* === TO TOP BUTTON ENHANCEMENT === */
#to-top-btn {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#to-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.4);
}

#to-top-btn.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* === HERO IMPROVEMENTS === */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
    z-index: 0;
}

/* === LOADING STATES === */
.gallery-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--bg-primary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* === SMOOTH PAGE TRANSITIONS === */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.loading {
    opacity: 0;
}

/* === PHONE LINKS === */
a[href^="tel:"],
.phone-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

a[href^="tel:"]:hover,
.phone-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

a[href^="tel:"]:focus,
.phone-link:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ikona telefonu przy linkach (opcjonalnie) */
a[href^="tel:"]::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 0.85em;
}

/* Wyłącz ikonę w miejscach gdzie już jest ikona */
.flex.items-start a[href^="tel:"]::before,
footer a[href^="tel:"]::before {
    content: none;
}