/* Fullscreen Layout Fixes für große Bildschirme */

/* Fixed maximum width for entire form */
#flightsearch {
    max-width: 1120px !important;
    margin: 0 auto !important;
}

/* Override breakpoint at ~1210px that changes layout */
@media only screen and (min-width: 1210px) {
    #flightsearch {
        max-width: 1120px !important;
        margin: 0 auto !important;
    }
    
    #flightsearch .col-md-4,
    #flightsearch .col-md-3,
    #flightsearch .col-md-2 {
        float: left !important;
    }
    
    #flightsearch .row {
        display: block !important;
    }
}

/* Optimiere das Formular-Layout für große Bildschirme */
@media only screen and (min-width: 1200px) {
    .search-tabbed-bar .tab-content {
        padding: 30px 40px !important;
    }
    
    /* Limit Bootstrap column widths for compact horizontal layout */
    #searchflight .col-md-4 {
        width: 33.333% !important;
        max-width: 350px !important;
    }
    
    #searchflight .col-md-3 {
        width: 25% !important;
        max-width: 200px !important;
    }
    
    #searchflight .col-md-2 {
        width: 16.666% !important;
        max-width: 180px !important;
    }
}

/* Limit submit button width on large screens */
@media only screen and (min-width: 1210px) {
    .custom-submit,
    input[type="submit"].custom-submit,
    button.custom-submit {
        width: 120px !important;
        max-width: 120px !important;
    }
}

/* Tab bar background */
.search-tabbed-bar .nav-tabs {
    background: rgb(28 54 98) !important;
    border: none !important;
}

/* Active tab background - match form background with angled right edge */
.search-tabbed-bar .nav-tabs > li.active > a,
.search-tabbed-bar .nav-tabs > li.active > a:hover,
.search-tabbed-bar .nav-tabs > li.active > a:focus {
    background-color: #0e203f !important;
    color: #fff !important;
    border-color: #0e203f !important;
    position: relative !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%) !important;
    margin-right: 5px !important;
    padding-right: 25px !important;
}

/* More Options Toggle Animation */
.more-options-btn a {
    transition: color 0.3s ease;
    cursor: pointer;
}

.more-options-btn a.active {
    color: #ffc53d;
}

.more-options-btn i {
    transition: transform 0.3s ease;
}

.more-options-btn a.active + i {
    transform: rotate(90deg);
}

/* Date Frame Styling */
.date-frame {
    cursor: pointer;
    position: relative;
}

.date-frame input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.date-frame p {
    cursor: pointer;
}

/* Flight Type Radio Buttons - Yellow Checkmark */
.flighttypes .checkbox input[type="radio"] + label:before {
    box-sizing: content-box;
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -9px;
    border: 2px solid #999;
    border-radius: 50%;
    background-color: transparent;
}

.flighttypes .checkbox input[type="radio"]:checked + label:before {
    content: '\2713' !important;
    color: #ffc53d !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    border-color: #ffc53d !important;
    line-height: 14px !important;
}

.flighttypes .checkbox input[type="radio"] + label:after {
    display: none !important;
}

/* Direct Flights Checkbox - Yellow Checkmark (same as flight types) */
.more-options .checkbox input[type="checkbox"] + label:before {
    box-sizing: content-box;
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -9px;
    border: 2px solid #999;
    border-radius: 50%;
    background-color: transparent;
}

.more-options .checkbox input[type="checkbox"]:checked + label:before {
    content: '\2713' !important;
    color: #ffc53d !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    border-color: #ffc53d !important;
    line-height: 14px !important;
}

.more-options .checkbox input[type="checkbox"] + label:after {
    display: none !important;
}

/* Origin/Destination Input Fields - Yellow Icon Background */
.custom-input {
    position: relative !important;
    display: inline-block !important;
}

.custom-input.hidden-input {
    display: none !important;
}

.custom-input .form-group {
    margin: 0 !important;
    position: relative !important;
    z-index: 0 !important;
}

.custom-input .form-control {
    padding-left: 10px !important;
    height: 42px !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-left: none !important;
    line-height: 42px !important;
    position: relative !important;
    z-index: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

/* Hide icons inside form-group (more-options fields) */
.custom-input .form-group > i.fa {
    display: none !important;
}

/* More options fields - ensure left alignment */
.more-options .custom-input .form-control,
.more-options .custom-input select.form-control {
    padding-left: 12px !important;
    text-align: left !important;
    text-indent: 0 !important;
}

/* More options fields - style placeholder */
.more-options .custom-input .form-control::placeholder {
    text-align: left !important;
    padding-left: 0 !important;
}

/* Sitzplätze Box - Equal left and right padding */
.custom-numbers .custom-box p {
    padding-right: 5px !important;
    text-align: left !important;
    margin: 0 !important;
}

.custom-numbers .custom-box p span {
    margin-right: 8px !important;
}

/* Extra padding for map-marker fields (with yellow box) */
.custom-input:has(> i.fa-map-marker) .form-control {
    padding-left: 12px !important;
}

/* Yellow background box with diagonal edge at top-right - only for map-marker fields */
.custom-input:has(> i.fa-map-marker) .form-group::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 31px !important;
    height: 42px !important;
    background: #ffc53d !important;
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.custom-input > i.fa-map-marker {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 23px !important;
    color: #0e203f !important;
    z-index: 100 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
}

/* Hide More Options by default - must be more specific than styles_cleaned.css */
.search-tabbed-bar .tab-content .more-options {
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.search-tabbed-bar .tab-content .more-options.show {
    display: block !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
}
