.qodef-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.qodef-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #4a8ec2;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background-color 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.qodef-stepper-btn:hover {
    background-color: #f5f5f5;
}

.qodef-stepper-btn:disabled {
    color: #ccc;
    cursor: default;
    background: transparent;
}

.qodef-stepper-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    width: 100%;
    height: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: center;
    user-select: none;
}

.qodef-m-field-person.qodef-e {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qodef-m-field.qodef--room-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =======================================================================
 * Filters dropdown panel
 * ======================================================================= */

.qodef-m-field.qodef--filters {
    position: relative;
}

/* min-width per tutti i panel dropdown (filtri + ospiti) */
.qodef-m-field-persons,
.qodef-m-field-filters {
    min-width: 300px;
}

.qodef-m-field.qodef--filters .qodef-m-field-filters {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: block;
    padding: 20px;
    background-color: #faf9f5;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-top-width: 0;
    visibility: hidden;
    z-index: -1;
    opacity: 0;
    transition: 0.35s ease-out;
}

.qodef-m-field.qodef--filters .qodef-m-field-filters.qodef--above {
    top: auto;
    bottom: calc(100% - 24px);
    border-top-width: 1px;
    border-bottom-width: 0;
}

.qodef-m-field.qodef--filters .qodef-m-field-filters.qodef--opened {
    visibility: visible;
    z-index: 999;
    opacity: 1;
}

/* Horizontal layout offset (matches guests panel) */
.qodef-room-reservation-filter.qodef-layout--horizontal .qodef-m-form .qodef-m-field.qodef--filters .qodef-m-field-filters {
    left: 12px;
    width: calc(100% - 24px);
}

/* Global: normalize form typography from Elementor kit globals (with fallback) */
.qodef-room-reservation-filter .qodef-m-form {
    font-family: var(--e-global-typography-text-font-family, "Raleway"), sans-serif;
    font-weight: var(--e-global-typography-text-font-weight, 400);
    font-size: var(--e-global-typography-text-font-size, 18px);
    line-height: var(--e-global-typography-text-line-height, 23px);
}

/* Global: compact padding on text inputs */
.qodef-room-reservation-filter input[type=email],
.qodef-room-reservation-filter input[type=number],
.qodef-room-reservation-filter input[type=password],
.qodef-room-reservation-filter input[type=search],
.qodef-room-reservation-filter input[type=tel],
.qodef-room-reservation-filter input[type=text],
.qodef-room-reservation-filter input[type=url],
.qodef-room-reservation-filter textarea {
    padding: 8px 10px;
}

/* Global: kill letter-spacing and margin-bottom on all form labels */
.qodef-room-reservation-filter .qodef-m-form .qodef-m-field label {
    letter-spacing: 0;
    margin-bottom: 0;
}

.qodef-room-reservation-filter .qodef-m-form button[type="submit"] {
    letter-spacing: 0 !important;
}

/* Filter sections */
.qodef-m-filter-section {
    margin-bottom: 16px;
}

.qodef-m-filter-label {
    margin-bottom: 10px;
    color: #000;
}

/* Doubles label: description small + text on new line */
.qodef-m-field-filters .qodef-e-label {
    display: flex;
    flex-direction: column;
}

.qodef-m-field-filters .qodef-e-label-description {
    display: block;
    font-size: 11px;
    line-height: 1;
}

.qodef-m-field-filters .qodef-e-label-text {
    display: block;
}

/* Location row: inline label + select */
.qodef-m-filter-section.qodef--location {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qodef-m-filter-section.qodef--location .qodef-m-filter-label {
    margin-bottom: 0;
    flex-shrink: 0;
    margin-right: 12px;
}

/* Location select */
.qodef-m-filter-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

/* Hide "Done" buttons inside dropdown panels */
.qodef-m-field-persons .qodef--button,
.qodef-m-field-filters .qodef--button,
.qodef-m-field-person.qodef--button {
    display: none !important;
}

/* Doubles stepper row inside filters panel */
.qodef-m-filter-section.qodef--doubles .qodef-m-field-person {
    margin-bottom: 0;
}

/* Quote button */
.qodef-m-field.qodef--quote {
    position: relative;
    margin-top: 10px;
}

.qodef-room-quote-btn.qodef--loading {
    opacity: 0.5;
    pointer-events: none;
}

.qodef-m-spinner.qodef--quote-spinner {
    display: none;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    animation: qodef-spin 1s linear infinite;
}

.qodef-m-spinner.qodef--quote-spinner.qodef--show {
    display: block;
}

@keyframes qodef-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
