/*
###############################################################################################################################################################
SEARCH BAR
###############################################################################################################################################################
*/
:root {
    --SEARCH_SELECTOR_SIZE : 30px;
}

#search-bar {
	display: flex;
	justify-content: space-around;
	z-index: 6;
	width: fit-content;
	transition: all 0.3s ease;
	margin: 0 auto;
	position: relative;
    border-radius: var(--BUTTON_BORDER_RADIUS);
	background-color: var(--SEARCH_BAR_BACKGROUND_COLOR);
    isolation: isolate;
}

#search-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: var(--BUTTON_BORDER_RADIUS);
    background-color: var(--SEARCH_BAR_BACKGROUND_COLOR);
    -webkit-backdrop-filter: blur(45px) saturate(180%);
    backdrop-filter: blur(45px) saturate(180%);
}

#search-bar.select-open {
	border-radius: var(--BUTTON_BORDER_RADIUS) var(--BUTTON_BORDER_RADIUS) 0 0;
	box-shadow: none;
}

#search-bar h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--COLOR_SURFACE_90);
}

.controlbar-element {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0rem 1rem 0 1rem;
    color: var(--WHITE);
}

.separator {
    width: 1px;
	height: 50px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--COLOR_SURFACE_80) 20%,
        var(--COLOR_SURFACE_80) 40%,
        transparent
    );
    margin: 0 0.8rem;
}

#controlbar-where:hover, 
#controlbar-when:hover, 
#controlbar-who:hover, 
#controlbar-howmuch:hover {
    border-radius: var(--BUTTON_BORDER_RADIUS);
    box-shadow: 
        inset -4px -4px 8px rgba(255, 255, 255, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#controlbar-where.active, 
#controlbar-when.active, 
#controlbar-who.active, 
#controlbar-howmuch.active {
    border-radius: var(--BUTTON_BORDER_RADIUS);
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.2),
        inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.controlbar-label {
    letter-spacing: 0.02em;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.controlbar-label .text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.required:not(.filled)::after {
    content: '*';
    color: var(--REQUIRED_FIELD_COLOR);
    margin-left: 0px;
    font-size: 1.5em;
}

.controlbar-select {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1004;
    padding: 4%;
    width: 100%;
    background-color: var(--SEARCH_BAR_BACKGROUND_COLOR);
    border-radius: 0 0 var(--BUTTON_BORDER_RADIUS) var(--BUTTON_BORDER_RADIUS);
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    isolation: isolate;
    border-top: 1px solid;
    border-image: linear-gradient(
        to right,
        transparent,
        var(--COLOR_SURFACE_80) 20%,
        var(--COLOR_SURFACE_80) 80%,
        transparent
    ) 1;
}

.controlbar-select::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 0 0 var(--BUTTON_BORDER_RADIUS) var(--BUTTON_BORDER_RADIUS);
    background-color: var(--SEARCH_BAR_BACKGROUND_COLOR);
    -webkit-backdrop-filter: blur(45px) saturate(180%);
    backdrop-filter: blur(45px) saturate(180%);
}

.separator-select {
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--COLOR_SURFACE_80) 20%,
        var(--COLOR_SURFACE_80) 80%,
        transparent
    );
    margin: 0 2rem;
}

.controlbar-select input {
    font-size: 0.95rem;
    border-radius: var(--BUTTON_BORDER_RADIUS);
    text-align: center;
}

.controlbar-select input::-webkit-calendar-picker-indicator {
    background: transparent;
}


.where-container, .when-container, .who-container, .howmuch-container {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

/*
###############################################################################################################################################################
ERROR MESSAGE REQUIRED
###############################################################################################################################################################
*/

.search-bar-error-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1000px;
    margin: -10px auto 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
    height: 0;
}

.search-bar-error-message {
    position: relative;
    background: linear-gradient(145deg, #ff5252, #d44444);
    color: white;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.25),
        -2px -2px 6px rgba(255, 255, 255, 0.1),
        inset 4px 4px 8px rgba(255, 255, 255, 0.2),
        inset -4px -4px 8px rgba(0, 0, 0, 0.2);
    transform-origin: top center;
    animation: errorBubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    min-width: 180px;
    max-width: 250px;
    margin: 0 15px;
}

.search-bar-error-message::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1rem;
}

.search-bar-error-message::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ff5252;
}

/* Positioning of the arrows for each field */
#error-where {
    position: absolute;
    left: 110px;
    pointer-events: auto;
    margin: 0;
}

#error-when {
    position: absolute;
    left: 340px;
    pointer-events: auto;
    margin: 0;
}

