/* Mobile-first reservation enhancements.  This stylesheet is scoped to the reservation page only. */
.reservation-mobile-wizard .page_title h1 {
    margin-bottom: 12px;
}

.mobile-reservation-progress,
.mobile-availability-cta,
.mobile-wizard-controls,
.mobile-summary-toggle,
.mobile-sticky-action {
    display: none;
}

.mobile-choice-cards {
    display: none;
}

.mobile-choice-card {
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    margin: 10px 0;
    cursor: pointer;
    min-height: 48px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.mobile-choice-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.mobile-choice-card span {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 13px;
    line-height: 1.35;
}

.mobile-choice-card.selected {
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46,163,242,.2);
}

.mobile-choice-card.disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 800px) {
    body.reservation-mobile-enhanced {
        padding-bottom: 0;
    }

    body.reservation-mobile-enhanced .content_wrapper {
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 14px;
    }

    body.reservation-mobile-enhanced .row,
    body.reservation-mobile-enhanced .form-horizontal,
    body.reservation-mobile-enhanced .form-group,
    body.reservation-mobile-enhanced .col-md-10,
    body.reservation-mobile-enhanced .lcol,
    body.reservation-mobile-enhanced .rcol,
    body.reservation-mobile-enhanced .lcol.sm,
    body.reservation-mobile-enhanced .lcol.med,
    body.reservation-mobile-enhanced .lcol.very_sm,
    body.reservation-mobile-enhanced .lcol.verylg,
    body.reservation-mobile-enhanced .rcol.verysm {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both;
        box-sizing: border-box;
    }

    body.reservation-mobile-enhanced .pad-right {
        padding-right: 0 !important;
    }

    body.reservation-mobile-enhanced input.form-control,
    body.reservation-mobile-enhanced select.form-control,
    body.reservation-mobile-enhanced textarea.form-control,
    body.reservation-mobile-enhanced .creditCardForm input,
    body.reservation-mobile-enhanced .creditCardForm select {
        width: 100% !important;
        min-height: 46px;
        font-size: 16px;
        box-sizing: border-box;
    }

    body.reservation-mobile-enhanced input[type="number"] {
        width: 100% !important;
        min-height: 46px;
        font-size: 16px;
    }

    body.reservation-mobile-enhanced .mobile-reservation-progress {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 12px 0 16px;
    }

    body.reservation-mobile-enhanced .mobile-step-tab {
        border: 1px solid #d9e2ef;
        border-radius: 10px;
        background: #fff;
        padding: 10px 8px;
        min-height: 46px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
    }

    body.reservation-mobile-enhanced .mobile-step-tab.active {
        border-color: #2EA3F2;
        background: rgba(46,163,242,.1);
        font-weight: 700;
    }

    body.reservation-mobile-enhanced .mobile-availability-cta {
        display: block;
        border: 1px solid #cfe6fb;
        background: #f3f9ff;
        border-radius: 12px;
        padding: 14px;
        margin: 10px 0 16px;
        line-height: 1.4;
    }

    body.reservation-mobile-enhanced .mobile-availability-cta a {
        display: block;
        margin-top: 10px;
        text-align: center;
        min-height: 44px;
        line-height: 44px;
        border-radius: 8px;
        background: #2EA3F2;
        color: #fff !important;
        font-weight: 700;
    }

    body.reservation-mobile-enhanced [data-mobile-step] {
        display: none;
    }

    body.reservation-mobile-enhanced [data-mobile-step].mobile-step-active {
        display: block;
    }

    body.reservation-mobile-enhanced .mobile-wizard-controls {
        display: flex;
        gap: 10px;
        margin: 18px 0 10px;
    }

    body.reservation-mobile-enhanced .mobile-wizard-controls button,
    body.reservation-mobile-enhanced #submit_button,
    body.reservation-mobile-enhanced #back_button {
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
        font-size: 16px;
    }

    body.reservation-mobile-enhanced .mobile-choice-cards {
        display: block;
    }

    body.reservation-mobile-enhanced select.mobile-card-source {
        position: absolute !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
    }

    body.reservation-mobile-enhanced .checkbox,
    body.reservation-mobile-enhanced .mobile-switch-card {
        border: 1px solid #d9e2ef;
        border-radius: 12px;
        background: #fff;
        padding: 14px;
        margin: 12px 0;
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
    }

    body.reservation-mobile-enhanced .switch {
        margin-top: 10px;
        min-height: 44px;
    }

    body.reservation-mobile-enhanced .bordered {
        border-radius: 12px;
        padding: 14px !important;
        margin: 12px 0 !important;
    }

    body.reservation-mobile-enhanced .mobile-summary-card {
        position: sticky;
        top: 0;
        z-index: 20;
        background: #fff;
        border: 1px solid #d9e2ef;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 3px 10px rgba(0,0,0,.12);
    }

    body.reservation-mobile-enhanced .mobile-summary-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border: 0;
        background: transparent;
        color: #111;
        font-size: 16px;
        font-weight: 700;
        padding: 4px 0 10px;
    }

    body.reservation-mobile-enhanced .mobile-summary-card.collapsed #subtotals {
        display: none;
    }

    body.reservation-mobile-enhanced #subtotals {
        width: 100% !important;
        font-size: 14px;
    }

    body.reservation-mobile-enhanced #subtotals td {
        padding: 6px 4px;
        vertical-align: top;
    }

    body.reservation-mobile-enhanced .creditCardForm,
    body.reservation-mobile-enhanced .payment {
        width: 100% !important;
    }

    body.reservation-mobile-enhanced #credit_cards {
        margin: 8px 0 14px;
        text-align: left;
    }

    body.reservation-mobile-enhanced #expiration-date .lcol {
        width: 48% !important;
        float: left !important;
        clear: none;
    }

    body.reservation-mobile-enhanced #expiration-date .lcol + .lcol {
        margin-left: 4%;
    }

    body.reservation-mobile-enhanced .mobile-sticky-action {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: #fff;
        border-top: 1px solid #d9e2ef;
        box-shadow: 0 -2px 12px rgba(0,0,0,.12);
        padding: 8px;
        gap: 8px;
    }

    body.reservation-mobile-enhanced .mobile-sticky-action a {
        flex: 1;
        text-align: center;
        border-radius: 8px;
        min-height: 44px;
        line-height: 44px;
        font-weight: 700;
        color: #fff !important;
        background: #2EA3F2;
    }

    body.reservation-mobile-enhanced .mobile-sticky-action a.secondary {
        background: #3b3b3b;
    }

    body.reservation-mobile-enhanced .cappy_img_sm {
        display: none;
    }
}

