﻿/* custom-select.css - .custom-select-wrapper: custom styled select replacement with dropdown */

/* Custom Dropdown (Select Replacement) */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    margin-bottom: 0;
}

.custom-select-wrapper.dropdown-open {
    position: relative;
    z-index: 1000000;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 900;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    padding-right: 2.8rem;
    /* Space for arrow */
    font-size: 1rem;
    color: var(--text-white);
    background: linear-gradient(146deg, rgba(212, 184, 154, 0.2) 0%, rgba(139, 111, 90, 0.2) 100%);
    border: 1px solid rgba(191, 167, 146, 0.5);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.3;
    font-weight: 800;
    box-shadow: 0 4px 0 rgba(58, 42, 26, 0.35);
}

/* Arrow indicator */
.custom-select__trigger::after {
    content: '';
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select__trigger {
    background: #f4ece2;
    color: #5a3d2a;
    box-shadow: 0 4px 0 rgba(58, 42, 26, 0.45);
}

.custom-select.open .custom-select__trigger::after {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a3d2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.custom-select__trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}

#bookingModal #cityCustomSelect.city-search-active .custom-select__trigger {
    cursor: text;
}

#bookingModal #cityCustomSelect .city-custom-select__search-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    opacity: 0;
    font: inherit;
    pointer-events: none;
}

#bookingModal #cityCustomSelect.open .city-custom-select__search-input,
#bookingModal #cityCustomSelect.city-search-active .city-custom-select__search-input {
    pointer-events: auto;
}

#bookingModal #cityCustomSelect.city-search-active .custom-select__trigger span {
    display: inline-flex;
    align-items: center;
    min-width: 0.2ch;
}

#bookingModal #cityCustomSelect.city-search-active .custom-select__trigger span::after {
    content: '';
    display: inline-block;
    width: 1.5px;
    height: 1.05em;
    margin-left: 0.08em;
    background: currentColor;
    opacity: 1;
    animation: citySelectCaretBlink 1s steps(1, end) infinite;
}

#bookingModal #cityCustomSelect.city-search-active .custom-select__trigger.city-search-empty span::after {
    margin-left: 0;
}

@keyframes citySelectCaretBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.custom-options {
    position: absolute;
    /* Hidden panels must not contribute to document scroll height. */
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(242, 231, 218, 0.97);
    backdrop-filter: blur(1.3rem);
    -webkit-backdrop-filter: blur(1.3rem);
    z-index: 13000;
    border: none;
    border-radius: 1.6rem;
    /* All corners rounded */
    box-shadow: 0 5px 0 rgba(58, 42, 26, 0.28);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: all 0.3s ease;
    max-height: none;
    overflow: hidden;
    padding: 0.5rem 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(circle, #fff 98%, transparent 100%);
}

.custom-select.open .custom-options {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    transform: translate3d(0, 0, 0) !important;
    z-index: 999999 !important;
    max-height: clamp(200px, 50vh, 400px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#bookingModal .custom-select__trigger.has-selection-check {
    padding-right: 2.8rem;
}

#bookingModal .custom-select__trigger.has-selection-check::before {
    content: none;
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(80, 60, 40, 0.85);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.custom-option.selected {
    background-color: rgba(139, 111, 90, 0.12);
    color: #3a2a1a;
}

.custom-option.selected::after {
    content: "";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.95rem;
    height: 0.95rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%235a3d2a' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 0.12rem rgba(90, 61, 42, 0.24));
}

/* Show selected checkmark only inside opened dropdown lists. */
.custom-select:not(.open) .custom-option.selected::after {
    content: none;
}

#bookingModal #cityCustomSelect .custom-option.selected::after {
    content: "" !important;
    position: absolute !important;
    right: 1.1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}



#bookingModal .custom-option.selected {
    background-color: rgba(var(--modal-design-tone-rgb), 0.16) !important;
    /* TODO-DELETE if stable after test: color: rgb(var(--modal-design-tone-rgb)) !important */
}

#bookingModal .custom-option.selected::after {
    width: 0.62rem;
    height: 0.95rem;
    border-right: 0.17rem solid currentColor;
    border-bottom: 0.17rem solid currentColor;
    /* TODO-DELETE if stable after test: background-image: none !important */
    transform: translateY(-62%) rotate(45deg);
    filter: drop-shadow(0 0 0.12rem rgba(var(--modal-design-tone-rgb), 0.2));
}

#bookingModal .file-attach__btn--camera {
    border-color: rgba(255, 255, 255, 0.96) !important;
    background: #ffffff !important;
    color: rgb(var(--modal-design-tone-rgb)) !important;
}

#bookingModal .file-attach__btn--camera .file-attach__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#bookingModal .file-attach__btn--camera:hover .file-attach__icon-svg,
#bookingModal .file-attach__btn--camera:hover .file-attach__icon-svg--camera,
#bookingModal .file-attach__btn--camera:focus-visible .file-attach__icon-svg,
#bookingModal .file-attach__btn--camera:focus-visible .file-attach__icon-svg--camera {
    color: rgb(var(--modal-design-tone-rgb)) !important;
    stroke: rgb(var(--modal-design-tone-rgb)) !important;
}