@keyframes errorBubblePop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-5px);
    }
    70% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/*
###############################################################################################################################################################
ICON
###############################################################################################################################################################
*/

.searchbar-icon {
    width: 37px;
    height: 37px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

/*
###############################################################################################################################################################
AIM
###############################################################################################################################################################
*/

.controlbar-aim {
    font-size: 0.75rem;
    text-align: center;
}

.controlbar-aim-margin {
    margin: 0 auto 25px auto;
}

/*
###############################################################################################################################################################
GEOCODER INPUT
###############################################################################################################################################################
*/

.geocoder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.geocoder-map {
    border-radius: var(--BUTTON_BORDER_RADIUS);
    overflow: hidden;
    width: 75%;
    aspect-ratio: 1/1;  /* same height as width */
    margin: 0 auto; /* Center the map */
}

.mapboxgl-canvas {
    height: 100% !important;
    width: 100% !important;
}

.mapboxgl-ctrl-geocoder.active {
    background: linear-gradient(145deg, var(--COLOR_ACTION_50), var(--COLOR_ACTION_60));
    border: 2px solid var(--COLOR_ACTION_70);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.mapboxgl-ctrl-geocoder.active .mapboxgl-ctrl-geocoder--input {
    color: var(--WHITE) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mapboxgl-ctrl-geocoder.active .mapboxgl-ctrl-geocoder--input::placeholder {
    color: var(--WHITE);
    opacity: 0.8;
}

.mapboxgl-ctrl-geocoder.active .mapboxgl-ctrl-geocoder--button {
    color: var(--WHITE) !important;
}

.mapboxgl-ctrl-geocoder.active .mapboxgl-ctrl-geocoder--button svg {
    fill: var(--WHITE) !important;
}

/*
###############################################################################################################################################################
RANGE INPUT
###############################################################################################################################################################
*/

.range-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: var(--RANGE_CONTAINER_WIDTH);
    gap: 1rem;
}

.range-item-container {
    width: 90%;
}

.range-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    width: var(--RANGE_CONTAINER_WIDTH);
    justify-content: center;
}

.range-plus, .range-minus {
    cursor: pointer;
    color: white;
    width: var(--SEARCH_SELECTOR_SIZE);
    height: var(--SEARCH_SELECTOR_SIZE);
    font-size: 1.5rem;
    line-height: 1.1;
    text-align: center;
    border-radius: 50%;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.1),
        inset -4px -4px 6px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
    background-color: var(--COLOR_ACTION_50);
    user-select: none;
    flex-shrink: 0;
}

.range-plus {
    line-height: 1.2 !important;
}

.range-plus:active, .range-minus:active {
    box-shadow: 
        inset 6px 6px 12px rgba(0, 0, 0, 0.5),
        inset -6px -6px 12px rgba(255, 255, 255, 0.1);
    transform: translateY(2px);
}

.range-plus:hover, .range-minus:hover {
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.35),
        -6px -6px 12px rgba(255, 255, 255, 0.15),
        inset -6px -6px 8px rgba(0, 0, 0, 0.25),
        inset 3px 3px 6px rgba(255, 255, 255, 0.25);
}

.range-value {
	font-size: 1.2rem;
	font-weight: bold;
    color: var(--COLOR_SURFACE_90);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: var(--RANGE_CONTAINER_WIDTH);
    height: 15px;
    border-radius: 10px;
    outline: none;
    box-shadow: var(--NEUMORPHISM_BOX_SHADOW);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--SEARCH_SELECTOR_SIZE);
    height: var(--SEARCH_SELECTOR_SIZE);
    background: var(--COLOR_ACTION_50);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.1),
        inset -4px -4px 6px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    width: var(--RANGE_CONTAINER_WIDTH);
    margin: 4px auto;
    color: var(--COLOR_SURFACE_80);
}

/*
###############################################################################################################################################################
DATE PICKER & DAILY SCHEDULE
###############################################################################################################################################################
*/

.when-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
}

.date-picker-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

#date-range0 {
	display: none;
}

#date-range1 .date-picker-wrapper {
    all: unset;
    position: relative!important;
    z-index: 9099!important;
    width: fit-content!important;
    height: fit-content!important;
    display: block!important;
}

.daily-schedule-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--COLOR_SURFACE_40);
    padding-top: 2rem;
}

.daily-schedules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 100%;
    margin-top: 1.5rem;
}

.daily-schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem;
    width: 100%;
    border-radius: var(--BUTTON_BORDER_RADIUS);
    box-shadow: var(--NEUMORPHISM_BOX_SHADOW);
}

.daily-schedule-date {
    font-weight: bold;
    color: var(--COLOR_SURFACE_90);
    margin-left: 15px;
}

