/* ==========================================================================
   Westique Amenities Carousel - Frontend Styles (v1.1.0 - Mobile & Theme Safe)
   ========================================================================== */

.wq-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: var(--wq-height-desktop, 680px);
    min-height: 320px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #1a1614;
    border-top: var(--wq-top-border-width, 6px) solid var(--wq-top-border-color, #9f5437);
    box-sizing: border-box;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.wq-carousel-wrapper *,
.wq-carousel-wrapper *::before,
.wq-carousel-wrapper *::after {
    box-sizing: border-box;
}

/* Slides Container */
.wq-slides-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wq-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.85s;
    z-index: 1;
}

.wq-carousel-wrapper[data-effect="slide"] .wq-slide {
    transform: translateX(4%);
}

.wq-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.wq-slide-bg {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transform: scale(1.03);
    transition: transform 6s ease-out;
}

.wq-slide.is-active .wq-slide-bg {
    transform: scale(1);
}

/* Subtle bottom gradient so white line-art icons & button labels are always clear */
.wq-bottom-vignette {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(
        to top,
        rgba(12, 10, 9, 0.62) 0%,
        rgba(18, 15, 13, 0.32) 48%,
        rgba(18, 15, 13, 0) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Optional floating CTA Button on Slide */
.wq-slide-cta-wrap {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    width: 90%;
    max-width: 420px;
}

.wq-slide-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 26px;
    background: rgba(159, 84, 55, 0.88);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-family: 'Cormorant Garamond', 'Noto Serif', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wq-slide-cta-btn:hover {
    background: var(--wq-accent-color, #b85230);
    transform: translateY(-2px);
}

/* Left & Right Circular Navigation Arrows */
.wq-nav-arrow {
    position: absolute !important;
    top: 43%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 6;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.wq-nav-arrow--prev {
    left: 11.4%;
}

.wq-nav-arrow--next {
    right: 11.4%;
}

.wq-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: #ffffff !important;
    transform: translateY(-50%) scale(1.06);
}

.wq-nav-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.wq-nav-arrow svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor;
    stroke-width: 1.35;
    fill: none;
    display: block;
}

/* Bottom Navigation Tabs Bar */
.wq-tabs-dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 6;
    padding: 0 2.5%;
    width: 100%;
}

.wq-tabs-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0 8px;
    -webkit-overflow-scrolling: touch;
}

.wq-tabs-track::-webkit-scrollbar {
    display: none;
}

/* Individual Tab Item */
.wq-tab-item {
    position: relative;
    flex: 1 1 0%;
    min-width: 130px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 8px 18px !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none !important;
    outline: none !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

/* Diagonal Slanted Divider Line (/) between items */
.wq-tab-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: -12px;
    width: 1px;
    height: 108px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.65) 52%,
        rgba(255, 255, 255, 0.22) 100%
    );
    transform: rotate(26deg);
    transform-origin: center center;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Tab Content Wrapper (lifts up when active) */
.wq-tab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(0);
}

.wq-tab-item.is-active .wq-tab-inner,
.wq-tab-item:hover .wq-tab-inner {
    transform: translateY(-9px);
}

/* Icon Styling */
.wq-tab-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.78;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.32));
    flex-shrink: 0;
}

