/*
 * GS Salon - Sidebar
 * Sidebar Cards / CTA / Map / Hours / Address
 */

/* =========================
   Sidebar Wrapper
   ========================= */

.sidebar-inner {
    position: sticky;
    top: 30px;
    padding: 30px 26px;
}

/* =========================
   Shared Sidebar Blocks
   ========================= */

.gs-sidebar-card,
.gs-mini-map-container,
.gs-sidebar-hours-block {
    position: relative;
    margin-top: 20px;
    padding: 22px 20px;
    border-radius: 20px;
    border: 1px solid rgba(184, 150, 92, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.86) 0%, rgba(249, 241, 229, 0.76) 100%);
    box-shadow:
        0 10px 24px rgba(69, 50, 29, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    overflow: hidden;
    isolation: isolate;
}

.gs-sidebar-card::before,
.gs-mini-map-container::before,
.gs-sidebar-hours-block::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(184, 150, 92, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(184, 150, 92, 0.08) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
}

.gs-sidebar-card > *,
.gs-mini-map-container > *,
.gs-sidebar-hours-block > * {
    position: relative;
    z-index: 1;
}

.gs-sidebar-card:first-child,
.gs-mini-map-container:first-child,
.gs-sidebar-hours-block:first-child {
    margin-top: 0;
}

/* =========================
   Sidebar Titles / Labels
   ========================= */

.sidebar-label {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--gs-primary);
}

.gs-address-text {
    margin: 0;
    color: var(--gs-text-main);
    font-size: 0.96rem;
    line-height: 2;
    font-weight: 600;
}

.gs-address-text a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(184, 150, 92, 0.32);
    transition: color var(--gs-transition), border-color var(--gs-transition);
}

.gs-address-text a:hover {
    color: var(--gs-primary);
    border-bottom-color: rgba(31, 26, 23, 0.28);
}

/* =========================
   CTA Grid
   ========================= */

.sidebar-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* =========================
   Base Button
   ========================= */

.gs-btn {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    text-align: right;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.4;
    transition:
        transform var(--gs-transition),
        box-shadow var(--gs-transition),
        background var(--gs-transition),
        border-color var(--gs-transition),
        color var(--gs-transition),
        filter var(--gs-transition);
}

.gs-btn:focus-visible {
    outline: 2px solid rgba(184, 150, 92, 0.45);
    outline-offset: 2px;
}

.gs-btn svg {
    flex-shrink: 0;
}

.gs-btn-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition:
        background var(--gs-transition),
        color var(--gs-transition),
        transform var(--gs-transition);
}

.gs-btn-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gs-btn-content strong {
    color: currentColor;
    font-size: 0.95rem;
    font-weight: 900;
}

.gs-btn-content small {
    max-width: 100%;
    color: currentColor;
    opacity: 0.82;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   Button Variants
   ========================= */

.gs-btn-primary {
    color: var(--gs-text-on-dark);
    background: linear-gradient(135deg, #2c241d 0%, #4a3a2b 100%);
    border-color: rgba(60, 49, 40, 0.40);
    box-shadow: 0 14px 26px rgba(44, 36, 29, 0.18);
}

.gs-btn-primary .gs-btn-icon {
    color: #fffdf8;
    background: rgba(255, 255, 255, 0.12);
}

.gs-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(44, 36, 29, 0.24);
}

.gs-btn-primary:hover .gs-btn-icon {
    transform: scale(1.03);
}

.gs-btn-secondary {
    color: var(--gs-primary);
    background: linear-gradient(180deg, #fffaf2 0%, #f6ecdd 100%);
    border-color: rgba(184, 150, 92, 0.22);
    box-shadow: 0 10px 20px rgba(69, 50, 29, 0.06);
}

.gs-btn-secondary .gs-btn-icon {
    color: var(--gs-accent-strong);
    background: rgba(184, 150, 92, 0.12);
}

.gs-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 150, 92, 0.34);
    box-shadow: 0 16px 26px rgba(69, 50, 29, 0.10);
}

.gs-btn-secondary:hover .gs-btn-icon {
    transform: scale(1.03);
}