.daily-schedule-separator {
    width: 1px;
	height: 50px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--COLOR_SURFACE_80) 20%,
        var(--COLOR_SURFACE_80) 80%,
        transparent
    );
    margin: 0 0.8rem;
}

.daily-schedule-times {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-input-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.time-input-container .arrow-down {
    position: absolute;
    right: 17px;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.time-input {
    width: 100px !important;
    padding: 0.3rem;
    border: 1px solid var(--COLOR_SURFACE_30) !important;
    font-size: 0.9rem;
    color: var(--COLOR_SURFACE_80);
    box-shadow: var(--NEUMORPHISM_BOX_SHADOW);
    appearance: none;   /* Remove native time picker arrow */
    -webkit-appearance: none;
}

.time-separator {
    font-weight: bold;
    color: var(--COLOR_SURFACE_80);
}

.default-message {
    text-align: center;
    font-style: italic;
    color: var(--COLOR_SURFACE_60);
}

.date-picker-wrapper .month-wrapper table .day.toMonth.invalid {
    color: var(--COLOR_SURFACE_70) !important;
    cursor: unset;
  }

.date-picker-wrapper .month-wrapper {
  padding: 0px;
}

/*
###############################################################################################################################################################
TRAVELERS INPUT
###############################################################################################################################################################
*/

.travelers-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 95%;
}

.travelers-number-container-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.travelers-number-separator {
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--COLOR_SURFACE_80) 20%,
        var(--COLOR_SURFACE_80) 80%,
        transparent
    );
    margin: 0 0.8rem;
}

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

.travelers-number-column h3 {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--COLOR_SURFACE_90);
}

.travelers-number-column .qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty .travelers-count {
    display: inline-block;
    vertical-align: top;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 30px;
    padding: 0 2px
    ;min-width: 35px;
    text-align: center;
    color: var(--COLOR_SURFACE_90);
}

.qty .plus {
    cursor: pointer;
    color: white;
    width: var(--SEARCH_SELECTOR_SIZE);
    height: var(--SEARCH_SELECTOR_SIZE);
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: center;
    border-radius: 50%;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.1),
        inset -4px -4px 6px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    transition: box-shadow 0.2s ease-in-out;
    background-color: var(--COLOR_ACTION_50);
}

.qty .plus:active {
    box-shadow: 
        inset 6px 6px 12px rgba(0, 0, 0, 0.5),
        inset -6px -6px 12px rgba(255, 255, 255, 0.1);
    transform: translateY(2px);
}

.qty .minus {
    cursor: pointer;
    color: white;
    width: var(--SEARCH_SELECTOR_SIZE);
    height: var(--SEARCH_SELECTOR_SIZE);
    font-size: 1.5rem;
    line-height: 1.1;
    text-align: center;
    border-radius: 50%;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.1),
        inset -4px -4px 6px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    transition: box-shadow 0.2s ease-in-out;
    background-clip: padding-box;
    background-color: var(--COLOR_ACTION_50);
}

.qty .minus:active {
    box-shadow: 
        inset 6px 6px 12px rgba(0, 0, 0, 0.5),
        inset -6px -6px 12px rgba(255, 255, 255, 0.1);
    transform: translateY(2px);
}

.specific-needs-separator {
    height: 1px;
    width: 100%;
    background: linear-gradient(
        to right,
        transparent,
        var(--COLOR_SURFACE_80) 20%,
        var(--COLOR_SURFACE_80) 80%,
        transparent
    );
    margin: 1rem 0;
}

.specific-needs-item {
    margin: 1.5rem 0;
}

.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: .4s;
    margin-right: 10px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .toggle-slider {
    background-color: var(--COLOR_ACTION_50);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 14px;
    color: var(--COLOR_SURFACE_90);
}

.travelers-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.travelers-profile-item {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.4rem;
    gap: 0.7rem;
    border: 1px solid transparent;
    border-radius: var(--BUTTON_BORDER_RADIUS);
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 2px 2px 5px rgba(0,0,0,0.1); */
    box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.25),
    -8px -8px 16px rgba(255, 255, 255, 0.1),
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px rgba(255, 255, 255, 0.15);
}

.travelers-profile-item:hover {
    border-color: var(--COLOR_ACTION_50);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.travelers-profile-item input[type="range"] {
    width: 140px;
}

/*
###############################################################################################################################################################
BUDGET INPUT
###############################################################################################################################################################
*/

.budget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.budget-bubbles {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    padding: 20px;
    width: var(--RANGE_CONTAINER_WIDTH);
}

.budget-bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--COLOR_SURFACE_30);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.25),
        -8px -8px 16px rgba(255, 255, 255, 0.1),
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.15);
    color: var(--COLOR_SURFACE_90);
    position: relative;
}

