/* Trastora Sticky Sidebar – sidebar.css v1.0.0 */

/* ── Import brand font ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600&display=swap');

/* ── Wrapper ───────────────────────────────────────────── */
#trss-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: auto;
}

/* ── Each item ─────────────────────────────────────────── */
.trss-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 52px;
    cursor: pointer;
    /* Only the icon (52px) peeks out; full label width slides in */
    transform: translateX(calc(100% - 52px));
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -3px 3px 14px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Scrolled – all items slide fully in */
#trss-sidebar.trss-scrolled .trss-item {
    transform: translateX(0);
}

/* Staggered entry */
#trss-sidebar.trss-scrolled .trss-item:nth-child(1) { transition-delay: 0.00s; }
#trss-sidebar.trss-scrolled .trss-item:nth-child(2) { transition-delay: 0.07s; }
#trss-sidebar.trss-scrolled .trss-item:nth-child(3) { transition-delay: 0.14s; }
#trss-sidebar.trss-scrolled .trss-item:nth-child(4) { transition-delay: 0.21s; }
#trss-sidebar.trss-scrolled .trss-item:nth-child(5) { transition-delay: 0.28s; }

/* Hover always expands the hovered item */
.trss-item:hover {
    transform: translateX(0) !important;
    transition-delay: 0s !important;
}

/* ── Label ─────────────────────────────────────────────── */
.trss-label {
    font-family: 'Rajdhani', 'Arial Black', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 10px 0 16px;
    opacity: 0;
    transition: opacity 0.18s ease 0.12s;
    line-height: 1;
}

.trss-item:hover .trss-label,
#trss-sidebar.trss-scrolled .trss-item .trss-label {
    opacity: 1;
}

/* ── Icon box ──────────────────────────────────────────── */
.trss-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.13);
}

.trss-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    display: block;
}

/* ── Brand colors ──────────────────────────────────────── */
.trss-facebook  { background: #3b5998; }
.trss-instagram { background: linear-gradient(160deg, #f9a825 0%, #e91e63 50%, #9c27b0 100%); }
.trss-youtube   { background: #ff0000; }
.trss-whatsapp  { background: #25d366; }
.trss-booking   { background: #0077cc; }

/* ── Mobile: smaller icons, hide labels ────────────────── */
@media (max-width: 480px) {
    .trss-item {
        height: 44px;
        transform: translateX(calc(100% - 44px));
        border-radius: 6px 0 0 6px;
    }

    #trss-sidebar.trss-scrolled .trss-item {
        transform: translateX(0);
    }

    .trss-icon {
        width: 44px;
        height: 44px;
    }

    .trss-icon svg {
        width: 19px;
        height: 19px;
    }

    .trss-label {
        font-size: 11px;
        padding: 0 8px 0 12px;
        letter-spacing: 1px;
    }
}

/* ── Accessibility: respect reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    .trss-item {
        transition: none !important;
    }

    #trss-sidebar.trss-scrolled .trss-item {
        transform: translateX(0);
    }
}
