/* CK Krokus – category cards, October 2026. Scoped to products_horizon.php. */
.trip-offer.krokus-trip-card {
    --krokus-green: #12854c;
    position: relative;
    padding: 16px;
    margin: 0 0 20px;
    border: 1px solid #e1e8e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 16px rgb(20 55 35 / 4%);
}
.browse-view .trip-offer.krokus-trip-card:last-child { padding: 16px; margin-bottom: 20px; border: 1px solid #e1e8e3; }
.trip-offer.krokus-trip-card:hover { background: #fff; border-color: #b5cdbd; }
.krokus-trip-card .krokus-trip-layout { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); gap: 24px; align-items: center; }
.krokus-trip-card .krokus-trip-image,
.krokus-trip-card .krokus-trip-body { min-width: 0; }
.krokus-trip-card .product-list-images { position: relative; margin: 0; }
.krokus-trip-card .product-list-images > a { display: block; }
.trip-offer.krokus-trip-card .product-list-images img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.trip-offer.krokus-trip-card .trip-offer-content { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); gap: 24px; align-items: center; }
.krokus-trip-card .trip-offer-info { display: block; min-width: 0; margin: 0; }
.trip-offer.krokus-trip-card .product-name { margin: 0 0 14px; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.krokus-trip-card .product-name a { color: #1d3024; text-decoration: none; }
.krokus-trip-card .product-name a:hover { color: var(--krokus-green); text-decoration: underline; }
.krokus-trip-card .product-trip-dates { font-size: 14px; line-height: 1.6; margin: 0; }
.krokus-trip-card .product-trip-dates .trip-row { display: flex; flex-wrap: wrap; gap: 0 5px; margin-top: 5px; }
.krokus-trip-card .product-trip-dates .trip-label { flex: 0 0 100%; color: #53615a; }
.krokus-trip-card .trip-availability { display: inline-block; margin: 14px 0 0; padding: 5px 10px; background: #edf7f0; border-radius: 6px; font-size: 14px; }
.krokus-trip-card .trip-availability.is-low { background: #fff6e5; }
.trip-offer.krokus-trip-card .trip-offer-action { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 0; width: 100%; margin: 0; padding: 18px; border: 1px solid #e3ece6; border-radius: 12px; background: #f6f9f7; text-align: left; box-sizing: border-box; }
.krokus-trip-card .trip-badge { align-self: flex-start; max-width: 100%; margin: 0; padding: 6px 10px; font-size: 11px; line-height: 1.4; white-space: normal; border-radius: 6px; }
.krokus-trip-card .product-prices { margin: 0; padding: 0; text-align: left; }
.trip-offer.krokus-trip-card .PricesalesPrice { font-size: 25px; line-height: 1.2; font-weight: 700; color: var(--krokus-green); }
.krokus-trip-card .addtocart-area,
.krokus-trip-card .addtocart-area form.product { width: 100%; min-width: 0; margin: 0; padding: 0; }
.krokus-trip-card .vm-customfields-container,
.krokus-trip-card .product-fields,
.krokus-trip-card .product-field,
.krokus-trip-card .product-field-display { width: 100%; min-width: 0; max-width: 100%; text-align: left; }
.krokus-trip-card .product-field { margin: 0 0 16px; }
.krokus-trip-card .product-fields-title-wrapper { margin: 0 0 7px; line-height: 1.4; }
.krokus-trip-card .product-fields-title { font-size: 14px; font-weight: 600; }
.krokus-trip-card .product-field-desc { margin-top: 6px; font-size: 13px; line-height: 1.4; color: #5d6961; }
.krokus-trip-card .product-field-display select {
    display: block; width: 100% !important; max-width: 100%; min-width: 0; min-height: 48px;
    padding: 11px 38px 11px 12px; border: 1px solid #bdcec3; border-radius: 8px;
    background-color: #fff; color: #20392a; font-size: 16px; line-height: 1.5;
    appearance: none; box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2312854c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.krokus-trip-card .product-field-display select[multiple] { background-image: none; padding-right: 12px; }
.krokus-trip-card .product-field-display select:focus-visible { outline: 3px solid rgb(18 133 76 / 25%); outline-offset: 2px; border-color: var(--krokus-green); }
.krokus-trip-card .product-field-display select:disabled { opacity: .6; cursor: not-allowed; }
/* Support the template's select enhancement without rebinding VM change handlers. */
.krokus-trip-card .choices,
.krokus-trip-card .chosen-container { width: 100% !important; max-width: 100%; margin-bottom: 0; text-align: left; }
.krokus-trip-card .choices__inner,
.krokus-trip-card .chosen-container-single .chosen-single { min-height: 48px; height: auto; border: 1px solid #bdcec3; border-radius: 8px; background: #fff; color: #20392a; font-size: 16px; }
.krokus-trip-card .choices__list--single .choices__item,
.krokus-trip-card .chosen-container-single .chosen-single span { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.krokus-trip-card .choices__list--dropdown,
.krokus-trip-card .chosen-drop { z-index: 30; text-align: left; }
.krokus-trip-card .addtocart-bar { gap: 10px !important; margin: 0; width: 100%; }
.trip-offer.krokus-trip-card .quantity-box { order: 0; transform: none; flex: 0 0 112px; width: 112px !important; margin: 0; }
.trip-offer.krokus-trip-card .quantity-box.d-none { display: none !important; }
.krokus-trip-card .quantity-box .quantity-controls { width: 32px; min-height: 46px; padding: 5px; }
.krokus-trip-card .quantity-box .quantity-input { min-width: 0; width: 46px; min-height: 46px; padding: 4px; text-align: center; font-size: 16px; }
.krokus-trip-card .addtocart-button-container { flex: 1 1 150px; min-width: 0; }
.trip-offer.krokus-trip-card .addtocart-button { width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.4; white-space: normal; }
@media (max-width: 1199px) {
    .krokus-trip-card .krokus-trip-layout { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); align-items: start; gap: 20px; }
    .trip-offer.krokus-trip-card .trip-offer-content { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .krokus-trip-card .product-trip-dates .trip-label { flex-basis: auto; }
    .trip-offer.krokus-trip-card .trip-offer-action { padding: 16px; }
}
@media (max-width: 640px) {
    .trip-offer.krokus-trip-card,
    .browse-view .trip-offer.krokus-trip-card:last-child { padding: 12px; margin-bottom: 16px; border-radius: 12px; }
    .krokus-trip-card .krokus-trip-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .trip-offer.krokus-trip-card .product-list-images img { aspect-ratio: 16 / 9; }
    .trip-offer.krokus-trip-card .product-name { font-size: 21px; margin-bottom: 10px; }
    .trip-offer.krokus-trip-card .trip-offer-action { padding: 14px; }
}

/* v3: keep a single outline on native selectors, not on their template wrapper. */
.krokus-trip-card .product-field-display,
.krokus-trip-card .product-field-display :where(div, span):has(> select) {
    border: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
}
.krokus-trip-card .product-field-display :where(div, span):has(> select) {
    padding: 0 !important;
    border-radius: 8px;
}
.krokus-trip-card .product-field-display select {
    border: 1px solid #cbd8d0 !important;
    box-shadow: none !important;
}
.krokus-trip-card .choices__inner,
.krokus-trip-card .chosen-container-single .chosen-single {
    box-shadow: none !important;
}
@media (max-width: 640px) {
    .trip-offer.krokus-trip-card,
    .browse-view .trip-offer.krokus-trip-card:last-child {
        box-shadow: none;
        border-color: #e7ece9;
        margin-bottom: 14px;
    }
    .krokus-trip-card .krokus-trip-layout { gap: 14px; }
    .trip-offer.krokus-trip-card .trip-offer-content { gap: 14px; }
    .trip-offer.krokus-trip-card .product-name { font-size: 19px; line-height: 1.35; }
    .krokus-trip-card .trip-availability { margin-top: 10px; padding: 4px 8px; }
    .trip-offer.krokus-trip-card .trip-offer-action {
        padding: 14px 0 0;
        border: 0;
        border-top: 1px solid #e7ece9;
        border-radius: 0;
        background: transparent;
        gap: 12px;
    }
    .krokus-trip-card .trip-badge { font-size: 10px; padding: 5px 8px; }
    .trip-offer.krokus-trip-card .PricesalesPrice { font-size: 23px; }
    .krokus-trip-card .product-field { margin-bottom: 12px; }
    .krokus-trip-card .product-field-display select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
    .trip-offer.krokus-trip-card .quantity-box { flex-basis: 104px; width: 104px !important; }
    .krokus-trip-card .quantity-box .quantity-input { width: 38px; }
    .krokus-trip-card .addtocart-button-container { flex: 1 1 145px; }
    .trip-offer.krokus-trip-card .addtocart-button { box-shadow: none; font-size: 12px; padding: 10px 8px; }
}
