.star-map-search-wrapper {
    margin-bottom: 30px;
}

.star-map-search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.star-map-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: border-color 0.3s;
    -webkit-appearance: none; /* Better mobile styling */
    appearance: none;
}

.star-map-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.star-map-clear-btn {
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Better touch handling */
}

.star-map-clear-btn:hover,
.star-map-clear-btn:active {
    background: #c82333;
}

.star-map-search-status {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    width: 100%;
}

/* Transition for items */
.elementor-loop-item,
.e-loop-item {
    transition: opacity 0.3s ease;
}

/* Loading state */
.elementor-loop-container.filtering {
    opacity: 0.5;
    pointer-events: none;
}

/* No results message */
.no-results-message {
    padding: 20px;
    text-align: center;
    width: 100%;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .star-map-search-form {
        flex-direction: column;
    }

    .star-map-search-input {
        width: 100%;
    }

    .star-map-clear-btn {
        width: 100%;
    }
}