/* =========================================================
   БАННЕР / ОБЩЕЕ
========================================================= */
.page__banner--imgback::before { opacity: 1; }

.section__header-wrapper {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 20px 20px 15px;
    border-radius: 8px;
    margin: 50px 0 20px;
}
.section__header-wrapper .breadcrumbs__list li a {
    color: #fff;
    opacity: .9;
    transition: opacity .2s;
}
.section__header-wrapper .breadcrumbs__list li a:hover {
    color: #fc8b08;
    opacity: 1;
}
.section__title { color: #fff; margin: 0 0 10px; font-size: 28px; }

/* =========================================================
   БЛОК prom-tur
========================================================= */
.prom-tur__media { position: relative; width: 100%; height: 100%; overflow: hidden; }
.prom-tur__media img {
    width: auto; height: 100%;
    object-fit: cover; display: block; border-radius: 30px;
}

/* =========================================================
   КАЛЕНДАРЬ
========================================================= */
.tour-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 8px 0 20px; color: #222;
}
.tour-calendar__title { font-size: 20px; margin: 0 0 10px 8px; }

.calendar-wrapper { display: flex; align-items: center; gap: 10px; }

.cal-nav {
    flex: 0 0 36px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid #e0e0e0; background: #fff;
    cursor: pointer; font-size: 18px; color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.calendar-viewport {
    flex: 1;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
}
.calendar-viewport::-webkit-scrollbar { height: 6px; } /* Chrome/Safari */
.calendar-viewport.dragging { cursor: grabbing; }

.calendar-track {
    display: flex; align-items: flex-start;
    padding-top: 36px; user-select: none;
}

.calendar-day {
    flex: 0 0 64px; min-width: 64px;
    position: relative; text-align: center;
    padding: 6px 4px; box-sizing: border-box;
}
.calendar-day.month-start { margin-left: 50px; }

.calendar-month {
    position: absolute; left: 50%; top: 0; transform: translate(-50%,-130%);
    white-space: nowrap; font-size: 12px; font-weight: 600; color:#444; letter-spacing: .02em;
}

.calendar-day .date {
    display: inline-block; font-weight: 700; font-size: 16px; line-height: 1;
    padding: 4px 6px; border-radius: 6px;
}
.calendar-day .weekday {
    margin-top: 6px; font-size: 12px; color: #777;
    text-transform: uppercase; font-weight: 300;
}
.calendar-day.event { cursor: pointer; }
.calendar-day.event .date { border: 2px solid #e74c3c; color: #e74c3c; }
.calendar-day.selected .date { background: #fdecea; box-shadow: 0 0 0 3px rgba(231,76,60,.06); }
.calendar-day.today .date { outline: 2px solid rgba(0,0,0,.04); }

@media (max-width: 520px) {
    .calendar-day { flex: 0 0 56px; min-width: 56px; }
    .calendar-track { padding-top: 40px; }
}

/* =========================================================
   КАРТОЧКИ (контейнер)
========================================================= */
.cards {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* =========================================================
   КАРТОЧКА (актуальная разметка с template)
   Фото слева, контент справа
========================================================= */
.card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: start;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.card__img {
    width: 100%;
    aspect-ratio: 16/11;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    background: #f2f2f2;
}

.card__content, .card__body { min-width: 0; } /* поддержка старого класса */

/* верхняя полоса: заголовок + возраст справа */
.card__header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 8px;
}
.card__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.card__title-prefix { font-weight: 600; color: #111; }

/* возраст — круглый бейдж справа */
.age-badge {
    flex: 0 0 auto;
    min-width: 28px; height: 28px; padding: 0 6px;
    border-radius: 999px; border: 1px solid #e1e1e1; background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #8c8c8c;
}

/* время */
.card__meta {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 0 10px;
}
.card__time-icon { width: 22px; height: 22px; object-fit: contain; display: block; }
.card__duration { font-size: 16px; font-weight: 600; }

/* описание */
.card__desc { margin: 0 0 12px; color: #333; }

/* низ карточки: слева цена, справа кнопка */
.card__footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 4px;
}
.card__price { font-weight: 800; font-size: 20px; }
.card__price small { font-weight: 400; color: #666; }

.card__btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 20px; border-radius: 999px;
    border: 1px solid #dcdcdc; background: #fff; color: #111;
    text-decoration: none; font-weight: 600; white-space: nowrap;
    transition: transform .02s ease, box-shadow .2s ease;
    box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.card__btn:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card__btn:active { transform: translateY(1px); }

/* адаптив */
@media (max-width: 920px) {
    .card { grid-template-columns: 1fr; }
}
:root { --accent: #fc8b08; }

/* блок со всеми временами */
.card__times{
    margin: 8px 0 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    align-items: center;
}
.card__times .times-label{
    font-size: 13px; color:#555; font-weight:600;
}
.card__times .times-chips{
    display:flex; flex-wrap:wrap; gap:6px;
}
.time-chip{
    display:inline-flex; align-items:center; justify-content:center;
    padding:6px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.08);
    background: rgba(252,139,8,.08); color:#222; font-weight:600; font-size:13px;
}

/* чуть акцента в заголовке */
.card__title .card__title-prefix{ color:#333; }
.card__title{ border-left: 4px solid var(--accent); padding-left:10px; }
.calendar-day.past .date {
    border-color: #ddd !important;
    color: #bbb !important;
}
.calendar-day.past { opacity: .6; cursor: default; }
