/* Расписание и средние цены на странице речного теплохода.
   Оформление согласовано с основным поиском /podbor/:
   PT Sans, текст #616f7b, кнопки #72a7d5. */

.np-ship-schedule {
    color: #616f7b;
    font-size: 16px;
    margin: 10px 0 0;
}

/* Сводка по расписанию */
.np-ship-summary {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid #dce7ee;
    border-radius: 0;
    background: #fff;
    margin: 10px 0 16px;
}
.np-ship-summary strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #616f7b;
}
.np-ship-summary span {
    display: block;
    color: #84929c;
    font-size: 14px;
    margin-top: 2px;
}
.np-ship-filter-link {
    margin-left: auto;
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #72a7d5;
    border-radius: 4px;
    background: #72a7d5;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.np-ship-filter-link:hover {
    background: #4e7b9f;
    border-color: #4e7b9f;
}

/* Заголовки секций */
.np-ship-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin: 22px 0 12px;
}
.np-ship-section-head h3 {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #616f7b;
}
.np-ship-section-head p {
    margin: 0;
    color: #616f7b;
    font-size: 16px;
    line-height: 1.5;
    max-width: 620px;
}
.np-ship-text-link {
    color: #72a7d5 !important;
    white-space: nowrap;
    font-size: 14px;
    text-decoration: none !important;
}
.np-ship-count {
    color: #84929c;
    font-size: 14px;
    white-space: nowrap;
}

/* Ближайшие рейсы */
.np-ship-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.np-ship-card {
    border: 1px solid #dce7ee;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    min-width: 0;
}
.np-ship-card-photo {
    display: block;
    height: 104px;
    background-color: #dbe8f1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    text-decoration: none !important;
}
.np-ship-card-date {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 6px;
    border-radius: 0;
    background: rgba(47, 64, 75, .55);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
}
.np-ship-card-body {
    padding: 10px 11px 11px;
}
.np-ship-card-meta {
    color: #84929c;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}
.np-ship-card h4 {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 47px;
}
.np-ship-card h4 a {
    color: #616f7b !important;
    text-decoration: none !important;
}
.np-ship-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.np-ship-card-price {
    display: block;
    color: #616f7b;
    font-size: 16px;
    font-weight: 700;
}
.np-ship-card-bottom small,
.np-ship-row-price small {
    display: block;
    color: #84929c;
    font-size: 12px;
    font-weight: 400;
    margin-top: 1px;
}
.np-ship-card-cta,
.np-ship-row-cta {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #72a7d5;
    border-radius: 4px;
    background: #72a7d5;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.np-ship-card-cta:hover,
.np-ship-row-cta:hover {
    background: #4e7b9f;
    border-color: #4e7b9f;
}
.np-ship-card-free {
    margin-top: 8px;
    color: #6f8a77;
    font-size: 14px;
}
.np-ship-card-free.is-low,
.np-ship-row-free.is-low {
    color: #b26a00;
}

/* Месяцы */
.np-ship-months {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
.np-ship-month-link {
    padding: 4px 9px;
    border: 1px solid #dce7ee;
    border-radius: 0;
    color: #616f7b !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    background: #fff;
}
.np-ship-month {
    margin: 20px 0 0;
}
.np-ship-month-title {
    margin: 0 0 6px;
    padding: 7px 0 5px;
    border-bottom: 1px solid #dce7ee;
    font-size: 18px;
    font-weight: 700;
    color: #616f7b;
}
.np-ship-month-title span {
    color: #84929c;
    font-size: 14px;
    font-weight: 400;
    margin-left: 6px;
}

/* Строки полного расписания */
.np-ship-rows {
    border-top: 1px solid #e8eff4;
}
.np-ship-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 100px 118px 82px;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #edf2f6;
}
.np-ship-row:hover {
    background: #fbfcfd;
}
.np-ship-row-date b {
    display: block;
    color: #616f7b;
    font-size: 15px;
    font-weight: 700;
}
.np-ship-row-date span {
    display: block;
    color: #84929c;
    font-size: 14px;
    margin-top: 1px;
}
.np-ship-row-route {
    min-width: 0;
}
.np-ship-row-route a {
    display: block;
    color: #616f7b !important;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.np-ship-row-route a:hover {
    color: #72a7d5 !important;
}
.np-ship-row-route small {
    display: block;
    color: #84929c;
    font-size: 14px;
    margin-top: 2px;
}
.np-ship-row-free {
    color: #6f8a77;
    font-size: 14px;
}
.np-ship-row-price {
    color: #616f7b;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.np-ship-free-inline {
    display: none;
}

/* Средняя стоимость ночи по месяцам — перед расписанием */
.np-ship-prices {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid #dce7ee;
    border-radius: 0;
    background: #fff;
    color: #616f7b;
    font-size: 16px;
}
.np-ship-prices-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eff4;
}
.np-ship-prices-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #616f7b;
}
.np-ship-prices-head p {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #84929c;
}
.np-ship-prices-overall {
    text-align: right;
    flex: 0 0 auto;
}
.np-ship-prices-overall span,
.np-ship-prices-overall small {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: #84929c;
}
.np-ship-prices-overall strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #616f7b;
}
.np-ship-prices-list {
    margin-top: 4px;
}
.np-ship-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dotted #dce7ee;
}
.np-ship-price-row:last-child {
    border-bottom: 0;
}
.np-ship-price-month strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    color: #616f7b;
}
.np-ship-price-month small {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.3;
    color: #84929c;
}
.np-ship-price-bar {
    display: none;
}
.np-ship-price-value {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #616f7b;
    white-space: nowrap;
}
.np-ship-price-value small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #84929c;
}

