@media (max-width: 800px) {
    .calendar_wrapper, .legends_wrapper, .full_container .top_wrapper .top .selectors_wrapper {
      flex-direction: column;
    }
    .calendar_wrapper, .legends_wrapper, .full_container .top_wrapper .top .selectors_wrapper button{
      margin-top: 20px;
    }
    .full_container hr{
      margin-top: 80px;
    }

}
@media (min-width: 1600px) {
    .price_calendar_wrapper .full_container {
        padding: 20px 70px;
    }
}
@media (min-width: 768px) {
    .w-md-auto{
        width: auto !important;
    }
}
@media only screen and (max-width: 992px) {
    .aljpr-btn.btn-search{
        width:100%;
    }
    .aljpr-container .map{
        height: 200px;
    }
}
@media only screen and (min-width: 992px) {
    .aljpr-container .aljpr-pr5{
        padding-right: 5px;
    }
    .aljpr-container .aljpr-pl5{
        padding-left: 5px;
    }
    .aljpr-container .sticky-search-bar{
        position: sticky;
        top: 0;
        z-index: 5;
    }
}
@media only screen and (max-width: 768px) {
    .aljpr-input-container.h-sm-auto{
        height: auto;
    }
    .aljpr-container .navbar-brand img{
        max-height: 50px;
    }
}
@media only screen and (max-width: 768px) {
    .aljpr-container, .aljpr-small-box, .aljpr-box, .aljpr-square-box{
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media only screen and (max-width: 476px) {
    .aljpr-container, .aljpr-small-box, .aljpr-box, .aljpr-square-box{
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 767.98px) {
    .navbar-default .btn { width: 36px; height: 36px; }
}

@media (max-width: 991px) {
        .sticky-header {
        position: sticky;
        top: 0;
        z-index: 1025;
        background: white;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
}

@media (min-width: 992px) {
        .sticky-header {
        position: relative;
        z-index: 1030;
        background: white;
    }

    .sticky-header.sticky-active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 40px 80px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        body.sticky-header-active {
        padding-top: 80px;
    }

    .col-lg-2-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}
@media (max-width: 767.98px) {
    body.sticky-header-active {
        padding-top: 70px;
    }
}
@media (min-width: 992px) {
    .border-left-lg {
        border-left: 1px solid #6b6b6b;
    }
}
@media (min-width: 768px) {
    .border-left-md {
        border-left: 1px solid #6b6b6b;
    }
}
@media (min-width: 576px) {
    .border-right-sm {
        border-right: 1px solid #6b6b6b;
    }
}

@media (max-width: 575.98px) {
    #popupClubDiscount .popup-discount-image {
        max-height: 150px;
    }

    #popupClubDiscount .popup-discount-body {
        padding: 1.5rem 0;
    }

    /* En móvil solo se ve una columna, no hace falta igualar las alturas */
    #popupClubDiscount .popup-title,
    #popupClubDiscount .popup-lead {
        min-height: 0;
    }

    #popupClubDiscount .popup-lead {
        margin: 1rem 0 !important;
    }

    #popupClubDiscount .popup-discount-col .aljpr-btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .language-currency-dropdown-menu {
        min-width: 180px;
        padding: 14px;
    }

    .lang-curr-tab-btn {
        padding: 9px 14px;
        font-size: 10px;
    }

    .lang-curr-item {
        padding: 10px 14px;
    }

    .lang-curr-text {
        font-size: 12px;
    }

    .lang-curr-item-flag {
        gap: 8px;
    }
}

@media only screen and (max-width: 768px) {
    #price-comparer {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        left: 50% !important;
        transform: translateX(-50%);
        top: 10px !important;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 15px !important;
    }

    #price-comparer .d-flex {
        position: relative;
        padding-right: 40px;
    }

    #price-comparer .popup-close-button {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10;
        width: 36px !important;
        height: 36px !important;
    }

    #price-comparer h4 {
        font-size: 1.1rem;
        margin: 0;
    }
}