/* Keep legacy CSS toggle switches from stretching or clipping on mobile cards. */
@media (max-width: 800px) {
    body.reservation-mobile-enhanced .switch {
        display: inline-block !important;
        position: relative !important;
        width: 56px !important;
        min-width: 56px !important;
        height: 32px !important;
        min-height: 32px !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        vertical-align: middle !important;
    }

    body.reservation-mobile-enhanced .switch-input {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.reservation-mobile-enhanced .switch-label {
        display: inline-block !important;
        position: relative !important;
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: auto !important;
        text-indent: -9999px !important;
        color: transparent !important;
        cursor: pointer !important;
        user-select: none !important;
        box-sizing: border-box !important;
    }

    body.reservation-mobile-enhanced .switch-label::before,
    body.reservation-mobile-enhanced .switch-label::after {
        box-sizing: border-box !important;
        content: "" !important;
        display: block !important;
        position: absolute !important;
        cursor: pointer !important;
    }

    body.reservation-mobile-enhanced .switch-label::before {
        top: 0 !important;
        left: 0 !important;
        width: 56px !important;
        height: 32px !important;
        border-radius: 999px !important;
        background-color: #dedede !important;
        transition: background-color .2s ease !important;
    }

    body.reservation-mobile-enhanced .switch-label::after {
        top: 2px !important;
        left: 2px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background-color: #fff !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.35) !important;
        transition: left .2s ease !important;
    }

    body.reservation-mobile-enhanced .switch-input:checked + .switch-label::before {
        background-color: #2EA3F2 !important;
    }

    body.reservation-mobile-enhanced .switch-input:checked + .switch-label::after {
        left: 26px !important;
    }
}

/* Refined mobile toggle sizing: compact iOS-style switch aligned with adjacent text. */
@media (max-width: 800px) {
    body.reservation-mobile-enhanced .switch {
        display: inline-block !important;
        position: relative !important;
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        margin: 0 0 0 8px !important;
        padding: 0 !important;
        line-height: 0 !important;
        vertical-align: middle !important;
    }

    body.reservation-mobile-enhanced .switch-label {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.reservation-mobile-enhanced .switch-label::before {
        top: 3px !important;
        left: 0 !important;
        width: 50px !important;
        height: 20px !important;
        border-radius: 999px !important;
        background-color: #d9d9d9 !important;
        box-shadow: none !important;
    }

    body.reservation-mobile-enhanced .switch-label::after {
        top: 0 !important;
        left: 0 !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        background-color: #fff !important;
        border: 1px solid #d6d6d6 !important;
        box-shadow: 0 1px 2px rgba(0,0,0,.12) !important;
    }

    body.reservation-mobile-enhanced .switch-input:checked + .switch-label::before {
        background-color: #2EA3F2 !important;
    }

    body.reservation-mobile-enhanced .switch-input:checked + .switch-label::after {
        left: 24px !important;
    }
}


/* Additional mobile refinements requested after field testing. */
@media (max-width: 800px) {
    body.reservation-mobile-enhanced #too_many_folks,
    body.reservation-mobile-enhanced #too_many_folks_count {
        color: red;
    }

    body.reservation-mobile-enhanced #too_many_folks:not([style*="display: block"]),
    body.reservation-mobile-enhanced #too_many_folks_count:not([style*="display: block"]) {
        display: none;
    }

    body.reservation-mobile-enhanced #dl_state,
    body.reservation-mobile-enhanced #dl_number,
    body.reservation-mobile-enhanced #dl_expiry {
        margin-bottom: 12px;
    }

    body.reservation-mobile-enhanced #dl_expiry {
        margin-bottom: 0;
    }

    body.reservation-mobile-enhanced #cc_wrapper {
        width: 100% !important;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }

    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm .payment {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto 12px !important;
        padding: 10px 0 !important;
        box-sizing: border-box;
    }

    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm #card-number-field,
    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm #credit_cards,
    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm .CVV,
    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm #expiration-date {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm #expiration-date .lcol {
        width: 48% !important;
        float: left !important;
        clear: none !important;
    }

    body.reservation-mobile-enhanced #cc_wrapper .creditCardForm #expiration-date .lcol + .lcol {
        margin-left: 4% !important;
    }
}

