/* Небольшие доработки поверх шаблона Salone для динамического сайта */

.service-item img.icon-fallback {
    height: 90px;
    object-fit: contain;
}

.team-item img {
    height: 320px;
    object-fit: cover;
}

.gallery-item img {
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
}

.slot-btn {
    margin: 4px;
}

.slot-btn.active {
    background-color: var(--bs-primary, #d4a373) !important;
    color: #fff !important;
}

.map-embed {
    width: 100%;
    height: 350px;
    border: 0;
}

.form-error {
    color: #c0392b;
    font-size: 0.9rem;
}

.badge-notify {
    font-size: 0.85rem;
}

table.admin-table th, table.admin-table td {
    vertical-align: middle;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.day-row label.day-name {
    width: 130px;
    margin-bottom: 0;
}

/* ---- Админ-панель ---- */
body.admin-body {
    background: #f5f5f7;
    font-family: 'Work Sans', sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #1f1f24;
    color: #fff;
    flex-shrink: 0;
}

.admin-sidebar a {
    display: block;
    padding: 12px 22px;
    color: #cfcfcf;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #2a2a31;
    color: #fff;
    border-left-color: #d4a373;
}

.admin-sidebar .brand {
    padding: 22px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #34343c;
}

.admin-content {
    flex: 1;
    padding: 30px;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 24px;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1f24;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 360px;
    max-width: 92vw;
}

/* Полноэкранный просмотр изображений (фотогалерея, сертификаты) */
.lightbox-img {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 2000;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--bs-primary, #d4af7a);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .lightbox-overlay {
        padding: 12px;
    }
    .lightbox-close {
        top: 8px;
        right: 12px;
        font-size: 34px;
    }
}
