/* Minification failed. Returning unminified contents.
(66,24): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
 */
/**
 * Location Selector Component Styles
 * Reusable CSS for the LocationSelector jQuery plugin
 *
 * IMPORTANT: Use @@media for at-rules in Razor views (.cshtml)
 */

/* Container */
.location-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

/* Inline mode for horizontal layout */
.location-selector.location-selector-inline {
    flex-wrap: nowrap;
}

.location-selector.location-selector-inline .location-field {
    min-width: auto;
    flex: 1;
}

/* Field wrapper */
.location-field {
    flex: 1;
    min-width: 200px;
}

/* Labels */
.location-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

/* Hide labels mode */
.location-selector-no-labels .location-field label {
    display: none;
}

/* Form controls */
.location-field select,
.location-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1f2937;
}

.location-field select:hover,
.location-field input:hover {
    border-color: #cbd5e1;
}

.location-field select:focus,
.location-field input:focus {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Loading state */
.location-field select:disabled,
.location-field input:disabled {
    background-color: #f3f4f6;
    cursor: wait;
    opacity: 0.7;
}

/* Validation states */
.location-field select.is-invalid,
.location-field input.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.location-field select.is-invalid:focus,
.location-field input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.location-field select.is-valid,
.location-field input.is-valid {
    border-color: #10b981;
}

/* Typeahead.js integration */
.location-selector .twitter-typeahead {
    width: 100%;
    display: block;
}

.location-selector .tt-hint {
    color: #9ca3af;
    background: transparent !important;
}

.location-selector .tt-input {
    background: #ffffff !important;
}

.location-selector .tt-menu {
    width: 100%;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1050;
}

.location-selector .tt-dataset {
    padding: 4px 0;
}

.location-selector .tt-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    color: #1f2937;
    font-size: 14px;
    /* Prevent letter/word spacing gaps in city names */
    letter-spacing: normal;
    word-spacing: normal;
}

.location-selector .tt-suggestion:hover,
.location-selector .tt-suggestion.tt-cursor {
    background: #f3f4f6;
}

.location-selector .tt-suggestion strong {
    color: #1f2937;
    font-weight: 700;
    /* Ensure no extra spacing around highlighted text */
    letter-spacing: normal;
    word-spacing: normal;
    margin: 0;
    padding: 0;
}

/* Suggestion item styling - BLOCK display only to prevent gaps in highlighted text */
.location-selector .tt-suggestion-item {
    display: block !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* State name and code layout using inline elements instead of flex */
.location-selector .tt-state-name {
    display: inline;
}

.location-selector .tt-state-code {
    float: right;
}

.location-selector .tt-state-name {
    font-weight: 500;
}

.location-selector .tt-state-code {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Empty state message */
.location-selector .tt-empty-message {
    padding: 12px 16px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}

/* Disabled city field styling */
.location-selector .location-field-city input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Typeahead input with icon hint */
.location-selector .typeahead-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.location-selector .typeahead-input:disabled {
    background-image: none;
}

/* Active/focused typeahead styling */
.location-selector .tt-input:focus {
    background-image: none !important;
}

/* Loading spinner for inputs */
.location-field-state input:disabled,
.location-field-city input:disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%239ca3af' d='M12 2a10 10 0 0 1 10 10h-2a8 8 0 0 0-8-8V2z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

/* Compact mode */
.location-selector.location-selector-compact .location-field {
    min-width: 150px;
}

.location-selector.location-selector-compact .location-field select,
.location-selector.location-selector-compact .location-field input {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
}

/* Dark mode support (if using CSS variables) */
@media (prefers-color-scheme: dark) {
    .location-selector-dark .location-field select,
    .location-selector-dark .location-field input {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .location-selector-dark .location-field select:focus,
    .location-selector-dark .location-field input:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

    .location-selector-dark .tt-menu {
        background: #1f2937;
        border-color: #374151;
    }

    .location-selector-dark .tt-suggestion:hover {
        background: #374151;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-selector {
        flex-direction: column;
        gap: 0.75rem;
    }

    .location-selector.location-selector-inline {
        flex-direction: column;
    }

    .location-field {
        min-width: 100%;
    }

    .location-field select,
    .location-field input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }

    .location-selector .tt-menu {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .location-selector {
        gap: 0.5rem;
    }

    .location-field label {
        font-size: 13px;
        margin-bottom: 0.375rem;
    }

    .location-field select,
    .location-field input {
        padding: 12px 14px;
        border-radius: 10px;
    }
}

/* Print styles */
@media print {
    .location-selector .tt-menu,
    .location-selector .chosen-drop {
        display: none !important;
    }
}