/* Mobile contact-step ordering requested for the reservation wizard. */
@media (max-width: 800px) {
    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-contact-field {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        float: none !important;
        clear: both !important;
    }

    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-contact-field .col-md-10,
    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-contact-field .lcol,
    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-contact-field .sm,
    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-contact-field .med {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        float: none !important;
    }

    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-contact-field .lcol:last-of-type {
        margin-bottom: 0 !important;
    }

    body.reservation-mobile-enhanced [data-mobile-step="4"] .mobile-dl-heading {
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        font-weight: 600;
    }

    body.reservation-mobile-enhanced [data-mobile-step="4"] #state,
    body.reservation-mobile-enhanced [data-mobile-step="4"] #dl_state,
    body.reservation-mobile-enhanced [data-mobile-step="4"] #zip,
    body.reservation-mobile-enhanced [data-mobile-step="4"] #dl_number,
    body.reservation-mobile-enhanced [data-mobile-step="4"] #dl_expiry {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile polish requested after field testing. */
@media (max-width: 800px) {
    body.reservation-mobile-enhanced .mobile-summary-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.15;
    }

    body.reservation-mobile-enhanced .mobile-summary-title small {
        display: block;
        margin-top: 2px;
        font-size: 12px;
        font-weight: 500;
        color: #667085;
        text-transform: none;
    }

    body.reservation-mobile-enhanced .mobile-boating-license-row.mobile-switch-card {
        padding: 14px !important;
    }

    body.reservation-mobile-enhanced .mobile-boating-license-row > .col-md-10 {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1.35 !important;
    }

    body.reservation-mobile-enhanced .mobile-boating-license-row .switch {
        flex: 0 0 50px !important;
        margin: 0 0 0 12px !important;
        align-self: center !important;
        transform: none !important;
    }
}
