/* ============================================================
   kreuzfahrt365.de – IBE Styles
   ============================================================ */

/* IBE Bootstrap-Overrides */
.bg-primary { background-color: #fff !important; }
.form-label  { color: #000; }

.btn-primary,
.active > .page-link,
.page-link.active,
.list-group-item.active {
    background: #052850 !important;
    border-color: #052850 !important;
}

.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6,.nav-link {
    color: #052850;
}

#xt-breadcrumb .btn-primary {
    background-color: #eaeaea !important;
    color: #000 !important;
    font-size: 14px;
}

#xt-breadcrumb > .btn-primary:after { background: #052850 !important; }

:root, [data-bs-theme=light] {
    --bs-primary:        #052850;
    --bs-primary-bg:     #052850;
    --bs-primary-rgb:    5, 40, 80;
}

/* ============================================================
   Suchmaske
   ============================================================ */
.kf365-search-form {
    background: #fff;
    border-radius: 10px;
    padding: 16px 16px 8px 16px;
    box-shadow: 0 0px 4px rgba(5,40,80,.12);
}

.kf365-search-form .kreuzfahrt-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 4px;
    color: #052850;
    opacity: .7;
}

.kf365-search-form .form-select,
.kf365-search-form .form-input,
.kf365-search-form .bss-select,
.kf365-search-form .bss-input {
    width: 100%;
    border: 1px solid #d0d8e4;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background: #f8fafd;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.kf365-search-form .form-select:focus,
.kf365-search-form .form-input:focus,
.kf365-search-form .bss-input:focus {
    outline: none;
    border-color: #052850;
    box-shadow: 0 0 0 3px rgba(5,40,80,.1);
    background: #fff;
}

.kf365-search-btn {
    background: #052850 !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}


/* Multi-Select Dropdown */
.multi-select-container { position: relative; }

.multi-select-checkboxes {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #d0d8e4;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    width: 260px;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.multi-select-checkboxes-content {
    overflow-y: auto;
    max-height: 260px;
    padding: 8px 0;
}

.multi-select-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}

.multi-select-checkboxes label:hover { background: #f0f4f9; }

.multi-select-checkboxes input[type=checkbox] {
    accent-color: #052850;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.multi-select-checkboxes-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    background: #f8fafd;
}

.multi-select-checkboxes-footer-button {
    display: block;
    text-align: center;
    background: #2675c9 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   Angebots-Karten
   ============================================================ */
.kf365-listing { display: flex; flex-wrap: wrap; gap: 0; }

.kf365-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }

.kf365-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    margin-bottom: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.kf365-card-image {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #e8edf4;
}

.kf365-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}

.kf365-card:hover .kf365-card-image img { transform: scale(1.04); }

.kf365-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.kf365-card-type {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.kf365-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2675c9 !important;
    line-height: 1.3;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.kf365-card-text {
    font-size: 14px;
    color: #444;
    margin-top: 0;
    margin-bottom: 0;
}

.kf365-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.kf365-tag {
    font-size: 11px;
    font-weight: 700;
    color: #2675c9;
    background: #e8f0fb;
    border-radius: 4px;
    padding: 3px 8px;
    letter-spacing: .3px;
}

.kf365-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.kf365-red-logo img {
    max-height: 36px;
    max-width: 90px;
    object-fit: contain;
}

.kf365-price {
    text-align: right;
}

.kf365-price-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.kf365-price {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Pagination */
.kf365-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.kf365-pagination .page-numbers {
    display: inline-flex;
    gap: 4px;
}

.kf365-pagination a,
.kf365-pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #d0d8e4;
    color: #052850;
    text-decoration: none;
    transition: background .15s;
}

.kf365-pagination a:hover,
.kf365-pagination .current {
    background: #052850;
    color: #fff;
    border-color: #052850;
}

/* Suche iframe */
.kf365-suche-iframe { border: 0; display: block; }

/* Responsive */
@media (max-width: 768px) {
    .kf365-search-form { padding: 16px; }
    .kf365-card { margin-bottom: 16px; }
}

/* ============================================================
   Flatsome Grid Fix für Suchmaske
   ============================================================ */
#kf365-quick-search-form .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}
#kf365-quick-search-form .col.medium-3 {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
}
#kf365-quick-search-form .col.row-collapse {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}
#kf365-quick-search-form .col.small-2 {
    width: 36px !important;
    flex: 0 0 36px !important;
    padding: 0 4px 0 0 !important;
}
#kf365-quick-search-form .col.small-10 {
    flex: 1 !important;
    padding: 0 !important;
}
#kf365-quick-search-form select,
#kf365-quick-search-form input[type=text],
#kf365-quick-search-form .bss-input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 40px !important;
}
#kf365-quick-search-form .kreuzfahrt-icon-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    color: #2675c9 !important;
}
#kf365-quick-search-form .kreuzfahrt-icon-container svg {
    fill: #2675c9 !important;
}
#kf365-quick-search-form button[type=submit] {
    background: #2675c9 !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.multi-select-checkboxes label {
    color: #333 !important;
}
@media (max-width: 768px) {
    #kf365-quick-search-form .col.medium-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
