/**
 * Search Form Custom Styles
 * Styles for search form elements, debug block, and location button states
 */

.nannies-search-app-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .nannies-search-app-float-button-wrapper{
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 9px;
        z-index: 9999;
        backdrop-filter: blur(20px);
        background-color: rgba(253, 251, 252, 0.5);
    }
}

#nannies-search-app-root .min-h-screen{
    width: 100%!important;
}

#nannies-search-app-root .h-screen {
    width: 100%;
}

/* Sticky debug block for location suggestions */
.location-suggestions-debug-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border: 2px solid #FD006A;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.location-suggestions-debug-sticky .debug-header {
    background: #FD006A;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.location-suggestions-debug-sticky .debug-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.location-suggestions-debug-sticky .debug-close-btn:hover {
    opacity: 0.7;
}

.location-suggestions-debug-sticky .debug-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    overflow-y: auto;
    max-height: 450px;
}

.location-suggestions-debug-sticky .debug-content strong {
    display: block;
    margin-bottom: 8px;
    color: #FD006A;
    font-size: 12px;
}

.location-suggestions-debug-sticky .debug-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.location-suggestions-debug-sticky .debug-content .debug-info {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.location-suggestions-debug-sticky .debug-content .text-primary {
    color: #FD006A;
    font-weight: 600;
}

.location-suggestions-debug-sticky .debug-content .text-muted {
    color: #999;
}

.location-suggestions-debug-sticky .debug-content .text-danger {
    color: #dc3545;
}

.location-suggestions-debug-sticky .debug-content .badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 5px;
}

.location-suggestions-debug-sticky .debug-content .badge-info {
    background-color: #17a2b8;
    color: #fff;
}

.location-suggestions-debug-sticky .debug-content .badge-warning {
    background-color: #ffc107;
    color: #333;
}

.location-suggestions-debug-sticky .debug-content ul {
    margin: 0;
    padding-left: 0;
}

.location-suggestions-debug-sticky .debug-content ul li {
    margin-bottom: 4px;
    font-size: 11px;
}

.location-suggestions-debug-sticky .debug-content details {
    margin-top: 10px;
}

.location-suggestions-debug-sticky .debug-content details summary {
    cursor: pointer;
    color: #666;
    font-size: 10px;
    margin-bottom: 5px;
}

.location-suggestions-debug-sticky .debug-content details summary:hover {
    color: #FD006A;
}

.location-suggestions-debug-sticky .debug-content details pre {
    background: #f5f5f5;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 10px;
    overflow-x: auto;
}

@media (max-width: 991px) {
    .location-suggestions-debug-sticky {
        width: 300px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .location-suggestions-debug-sticky {
        width: calc(100% - 20px);
        max-width: 350px;
        bottom: 10px;
        right: 10px;
        left: auto;
    }
}

/* Green debugger for checkout page */
.checkout-search-debug-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border: 2px solid #28a745;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-search-debug-sticky .debug-header {
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.checkout-search-debug-sticky .debug-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.checkout-search-debug-sticky .debug-close-btn:hover {
    opacity: 0.7;
}

.checkout-search-debug-sticky .debug-content {
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    max-height: 450px;
}

.checkout-search-debug-sticky .debug-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-search-debug-sticky .debug-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

.checkout-search-debug-sticky .debug-section-header {
    background: #f5f5f5;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-search-debug-sticky .debug-section-title {
    color: #28a745;
    font-size: 13px;
    font-weight: 600;
    display: block;
}

.checkout-search-debug-sticky .debug-section-content {
    padding: 10px 12px;
    background: #fff;
}

.checkout-search-debug-sticky .debug-field {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.checkout-search-debug-sticky .debug-field:last-child {
    margin-bottom: 0;
}

.checkout-search-debug-sticky .debug-field label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
    flex-shrink: 0;
    font-size: 12px;
}

.checkout-search-debug-sticky .debug-field-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: space-between;
}

.checkout-search-debug-sticky .debug-field-value span {
    flex: 1;
    color: #333;
    word-break: break-word;
}

.checkout-search-debug-sticky .debug-field-edit {
    flex: 1;
}