.budget-bubble:hover {
    transform: scale(1.05);
    box-shadow: 
        12px 12px 20px rgba(0, 0, 0, 0.3),
        -12px -12px 20px rgba(255, 255, 255, 0.1),
        inset 6px 6px 12px rgba(0, 0, 0, 0.35),
        inset -6px -6px 12px rgba(255, 255, 255, 0.2);
    border-color: var(--COLOR_ACTION_50);
}

.budget-bubble:active {
    transform: scale(0.95);
    box-shadow: var(--NEUMORPHISM_BOX_SHADOW);
}

.budget-bubble.active {
    /* background: linear-gradient(145deg, var(--COLOR_ACTION_50), var(--COLOR_ACTION_60)); */
    color: var(--COLOR_SURFACE_90);
    border: 2px solid var(--COLOR_ACTION_70);
    transform: scale(1.05);
    box-shadow: 
        0 0 15px var(--COLOR_ACTION_50),
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.2);
}

.budget-bubble.active .bubble-amount,
.budget-bubble.active .bubble-label {
    color: var(--COLOR_SURFACE_90);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bubble-amount {
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.1rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bubble-label {
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    padding: 0 8px;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 
            8px 8px 16px rgba(0, 0, 0, 0.25),
            -8px -8px 16px rgba(255, 255, 255, 0.1),
            inset 6px 6px 12px rgba(0, 0, 0, 0.35),
            inset -6px -6px 12px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            12px 12px 24px rgba(0, 0, 0, 0.3),
            -12px -12px 24px rgba(255, 255, 255, 0.15),
            inset 8px 8px 16px rgba(0, 0, 0, 0.4),
            inset -8px -8px 16px rgba(255, 255, 255, 0.25);
    }
    100% {
        box-shadow: 
            8px 8px 16px rgba(0, 0, 0, 0.25),
            -8px -8px 16px rgba(255, 255, 255, 0.1),
            inset 6px 6px 12px rgba(0, 0, 0, 0.35),
            inset -6px -6px 12px rgba(255, 255, 255, 0.2);
    }
}

.budget-bubble:hover {
    animation: pulseGlow 2s infinite;
}

/*
###############################################################################################################################################################
SEARCHBAR BUTTONS
###############################################################################################################################################################
*/

#controlbar-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

#form-find-icon {
	width: 15px;
	margin-right: 5px;
	fill: white;
}

#find_button {
	font-weight: 600;
	letter-spacing: 0.07em;
	font-size: 1rem;
	/* box-shadow: 
		8px 8px 16px rgba(0, 0, 0, 0.25),
		-8px -8px 16px rgba(255, 255, 255, 0.15),
		inset 4px 4px 8px rgba(255, 255, 255, 0.2),
		inset -4px -4px 8px rgba(0, 0, 0, 0.2);
	transform: translateY(0);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

/* #find_button:hover {
	box-shadow: 
		inset 4px 4px 8px rgba(0, 0, 0, 0.2),
		inset -4px -4px 8px rgba(255, 255, 255, 0.1);
	transform: scale(0.98);
	animation: glowPulse 3s 1;
} */

@keyframes glowPulse {
	0% {
		box-shadow: 
			4px 4px 8px rgba(0, 0, 0, 0.4),
			-4px -4px 8px rgba(255, 255, 255, 0.2),
			0px 0px 20px 6px rgba(255, 255, 255, 0.35);
	}
	50% {
		box-shadow: 
			4px 4px 8px rgba(0, 0, 0, 0.4),
			-4px -4px 8px rgba(255, 255, 255, 0.2),
			0px 0px 45px 20px rgba(255, 255, 255, 0.65);
	}
	100% {
		box-shadow: 
			4px 4px 8px rgba(0, 0, 0, 0.4),
			-4px -4px 8px rgba(255, 255, 255, 0.2),
			0px 0px 20px 6px rgba(255, 255, 255, 0.35);
	}
}

.auto-pulse {
    animation: glowPulse 3s 1;
}

.apply-btn {
	display: none;
}

/* Chevrons only for the mobile version */
.mobile-chevron {
    display: none;
}

/*
###############################################################################################################################################################
RESPONSIVE
###############################################################################################################################################################
*/