#bookingModal .file-attach__btn:hover,
#bookingModal .file-attach__btn:focus-visible {
    color: rgb(var(--modal-design-tone-rgb)) !important;
}

#bookingModal .file-attach__btn--camera:hover,
#bookingModal .file-attach__btn--camera:focus-visible {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.96) !important;
}

#bookingModal .file-attach__btn--camera:hover .file-attach__icon,
#bookingModal .file-attach__btn--camera:focus-visible .file-attach__icon {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#bookingModal .file-attach__btn--camera .file-attach__icon-svg,
#bookingModal .file-attach__btn--camera .file-attach__icon-svg--camera,
#bookingModal .file-attach__btn--camera .file-attach__icon-svg--paperclip {
    color: rgb(var(--modal-design-tone-rgb)) !important;
    stroke: rgb(var(--modal-design-tone-rgb)) !important;
}

#bookingModal .file-attach__drop-zone-file--drag-over,
#bookingModal .file-attach.file-attach--drag-over .file-attach__drop-zone-file {
    border-color: var(--booking-attach-copy-color) !important;
}

#bookingModal .file-attach__drop-zone-file--drag-over .file-attach__btn,
#bookingModal .file-attach.file-attach--drag-over .file-attach__drop-zone-file .file-attach__btn {
    border-color: rgba(255, 255, 255, 0.92) !important;
    color: rgb(var(--modal-design-tone-rgb)) !important;
}

#bookingModal .file-attach__drop-zone-file--drag-over .file-attach__title,
#bookingModal .file-attach__drop-zone-file--drag-over .file-attach__icon,
#bookingModal .file-attach__drop-zone-file--drag-over .file-attach__icon-svg,
#bookingModal .file-attach__drop-zone-file--drag-over p,
#bookingModal .file-attach.file-attach--drag-over .file-attach__drop-zone-file .file-attach__title,
#bookingModal .file-attach.file-attach--drag-over .file-attach__drop-zone-file .file-attach__icon,
#bookingModal .file-attach.file-attach--drag-over .file-attach__drop-zone-file .file-attach__icon-svg,
#bookingModal .file-attach.file-attach--drag-over .file-attach__drop-zone-file p {
    color: rgb(var(--modal-design-tone-rgb)) !important;
    stroke: rgb(var(--modal-design-tone-rgb)) !important;
}


.footer-book-btn {
    position: relative;
    display: inline-block;
    padding: 0.72rem 1.85rem;
    background: var(--modal-lock-button-bg);
    color: var(--modal-lock-button-text);
    font-size: 0.9rem;
    font-weight: 800;
    border: 1px solid var(--modal-lock-button-bg);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
    overflow: visible;
    transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        inset 0 -1px 0 rgba(var(--site-bg-shadow-rgb), 0.24),
        0 0.56rem 1.18rem rgba(var(--site-bg-shadow-rgb), 0.28);
    min-width: 15rem;
}

.footer-book-btn::before {
    content: none;
}

.footer-book-btn:hover {
    transform: none;
    background: var(--modal-lock-button-bg-hover);
    border-color: var(--modal-lock-button-bg-hover);
    color: var(--modal-lock-button-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(var(--site-bg-shadow-rgb), 0.26),
        0 0.7rem 1.34rem rgba(var(--site-bg-shadow-rgb), 0.34);
}

.footer-book-btn:hover::before {
    content: none;
}

.footer-book-btn:hover #headerBookBtnText,
.footer-book-btn:hover #headerBookBtnText span,
.footer-book-btn:hover #footerBookBtnText,
.footer-book-btn:hover #footerBookBtnText span {
    color: var(--modal-lock-button-text) !important;
}

button,
[role="button"],
.footer-book-btn,
.contact-form__submit-button,
.calendar-nav-btn,
.file-attach__btn {
    transition: transform 0.2s ease;
}

button:hover,
[role="button"]:hover,
.footer-book-btn:hover,
.contact-form__submit-button:hover,
.calendar-nav-btn:hover,
.file-attach__btn:hover {
    transform: scale(1.01) !important;
}

.slot-btn,
.slot-btn:focus-visible {
    transform: none !important;
    transition: none !important;
}

/* Bottom book button: same font, keep existing dynamic sizes */
#footerBookBtn,
#footerBookBtnText,
#footerBookBtnText span {
    font-family: 'Lato', sans-serif !important;
}

/* Header BOOK button: slightly thicker visual weight */
#headerBookBtn {
    padding: 0.84rem 2.05rem;
    min-height: 3.5rem;
    border-width: 2px;
}

#headerBookBtnText,
#headerBookBtnText span {
    font-weight: 900 !important;
    letter-spacing: 0.05em;
}