.checkout-search-debug-sticky .debug-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #28a745;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    box-sizing: border-box;
}

.checkout-search-debug-sticky .debug-edit-btn {
    background: #28a745;
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.checkout-search-debug-sticky .debug-edit-btn:hover {
    background: #218838;
}

.checkout-search-debug-sticky .debug-edit-btn i {
    font-size: 11px;
}

.checkout-search-debug-sticky .debug-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.checkout-search-debug-sticky .debug-save-btn,
.checkout-search-debug-sticky .debug-cancel-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-search-debug-sticky .debug-save-btn {
    background: #28a745;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.checkout-search-debug-sticky .debug-save-btn:hover {
    background: #218838;
}

.checkout-search-debug-sticky .debug-cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.checkout-search-debug-sticky .debug-cancel-btn:hover {
    background: #e9e9e9;
}

.checkout-search-debug-sticky .debug-muted {
    color: #999;
    font-size: 11px;
}

@media (max-width: 991px) {
    .checkout-search-debug-sticky {
        width: 300px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .checkout-search-debug-sticky {
        width: calc(100% - 20px);
        max-width: 350px;
        bottom: 10px;
        right: 10px;
        left: auto;
    }
}

/* Left align all sidebar search form elements */
.st-results .sidebar-item.sidebar-search-form form .search-elements-group,
.st-results .sidebar-item.sidebar-search-form form .destination-search,
.st-results .sidebar-item.sidebar-search-form form .destination-search .st-form-dropdown-icon,
.st-results .sidebar-item.sidebar-search-form form .destination-search .st-form-dropdown-icon label,
.st-results .sidebar-item.sidebar-search-form form .destination-search .st-form-dropdown-icon .render,
.st-results .sidebar-item.sidebar-search-form form .location-suggestions-json,
.st-results .sidebar-item.sidebar-search-form form .location-suggestions-json strong,
.st-results .sidebar-item.sidebar-search-form form .location-suggestions-json pre,
.st-results .sidebar-item.sidebar-search-form form .form-group,
.st-results .sidebar-item.sidebar-search-form form .form-group label,
.st-results .sidebar-item.sidebar-search-form form .form-group .render,
.st-results .sidebar-item.sidebar-search-form form .col-md-12:last-child .btn,
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment,
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment .destination-search,
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment .st-form-dropdown-icon {
    text-align: left !important;
    justify-content: flex-start !important;
}

.st-results .sidebar-item.sidebar-search-form form .destination-search .form-group.d-flex {
    justify-content: flex-start !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-add-location-search {
    justify-content: center !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Make entire button area clickable */
.st-results .sidebar-item.sidebar-search-form form .search-add-location-search#add-location-search-btn {
    user-select: none;
    -webkit-user-select: none;
}

/* Add location button states */
.st-results .sidebar-item.sidebar-search-form form .search-add-location-search.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-add-location-search.disabled .add-location__button svg g#add {
    fill: #999999 !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-add-location-search.active {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-add-location-search.active .add-location__button svg g#add {
    fill: #000000 !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-add-location-search .add-location__text {
    transition: color 0.2s ease;
    pointer-events: none;
}

.st-results .sidebar-item.sidebar-search-form form .search-add-location-search .add-location__button {
    pointer-events: none;
}

/* Fix dropdown clipping in extra location segments */
.st-results .sidebar-item.sidebar-search-form form #search-extra-locations-container {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment {
    overflow: visible !important;
    position: relative !important;
    z-index: 0 !important;
}

/* Specific wrapper for extra location blocks */
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper {
    overflow: visible !important;
    position: relative !important;
    z-index: 0 !important;
}

.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .col-md-12{
    padding: 0!important;
}

/* Add proper padding for destination field in extra locations */
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .destination-search {
    padding: 20px 0 !important;
}

.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .field-detination{
    padding: 20px 0 !important;
    padding-left: 20px !important;
}

.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .field-detination .st-form-dropdown-icon {
    padding-left: 15px !important;
}

.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .search-filter-time{
    padding: 20px 0 !important;
    padding-left: 20px !important;
}


.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment .destination-search {
    overflow: visible !important;
    position: relative !important;
    z-index: 0 !important;
}

.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .destination-search {
    overflow: visible !important;
    position: relative !important;
    z-index: 1002 !important;
}

/* Ensure destination-search is positioned relative for dropdown positioning */
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment .destination-search,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .destination-search {
    position: relative !important;
}

.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .col-md-12 {
    position: relative !important;
    overflow: visible !important;
}

/* Dropdown styles for extra location segments - ensure Bootstrap can show/hide properly */
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment .search-extra-location-dropdown,
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment ul.dropdown-menu.st-scrollbar,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper ul.dropdown-menu.st-scrollbar,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .search-extra-location-dropdown,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .destination-search ul.dropdown-menu,
/* Also target cloned blocks */
.st-results .sidebar-item.sidebar-search-form form .extra-destination-block .destination-search ul.dropdown-menu,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .destination-search ul.dropdown-menu,
.st-results .sidebar-item.sidebar-search-form form .extra-destination-block .destination-search .suggested-locations-menu,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .destination-search .suggested-locations-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    max-height: min(300px, calc(100vh - 400px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    background: #fff !important;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
}

/* Show dropdown when Bootstrap adds 'show' class - CRITICAL for dropdown to work */
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment .search-extra-location-dropdown.show,
.st-results .sidebar-item.sidebar-search-form form .search-extra-location-segment ul.dropdown-menu.st-scrollbar.show,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper ul.dropdown-menu.st-scrollbar.show,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .search-extra-location-dropdown.show,
.st-results .sidebar-item.sidebar-search-form form .extra-location-date-wrapper .destination-search ul.dropdown-menu.show,
/* Also for cloned blocks */
.st-results .sidebar-item.sidebar-search-form form .extra-destination-block .destination-search ul.dropdown-menu.show,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .destination-search ul.dropdown-menu.show,
.st-results .sidebar-item.sidebar-search-form form .extra-destination-block .destination-search .suggested-locations-menu.show,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .destination-search .suggested-locations-menu.show {
    display: block !important;
    visibility: visible !important;
    z-index: 10000 !important;
}

/* Ensure parent containers don't clip dropdown */
.st-results .sidebar-item.sidebar-search-form form .col-md-12 {
    overflow: visible !important;
}

/* Styles for cloned destination blocks */
.st-results .sidebar-item.sidebar-search-form form .search-elements-group {
    position: relative !important;
    overflow: visible !important;
}

/* Raise active block above the next one so its dropdown isn't hidden */
.st-results .sidebar-item.sidebar-search-form form .search-elements-group:focus-within,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group .destination-search.show,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group .dropdown.show {
    z-index: 20000 !important;
}

/* Stack extra destination blocks so earlier ones are above later ones */
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group.extra-destination-block {
    z-index: 1000 !important;
}
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group.extra-destination-block:nth-of-type(1) { z-index: 1004 !important; }
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group.extra-destination-block:nth-of-type(2) { z-index: 1003 !important; }
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group.extra-destination-block:nth-of-type(3) { z-index: 1002 !important; }
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group.extra-destination-block:nth-of-type(4) { z-index: 1001 !important; }

.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block {
    position: relative !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    z-index: 0 !important;
}

/* Ensure destination-search in cloned blocks has proper z-index */
.st-results .sidebar-item.sidebar-search-form form .extra-destination-block .destination-search,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .destination-search {
    position: relative !important;
    z-index: 0 !important;
}

/* First destination dropdown - ensure it's above other elements */
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.filter-where-when-start .destination-search {
    position: relative !important;
    z-index: 10001 !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-elements-group.filter-where-when-start .destination-search ul.dropdown-menu,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.filter-where-when-start .destination-search .dropdown-menu {
    position: absolute !important;
    z-index: 10002 !important;
}

.st-results .sidebar-item.sidebar-search-form form .search-elements-group.filter-where-when-start .destination-search ul.dropdown-menu.show,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.filter-where-when-start .destination-search .dropdown-menu.show {
    z-index: 10002 !important;
}

/* Remove button for cloned destination blocks */
.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn,
.st-results .sidebar-item.sidebar-search-form form .extra-destination-block .remove-destination-btn,
.st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .remove-destination-btn {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background: #fff !important;
    border: 1px solid #5E6D77 !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure destination-search container allows button to be visible */
.st-results .sidebar-item.sidebar-search-form form .destination-search {
    position: relative !important;
    overflow: visible !important;
}

/* Ensure opened dropdown sits above neighboring fields */
.st-results .sidebar-item.sidebar-search-form form .destination-search.show,
.st-results .sidebar-item.sidebar-search-form form .destination-search.open,
.st-results .sidebar-item.sidebar-search-form form .destination-search .dropdown.show,
.st-results .sidebar-item.sidebar-search-form form .destination-search .dropdown-menu.show {
    z-index: 20000 !important;
}

.st-results .sidebar-item.sidebar-search-form {
    position: relative !important;
    overflow: visible !important;
}

/* Nanny location selector - lower z-index to not interfere with guest selector */
.st-results .sidebar-item.sidebar-search-form form .nanny-location-search {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

.st-results .sidebar-item.sidebar-search-form form .form-group .nanny-location-search {
    z-index: 1 !important;
}

/* Guest selector (children) - ensure it's visible above destination blocks */
.st-results .sidebar-item.sidebar-search-form form .field-guest {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

.st-results .sidebar-item.sidebar-search-form form .form-group.field-guest,
.st-results .sidebar-item.sidebar-search-form form .col-md-12 .field-guest {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

.st-results .sidebar-item.sidebar-search-form form .field-guest .dropdown-menu,
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu,
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-modern-style,
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-scrollbar {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    inset: auto !important;
    transform: none !important;
    z-index: 10000 !important;
    max-height: min(300px, calc(100vh - 400px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff !important;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    margin: 4px 0 0 0 !important;
}

.st-results .sidebar-item.sidebar-search-form form .field-guest .dropdown-menu:not(.show),
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu:not(.show),
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-modern-style:not(.show),
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-scrollbar:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.st-results .sidebar-item.sidebar-search-form form .field-guest .dropdown-menu.show,
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.show,
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-modern-style.show,
.st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-scrollbar.show {
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* Ensure parent containers don't interfere */
.st-results .sidebar-item.sidebar-search-form form .col-md-12 .field-guest,
.st-results .sidebar-item.sidebar-search-form form .form-group.field-guest {
    z-index: 1 !important;
}

/* Override mobile styles from custom-styles.css */
@media screen and (max-width: 991px) {
    .st-results .sidebar-item.sidebar-search-form form .field-guest {
        position: relative !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    .st-results .sidebar-item.sidebar-search-form form .field-guest .dropdown-menu:not(.show),
    .st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-modern-style:not(.show) {
        position: absolute !important;
        z-index: 10000 !important;
        display: none !important;
        visibility: hidden !important;
    }
    
    .st-results .sidebar-item.sidebar-search-form form .field-guest .dropdown-menu.show,
    .st-results .sidebar-item.sidebar-search-form form .field-guest ul.dropdown-menu.st-modern-style.show {
        position: absolute !important;
        z-index: 10000 !important;
        display: block !important;
        visibility: visible !important;
        top: 100% !important;
        bottom: auto !important;
        inset: auto !important;
        transform: none !important;
        max-height: min(250px, calc(100vh - 450px)) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

}

/* Ensure nanny location is below guest selector */
.st-results .sidebar-item.sidebar-search-form form .col-md-12 .nanny-location-search,
.st-results .sidebar-item.sidebar-search-form form .form-group .nanny-location-search {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

/* Sticky Search button for all users (logged in and not logged in) - override custom-styles.css */
/* Only modify the last col-md-12 (search button container) - don't break existing sidebar structure */
body:not(.logged-in) .st-results .sidebar-item.sidebar-search-form form .col-md-12:last-child,
.st-results .sidebar-item.sidebar-search-form form .col-md-12:last-child {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    z-index: 1000 !important;
    margin-top: auto !important;
}

 /* body:not(.logged-in) .st-results .sidebar-item.sidebar-search-form form .col-md-12:last-child .btn.btn-primary{
    max-width: 100%;
    width: 100%;
    margin: 0 16px;
    max-width: calc(100% - 32px) !important;
}

body .st-results .sidebar-item.sidebar-search-form form .col-md-12 .btn.btn-primary {
    max-width: 100%!important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    display: flex;
    justify-content: center !important;
} */

/* Ensure extra destination blocks allow button visibility */
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group {
    position: relative !important;
    overflow: visible !important;
}

.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn, .st-results .sidebar-item.sidebar-search-form form .extra-destination-block .remove-destination-btn, .st-results .sidebar-item.sidebar-search-form form .search-elements-group.extra-destination-block .remove-destination-btn:hover svg path{
    stroke: #5E6D77 !important;
}

/* Ensure datepicker calendar is above all dropdowns */
.st-results .sidebar-item.sidebar-search-form form .daterangepicker,
.st-results .sidebar-item.sidebar-search-form .daterangepicker,
body .daterangepicker {
    z-index: 1000000 !important;
    position: absolute !important;
}

/* Close location dropdowns when datepicker is open */
.st-results .sidebar-item.sidebar-search-form form .daterangepicker.show-calendar ~ .destination-search .dropdown-menu,
.st-results .sidebar-item.sidebar-search-form form .daterangepicker.show-calendar ~ * .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
}

.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn:hover {
    background: #FD006A !important;
    border-color: #FD006A !important;
    box-shadow: 0 2px 8px rgba(253, 0, 106, 0.3) !important;
    transform: scale(1.1) !important;
}

.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn:hover svg g,
.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn:hover svg path {
    stroke: #fff !important;
    fill: none !important;
}

.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn:hover svg {
    opacity: 1 !important;
    visibility: visible !important;
}

.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn svg {
    width: 9px;
    height: 9px;
    pointer-events: none;
}

.st-results .sidebar-item.sidebar-search-form form .remove-destination-btn svg g {
    stroke: #5E6D77;
    transition: stroke 0.2s ease;
}

.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Ensure cloned blocks don't have extra spacing */
.st-results .sidebar-item.sidebar-search-form form #extra-destinations-container .search-elements-group {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.st-results .sidebar-item.sidebar-search-form form .row {
    overflow: visible !important;
}

/* Ensure form and sidebar don't clip dropdown */
.st-results .sidebar-item.sidebar-search-form form {
    overflow: visible !important;
}

.st-results .sidebar-item.sidebar-search-form .search-form-wrapper {
    overflow: visible !important;
}

/* Ensure sidebar-item itself doesn't clip dropdown */
.st-results .sidebar-item.sidebar-search-form {
    overflow: visible !important;
}

/* Ensure all parent containers don't clip */
.st-results .sidebar-item {
    overflow: visible !important;
}

.st-results {
    overflow: visible !important;
}

/* Override overflow-y: auto for container with extra locations */
.st-results .sidebar-item.sidebar-search-form form > .col-md-12:not(:last-child) {
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Specifically for the container that holds extra locations */
.st-results .sidebar-item.sidebar-search-form form #search-extra-locations-container {
    overflow-y: visible !important;
    overflow-x: visible !important;
}


.search-filter-time{
    padding-left: 26px !important;
}

/* Style for today's date in datepicker - highlight with gray color (not pink) */
/* High specificity selectors with body prefix to override other styles */
body .daterangepicker .calendar-table td.today:not(.active):not(.start-date):not(.end-date):not(.in-range),
body .daterangepicker td.today:not(.active):not(.start-date):not(.end-date):not(.in-range),
body .st-results .sidebar-item.sidebar-search-form form .daterangepicker .calendar-table td.today:not(.active):not(.start-date):not(.end-date):not(.in-range),
body .st-results .sidebar-item.sidebar-search-form form .daterangepicker td.today:not(.active):not(.start-date):not(.end-date):not(.in-range) {
    background-color: #F5F5F5 !important;
    border: 1px solid #CCCCCC !important;
    border-color: #CCCCCC !important;
}

body .daterangepicker .calendar-table td.today:not(.active):not(.start-date):not(.end-date):not(.in-range) .date,
body .daterangepicker td.today:not(.active):not(.start-date):not(.end-date):not(.in-range) .date,
body .st-results .sidebar-item.sidebar-search-form form .daterangepicker .calendar-table td.today:not(.active):not(.start-date):not(.end-date):not(.in-range) .date,
body .st-results .sidebar-item.sidebar-search-form form .daterangepicker td.today:not(.active):not(.start-date):not(.end-date):not(.in-range) .date {
    color: #666666 !important;
    font-weight: 600 !important;
}

/* Override active/start-date/end-date styles for today when it's not selected */
body .daterangepicker td.today.available:not(.active):not(.start-date):not(.end-date):not(.in-range),
body .st-results .sidebar-item.sidebar-search-form form .daterangepicker td.today.available:not(.active):not(.start-date):not(.end-date):not(.in-range) {
    background-color: #F5F5F5 !important;
    border-color: #CCCCCC !important;
}

body .daterangepicker td.today.available:not(.active):not(.start-date):not(.end-date):not(.in-range) .date,
body .st-results .sidebar-item.sidebar-search-form form .daterangepicker td.today.available:not(.active):not(.start-date):not(.end-date):not(.in-range) .date {
    color: #666666 !important;
}



body .daterangepicker td.today.off.disabled.active.end-date{
    background-color: #999 !important;
    color: #fff !important;
}

/* Styles for suggested locations dropdown - simplified design */
.st-results .sidebar-item.sidebar-search-form form .suggested-locations-menu {
    padding: 4px 0 !important;
}

/* Divider between sections */
.st-results .sidebar-item.sidebar-search-form form .suggested-locations-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 12px !important;
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
}

/* Location items - simple and clean */
.st-results .sidebar-item.sidebar-search-form form .suggested-location-item {
    padding: 10px 16px !important;
    margin: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.st-results .sidebar-item.sidebar-search-form form .suggested-location-item:hover {
    background: #f5f5f5 !important;
}

.st-results .sidebar-item.sidebar-search-form form .suggested-location-item:active {
    background: #f5f5f5 !important;
}

.st-results .sidebar-item.sidebar-search-form form .suggested-location-name {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    flex: 1;
    transition: color 0.15s ease;
}

.st-results .sidebar-item.sidebar-search-form form .suggested-location-item:hover .suggested-location-name {
    color: #FD006A;
}

.st-results .sidebar-item.sidebar-search-form form .suggested-location-icon-flight {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 8px;
    transition: color 0.15s ease;
}

.st-results .sidebar-item.sidebar-search-form form .suggested-location-item:hover .suggested-location-icon-flight {
    color: #FD006A;
}

/* Empty state */
.st-results .sidebar-item.sidebar-search-form form .suggested-locations-menu .dropdown-item.text-center {
    padding: 24px 16px !important;
    color: #999 !important;
    font-size: 13px !important;
    text-align: center !important;
}

/* Loading state */
.st-results .sidebar-item.sidebar-search-form form .suggested-locations-menu .dropdown-item.text-center .text-muted {
    color: #999 !important;
    font-style: italic !important;
}



.st-results .sidebar-item.sidebar-search-form form .who-section{
    z-index: 99 !important;
}

/* Nannies React LocationPicker dropdown UX */
.nannies-location-picker {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

.nannies-location-picker .nannies-location-picker-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    max-height: min(360px, 50vh) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important; /* iOS smooth scrolling */
    overscroll-behavior: contain !important;      /* prevent parent scroll on overscroll */
    touch-action: pan-y !important;
}

/* Mobile: lower height to avoid keyboard overlap */
@media (max-width: 768px) {
    .nannies-location-picker .nannies-location-picker-dropdown {
        max-height: min(250px, 40vh) !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
}

/* Raise over adjacent dropdowns */
.st-results .sidebar-item.sidebar-search-form form .nannies-location-picker {
    z-index: 1002 !important;
}
