/* Header Search Styling */
#header-postcode-search {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    flex: 0 0 auto;
    position: relative;
    z-index: 1000;
}



#header-postcode-search.show-search {
    opacity: 1;
    visibility: visible;
}

/* Card-like styling for the search box */
.header-search-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: auto;
}

.header-search-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-card-label {
    color: #006838;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.search-input-wrapper {
    flex: 1;
}

.search-card-footer {
    color: #666;
    font-size: 11px;
    margin-top: 4px;
    text-align: center;
    font-style: italic;
}

/* Custom styling for the search box input and button */
#header-postcode-search .input-group {
    border: 2px solid #006838;
    border-radius: 4px;
    overflow: hidden;
}

#header-postcode-search .form-control {
    border-radius: 0;
    font-size: 14px;
    padding-left: 12px;
    color: #006838;
    background-color: white;
}

#header-postcode-search .form-control::placeholder {
    color: #006838;
    opacity: 0.8;
}

#header-postcode-search .btn {
    border-radius: 0;
    padding: 6px 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Ensure proper spacing in the navbar */
.navbar-nav {
    margin-left: 0 !important;
}

/* Make the navbar more flexible */
.navbar {
    justify-content: space-between !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #header-postcode-search {
        display: none !important;
    }
}

/* Fix for Ideal Postcodes autocomplete dropdown */
.idpc_autocomplete {
    position: relative !important;
    z-index: 9999 !important;

}

.idpc_toolbar {
    z-index: 1 !important;
}

.idpc_error {
    z-index: 1 !important;
}

.idpc_autocomplete > ul {
    position: absolute !important;
    z-index: 99999 !important; /* Very high z-index to ensure it's above everything */
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    max-height: 300px !important;
    overflow-y: visible !important;
    min-width: 350px !important; /* Make dropdown significantly wider than the input */
    left: -50px !important; /* Offset to center the wider dropdown */
    width: auto !important;
}

.idpc_autocomplete > ul > li {
    padding: 8px 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.idpc_autocomplete > ul > li:hover {
    background-color: #f8f9fa !important;
}

.idpc_autocomplete > ul > li[aria-selected="true"] {
    background-color: #006838 !important;
    color: white !important;
}

.idpc-dropdown, .idpc-dropdown-container {
    z-index: 99999 !important;
    position: absolute !important;
  }

/* Fix button positioning */
#header-postcode-search .input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#header-postcode-search .input-group .form-control {
    width: 160px;
    height: 38px;
    flex: 0 0 auto;
}

#header-postcode-search .input-group .btn {
    flex: 0 0 auto;
}


.owl-carousel,
.owl-carousel .owl-stage-outer {
  overflow: visible !important;
}

.owl-carousel .owl-stage {
  overflow: visible !important;
}