.app-search-card {
    border: 1px solid #dce6ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(19, 48, 74, 0.08);
    overflow: visible;
}

.app-search-card .card-body {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    overflow: visible;
}

.app-search-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(155px, 0.8fr) minmax(270px, 1.7fr) minmax(215px, 1.05fr);
    gap: 14px;
    align-items: end;
}

.app-search-field-destination {
    display: none;
}

.app-search-field,
.app-search-field-wide {
    grid-column: auto;
    min-width: 0;
}

.app-search-grid > .app-search-field:nth-child(2) {
    grid-column: 1;
}

.app-search-grid > .app-search-field:nth-child(3) {
    grid-column: 2;
}

.app-search-grid > .app-search-field:nth-child(4) {
    grid-column: 3;
}

.app-search-label,
.app-search-label-sm {
    display: block;
    margin-bottom: 7px;
    color: #6d7f91;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-search-label-sm {
    margin-bottom: 5px;
    font-size: 10px;
}

.app-search-select,
.app-search-guest-trigger {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8e2eb;
    border-radius: 5px;
    background: #f8fbfd;
    color: #21384d;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.app-search-select {
    padding: 0 16px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #5c7286 50%), linear-gradient(135deg, #5c7286 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.app-search-select:focus,
.app-search-guest-trigger:focus {
    outline: none;
    border-color: #a9c4dc;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 94, 164, 0.08);
}

.app-search-guests-wrap {
    position: relative;
}

.app-search-guest-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    text-align: left;
    cursor: pointer;
}

.app-search-guest-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e7f1f8;
    color: #0d6efd;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.app-search-guest-trigger[aria-expanded="true"] .app-search-guest-arrow {
    transform: rotate(45deg);
}

.app-search-guest-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 18px;
    border: 1px solid #d7e2eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(16, 48, 78, 0.16);
}

.app-search-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf3f8;
}

.app-search-guest-row strong {
    display: block;
    color: #17324d;
    font-size: 14px;
}

.app-search-guest-row p {
    margin: 4px 0 0;
    color: #6c8398;
    font-size: 12px;
}

.app-search-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-search-stepper-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d0dde8;
    border-radius: 10px;
    background: #f5f9fc;
    color: #17324d;
    font-size: 22px;
    line-height: 1;
}

.app-search-stepper-value {
    min-width: 22px;
    text-align: center;
    color: #17324d;
    font-size: 15px;
    font-weight: 700;
}

.app-search-children-ages {
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.app-search-age-row[hidden] {
    display: none;
}

.app-search-age-select {
    min-height: 46px;
    border-radius: 14px;
}

.app-search-actions {
    display: flex;
    align-items: flex-end;
    margin-top: 0;
    flex: 0 0 auto;
}

.app-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.app-search-submit:disabled {
    opacity: 0.7;
}

.app-search-submit-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.app-search-submit-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1199px) {
    .app-search-card .card-body {
        flex-direction: column;
        align-items: stretch;
    }

    .app-search-grid {
        width: 100%;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .app-search-grid > .app-search-field:nth-child(2) {
        grid-column: 1;
    }

    .app-search-grid > .app-search-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .app-search-grid > .app-search-field:nth-child(4) {
        grid-column: 2;
    }

    .app-search-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .app-search-card {
        display: block !important;
        width: 100%;
        max-width: 100%;
    }

    .app-search-card {
        border-radius: 18px;
    }

    .app-search-card .card-body {
        display: block;
        gap: 12px;
        padding: 1rem !important;
    }

    .app-search-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .app-search-grid > .app-search-field:nth-child(2) {
        grid-column: 1 / -1;
    }

    .app-search-grid > .app-search-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .app-search-grid > .app-search-field:nth-child(4) {
        grid-column: 1 / -1;
    }

    .app-search-select,
    .app-search-guest-trigger,
    .app-search-submit {
        min-height: 50px;
    }

    .app-search-actions {
        justify-content: stretch;
    }

    .app-search-submit {
        width: 100%;
    }

    .app-search-guest-panel {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        margin-top: 10px;
        padding: 14px;
        border-radius: 16px;
        box-shadow: 0 8px 18px rgba(16, 48, 78, 0.1);
    }

    .app-search-guest-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 479px) {
    .app-search-grid > .app-search-field:nth-child(2),
    .app-search-grid > .app-search-field:nth-child(3),
    .app-search-grid > .app-search-field:nth-child(4) {
        grid-column: 1;
    }
}