/* ==========================================================================
   Departures / calendar page (uses hx- tokens from home-redesign.css)
   ========================================================================== */
.dp { background: var(--hx-dark, #151919); color: #fff; }
.dp .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ---------- hero ---------- */
.dp-hero {
    padding: 36px 0 32px;
    background: radial-gradient(900px 300px at 15% 0%, rgba(255, 208, 0, .10), transparent 70%), #151919;
    border-bottom: 1px solid var(--hx-line);
}
.dp-crumbs { font-size: 12px; color: var(--hx-muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.dp-crumbs a { color: var(--hx-muted) !important; }
.dp-crumbs a:hover { color: var(--hx-yellow) !important; }
.dp-crumbs span:last-child { color: #fff; }
.dp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: end;
}
.dp-hero .hx-title { margin-bottom: 14px; }
.dp-hero__text { color: var(--hx-text); font-size: 15px; line-height: 1.75; margin: 0 0 20px; max-width: 620px; }
.dp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dp-stats li {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--hx-line);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
}
.dp-stats strong { display: block; font-size: 28px; line-height: 1; color: var(--hx-yellow); font-weight: 700; }
.dp-stats span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-muted); }

/* ---------- filters ---------- */
.dp-filters {
    position: sticky;
    top: 60px;
    z-index: 20;
    background: rgba(21, 25, 25, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hx-line);
}
.dp-filters__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
.dp-filters__inner { flex-direction: column; align-items: stretch; gap: 8px; }
.dp-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dp-filters__group { display: contents; }
#dp-groups .dp-row__type { display: none; }
.dp-row__type { color: #8a6f00; font-weight: 700; }
.dp-view { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px; gap: 2px; }
.dp-view__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font: 700 12px/1.2 inherit;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.dp-view__btn i { line-height: 1; color: var(--hx-yellow); }
.dp-view__btn:hover { color: var(--hx-yellow); }
.dp-view__btn.is-active { background: #fff; color: #151919; }
.dp-view__btn.is-active i { color: #151919; }
.dp-season__head h2 small { font-size: 12px; font-weight: 700; opacity: .7; margin-left: 8px; letter-spacing: .06em; text-transform: uppercase; }
.dp-month {
    margin: 14px 6px 2px;
    padding: 6px 8px 6px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a6f00;
    border-bottom: 2px solid var(--hx-yellow);
}
.dp-month + .dp-row { border-top: 0; }
.dp-filters__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .18); margin: 0 6px; }
.dp-row__season {
    display: inline-block;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4a6fa5;
    background: #e9f1fb;
    border-radius: 999px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: 1px;
}
.dp-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 5px 11px;
    font: 700 12px/1.2 inherit;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.dp-chip small { font-size: 11px; font-weight: 600; opacity: .65; }
.dp-chip:hover { border-color: var(--hx-yellow); color: var(--hx-yellow); }
.dp-chip.is-active { background: var(--hx-yellow); border-color: var(--hx-yellow); color: #151919; }
.dp-chip.is-active small { opacity: .75; }
.dp-chip i { line-height: 1; }
.dp-select select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffd000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    padding: 6px 34px 6px 14px;
    font: 700 12px/1.2 inherit;
    font-family: inherit;
    cursor: pointer;
    max-width: 260px;
}
.dp-select select:focus { outline: none; border-color: var(--hx-yellow); }
.dp-select option { color: #151919; }
.dp-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.dp-sort__label { color: var(--hx-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.dp-sort__label i { color: var(--hx-yellow); margin-right: 2px; }
.dp-filters__count { margin-left: 4px; color: var(--hx-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

/* ---------- list ---------- */
.dp-list { padding: 32px 0 64px; }
.dp-season {
    background: #fff;
    color: #151919;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    scroll-margin-top: 130px;
}
.dp-season[hidden] { display: none; }
.dp-season__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 22px;
    background: var(--hx-yellow);
    color: #151919;
}
.dp-season__head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.dp-season__count { font-size: 12px; font-weight: 700; opacity: .75; white-space: nowrap; }

.dp-rows { padding: 0 8px 8px; }
.dp-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 110px 130px 190px;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 10px;
}
.dp-row[hidden] { display: none; }
.dp-row + .dp-row { border-top: 1px solid #ececec; border-radius: 0; }
.dp-row:not(.dp-row--head):hover { background: #fffbe6; }
.dp-row--head {
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a8f8f;
}
.dp-row__label { display: none; }
.dp-row__date { font-weight: 700; font-size: 14px; color: #151919; display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.dp-row__date i { color: #c9a400; margin-top: 2px; line-height: 1; }
.dp-row__tour { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dp-row__thumb { flex: 0 0 72px; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: #eee; }
.dp-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-row__tourtext { min-width: 0; }
.dp-row__name { display: block; color: #151919 !important; font-weight: 700; font-size: 15px; line-height: 1.3; }
.dp-row__name:hover { color: #b58f00 !important; text-decoration: underline; }
.dp-row__meta { margin-top: 4px; font-size: 12px; color: #6b7070; display: flex; flex-wrap: wrap; gap: 4px 0; }
.dp-row__meta span { white-space: nowrap; }
.dp-row__meta span:not(:last-child):after { content: '\00b7'; margin: 0 6px; color: #b8bcbc; }
.dp-row__price { color: #151919; font-weight: 700; }
.dp-row__duration { font-size: 14px; color: #3a3f3f; }
.dp-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #c9ccd0;
    color: #3a3f3f;
    white-space: nowrap;
}
.dp-status i { line-height: 1; }
.dp-status--guaranteed { background: var(--hx-yellow); border-color: var(--hx-yellow); color: #151919; }
.dp-status--available, .dp-status--open { border-color: #c9a400; color: #8a6f00; }
.dp-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.dp-row__view { color: #151919 !important; font-weight: 700; font-size: 13px; white-space: nowrap; }
.dp-row__view:hover { color: #b58f00 !important; text-decoration: underline; }
.dp-row__actions .hx-btn { padding: 6px 16px; }
.dp-row__actions .hx-btn:hover { transform: none; box-shadow: none; }

/* ---------- empty / cta ---------- */
.dp-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 14px;
    margin-bottom: 28px;
}
.dp-empty[hidden] { display: none; }
.dp-empty h2 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.dp-empty p { color: var(--hx-muted); margin: 0 0 18px; }
.dp-cta {
    margin-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 40px;
    align-items: center;
    padding: 30px 32px;
    border: 1px solid var(--hx-line);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 208, 0, .10), rgba(255, 255, 255, .03));
}
.dp-cta h2 { color: #fff; font-size: 22px; margin: 6px 0 8px; }
.dp-cta p { color: var(--hx-text); margin: 0; font-size: 14px; line-height: 1.7; max-width: 560px; }
.dp-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .dp-row { grid-template-columns: 160px minmax(0, 1fr) 90px 120px 170px; gap: 12px; }
}
@media (max-width: 991px) {
    .dp-hero__grid { grid-template-columns: 1fr; }
    .dp-stats { max-width: 420px; }
    .dp-filters { position: static; }
    .dp-row--head { display: none; }
    .dp-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "date status" "tour tour" "duration actions";
        gap: 10px 12px;
        padding: 14px 12px;
    }
    .dp-row__date { grid-area: date; }
    .dp-row__status { grid-area: status; justify-self: end; }
    .dp-row__tour { grid-area: tour; }
    .dp-row__duration { grid-area: duration; font-size: 13px; }
    .dp-row__label { display: inline; color: #8a8f8f; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
    .dp-row__actions { grid-area: actions; }
    .dp-cta { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .dp-hero { padding: 28px 0 24px; }
    .dp-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .dp-stats strong { font-size: 22px; }
    .dp-filters__sep { display: none; }
    .dp-view { width: 100%; }
    .dp-view__btn { flex: 1; justify-content: center; }
    .dp-sort { width: 100%; margin-left: 0; }
    .dp-sort select { flex: 1; }
    .dp-filters__count { width: 100%; }
    .dp-select select { max-width: 100%; }
    .dp-season__head { flex-direction: column; gap: 2px; align-items: flex-start; }
    .dp-row__thumb { flex-basis: 60px; width: 60px; height: 46px; }
    .dp-row__name { font-size: 14px; }
    .dp-row__actions { width: 100%; justify-content: space-between; }
}