@media only screen and (max-width: 576px) {
    #price-comparer {
        width: calc(100% - 10px) !important;
        left: 50% !important;
        transform: translateX(-50%);
        top: 5px !important;
        padding: 12px !important;
    }

    #price-comparer .popup-close-button {
        top: 5px !important;
        right: 5px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

@media (max-width: 768px) {
    .service-icons {
      grid-auto-flow: row;
      grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
      row-gap: 12px;
    }
}

@media (max-width: 1399.98px) {
    #club-discount-text.col-sm-4 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 991px) {
    .search-box .input-border{
        border:0;
    }
    .search-box .first-element, .search-box .first-element .input-border{
        padding-right: 0;
    }
    .search-box .first-element .input-border{
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
        border-radius: 0;
    }
    .search-box .second-element .input-border{
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        border-radius: 0;
    }
    .search-box .first-element .input-group{
        border-right: 1px solid var(--border-color);
    }

    .search-box .first-element:has(+ .search-button-container) .input-group {
        border-right: none;
    }
    .search-box .second-element{
        padding-left: 0;
    }

    .search-box .form-label,
    .sticky-search-bar .search-box .form-label,
    #searchComponent .form-label {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .hamburger-menu-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

        .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

        .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-sidebar.show {
        right: 0;
    }

        .mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 20px 20px 16px 20px;
        border-bottom: none;
    }

    .btn-close-sidebar {
        background: none;
        border: none;
        color: #666;
        font-size: 28px;
        cursor: pointer;
        padding: 4px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
        line-height: 1;
    }

    .btn-close-sidebar:hover {
        background-color: #f5f5f5;
        color: #333;
    }

        .mobile-sidebar-content {
        flex: 1;
        padding: 0;
        overflow-y: auto;
    }

        .sidebar-item {
        padding: 16px 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    .sidebar-item:last-child {
        border-bottom: none;
    }

        .sidebar-action-btn {
        padding: 0;
        border: none;
        border-radius: 0;
        background-color: transparent;
        transition: all 0.2s ease;
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .sidebar-action-btn:active {
        opacity: 0.7;
    }

    .sidebar-action-btn i {
        font-size: 30px;
        color: #333;
        flex-shrink: 0;
    }

    .sidebar-action-btn .lang-curr-flag.fi {
        width: 30px;
        height: 20px;
        flex-shrink: 0;
    }

    .sidebar-action-btn span {
        font-weight: 500;
        color: #333;
        font-size: 16px;
        line-height: 1.4;
    }

        #mobileLanguageCurrencyModal .modal-dialog {
        max-width: 90%;
        margin: 20px auto;
    }

    .mobile-lang-curr-modal {
        border-radius: 20px;
        overflow: hidden;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-lang-curr-body {
        padding: 20px;
        background-color: white;
        max-height: 60vh;
        overflow-y: auto;
    }

    .mobile-lang-curr-content {
        width: 100%;
    }

    .mobile-lang-curr-body .language-currency-selector-wrapper {
        width: 100%;
    }

    .mobile-lang-curr-body .lang-curr-wrapper-flag {
        display: block;
        margin-left: 0;
        padding-left: 0;
    }

    .mobile-lang-curr-body .lang-curr-wrapper-flag:before {
        content: none;
    }

    .mobile-lang-curr-body .language-currency-dropdown-menu {
        position: static !important;
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        right: auto !important;
        left: auto !important;
    }

    .mobile-lang-curr-body .lang-curr-dropdown {
        width: 100%;
    }

    .mobile-lang-curr-body .lang-curr-trigger {
        display: none !important;
    }

    .mobile-lang-curr-body .lang-curr-tabs {
        margin-bottom: 20px;
    }

    .mobile-lang-curr-body .lang-curr-content {
        max-height: 400px;
        overflow-y: auto;
    }

        body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

        .aljpr-container .sticky-search-bar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1020 !important;
        background: white;
    }

        body.sticky-header-active .aljpr-container .sticky-search-bar {
        top: 0;
    }
}
@media (max-width: 767.98px) {
    .club-switch{
        position: relative;
        width: 54px;
        height: 30px;
        border-radius: 999px;
        transition: background-color .2s ease;
        border: 1px solid #dcdcdc;
    }
    .club-switch .club-switch-thumb{
        position: absolute;
        top: 2px;
        left: 3px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(var(--principal-color-rgb), 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left .2s ease;
    }
    .club-switch.active{
        border:0;
    }
    .club-switch.active .club-switch-thumb{
        top: 0px;
        left: 0px;
        width: 54px;
        height: 30px;
        border-radius: 999px;
        border: 1px solid white;
        background: var(--principal-color);
    }
    .club-switch .club-switch-thumb i{
        font-size: 14px;
        line-height: 1;
    }
}
@media (max-width: 991px) {
        .w5-search-area {
        flex-wrap: wrap;
    }

        .search-summary-strip {
        cursor: pointer;
        width: 100%;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .search-summary-strip-btn {
        transition: box-shadow 0.15s ease, transform 0.1s ease;
        user-select: none;
    }
    .search-summary-strip-btn:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
        transform: translateY(-1px);
    }
    .search-summary-strip-btn:active {
        box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
        transform: translateY(1px);
    }
    .search-summary-strip.strip-hidden {
        display: none !important;
    }
        .search-modal-backdrop {
        position: fixed;
        top: 0;         left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.55);
        z-index: 1015;
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }
    .search-modal-backdrop:not(.d-none) {
        pointer-events: auto;
    }
    .search-modal-backdrop.search-backdrop-show {
        opacity: 1;
    }

        .search-mobile-modal {
        position: relative;
    }
    .search-mobile-modal.search-modal-open {
        display: block !important;
                flex: 1 0 100%;
        width: 100%;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: none;
        overflow-y: visible;
    }

        .search-summary-strip.search-strip-expanded {
        cursor: pointer;
    }
        .search-mobile-modal.search-modal-open .search-box {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-input-buttons, 10px);
        padding: 8px 6px 10px;
        background: #fff;
        margin-top: 6px;
    }

        body.search-modal-body-open .sticky-header {
        box-shadow: 0 4px 24px rgba(0,0,0,0.18) !important;
        z-index: 1030;
        padding-bottom: 12px;
    }

        .search-close-btn {
        font-size: 22px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .search-mobile-modal.search-modal-open .search-box .input-border {
        border: 1.5px solid var(--border-color, #d0d5dd) !important;
        border-radius: 10px !important;
    }
        .search-mobile-modal.search-modal-open .search-box .first-element .input-border,
    .search-mobile-modal.search-modal-open .search-box .second-element .input-border {
        border: 1.5px solid var(--border-color, #d0d5dd) !important;
        border-radius: 10px !important;
    }
    .search-mobile-modal.search-modal-open .search-box .first-element .input-group {
        border-right: none !important;
    }
        .search-mobile-modal.search-modal-open .search-box .first-element,
    .search-mobile-modal.search-modal-open .search-box .first-element .input-border {
        padding-right: calc(var(--bs-gutter-x, 24px) * 0.5) !important;
    }
    .search-mobile-modal.search-modal-open .search-box .second-element {
        padding-left: calc(var(--bs-gutter-x, 24px) * 0.5) !important;
    }

        .search-mobile-modal.search-modal-open .btn-search {
        width: 100%;
        height: 100%;
        min-height: 46px;
        border-radius: 0 10px 10px 0;
    }

        .search-mobile-modal.search-modal-open .search-box > div {
        margin-top: 8px;
    }

        body.search-modal-body-open {
        overflow: hidden;
    }
}

.cursor-pointer{cursor:pointer;}
.border-radius{border-radius:.375rem;}
.text-white{color:#fff;}

.smartnote-text {
    white-space: nowrap;
}
@media (min-width: 768px) {
    .smartnote-text {
        white-space: normal;
        max-width: 160px;
        display: inline-block;
    }
}
