/* OBLAKATRAVEL — карточка тура по исходному мокапу */

.ot-tour-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ot-tour-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.ot-tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 34, 56, .12);
}

.ot-tour-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #0f2238;
    text-decoration: none;
}

.ot-tour-card__link:focus-visible {
    outline: 3px solid #1f5fbf;
    outline-offset: -3px;
}

.ot-tour-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dbe5f0;
}

.ot-tour-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ot-tour-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #6a7c91;
    font-weight: 600;
}

.ot-tour-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
}

.ot-tour-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6a7c91;
    font-size: 13.5px;
}

.ot-category-page .ot-tour-card__title,
.ot-tour-card__title {
    margin: 0;
    color: #0f2238;
    font-family: "Onest", Arial, sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.3;
}

.ot-tour-card__route {
    margin: 0;
    color: #3a4d64;
    font-size: 14px;
    line-height: 1.5;
}

.ot-tour-card__dates {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #3a4d64;
    font-size: 13px;
    line-height: 1.4;
}

.ot-tour-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #dbe5f0;
}

.ot-tour-card__price {
    color: #0f2238;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.ot-tour-card__go {
    flex-shrink: 0;
    color: #1f5fbf;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1239px) {
    .ot-tour-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .ot-tour-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .ot-tour-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ot-tour-card {
        transition: none;
    }
}


/* Раскрытие дополнительных карточек */

.ot-tour-expand-controls {
    display: flex;
    justify-content: center;
    margin: 32px 0 56px;
}

.ot-tour-expand-controls[hidden],
.ot-tour-card[hidden] {
    display: none !important;
}

.ot-tour-expand-button {
    padding: 12px 32px;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    background: #fff;
    color: #1f5fbf;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ot-tour-expand-button:hover {
    background: #f0f6fd;
}

.ot-tour-expand-button:focus-visible {
    outline: 3px solid #1f5fbf;
    outline-offset: 3px;
}


/* OBLAKATRAVEL: tour expansion button v2 */

.ot-category-page .ot-tour-expand-controls {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 36px 0 56px;
}

.ot-category-page .ot-tour-expand-controls[hidden] {
    display: none !important;
}

.ot-category-page .ot-tour-expand-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 48px;
    padding: 12px 32px;
    border: 1.5px solid #4bb8ca;
    border-radius: 24px;
    background: #ffffff;
    color: #168da7;
    font-family: "Onest", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26, 149, 180, .08);
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.ot-category-page .ot-tour-expand-button:hover {
    background: #4bb8ca;
    border-color: #4bb8ca;
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(26, 149, 180, .18);
}

.ot-category-page .ot-tour-expand-button:focus-visible {
    outline: 3px solid #166cb6;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ot-category-page .ot-tour-expand-button {
        transition: none;
    }
}