.gs-btn-whatsapp {
    color: #145a34;
    background: linear-gradient(180deg, #effcf4 0%, #e3f7ea 100%);
    border-color: rgba(31, 157, 85, 0.20);
    box-shadow: 0 10px 20px rgba(31, 157, 85, 0.08);
}

.gs-btn-whatsapp .gs-btn-icon {
    color: #1f9d55;
    background: rgba(31, 157, 85, 0.12);
}

.gs-btn-whatsapp:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1f9d55 0%, #167f43 100%);
    border-color: rgba(22, 127, 67, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(31, 157, 85, 0.20);
}

.gs-btn-whatsapp:hover .gs-btn-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.03);
}

.gs-btn-outline {
    color: var(--gs-accent-strong);
    background: rgba(255, 251, 244, 0.72);
    border-color: rgba(184, 150, 92, 0.22);
    box-shadow: 0 10px 20px rgba(69, 50, 29, 0.04);
}

.gs-btn-outline .gs-btn-icon {
    color: var(--gs-accent-strong);
    background: rgba(184, 150, 92, 0.10);
}

.gs-btn-outline:hover {
    color: var(--gs-primary);
    background: rgba(255, 250, 242, 0.96);
    border-color: rgba(184, 150, 92, 0.34);
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(69, 50, 29, 0.08);
}

.gs-btn-outline:hover .gs-btn-icon {
    transform: scale(1.03);
}

.gs-btn-light {
    color: var(--gs-primary-soft);
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(184, 150, 92, 0.18);
    box-shadow: 0 8px 18px rgba(69, 50, 29, 0.04);
}

.gs-btn-light .gs-btn-icon {
    color: var(--gs-accent-strong);
    background: rgba(184, 150, 92, 0.10);
}

.gs-btn-light:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(184, 150, 92, 0.30);
    box-shadow: 0 14px 24px rgba(69, 50, 29, 0.08);
}

.gs-btn-light:hover .gs-btn-icon {
    transform: scale(1.03);
}

/* =========================
   Working Hours
   ========================= */

.gs-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gs-hours-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(184, 150, 92, 0.18);
    font-size: 0.92rem;
}

.gs-hours-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.gs-hours-list .day {
    color: var(--gs-text-muted);
    font-weight: 700;
}

.gs-hours-list .hours {
    color: var(--gs-primary);
    font-weight: 800;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
}

/* =========================
   Mini Map / Leaflet
   ========================= */

.gs-mini-map-container #salon-map {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    border: 1px solid rgba(184, 150, 92, 0.18);
    overflow: hidden;
    background: #f6efe4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    z-index: 1;
}

.leaflet-container {
    font-family: inherit;
    background: #f6efe4;
}

.leaflet-control-container .leaflet-control {
    border-radius: 12px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    box-shadow: 0 12px 24px rgba(69, 50, 29, 0.14);
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.8;
    font-size: 0.88rem;
    color: var(--gs-text-main);
}

/* =========================
   Utility States
   ========================= */

.gs-sidebar-note {
    margin: 0;
    color: var(--gs-text-soft);
    font-size: 0.9rem;
    line-height: 1.9;
}

.gs-sidebar-card:empty,
.gs-mini-map-container:empty,
.gs-sidebar-hours-block:empty {
    display: none;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1180px) {
    .sidebar-inner {
        padding: 24px 20px;
    }
}

@media (max-width: 992px) {
    .sidebar-inner {
        position: static;
        top: auto;
        padding: 0;
    }

    .sidebar-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar-inner {
        padding: 0;
    }

    .gs-sidebar-card,
    .gs-mini-map-container,
    .gs-sidebar-hours-block {
        margin-top: 16px;
        padding: 18px 16px;
        border-radius: 18px;
    }

    .sidebar-cta-grid {
        grid-template-columns: 1fr;
    }

    .gs-btn {
        min-height: 58px;
    }

    .gs-mini-map-container #salon-map {
        height: 220px;
    }
}

@media (max-width: 520px) {
    .gs-btn {
        min-height: 54px;
        gap: 10px;
        padding: 13px 14px;
        font-size: 0.92rem;
    }

    .gs-btn-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .gs-btn-content strong {
        font-size: 0.9rem;
    }

    .gs-btn-content small {
        font-size: 0.78rem;
    }

    .gs-hours-list li {
        font-size: 0.88rem;
    }

    .gs-mini-map-container #salon-map {
        height: 200px;
        border-radius: 14px;
    }
}