.wq-tab-icon svg {
    width: 40px !important;
    height: 40px !important;
    stroke: #ffffff;
    stroke-width: 1.25;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.wq-tab-icon img {
    max-width: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.wq-tab-item.is-active .wq-tab-icon,
.wq-tab-item:hover .wq-tab-icon {
    opacity: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

/* Button Text Label */
.wq-tab-label {
    font-family: 'Cormorant Garamond', 'Noto Serif', Georgia, serif !important;
    font-size: clamp(12.5px, 1.15vw, 15.5px) !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.84) !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    transition: color 0.3s ease, font-weight 0.2s ease, transform 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
}

.wq-tab-item.is-active .wq-tab-label {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: clamp(13.5px, 1.25vw, 16.5px) !important;
}

.wq-tab-item:hover .wq-tab-label {
    color: #ffffff !important;
}

/* Active Terracotta Upward Triangle Indicator (▲) */
.wq-tab-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid var(--wq-accent-color, #b85230);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.wq-tab-item.is-active .wq-tab-indicator {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Tablet Responsive (768px - 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .wq-nav-arrow--prev {
        left: 3.5%;
    }
    .wq-nav-arrow--next {
        right: 3.5%;
    }
    .wq-tab-item {
        min-width: 105px;
        padding: 6px 6px 18px !important;
    }
    .wq-tab-label {
        white-space: normal !important;
        font-size: 13px !important;
        line-height: 1.22 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .wq-tab-item.is-active .wq-tab-label {
        font-size: 14px !important;
    }
    .wq-tab-item:not(:last-child)::after {
        height: 92px;
        top: -4px;
        transform: rotate(18deg);
    }
}

/* ==========================================================================
   Mobile Responsive (<= 767px)
   Shows 3 complete tabs per viewport width with zero text overflow or edge artifacts
   ========================================================================== */
@media (max-width: 767px) {
    .wq-carousel-wrapper {
        height: var(--wq-height-mobile, 400px);
        min-height: 330px;
        border-top-width: 4px;
    }

    .wq-bottom-vignette {
        height: 56%;
        background: linear-gradient(
            to top,
            rgba(8, 6, 5, 0.82) 0%,
            rgba(14, 11, 9, 0.46) 54%,
            rgba(14, 11, 9, 0) 100%
        );
    }

    .wq-nav-arrow {
        top: 35%;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.85) !important;
    }

    .wq-nav-arrow--prev {
        left: 12px;
    }

    .wq-nav-arrow--next {
        right: 12px;
    }

    .wq-nav-arrow svg {
        width: 18px !important;
        height: 18px !important;
    }

    .wq-tabs-dock {
        bottom: 8px;
        padding: 0 6px;
    }

    .wq-tabs-track {
        padding: 14px 0 6px;
    }

    /* Exactly 3 tabs fit in the mobile viewport width (33.3333% each) */
    .wq-tab-item {
        flex: 0 0 33.3333% !important;
        width: 33.3333% !important;
        min-width: 33.3333% !important;
        max-width: 33.3333% !important;
        padding: 4px 5px 16px !important;
        overflow: visible;
    }

    .wq-carousel-wrapper[data-total-slides="2"] .wq-tab-item {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
    }

    .wq-carousel-wrapper[data-total-slides="1"] .wq-tab-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .wq-tab-item.is-active .wq-tab-inner,
    .wq-tab-item:hover .wq-tab-inner {
        transform: translateY(-6px);
    }

    /* Only show the diagonal divider on the 2 internal boundaries of the 3 visible mobile tabs */
    .wq-tab-item:not(:last-child)::after {
        height: 74px;
        top: 2px;
        right: 0;
        transform: rotate(14deg);
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.58) 52%,
            rgba(255, 255, 255, 0.15) 100%
        );
        opacity: 0;
    }

    .wq-tab-item.has-mobile-divider:not(:last-child)::after {
        opacity: 1;
    }

    .wq-tab-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 5px;
    }

    .wq-tab-icon svg,
    .wq-tab-icon img {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .wq-tab-label {
        white-space: normal !important;
        font-size: 12.5px !important;
        line-height: 1.22 !important;
        min-height: 2.44em;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        padding: 0 2px;
    }

    .wq-tab-item.is-active .wq-tab-label {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .wq-tab-indicator {
        bottom: 2px;
        border-left-width: 6px;
        border-right-width: 6px;
        border-bottom-width: 8px;
    }

    .wq-slide-cta-wrap {
        top: 8%;
    }

    .wq-slide-cta-btn {
        font-size: 13.5px;
        padding: 7px 16px;
    }
}

@media (max-width: 359px) {
    .wq-tab-label {
        font-size: 11.5px !important;
    }
    .wq-tab-item.is-active .wq-tab-label {
        font-size: 12px !important;
    }
}
