/* =========== Price ========== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 120vh;
    height: fit-content;
    background: url('/img/est/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body::before {
    background: unset;
}

main {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    flex-direction: column;
    margin-top: 25px;
}

.navbar {
    background-color: transparent!important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

#price .container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: inline-block;
    width: 100%;
    text-align: center;
    /*text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);*/
    border-radius: 20px;
    padding: 30px;
    margin: 10px auto;
    max-width: 900px;
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.2);
    position: relative;
}

#price #topContainer {
    display: flex;
    justify-content: center;
}

.container-body {
    position: relative;
}

#price h2 {
    font-size: 21px;
    margin-bottom: 15px;
    border-bottom: 2px solid #00000008;
    padding-bottom: 8px;
    display: inline-block;
}

.container-body button {
    display: block;
    margin: 30px auto 5px auto;
    padding: 10px 0px;
    border: none;
    background: #ffffff;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: 0.1s;
    width: 100%;
    max-width: 128px;
    border-radius: 5px;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
}

.container-body  button:hover {
    background: #0056b3;
    color: #fff;
    transform: scale(1.07);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#backButton {
    background: #dc3545;
}

#backButton:hover {
    background: #a71d2a;
}

#price ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
    text-align: left;
}

.Diver {
    background: #f8f9fa33;
    padding: 10px;
    margin: auto;
    border-radius: 5px;
    font-size: 14px;
    /*width: fit-content;*/
}

p {
    font-size: 16px;
}

.tier {
    display: inline-block;
    padding: 6px 5px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    min-width: 22px;
    text-align: center;
}

/* Tier Colors */
.tier-one {
    background-color: #28a745;
}

.tier-two {
    background-color: #5759f0;
}

.tier-three {
    background-color: #ffc107;
    color: #3b3b3b;
}

.tier-four {
    background-color: #dc3545;
}

/* Input Field */
.input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 240px;
    margin: 0 auto;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
}


.input-field {
    padding: 12px 20px;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    flex-grow: 1;
    transition: border-color 0.3s ease;
    width: 65%;
    box-sizing: border-box;
    background: transparent;
}

.input-field:focus {
    border-color: #007bff;
    outline: none;
}

#submit-button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 35%;
    white-space: nowrap;
    margin:0;
}

#submit-button:hover {
    background-color: #0056b3;
}

#submit-button:focus {
    outline: none;
}

/* Nav Arrows & Image Viewer */
.nav-arrows {
    display: flex;
    align-items: center;
    justify-content:space-between;
    gap: 20px;
    margin: 20px 20px;
}

.nav-arrow {
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-info:hover {
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.image-wrapper {
    width: auto;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.5);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-info {
    text-align: center;
    text-shadow: none;
    padding: 0;
    border-radius: 15px;
    width: 310px;
    cursor: pointer;
}

#imageLabel {
    margin: 20px 0 10px;
    font-weight: bold;
}

#imageDescription {
    font-size: 18px;
    color: #555;
    padding: 10px;
    /*min-height: 64px;*/
    min-height: 90px;
}

#serviceImage {
     transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.33s;
     will-change: transform, opacity;
 }
#serviceImage.morphing {
    transform: scale(0.92) rotate(-3deg);
    opacity: 0.35;
}


#optionBarContainer {
    display: flex;
    width: 100%;
    height: 12px;
    margin: 42px 0 0 0;
    overflow: hidden;
}

.option-bar {
    flex-grow: 1;
    background: #eee!important;
    transition: background-color 0.3s ease;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
}

.option-bar.active {
    background-color: #007BFF!important;
}

.option-bar.active:hover {
    background-color: #007BFF!important;
}

.option-bar:hover {
    background-color: #007BFF77!important;
}

.image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#questionContainer {
    margin: 8px;
    color: #666666;
    text-align: left;
}

#questionContainer.total {
   text-align : center;
   margin : auto;
}

#backButton {
    position: absolute;
    /*top: 32px;*/
    left: 20px;
    background: unset;
    border: none;
    border-radius: 50px;
    padding: 8px 18px 8px 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 8px;
    color: #666;
    transition: background 0.3s ease, transform 0.2s ease;
}

#backButton.total  {
    background: #d7def38f;
    height: 31px;
    box-shadow: 1px 1px 3px -1px #00000033;
    position: absolute;
    border-right: unset;
    min-width: 30px;
    width: 30px;
    overflow: hidden;
}

#backButton:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateX(-2px);
    box-shadow: 1px 1px 3px -1px #00000033;
}

#backButton svg {
    margin-right:-1px;
    flex-shrink:0;
    flex-grow:0;
    min-width:18px;
    min-height:18px;
    margin-left: -8px;
}



#container {
    min-height: 200px;
    position: relative;
}


#bottomContainer{
    padding: 30px 0 0 0!important;
}

#bookingCalendarArea {
    margin: 18px 0 30px 0;
    padding: 0 10px;
}

button#calendarNext,
button#calendarPrev {
    width: 7%;
    min-width: 60px;
}

/* Modal: hidden by default */
.modal {
    display: none;
    position: absolute;
    left: 0; top: 18%; right: 0; bottom: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    background: none;
}

.modal-backdrop.fade.show {
    top:0;
    height: 300%;
}

/* Modal content: the actual box */
.modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 18px;
    max-width: 480px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-dialog {
    display: flex;
    justify-content: center;
    left: 0;
    width: 100%;
}

/* ACTION BAR */

