/*
* file coach.css
*/


/*
*********************************** coach START
*/

.coach-wrapper {
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 40px;
}

.banner__trener {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    border-radius: var(--brdradiuswrap);
    overflow: hidden;
}

.banner__trener_text {
    position: relative;
    display: block;
    max-width: 600px;
    padding: 0 60px 40px 0;
    text-align: right;
    color: white;
    z-index: 2;
}

.banner__trener_text h1 {
    margin: 0;
    text-align: left;
}

.banner__trener_text p {
    margin: 0 0 20px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}



/*
 * Фильтр
*/
.filtration__unit {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
}

.block_search {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
}

.post_icon {
    position: absolute;
    right: 14px;
    pointer-events: none;
}

.post_icon path {
    fill: var(--btncolor);
}


#coachContainer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 40px;
    order: 1;
}

.coach-wrapper aside#secondary {
    order: 0;
    min-height: inherit;
}

.coach_card {
    width: 100%;
    display: flex;
    padding: 14px;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

/*
 * переключатели
*/
.rating-switch {
    margin-bottom: 20px;
}
.switch-fields {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    font-size: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #1e2b3f;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    border-radius: 28px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ededed;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider.round:before {
    border-radius: 50%;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2672EC;
}

input:checked + .slider:before {
    -webkit-transform: translateX(32px);
    -ms-transform: translateX(32px);
    transform: translateX(32px);
}

/*
 * Карточка
*/

.coach_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.coach_card_left {
    display: flex;
    max-width: 220px;
    gap: 10px;
    flex-direction: column;
}

.coach_thumbnail {
    position: relative;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.coach_container {
    flex: 1;
}

.coach_card .entry-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

h2.entry-title {
    display: inline;
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    font-family: 'Nunito';
}

h2.entry-title a {
    color: #32353d;
}

h2.entry-title a:hover {
    color: var(--link);
}

.verified {
    padding: 2px 5px;
    margin-bottom: -5px;
    font-size: 10px;
    background-color: #b0dfb0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.coach_content {
    margin-bottom: 14px;
    padding-left: 8px;
}

.coach_type {
    margin-top: 2px;
    font-size: 12px;
    color: #6d7589;
}

.locations-text {
    margin-bottom: 4px;
    padding-left: 8px;
    font-size: 14px;
    color: #6d7589;
}

.coach_payday {
    margin: 12px 0;
}

.coach_payday_block {
    padding: 4px 10px;
    font-size: 14px;
    background: rgb(38 114 236 / 20%);
    border-radius: 8px;
    box-shadow: 0 0 16px -5px rgba(0, 20, 40, 0.10);
}

.coach-schedule-wrap {
    display: block;
    width: 280px;
}

.coach-schedule, .coach-noschedule {
    width: 100%;
    height: 100%;
}

.directions_head {
    margin-top: 6px;
    font-size: 14px;
    color: #6d7589;
}

.directions-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.directions-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

.direction-item-hidden {
    display: none;
}

button.directions-toggle-btn {
    width: 77px;
    padding: 5px 10px;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    color: #2672ec;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

button.directions-toggle-btn:hover {
    font-weight: 500;
}



/*
ul.directions-mini {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    list-style-type: none;
}

ul.directions-mini li {
    position: relative;
    padding-left: 0;
}

ul.directions-mini li:before {
    content: '\ef4a';
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-size: 8px;
    vertical-align: middle;
    line-height: 120%;
    font-variation-settings: 'FILL' 1;
    color: #575757;
}
*/

.coach-noschedule {
    display: flex;
    padding: 20px 18px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #f3f3f3;
    border-radius: 12px;
    box-shadow: 0 0 16px -5px rgba(0, 20, 40, 0.10);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.coach-noschedule:hover {
    box-shadow: 0 0 35px -5px rgba(20, 60, 120, 0.2);
}

span.noschedule {
    text-align: center;
}

.contacts-bar {
    transition: all 0.2s ease;
}

.coach-contacts {
    display: none;
}

.coach-contacts {
    padding: 20px 18px 10px;
    background: #f3f3f3;
    border-radius: 12px;
    box-shadow: 0 0 16px -5px rgba(0, 20, 40, 0.10);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.coach-contacts i {
    position: absolute;
    left: 24px;
    width: 24px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.coach-contacts a.button {
    padding: 12px 4px 12px 22px;
}
/* Появление контактов */
.show-contacts .coach-noschedule {
    display: none;
}

.show-contacts .coach-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.show-contacts .coach-contacts {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* Анимация для появления контактов с эффектом затухания */
@keyframes slideUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.show-contacts .coach-contacts {
    animation: slideUp 0.4s ease-out;
}

/* Анимация для скрытия расписания */
@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.coach-contacts.coach-contacts-popup {
    padding: 0;
    width: 280px;
    margin: -10px auto 20px;
    display: flex;
    gap: 12px;
    background-color: transparent;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

/* Локация выбора клуба */
/* Стили для одной записи (статический блок) */
.training-locations-single {
    width: 100%;
    max-width: 300px;
}

.location-static {
    padding: 10px 15px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.location-static-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-static-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.location-static-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
}

.location-static-info {
    flex-grow: 1;
}

.location-static-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.location-static-address {
    font-size: 12px;
    color: #505050;
}

/* Альтернативные стили для единообразия */
.single-location-display {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.location-display-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-display-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.location-display-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
}

.location-display-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.location-display-address {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.training-locations-selector {
    position: relative;
    width: 100%;
    max-width: 300px;
}

/* Триггер с выбранным элементом */
.selector-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-trigger.active {
    border-color: #2672ec;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.selected-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.selected-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.selected-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.selected-addr {
    font-size: 12px;
    color: #505050;
}

.selector-arrow {
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s;
    color: #2672ec;
}

.selector-trigger.active .selector-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.training-locations-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.training-locations-list.show {
    display: block;
}

.location-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item:hover {
    background: #f8f9fa;
}

.location-item.active-item {
    background: #f0f7ff;
}

.location-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-info {
    flex-grow: 1;
}

.location-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.location-address {
    font-size: 12px;
    color: #999;
}

/* Общие стили для карточек расписания */
.schedule-card-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 16px -5px rgba(0, 20, 40, 0.10);
    padding: 20px 18px 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #eaf0f8;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.schedule-card-wrapper:hover {
    box-shadow: 0 0 35px -5px rgba(20, 60, 120, 0.2);
}
.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.schedule-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #14365c;
    margin: 0;
    line-height: 1.2;
}
.schedule-card-legend {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    background: #f5f9ff;
    padding: 6px 14px;
    border-radius: 30px;
}
.legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.legend-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.legend-past::before { background: #eef2f6; border: 1px solid #cbd5e1; }
.legend-green::before { background: #e3f5e3; border: 1px solid #79c479; }
.legend-today::before { background: #fff2c9; border: 1px solid #f0b400; }

.schedule-card-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    border: 1px solid #e2ebf6;
    margin-bottom: 12px;
    flex: 1;
}
.schedule-card-table th {
    background: #edf5ff;
    color: #1f4172;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 10px 4px;
    text-align: center;
    border-bottom: 2px solid #c7d9fc;
}
.schedule-card-table td {
    border: 1px solid #dde6f2;
    padding: 2px;
    text-align: center;
    vertical-align: middle;
    min-width: 32px;
    transition: 0.1s;
    background: #ffffff;
    font-size: 11px;
}
.card-day-number {
    font-weight: 700;
    font-size: 11px;
}
.card-day-events {
    font-size: 0.6rem;
    color: #6b8bb0;
}
/* Состояния */
.schedule-card-table td.past-day {
    background-color: #f4f8fd !important;
    color: #8f9fb5;
    border-color: #d4e0ec;
}
.schedule-card-table td.data-events {
    background-color: #efffec !important;
    border-color: #b2e0a2;
    cursor: pointer;
}
.schedule-card-table td.today-highlight {
    background-color: #fff5d2 !important;
    border-color: #fad473;
    box-shadow: inset 0 0 0 1px #ffb347;
}
.schedule-card-table td.today-highlight.data-events {
    background: #ecffd9 !important;
}
.schedule-card-footer {
    font-size: 0.7rem;
    color: #6e8bb2;
    text-align: right;
    margin-top: 8px;
    font-style: italic;
    border-top: 1px dashed #d5e2f0;
    padding-top: 8px;
}
/* Попап событий  для расписания */
.event-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-popup.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: popup-appear 0.3s ease;
    border: 1px solid #e9f0fa;
}

@keyframes popup-appear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8fa4;
    transition: color 0.2s;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: #1e3a6b;
    background: #f0f5ff;
}

.popup-body {
    padding: 30px 28px;
    text-align: center;
}

.popup-day {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a6b;
    line-height: 1.2;
    margin-bottom: 8px;
}

.popup-date {
    font-size: 1.2rem;
    color: #4f6f9f;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #dae5f2;
}

.popup-desc {
    font-size: 1.1rem;
    color: #23457a;
    background: #f2f9ff;
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 28px;
    border: 1px solid #cbdefa;
}

.popup-book-btn {
    background: linear-gradient(135deg, #2b6ed7, #1e4f9e);
    color: white;
    border: none;
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 10px 20px -8px #1e4f9e80;
    border: 1px solid #4682e0;
}

.popup-book-btn:hover {
    background: linear-gradient(135deg, #1e5bc0, #153d7a);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -8px #143a73;
}

.popup-book-btn:active {
    transform: translateY(1px);
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .popup-body {
        padding: 25px 18px;
    }
    .popup-day {
        font-size: 1.8rem;
    }
    .popup-date {
        font-size: 1rem;
    }
    .popup-desc {
        font-size: 1rem;
        padding: 14px;
    }
}

/* Адаптивность */
@media (min-width: 1281px) {
.coach_card {
    height: 288px;
}
}