/*
 * Silkline Travel UK - responsive hardening
 * Added for the silklinetraveluk.co.uk migration.
 * Loaded after style.css and custom.css so these rules safely correct
 * layout issues without changing the desktop visual identity.
 */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
span {
    overflow-wrap: break-word;
}

/* Header / navigation */
header.style-2 .header-logo,
header.style-2 .nav-right,
header.style-2 .main-menu {
    flex-shrink: 0;
}

header.style-2 .header-logo img {
    width: auto;
    max-height: 76px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    header.style-2 {
        padding-left: 20px;
        padding-right: 20px;
    }

    header.style-2 .header-logo img {
        max-width: 120px;
    }

    header.style-2 .main-menu ul > li {
        padding-left: 10px;
        padding-right: 10px;
    }

    header.style-2 .main-menu ul > li a {
        font-size: 13px;
        white-space: nowrap;
    }

    header.style-2 .nav-right {
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    header.style-2,
    header.style-2.sticky {
        min-height: 72px;
        padding: 5px 20px;
    }

    header.style-2 .header-logo img {
        max-width: 125px;
        max-height: 62px;
    }

    header.style-2 .main-menu {
        width: min(320px, 86vw);
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 22px 18px !important;
    }

    header.style-2 .main-menu .mobile-logo-area {
        gap: 16px;
    }

    header.style-2 .main-menu .mobile-logo-wrap img,
    .mobile-logo-wrap img {
        width: auto;
        height: auto;
        max-width: 135px;
        max-height: 68px;
    }

    header.style-2 .main-menu .menu-list {
        padding-top: 30px;
    }

    header.style-2 .main-menu ul li a {
        padding: 11px 4px;
        line-height: 1.35;
    }
}

@media (max-width: 575.98px) {
    header.style-2,
    header.style-2.sticky {
        min-height: 66px;
        padding: 4px 14px;
    }

    header.style-2 .header-logo img {
        max-width: 112px;
        max-height: 58px;
    }
}

/* Inner page hero / breadcrumbs */
@media (max-width: 991.98px) {
    .breadcrumb-section {
        padding: 130px 0 80px;
    }

    .breadcrumb-section .banner-content h1 {
        font-size: clamp(30px, 6vw, 44px);
    }
}

@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 105px 0 55px;
    }

    .breadcrumb-section .banner-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .breadcrumb-section .breadcrumb-list {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

/* Home/destination hero and booking search */
.home1-banner-bottom.style-2 .filter-wrapper,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group form,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .row,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .searchbox-input,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .custom-select-dropdown,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .select-input {
    min-width: 0;
}

.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .searchbox-input,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .custom-select-dropdown,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .select-input,
.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area input {
    width: 100%;
}

.home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area input {
    min-width: 0;
    text-overflow: ellipsis;
}

@media (max-width: 1199.98px) {
    .home1-banner-bottom.style-2 .filter-wrapper {
        max-width: 920px;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group {
        border-radius: 22px;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group form .filter-area {
        margin-bottom: 12px;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box {
        height: 100%;
        margin-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .home2-banner-area .home2-banner-content-wrap .home2-banner-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home2-banner-area .home2-banner-content-wrap .home2-banner-content .eg-tag {
        max-width: calc(100vw - 32px);
        padding: 12px 24px;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }

    .home2-banner-area .home2-banner-content-wrap .home2-banner-content .eg-tag span {
        font-size: 20px;
        line-height: 1.2;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .nav-buttons .nav-pills {
        width: 100%;
        display: flex;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .nav-buttons .nav-pills .nav-item {
        flex: 1 1 50%;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .nav-buttons .nav-pills .nav-item .nav-link {
        width: 100%;
        min-height: 46px;
        padding: 11px 10px;
        justify-content: center;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group {
        padding: 22px 16px !important;
        margin-top: 0 !important;
        border-radius: 0 0 16px 16px !important;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .row {
        --bs-gutter-y: 12px;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box {
        margin-top: 0 !important;
        padding: 12px 12px !important;
        border-radius: 8px;
        gap: 9px;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group form button {
        width: calc(100% - 4px);
        margin: 2px auto 0;
        border-radius: 8px !important;
        padding: 15px 20px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nice-select {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .home1-banner-bottom.style-2 {
        margin-top: -25px !important;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group {
        padding: 18px 12px !important;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box {
        min-height: 64px;
        padding: 10px !important;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box .icon {
        flex: 0 0 24px;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area .single-search-box .searchbox-input label {
        font-size: 11px;
        line-height: 1.2;
    }

    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area input,
    .home1-banner-bottom.style-2 .filter-wrapper .filter-group .filter-area h6 {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Cards and homepage sections */
.destination_container {
    padding-left: 0;
    padding-right: 0;
}

.destination_item,
.package-card3,
.package-card3 .package-card-content {
    min-width: 0;
}

.package-card3 .package-card-img img {
    width: 100%;
    object-fit: cover;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .feature-card-section .row.gy-5 > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .section-title2 h2 {
        font-size: clamp(27px, 8vw, 34px);
        line-height: 1.2;
    }

    .package-card3 .package-card-img img {
        height: 235px;
    }

    .choose-us-item {
        margin-left: 0;
        margin-right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Flight result cards */
.flight-card,
.flight-card .card-header,
.flight-card .card-body,
.result_col,
.add-to-link {
    min-width: 0;
}

.flight-card .airline-logo {
    width: auto;
    max-width: 110px;
    max-height: 52px;
    object-fit: contain;
}

.add-to-link {
    width: 100%;
    justify-content: center;
}

.add-to-link form {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .flight-card .card-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .flight-card .card-header h6 {
        font-size: 13px;
        line-height: 1.35;
    }

    .flight-card .card-body {
        padding: 18px 14px !important;
    }

    .result_col {
        columns: initial !important;
    }

    .result_col > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .result_col > .row > [class*="col-"] {
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .result_col > .row > [class*="col-"]:first-child {
        text-align: left;
    }

    .result_col > .row > [class*="col-"]:last-child {
        text-align: right;
    }

    .result_col h4 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .result_col p {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .result_col .flight-timeline {
        margin: 16px 0 10px;
    }

    .result_col .flight-icon {
        width: 42px;
        height: 42px;
        padding: 7px;
    }

    .flight-card .price {
        font-size: 20px;
        line-height: 1.3;
    }

    .add-to-link {
        display: flex;
        align-items: stretch;
        justify-content: center;
        max-width: 100%;
    }

    .add-to-link > a.primary-btn1,
    .add-to-link > form .primary-btn1 {
        min-height: 46px;
        padding: 13px 17px !important;
    }

    .add-to-link > form {
        flex: 1 1 auto;
        max-width: 150px;
    }

    .add-to-link > form .primary-btn1 {
        width: 100%;
        justify-content: center;
        font-size: 14px !important;
    }
}

@media (max-width: 399.98px) {
    .result_col > .row {
        grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
        gap: 5px;
    }

    .result_col h4 {
        font-size: 18px;
    }

    .result_col p {
        font-size: 11px;
    }

    .add-to-link > a.primary-btn1,
    .add-to-link > form .primary-btn1 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Search sidebar / modify search */
@media (max-width: 767.98px) {
    .modify-search-button {
        top: 88px;
        right: 0;
        width: 138px;
        max-width: 42vw;
        height: 48px;
        background-size: contain;
        background-color: transparent;
    }

    .result_row {
        margin-top: 20px;
    }

    #res_search_form .card-body {
        padding: 18px 14px;
    }
}

/* Forms, modals and long content */
.contact-page .form-inner input,
.contact-page .form-inner textarea,
.banner3-section .banner3-content form,
.banner3-section .banner3-content .from-inner,
.banner3-section .banner3-content .from-inner input {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 575.98px) {
    #callback .modal-dialog {
        margin: 10px;
    }

    #callback .modal-dialog .modal-content .modal-body {
        padding: 28px 18px;
        margin-top: -25px;
    }

    .login-modal .modal-dialog .modal-content .modal-header {
        height: 185px;
    }

    .contact-page.pt-120 {
        padding-top: 70px;
    }

    .contact-page.mb-120,
    .home2-about-section.mb-120,
    .feature-card-section.mb-120 {
        margin-bottom: 70px;
    }
}

/* Footer */
.footer-section .footer-widget,
.footer-section .footer-widget a,
.footer-section .footer-bottom p {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .footer-section .footer-top {
        padding-top: 95px;
        padding-bottom: 55px;
    }

    .footer-section .footer-widget {
        width: 100%;
    }

    .footer-section .footer-bottom {
        text-align: center;
    }

    .footer-section .footer-bottom .social-list,
    .footer-section .footer-bottom .footer-right ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .footer-section .footer-top {
        padding-top: 75px;
    }

    .phone_sticky,
    .whatsapp_sticky {
        right: 12px;
    }

    .hi-icon-effect-8 .call_txt {
        display: none;
    }
}
