/* Danish Jobs Ajax Search Styles */

.danish-search-wrapper {
    position: relative;
    width: 100% !important;
    display: block !important;
}

/* Maintain original field styling */
.elementor-field-group.danish-search-wrapper {
    display: flex !important;
}

.elementor-field-group.danish-search-wrapper .elementor-field {
    width: 100% !important;
}

.danish-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: -1px;
}

.danish-dropdown.active {
    display: block;
}

.danish-dropdown-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.danish-dropdown-item:last-child {
    border-bottom: none;
}

.danish-dropdown-item:hover {
    background-color: #f8f9fa;
}

.danish-dropdown-item.selected {
    background-color: #e3f2fd;
}

/* Job Item Styles */
.danish-job-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.danish-job-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.danish-job-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.danish-job-content {
    flex: 1;
    min-width: 0;
}

.danish-job-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.danish-job-location {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.danish-job-location svg {
    width: 14px;
    height: 14px;
    fill: #95a5a6;
}

/* Location Item Styles */
.danish-location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.danish-location-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.danish-location-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.danish-location-content {
    flex: 1;
    min-width: 0;
}

.danish-location-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.danish-location-count {
    font-size: 13px;
    color: #7f8c8d;
}

/* Loading State */
.danish-dropdown-loading {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

.danish-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: danish-spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes danish-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.danish-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* Input Focus State */
.elementor-field.danish-search-active {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Scrollbar Styles */
.danish-dropdown::-webkit-scrollbar {
    width: 8px;
}

.danish-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.danish-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.danish-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.page-id-11 .elementor-field-group.elementor-col-33 {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
}
.page-id-11 .elementor-form .elementor-form-fields-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-bottom: 0px !important;
}

.page-id-11 .elementor-field, .elementor-button {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .danish-dropdown {
        max-height: 300px;
    }
    
    .danish-dropdown-item {
        padding: 12px 14px;
    }
    
    .danish-job-icon,
    .danish-location-icon {
        width: 36px;
        height: 36px;
    }
    
    .danish-job-title,
    .danish-location-name {
        font-size: 14px;
    }
    
    .danish-job-location,
    .danish-location-count {
        font-size: 12px;
    }
}