/* ================================================================
   QUOTE PAGE
   ================================================================ */
.btn.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.btn-success:focus,
.btn.btn-success:active {
    outline: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.form-check-input {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    height: 30px;
    width: 30px;
    cursor: pointer;
}

.form-check-input:checked,
.form-check-input:focus,
.form-check-input:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.price_list {
    color: var(--primary-color);
}

.quote-submit-button {
    margin-top: 30px;
}

.countdown_message {
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.countdown_container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.countdown-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    margin-bottom: 6px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.countdown-card__icon {
    font-size: 35px;
    color: var(--primary-color);
    margin: 0;
    display: inline-block;
    line-height: 1;
}

.countdown-card__content {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    color: #666666;
    line-height: 1.4;
}

.countdown-card__text {
    display: block;
}

.countdown-card__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.countdown-card__timer {
    color: var(--primary-color);
    font-weight: bold;
}


/* ================================================================
   EXTRA PAGE
   ================================================================ */

.btn_full,
.btn_1,
.btn_1.medium {
    background-color: var(--primary-color);
}

/* Thumbnail */
.thumb_cart {
    overflow: hidden;
    width: 60px;
    height: 60px;
    margin-right: 10px;
    float: left;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.thumb_cart img {
    width: 60px;
    height: auto;
}

.thumb_cart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Item cart */
.item_cart {
    display: inline-block;
    margin-top: 20px;
}

/* Bottoni quantità */
.button_inc.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Bottone aggiungi */
.btn-add-item {
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.btn-mobile {
    display: none;
}

.btn-desktop {
    display: inline;
}

/* Tooltip extra obbligatorio */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 50%;
    transform: translateX(25%);
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    white-space: normal;
    width: 200px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    text-align: center;
}

.tooltip-content::after {
    position: absolute;
    top: 100%;
    transform: translateX(25%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-content,
.tooltip-wrapper:focus-within .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Allineamento verticale prima colonna - solo desktop */
@media (min-width: 768px) {
    .table.cart-list td:nth-of-type(1) {
        display: flex;
        align-items: center;
    }

    .item_cart {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Extra Page - Mobile */
@media (max-width: 767px) {

    /* Bottone aggiungi */
    .btn-add-item {
        width: auto;
        height: 40px;
        padding: 0 15px;
        font-size: 12px;
    }

    .btn-mobile {
        display: inline;
    }

    .btn-desktop {
        display: none;
    }

    .btn-add-item {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    /* Item cart */
    .item_cart {
        margin-top: 0;
        display: block;
        padding-left: 0;
        text-align: end;
    }

    /* Tabella extras */
    .table.cart-list td {
        text-align: end;
    }

    .table.cart-list td:nth-of-type(1) {
        padding-left: 10px;
        text-align: center;
    }

    .table.cart-list td:nth-of-type(1):before { text-align: start; }
    .table.cart-list td:nth-of-type(2):before { text-align: start; }
    .table.cart-list td:nth-of-type(3):before { text-align: start; }
    .table.cart-list td:nth-of-type(4):before { text-align: start; }
    .table.cart-list td:nth-of-type(5):before { text-align: start; }

    /* Colonna options */
    td.options {
        text-align: right;
    }

    /* Colonna prezzo unitario */
    td[class*="unitPrice_"] {
        text-align: right !important;
    }

    td[class*="unitPrice_"] {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: left;
    }

    /* Colonna quantità */
    td:has(input[class*="qty_summary_"]) {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    td:has(.numbers-row) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        min-height: 60px !important;
    }

    td:has(.numbers-row)::before {
        flex-shrink: 0;
        position: static !important;
        width: auto !important;
    }

    td:has(.numbers-row) .numbers-row {
        position: relative !important;
        width: 97px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        display: inline-block !important;
    }

    td:has(.numbers-row) .numbers-row .dec {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
    }

    td:has(.numbers-row) .numbers-row .inc {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
    }

    td:has(.numbers-row) .numbers-row input.qty2 {
        position: absolute !important;
        left: 31px !important;
        top: 0 !important;
    }

    td:has(.numbers-row) .numbers-row .button_inc {
        font-size: 0 !important;
    }

    /* numbers-row */
    .numbers-row {
        margin: auto;
    }

    /* Tooltip mobile */
    td.options .tooltip-content {
        right: 0;
        left: auto;
        transform: none;
        bottom: 100%;
    }

    td.options .tooltip-wrapper a {
        pointer-events: none;
    }

    td.options .tooltip-trigger {
        pointer-events: all;
        cursor: pointer;
    }
}


/* ================================================================
   PAYMENT PAGE
   ================================================================ */

.accordion-button {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus,
.accordion-button:active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: white;
}

/* Arrow Accordion Policy */
.accordion-button::after {
    display: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: none;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-repeat: no-repeat;
    background-size: 14px;
    transition: transform 0.2s ease-out;
}

/* Checkbox pagamento */
.container_check input:checked~.checkmark {
    background-color: var(--primary-color);
    border: 1px solid transparent;
}

.container_check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 1;
}

.container_check .payment-label-text {
    line-height: 1.2;
}

.container_check .checkmark {
    flex-shrink: 0;
    align-self: center;
}

.container_check input[type="radio"] {
    flex-shrink: 0;
    align-self: center;
    margin: 0;
}

/* Accordion pagamenti */
.accordion-payment-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-payment-button {
        transition: none;
    }
}

.accordion-payment-button:not(.collapsed) {
    color: #0c63e4;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-payment-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-payment-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-payment-button::after {
        transition: none;
    }
}

.accordion-payment-button:hover {
    z-index: 2;
}

.accordion-payment-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-payment-button::after {
    display: none;
}

.accordion-payment-header {
    margin-bottom: 0;
}

.accordion-payment-item {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-payment-item:first-of-type {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.accordion-payment-item:first-of-type .accordion-payment-button {
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.accordion-payment-item:not(:first-of-type) {
    border-top: 0;
}

.accordion-payment-item:last-of-type {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion-payment-item:last-of-type .accordion-payment-button.collapsed {
    border-bottom-right-radius: calc(0.25rem - 1px);
    border-bottom-left-radius: calc(0.25rem - 1px);
}

.accordion-payment-item:last-of-type .accordion-payment-collapse {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion-payment-body {
    padding: 1rem 1.25rem;
}

.accordion-payment-flush .accordion-payment-collapse {
    border-width: 0;
}

.accordion-payment-flush .accordion-payment-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.accordion-payment-flush .accordion-payment-item:first-child {
    border-top: 0;
}

.accordion-payment-flush .accordion-payment-item:last-child {
    border-bottom: 0;
}

.accordion-payment-flush .accordion-payment-item .accordion-payment-button {
    border-radius: 0;
}

/* Payment Page - Mobile */
@media (max-width: 768px) {
    .payment-label-text {
        display: none;
    }

    .accordion-payment-button img {
        display: none;
    }

    .payment-label-text {
        display: inline;
    }

    #submitbutton {
        width: 100% !important;
        display: block;
    }
    
}


/* ================================================================
   CONFIRMATION PAGE
   ================================================================ */

.confirmation_page_th {
    color: white !important;
    background-color: var(--primary-color) !important;
}

.form_title h3 strong {
    background-color: var(--primary-color);
}


/* ================================================================
   SUMMARY
   ================================================================ */

.box_style_1 h3.inner {
    background-color: var(--secondary-color);
}

.table_summary .summary-row {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.table_summary .summary-row.total {
    font-weight: bold;
    border-bottom: none;
    margin-top: 4px;
    margin-bottom: 15px;
}

.table_summary .item-summary {
    flex-shrink: 0;
}

/* Booking box */
#booking_box {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#booking_box .table_summary {
    table-layout: fixed;
    width: 100%;
}

#booking_box .table_summary td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 0;
    white-space: normal;
}

#booking_box .table_summary td.text-end {
    white-space: nowrap;
    width: 30%;
}

#booking_box span,
#booking_box td {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Timeline */
.timeline-container {
    overflow: hidden;
    width: 100%;
}

.timeline-amount,
.timeline-date {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 14px;
}

/* Summary - Mobile */
@media (max-width: 768px) {
    #booking_box .table_summary td.text-end {
        width: 35%;
        font-size: 13px;
    }

    .timeline-items {
        flex-wrap: wrap;
    }
}


/* ================================================================
   HERO SECTION
   ================================================================ */

@media (max-width: 768px) {
    #hero_2 .bs-wizard {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    #hero_2 .bs-wizard>div {
        min-width: 80px;
        flex: 0 0 auto;
    }

    #hero_2 .bs-wizard-stepnum {
        font-size: 10px;
        white-space: nowrap;
    }

    #hero_2 .intro_title h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    #hero_2 .intro_title {
        padding: 12px;
    }
}


/* ================================================================
   HEADER AND HAMBURGER MENU
   ================================================================ */

@media (max-width: 991px) {
    .cmn-toggle-switch {
        position: relative;
        top: auto;
        right: auto;
        align-self: center;
        margin-left: auto;
    }

    .main-menu ul {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 16px;
        gap: 16px;
    }

    .main-menu ul li {
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .main-menu ul li:last-child {
        border-bottom: none;
    }

    .main-menu ul li a strong {
        font-size: 16px !important;
    }

    .main-menu ul li div[style*="display:flex"] {
        padding: 4px 0 !important;
    }
}


/* ================================================================
   GLOBAL - ROOMS OVERLAY
   ================================================================ */

.rooms-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
}

.rooms-overlay-message {
    color: red;
    background: white;
    padding: 15px;
    border: 1px solid red;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}


/* ================================================================
   GLOBAL - FORM VALIDATION
   ================================================================ */

label.error {
    font-size: 12px;
    font-style: italic;
    color: #ff6a6a !important;
}

input.error {
    border: 1px solid #ff6a6a !important;
}

select.error {
    border: 1px solid #ff6a6a !important;
}


/* ================================================================
   GLOBAL - INTL TEL INPUT
   ================================================================ */

.iti {
    display: block !important;
    width: 100% !important;
    height: 40px;
}

.iti__selected-dial-code {
    padding-top: 2px;
    font-size: 13px;
}

.iti__flag {
    background-image: url('../img/flags.png') !important;
}

@media (min-resolution: 2dppx) {
    .iti__flag {
        background-image: url('../img/flags@2x.png') !important;
    }
}


/* ================================================================
   GLOBAL - PAGE SPINNER
   ================================================================ */

.page_spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ================================================================
   HEADER
   ================================================================ */

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

@media (min-width: 992px) {
    .header-inner {
        padding-left: 50px;
        padding-right: 50px;
    }
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.header-nav {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}