.actionbar {
    position: relative;
    left: 0; right: 0; bottom: 0;
    box-shadow: 0 -1px 6px rgba(40,50,70,0.06);
    background: #f8fafd47;
    border-top: 1px solid #dde2ee4d;
    z-index: 1002;
    display: flex;
    justify-content: left;
    gap: 1px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    margin-top: 100px;
}
.actionbar .abtn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    color: #25304a;
    border: 1px solid #cfd5e36e;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    padding: 3px 13px 4px 13px;
    min-width: 70px;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, border 0.12s, color 0.12s;
    margin: 0;
    outline: none;
    text-decoration: none;
    background: transparent;
}
.actionbar .abtn:hover,
.actionbar .abtn:focus {
    background: #e6e9f1;
    border-color: #b0bbce;
    color: #193159;
    text-decoration: none;
}
.actionbar .abtn-icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.actionbar .abtn-label {
    font-size: 15px;
    white-space: nowrap;
}


.slot-btn.hover-block {
    transform: scale(1.07);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #0056b3 !important;
    color: #fff !important;
    /*border: 1.5px solid #0056b3 !important;*/
}

.slot-btn.hover-block-bad {
    background: #ffd1d1 !important;
    color: #a71d2a !important;
    border: 1.5px solid #dc3545 !important;
    margin: -1px auto!important;
}

#slotErrorMsg {
    color: rgb(220, 53, 69);
    font-weight: bold;
    margin-top: 25px;
    position: absolute;
    width: 100%;
    font-size: 13px;
}



@media (max-width: 768px) {
    .actionbar .abtn {
        font-size: 7px;
        padding: 2px 6px 3px 6px;
    }
    .actionbar .abtn-label {
        font-size: 7px;
    }
    .actionbar .abtn-icon {
        margin-right: 5px;
    }
}

@media (max-width: 500px) {
    .actionbar .abtn {

    }
    .actionbar .abtn-label {
        display: none;
    }
    .actionbar .abtn-icon {
        margin: auto;
    }
}


/* END BAR */


#total-cont {
    color:#000;
    width: 100%;
}

#total-title {

}

#total-tier {
    margin: 30px 0px 15px;
}


#booking-head {
    margin:30px;
    font-weight: bold;
    color: #000;
}

#booking-main {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    height: fit-content;
}

#booking-row {
    display: flex;
    gap: 16px;
    height: auto;
}

#booking-main .booking-col {
    min-width:130px;
    text-align:center;
}

#booking-main .booking-date {
    font-weight:100;
    margin-bottom:4px;
}

#booking-main .booking-tile {
    width:90px;
    margin:2px auto;
}

.Diver {
    /* background: #f8f9fa33; */
    padding: 10px;
    margin: auto;
    /* border-radius: 5px; */
    font-size: 14px;
    width: fit-content;
    box-shadow: inset 0px 1px 2px #00000054;
    color: #696969;/*#fff;*/
}

@media (max-width: 768px) {


    body {
        font-size: 20px;
        /*padding: 10px;*/
    }

    #price .container {
        padding: 20px;
        max-width: 90%;
        min-width: 330px;
    }

    #price button {
        font-size: 18px;
        padding: 15px;
        max-width: 90%;

    }

    ul {
        font-size: 18px;
    }

    #arrowLeft,
    #arrowRight {
        display: none;
    }
    .nav-arrows {
        justify-content: center;
    }

    .image-info:hover {
        color: #333;
        transform: scale(1);
        box-shadow: none;
        background-color: unset;
    }

    #price #topContainer {
        display: flex;
        align-items: center;
        flex-direction: row;
        text-align: start;
        padding: 10px;
    }

    #backButton {
        display: flex;
        position: relative;
        top: 0;
        left: -10px;
        background-color: unset;
        border-radius: 0;
        border-right: 1px solid #ccc;
    }

    #backButton.total{
        top: 17px;
        left: 9px;
        padding: 13px;
        border-radius: 50px;
    }

    #backButton:hover
    {
        background: unset;
        transform: translateX(0);
        box-shadow: unset;
    }

    .actionbar .abtn {
        border: 1px solid #cfd5e3;

    }

    #booking-head {
        margin:10px;
        font-size:14px;
        color: #000;
    }

    #booking-main {
        gap:0;
    }

    #booking-row {
        gap: 2px;
    }

    #booking-main .booking-col {
        min-width:90px;
    }


    #booking-main .booking-date {
        font-size: 12px;
    }

    #booking-main .booking-tile {
        font-size: 10px;
        padding: 1px;
        height: 2rem;
    }

    #bottomContainer{
        padding: 30px 0 0 0!important;
    }

}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
    margin: 40px auto;
    padding: 10px;
    max-width: 1200px;
    justify-items: center;
}

.suggestion-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 350px;
}

.suggestion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.suggestion-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.suggestion-content {
    padding: 16px;
    text-align: center;
}

.suggestion-content h5 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.suggestion-content p {
    font-size: 14px;
    color: #555;
}

.confirm-buttonOLd{
    margin: 10px -17px -11px auto;
    border: none;
    padding: 9px 19px;
    border-radius: 0 0 5px 5px;
    background: #e2e2e252;
    color: #696969;
    border-top: 1px solid #aaa7;
    font-weight: bold;
		width:100%;
}

.confirm-button {
    display: block;
    min-width: 200px;           /* force a reasonable visual width */
    width: 100%;
    padding: 9px 0;
    margin: 10px -17px -11px -17px;
    border: none;
    border-top: 1px solid #aaa7;
    border-radius: 0 0 5px 5px;
    background: #e2e2e252;
    color: #696969;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}


.confirm-button:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #444;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
    opacity: .7;
}



#optionsContainer.loading {
    position: relative;
    filter: blur(4px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.loading-overlay .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffffcc;
    animation: bounce 1.2s infinite ease-in-out;
}

.loading-overlay .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-overlay .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.5);
        opacity: 1;
    }
}