/* ==========================================================
   Floating Location Sidebar – Frontend Styles
   PHP 7.0 compatible plugin by Floating Location Sidebar
   ========================================================== */

:root {
    --fls-accent: #8b1a5e;
    --fls-active: #a0205e;
    --fls-bg:     #1a0a14;
    --fls-text:   #ffffff;
    --fls-sub:    #e8a0c8;
    --fls-line:   #c0306a;
    --fls-pin:    #e8a0c8;
    --fls-shadow: rgba(0, 0, 0, 0.6);
    --fls-radius: 8px;
    --fls-width:  200px;
    --fls-z:      9999;
}

/* ---- Sidebar wrapper ---- */
.fls-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--fls-z);
    display: flex;
    align-items: stretch;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.fls-left  { left: 0; flex-direction: row-reverse; }
.fls-right { right: 0; flex-direction: row; }

/* ---- Panel ---- */
.fls-panel {
    width: var(--fls-width);
    background: var(--fls-bg);
    padding: 18px 12px 20px;
    box-shadow: 2px 0 16px var(--fls-shadow);
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.fls-sidebar.fls-collapsed .fls-panel {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    pointer-events: none;
}

/* ---- Heading ---- */
.fls-heading {
    margin: 0 0 6px;
    color: var(--fls-text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.fls-heading-line {
    width: 40px;
    height: 2px;
    background: var(--fls-line);
    margin: 0 auto 14px;
    border-radius: 2px;
}

/* ---- Nav ---- */
.fls-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- Buttons ---- */
.fls-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--fls-accent);
    border-radius: var(--fls-radius);
    color: var(--fls-text);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    white-space: nowrap;
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.fls-btn:hover {
    background: var(--fls-active);
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    color: #fff;
    text-decoration: none;
}

.fls-btn--active {
    background: var(--fls-active);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2), 0 4px 14px rgba(0,0,0,0.5);
}

/* ---- Pin icon ---- */
.fls-pin {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fls-pin svg {
    width: 18px;
    height: 18px;
    fill: var(--fls-pin);
}

/* ---- Button text ---- */
.fls-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    overflow: hidden;
}

.fls-btn-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.fls-sub {
    font-size: 11px;
    color: var(--fls-sub);
    white-space: nowrap;
}

/* ---- Toggle button ---- */
.fls-toggle {
    background: var(--fls-accent);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 26px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    transition: background 0.2s;
    box-shadow: 2px 0 8px var(--fls-shadow);
    align-self: center;
}

.fls-left  .fls-toggle { border-radius: 0 var(--fls-radius) var(--fls-radius) 0; }
.fls-right .fls-toggle { border-radius: var(--fls-radius) 0 0 var(--fls-radius); }

.fls-toggle:hover {
    background: var(--fls-active);
}

.fls-toggle-icon {
    display: block;
    line-height: 1;
}

/* ---- Responsive: hide on very small screens by default ---- */
@media screen and (max-width: 480px) {
    :root {
        --fls-width: 170px;
    }
    .fls-btn-text strong { font-size: 13px; }
}