@media screen and (max-width: 896px) {

    #search-bar {
        display: flex;
        flex-direction: column;
        width: 100%;
        top: 0;
        overflow-y: auto;
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        z-index: 10;
    }

    #search-bar::before {
        content: none;
    }

    .controlbar-element {
        padding: 0.8rem;
        color: var(--WHITE);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #controlbar-where:hover, 
    #controlbar-when:hover, 
    #controlbar-who:hover, 
    #controlbar-howmuch:hover {
        border-radius: 0 !important;
    }

    #controlbar-where.active, 
    #controlbar-when.active, 
    #controlbar-who.active, 
    #controlbar-howmuch.active {
        border-radius: 0 !important;
    }

    .controlbar-label {
        display: flex;
        align-items: center;
        width: 80%;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        max-width: none;
        font-size: 1.0rem;
    }

    .controlbar-label .text {
        margin: 0 15px;
        max-width: calc(100% - 60px);
    }

    .searchbar-icon {
        width: 30px;
        height: 30px;
        margin-right: 0;
        flex-shrink: 0;
    }

    .mobile-chevron {
        display: inline-block;
        margin-left: 0;
        color: var(--WHITE);
        font-size: 0.8rem;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        fill: var(--COLOR_ACTION_50);
    }

    .controlbar-element.active .mobile-chevron {
        transform: rotate(180deg);
    }

    .controlbar-select {
        position: static;
        left: 0;
        width: 100%;
        max-height: none;
        padding: 1.5rem;
        box-shadow: none;
        background-image: none !important;
        background-color: transparent !important;
    }
    
    #controlbar-when .controlbar-select {
        padding-right: 0;
        padding-left: 0;
    }

    .controlbar-select::before {
        content: none !important;
    }

    .search-bar .separator, #who-separator-select {
        width: 90%;
        height: 1px;
        /* margin: 7px 0 7px 0; */
        background: linear-gradient(
            to right,
            transparent,
            var(--COLOR_SURFACE_80) 30%,
            var(--COLOR_SURFACE_80) 70%,
            transparent
        );
    }

    #controlbar-buttons {
        width: 100%;
        padding: 0.5rem 0;
    }

    .where-container, .when-container, .who-container, .howmuch-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .geocoder-container {
        gap: 1rem;
    }

    .daily-schedule-container {
        padding-top: 1rem;
    }

    .daily-schedules {
        margin-top: 1rem;
    }

    .daily-schedule-item {
        gap: 0.3rem;
        padding: 0.2rem;
    }

    .daily-schedule-times {
        gap: 0.5rem;
    }

    .daily-schedule-date, .time-separator, .controlbar-select input {
        font-size: 0.75rem;
    }

    .travelers-number-container-row {
        gap: unset;
    }

    .travelers-number-container {
        gap: 1rem;
    }

    .travelers-profile {
        gap: 1rem;
    }

    .budget-container {
        gap: 1rem;
    }

    #budget-title {
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .budget-bubbles {
        flex-direction: column;
        gap: 1rem;
        width: 200px;
        padding: 10px;
    }
    
    .budget-bubble {
        width: 100%;
        height: auto;
        border-radius: var(--BUTTON_BORDER_RADIUS);
        padding: 4px;
        flex-direction: row;
        justify-content: center;
    }
    
    .bubble-amount {
        font-size: 1.1em;
        margin-bottom: 0;
        margin-right: 10px;
    }

    .budget-bubble.active::after {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    .required:not(.filled)::after {
        content: none;
    }

    .search-bar-error-container {
        position: relative;
        height: auto;
        flex-direction: column;
        align-items: center;
        margin: 10px auto;
    }
    
    #error-where, #error-when {
        position: static;
        width: 80%;
        max-width: none;
        margin: 8px 0;
    }
    
    .search-bar-error-message::after {
        display: none;
    }
}

@media screen and (max-width: 626px) {
    #search-bar h2, .range-value, .range-labels, .travelers-number-column h3, .qty .travelers-count, .travelers-profile-item label, .bubble-amount, .bubble-label, #find_button {
        font-size: 1rem;
    }

    .range-item-container {
        width: 80%;
    }

    .range-controls {
        gap: 10px;
    }

    .range-plus, .range-minus {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .qty .minus, .qty .plus {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .toggle-label {
        font-size: 0.7rem;
        color: var(--COLOR_SURFACE_90);
    }

    .specific-needs-item {
        margin: 0.8rem 0;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 25px;
        height: 25px;
    }

    .travelers-profile-item {
        /* padding: 0.3rem 0.4rem; */
    }

    /* .travelers-profile-item input[type="checkbox"] {
        width: 15px;
        height: 15px;
    } */

    #controlbar-buttons {
        padding: 0rem 0;
    }
}


@media screen and (max-width: 480px) {
    .controlbar-label {
        font-size: 1.0rem;
    }
}