@media (max-width: 1000px) {
    .np-ship-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .np-ship-row {
        grid-template-columns: 105px minmax(0, 1fr) 85px 105px 72px;
        gap: 8px;
    }
}

@media (max-width: 700px) {
    .np-ship-summary {
        gap: 12px;
        padding: 11px 12px;
    }
    .np-ship-filter-link {
        margin-left: 0;
        font-size: 13px;
        padding: 7px 10px;
    }
    .np-ship-featured {
        grid-template-columns: 1fr;
    }
    .np-ship-featured .np-ship-card:nth-child(n+5) {
        display: none;
    }
    .np-ship-card-photo {
        height: 104px;
    }
    .np-ship-card-meta {
        font-size: 13px;
    }
    .np-ship-card h4 {
        font-size: 16px;
        min-height: 0;
    }
    .np-ship-card-cta,
    .np-ship-row-cta {
        font-size: 13px;
        padding: 5px 8px;
    }
    .np-ship-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .np-ship-row {
        grid-template-columns: 82px minmax(0, 1fr) 80px;
        grid-template-areas: "date route price" "date route cta";
        gap: 4px 7px;
        padding: 10px 4px;
        align-items: start;
    }
    .np-ship-row-date {
        grid-area: date;
    }
    .np-ship-row-route {
        grid-area: route;
    }
    .np-ship-row-free {
        display: none;
    }
    .np-ship-row-price {
        grid-area: price;
        align-self: end;
        font-size: 15px;
        white-space: nowrap;
    }
    .np-ship-row-cta {
        grid-area: cta;
        justify-self: end;
    }
    .np-ship-free-inline {
        display: inline;
    }
    .np-ship-row-route a {
        font-size: 15px;
        white-space: normal;
    }
    .np-ship-row-route small {
        font-size: 13px;
    }
    .np-ship-row-date b {
        font-size: 14px;
        line-height: 1.25;
    }
    .np-ship-row-date span {
        font-size: 12px;
    }
    .np-ship-prices {
        padding: 12px;
        margin: 14px 0;
    }
    .np-ship-prices-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
    .np-ship-prices-head h3 {
        font-size: 18px;
    }
    .np-ship-prices-overall {
        display: flex;
        align-items: baseline;
        gap: 7px;
        text-align: left;
        flex-wrap: wrap;
    }
    .np-ship-prices-overall span,
    .np-ship-prices-overall small {
        display: inline;
    }
    .np-ship-prices-overall strong {
        font-size: 20px;
    }
    .np-ship-price-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 10px;
        padding: 9px 0;
    }
    .np-ship-price-value {
        font-size: 15px;
    }
}
