/* -------------------------------------------------
   КОНТЕЙНЕР КАРТОЧЕК
-------------------------------------------------- */
.altegio-service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

/* -------------------------------------------------
   КАРТОЧКА
-------------------------------------------------- */
.altegio-card {
    background: #e9f7fc;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.altegio-card:hover {
    transform: translateY(-4px);
}

/* -------------------------------------------------
   ИЗОБРАЖЕНИЕ
-------------------------------------------------- */
.altegio-card .img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.altegio-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------
   ТЕЛО КАРТОЧКИ
-------------------------------------------------- */
.altegio-card .card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* -------------------------------------------------
   ЗАГОЛОВОК
-------------------------------------------------- */
.altegio-card .title {
    font-size: 14px;
    font-weight: 700;
    color: #1E355D;
    margin-bottom: 10px;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

/* -------------------------------------------------
   2-КОЛОНОЧНЫЙ БЛОК (Длительность | Цена)
-------------------------------------------------- */
.info-row {
    display: flex;
    justify-content: space-between; /* слева–справа */
    align-items: flex-end; /* Выровнять элементы по нижнему краю */
    gap: 10px;
    margin-bottom: 12px;
}


/* Длительность */
.altegio-card .duration {
    font-size: 14px;
    font-weight: 500;
    color: #2a476d;
    line-height: 1.3;
}

/* Цена */
.altegio-card .price {
    font-size: 18px;
    font-weight: 700;
    color: #1e355d;
    text-align: right;
    white-space: nowrap;
}

/* -------------------------------------------------
   ОПИСАНИЕ
-------------------------------------------------- */
.altegio-card .desc {
    font-size: 14px;
    color: #415a77;
    margin-bottom: 18px;
    font-style: italic;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------------
   КНОПКА БРОНИРОВАНИЯ
-------------------------------------------------- */
.altegio-card .btn-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #44c2e5;
    color: #fff !important;
    padding: 14px 0;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.25s ease, transform 0.2s ease;
}

.altegio-card .btn-book:hover {
    background: #00a9d4;
    transform: translateY(-2px);
}

.btn-book .icon-calendar {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    transition: opacity 0.2s ease;
}

.btn-book:hover .icon-calendar {
    opacity: 0.85;
}

/* -------------------------------------------------
   АДАПТИВНОСТЬ
-------------------------------------------------- */
@media (max-width: 768px) {
    .altegio-card .img {
        height: 150px;
    }

    .info-row {
        grid-template-columns: 1fr auto;
    }

    .altegio-card .price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .altegio-card .img {
        height: 130px;
    }

    .btn-book {
        padding: 12px 0;
    }
}


.swiper-button-next, .swiper-button-prev {
	--swiper-navigation-size: 22px;
    position: absolute;
    top: var(--swiper-navigation-top-offset, 50%);
    width: calc(var(--swiper-navigation-size) / 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	  color: #44c3e5; 
}

/* Разрешаем стрелкам вылезать за пределы */
.alteg io-cards-slider,
.altegio-cards-slider .swiper {
    overflow: visible !important;
}

/* Стрелки за пределы карусели */
.swiper-button-prev {
    left: 0px !important;
}

.swiper-button-next {
    right: 0px !important;
}

/* Размер и стиль */
.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-size: 22px; 
    color: #44c3e5;
    z-index: 20 !important;
}


.altegio-booking-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    /* Максимальный z-index, чтобы модалка была поверх всего,
       без вмешательства в стили темы (Divi, секции и т.п.) */
    z-index: 2147483647;
}

.altegio-booking-modal.is-open {
    display: flex;
}

.altegio-booking-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}


.altegio-booking-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}



#altegio-booking-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

body.altegio-modal-open {
    overflow: hidden;
}

button.altegio-booking-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
	background-color: transparent !important;
}

button.altegio-booking-close:hover {
	background-color: transparent !important;

}

.altegio-booking-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    margin: 0 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.altegio-booking-dialog {
    height: 90vh;               /* <-- ключ */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.altegio-booking-frame-wrap {
    flex: 1;
    height: 100%;
}

#altegio-booking-iframe {
    width: 100%;
    height: 90%;               /* <-- iframe растягивается */
    border: none;
}
