/**
 * Yan panel widget’ları — Nöbetçi Eczaneler & Turnike (iç sayfalar)
 */

.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 992px) {
    .site-sidebar {
        position: sticky;
        top: calc(var(--chrome-active-h, var(--chrome-slot-h, 88px)) + 0.75rem);
        align-self: flex-start;
        margin-top: 0;
        padding-top: 0;
        width: 100%;
        max-height: calc(100dvh - var(--chrome-active-h, var(--chrome-slot-h, 88px)) - 1.5rem);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(26, 111, 163, 0.4) transparent;
    }

    .site-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .site-sidebar::-webkit-scrollbar-thumb {
        background: rgba(26, 111, 163, 0.35);
        border-radius: 4px;
    }
}

/* —— Ortak kart —— */
.site-sidebar .eo-widget {
    width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e6ed;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(26, 35, 50, 0.08);
    margin-bottom: 0 !important;
}

.site-sidebar .eo-widget__head {
    background: linear-gradient(135deg, #1a6fa3 0%, #134559 100%);
    color: #fff;
    padding: 0.75rem 2.85rem 0.75rem 1rem;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    border: none;
}

.site-sidebar .eo-widget__head a {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    line-height: 1.3;
    opacity: 1 !important;
}

.site-sidebar .eo-widget__head a:hover {
    color: #fff !important;
    text-decoration: none !important;
    opacity: 0.92 !important;
}

.site-sidebar .eo-widget__head img.eo-widget__icon {
    height: 28px !important;
    max-width: 28px !important;
}

.site-sidebar .eo-widget__head .eo-widget__icon {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    object-position: center;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: block !important;
    flex-shrink: 0;
}

.site-sidebar .eo-widget__body {
    padding: 0.9rem 1.05rem 1rem;
    background: #fff;
}

/* —— Nöbetçi eczaneler —— */
.site-sidebar .eo-guard-notice {
    font-size: 0.78rem;
    color: #5c6578;
    margin: 0 0 0.7rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef1f5;
    line-height: 1.45;
    text-align: left;
}

.site-sidebar .eo-guard-item {
    padding: 0.7rem 0;
    border-bottom: 1px solid #e8ecf1;
    text-align: left;
}

.site-sidebar .eo-guard-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.site-sidebar .eo-guard-item:first-of-type {
    padding-top: 0;
}

.site-sidebar .eo-guard-item h3 {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #1a6fa3 !important;
    margin: 0 0 0.35rem !important;
    line-height: 1.35;
    text-align: left;
}

.site-sidebar .eo-guard-item p {
    margin: 0 0 0.3rem !important;
    font-size: 0.8125rem !important;
    color: #1a2332 !important;
    line-height: 1.45 !important;
    text-align: left;
}

.site-sidebar .eo-guard-item p:last-child {
    margin-bottom: 0 !important;
}

.site-sidebar .eo-guard-item p i {
    color: #1a6fa3;
    margin-right: 0.35rem;
    font-size: 0.75rem;
}

.site-sidebar .eo-link-all {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2b8fc7 !important;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
}

.site-sidebar .eo-link-all:hover {
    color: #1a6fa3 !important;
    text-decoration: underline;
}

/* —— Turnike —— */
.site-sidebar .eo-tourniquet-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e8ecf1;
    text-align: left;
}

.site-sidebar .eo-tourniquet-item:first-child {
    padding-top: 0;
}

.site-sidebar .eo-tourniquet-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.site-sidebar .eo-tourniquet-item h6 {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #5c6578 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.28rem !important;
    line-height: 1.35;
}

.site-sidebar .eo-tourniquet-item .d-flex {
    gap: 0.5rem;
    align-items: center;
}

.site-sidebar .eo-tourniquet-item span {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.site-sidebar .eo-tourniquet-item em {
    font-style: italic;
    flex-shrink: 0;
}

.site-sidebar .eo-tourniquet-item em,
.site-sidebar .eo-tourniquet-item em a {
    font-size: 0.78rem !important;
    color: #2b8fc7 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.site-sidebar .eo-tourniquet-item em a:hover {
    color: #1a6fa3 !important;
    text-decoration: underline !important;
}

.site-sidebar .eo-links-strip {
    display: none !important;
}

@media (max-width: 991px) {
    .site-sidebar {
        max-height: none;
        overflow: visible;
    }
}
