/**
 * Sticky Booking Footer Bar Styles
 */

/* Container */
html:has(.nsbb-show-booking-cta) {
    min-height: 100dvh;
}

.nsbb-fixed-booking-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    will-change: transform;
}

/* Show state */
.nsbb-show-booking-cta .nsbb-fixed-booking-cta {
    transform: translateY(0);
}

/* Footer Bar */
.nsbb-footer-bar {
    background: hsl(from var(--orange-500) h s l / 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 2px solid hsl(from var(--orange-500) h s l / 1);
}

.nsbb-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Text Section */
.nsbb-footer-text {
    flex: 1;
}

.nsbb-footer-heading {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    font-weight: 900;
}

.nsbb-footer-subtext {
    margin: 0;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.4;
        font-weight: 600;

}

/* CTA Section */
.nsbb-footer-cta {
    flex-shrink: 0;
}

/* Book Button - Default (Style 3 variant) */
.nsbb-book-button {
    padding: 18px 40px;
    background: hsl(from var(--primary-700) h s l / 0.95);
    color: var(--orange-400);
    border: 3px solid #f2dfac;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow:
        0 4px 12px rgba(57, 89, 111, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.nsbb-book-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(57, 89, 111, 0.4);
}

.nsbb-book-button:active {
    transform: scale(0.98);
}

.nsbb-button-text {
    font-size: 1.2rem;
}

.nsbb-button-icon {
    display: none;
}

/* Style 1: Gradient med glow effekt */
body[data-button-style="1"] .nsbb-book-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #45abaf 0%, #2f7b7f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(69, 171, 175, 0.4);
    position: relative;
    overflow: hidden;
}

body[data-button-style="1"] .nsbb-book-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

body[data-button-style="1"] .nsbb-book-button:hover::before {
    left: 100%;
}

body[data-button-style="1"] .nsbb-book-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(69, 171, 175, 0.6);
}

body[data-button-style="1"] .nsbb-button-icon {
    display: none;
}

/* Style 2: Pulse animation med border */
body[data-button-style="2"] .nsbb-book-button {
    padding: 18px 40px;
    background: #e74c3c;
    color: white;
    border: 3px solid #c0392b;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: nsbb-pulse 2s infinite;
}

@keyframes nsbb-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.7);
    }
}

body[data-button-style="2"] .nsbb-book-button:hover {
    background: #c0392b;
    border-color: #a93226;
    transform: scale(1.05);
    animation: none;
}

body[data-button-style="2"] .nsbb-button-icon {
    display: none;
}

/* Style 3: Neon glow effekt */
body[data-button-style="3"] .nsbb-book-button {
    padding: 18px 40px;
    background: #2d3748;
    color: #e0be4b;
    border: 2px solid #e0be4b;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        0 0 10px rgba(224, 190, 75, 0.5),
        0 0 20px rgba(224, 190, 75, 0.3),
        inset 0 0 10px rgba(224, 190, 75, 0.1);
}

body[data-button-style="3"] .nsbb-book-button:hover {
    background: #e0be4b;
    color: #2d3748;
    box-shadow:
        0 0 20px rgba(224, 190, 75, 0.8),
        0 0 40px rgba(224, 190, 75, 0.5),
        0 0 60px rgba(224, 190, 75, 0.3);
    transform: translateY(-2px);
}

body[data-button-style="3"] .nsbb-button-icon {
    display: none;
}

/* Style 4: Modern minimalistisk med subtle hover */
body[data-button-style="4"] .nsbb-book-button {
    padding: 20px 48px;
    background: white;
    color: #2d3748;
    border: none;
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

body[data-button-style="4"] .nsbb-book-button::after {
    content: '→';
    position: absolute;
    right: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

body[data-button-style="4"] .nsbb-book-button:hover {
    padding-right: 56px;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

body[data-button-style="4"] .nsbb-book-button:hover::after {
    opacity: 1;
    right: 20px;
}

body[data-button-style="4"] .nsbb-button-icon {
    display: none;
}

/* Style 5: Bold med skygge-effekt */
body[data-button-style="5"] .nsbb-book-button {
    padding: 20px 44px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 0 #d63031;
    position: relative;
    top: 0;
}

body[data-button-style="5"] .nsbb-book-button:hover {
    top: 4px;
    box-shadow: 0 4px 0 #d63031;
}

body[data-button-style="5"] .nsbb-book-button:active {
    top: 8px;
    box-shadow: 0 0 0 #d63031;
}

body[data-button-style="5"] .nsbb-button-icon {
    display: none;
}

/* Footer Tab (visible when bar is hidden) */
.nsbb-footer-tab {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(224, 190, 75, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(224, 190, 75, 1);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
}

.nsbb-footer-tab:hover {
    background: rgba(224, 190, 75, 1);
    transform: translateX(-50%) translateY(-2px);
}

.nsbb-footer-tab svg {
    width: 20px;
    height: 20px;
}

/* Show tab when bar is hidden */
.nsbb-fixed-booking-cta:not(.nsbb-bar-visible) .nsbb-footer-tab {
    opacity: 1;
    pointer-events: auto;
}

/* Hide tab when bar is visible */
.nsbb-fixed-booking-cta.nsbb-bar-visible .nsbb-footer-tab {
    opacity: 0;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile fix: ensure footer sticks to bottom using dvh */
    .nsbb-fixed-booking-cta {
        bottom: 0;
        position: fixed;
    }

    .nsbb-footer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 16px 20px;
        text-align: center;
    }

    .nsbb-footer-heading {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .nsbb-footer-subtext {
        font-size: 0.9rem;
    }

    .nsbb-book-button {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 1.1rem;
        letter-spacing: 1px;
        max-width: 240px;
    }

    .nsbb-footer-tab {
        top: -36px;
        padding: 6px 20px;
        font-size: 0.85rem;
    }

    .nsbb-footer-tab svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .nsbb-footer-heading {
        font-size: 1.1rem;
    }

    .nsbb-footer-subtext {
        font-size: 0.85rem;
    }

    .nsbb-book-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