.spark {
    position: absolute;
    width: var(--spark-size, 0.35rem);
    height: var(--spark-size, 0.35rem);
    pointer-events: none;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 1.8l2.68 6.5 7.01.56-5.34 4.58 1.62 6.82L12 16.89 6.03 20.26l1.62-6.82-5.34-4.58 7.01-.56z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    filter: drop-shadow(0 0 0.55rem rgba(255, 255, 255, 1)) drop-shadow(0 0 1.15rem rgba(255, 255, 255, 0.8));
    will-change: transform, opacity;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
    animation: sparkle var(--spark-duration, 500ms) cubic-bezier(0.18, 0.72, 0.24, 1) var(--spark-delay, 0ms) forwards;
}

@keyframes sparkle {
    0% {
        transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.38) rotate(var(--spark-rotate, 0deg));
        opacity: 0;
    }

    14% {
        opacity: 1;
    }

    72% {
        transform: translate(-50%, -50%) translate3d(var(--x-mid, 0px), var(--y-mid, 0px), 0) scale(1.1) rotate(calc(var(--spark-rotate, 0deg) + 130deg));
        opacity: 0.95;
    }

    100% {
        transform: translate(-50%, -50%) translate3d(var(--x-end, 0px), var(--y-end, 0px), 0) scale(0.9) rotate(calc(var(--spark-rotate, 0deg) + 205deg));
        opacity: 0;
    }
}

.footer {
    position: relative;
}

#footerEmberLayer {
    position: absolute;
    left: 50%;
    bottom: -1.45rem;
    width: min(32rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    height: min(16rem, 34vh);
    pointer-events: none;
    overflow: visible;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#footerEmberLayer.footer-ember-layer--active {
    opacity: 1;
}

html.modal-is-open #footerEmberLayer {
    opacity: 0 !important;
}

.footer-ember {
    position: absolute;
    left: 50%;
    bottom: -0.9rem;
    width: var(--ember-size, 0.32rem);
    height: var(--ember-size, 0.32rem);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 32% 32%,
            rgba(255, 253, 245, 0.98) 0 24%,
            rgba(255, 229, 166, 0.96) 42%,
            rgba(255, 174, 78, 0.76) 66%,
            rgba(255, 255, 255, 0) 100%);
    box-shadow:
        0 0 0.55rem rgba(255, 226, 155, 0.72),
        0 0 1.2rem rgba(255, 176, 91, 0.52),
        0 0 2rem rgba(255, 139, 62, 0.28);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform, opacity;
    animation: footerEmberRise var(--ember-duration, 7200ms) linear var(--ember-delay, 0ms) forwards;
}

@keyframes footerEmberRise {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: var(--ember-start-opacity, 0);
    }

    8% {
        transform: translate3d(calc(var(--ember-drift, 0px) * 0.25), calc(var(--ember-rise-y, -720px) * 0.08), 0) scale(0.97);
        opacity: var(--ember-entry-opacity, var(--ember-opacity, 0.92));
    }

    35% {
        transform: translate3d(calc(var(--ember-drift, 0px) * -0.2), calc(var(--ember-rise-y, -720px) * 0.35), 0) scale(0.82);
        opacity: calc(var(--ember-opacity, 0.92) * 0.74);
    }

    60% {
        transform: translate3d(calc(var(--ember-drift, 0px) * 0.18), calc(var(--ember-rise-y, -720px) * 0.6), 0) scale(0.68);
        opacity: calc(var(--ember-opacity, 0.92) * 0.54);
    }

    75% {
        transform: translate3d(calc(var(--ember-drift, 0px) * -0.12), calc(var(--ember-rise-y, -720px) * 0.78), 0) scale(0.46);
        opacity: calc(var(--ember-opacity, 0.92) * 0.32);
    }

    90% {
        transform: translate3d(calc(var(--ember-drift, 0px) * 0.08), calc(var(--ember-rise-y, -720px) * 0.9), 0) scale(0.3);
        opacity: 0;
    }

    100% {
        transform: translate3d(calc(var(--ember-drift, 0px) * 0.04), var(--ember-rise-y, -720px), 0) scale(0.18);
        opacity: 0;
    }
}

@keyframes hypnoticPulse {
    0% {
        text-shadow: 0 0 0.3rem rgba(255, 255, 255, 0.2);
        opacity: 0.6;
    }

    50% {
        text-shadow: 0 0 1.3rem rgba(255, 255, 255, 0.9), 0 0 0.6rem rgba(255, 255, 255, 0.7);
        opacity: 1;
        color: #fff;
    }

    100% {
        text-shadow: 0 0 0.3rem rgba(255, 255, 255, 0.2);
        opacity: 0.6;
    }
}

/* Day Navigation in Slots Section */
.slots-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0 2rem;
    padding: 0;
    width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#slotsDayDisplay {
    font-size: clamp(1.1rem, 3.2vw, 1.45rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(var(--modal-design-text-rgb), 0.98);
    text-shadow: 0 1px 10px rgba(var(--calendar-glass-shadow-rgb), 0.24);
    text-align: center;
    flex-grow: 1;
    margin: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
}

