/* AgriMap Component Styles */

/* Autocomplete styling with proper icon alignment */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--bit-clr-brd-pri);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
  z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
 padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--bit-clr-brd-sec);
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f0fdf4;
}

.autocomplete-main {
    display: flex;
    align-items: center;
    font-size: 1rem;
 font-weight: 600;
    color: var(--bit-clr-fg-pri);
    gap: 8px; /* Space between icon and text */
}

.autocomplete-main i {
    color: #22c55e;
    font-size: 1rem;
    flex-shrink: 0;
  width: 16px;
    text-align: center;
}

.autocomplete-sub {
    font-size: 0.875rem;
    color: var(--bit-clr-fg-sec);
    margin-left: 24px; /* Align with text, not icon */
}

/* Selected Location Display */
.selected-location {
    display: flex;
    gap: 16px;
 padding: 20px;
    background: linear-gradient(135deg, #f0fdf415, #dcfce715);
    border: 2px solid #86efac;
    border-radius: 12px;
    margin-top: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
      opacity: 0;
        transform: translateY(-10px);
    }
    to {
    opacity: 1;
        transform: translateY(0);
    }
}

.location-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.location-icon i {
    font-size: 24px;
    color: #22c55e;
}

.location-details {
    flex: 1;
display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-details strong {
 font-size: 0.875rem;
    color: var(--bit-clr-fg-sec);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bit-clr-fg-pri);
    line-height: 1.5;
}

.location-metadata {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.location-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.location-label {
    font-size: 0.875rem;
    color: var(--bit-clr-fg-sec);
    min-width: 100px;
    font-weight: 500;
}

.location-value {
    font-size: 0.875rem;
    color: var(--bit-clr-fg-pri);
    font-weight: 600;
}

.location-value.coordinates {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-value.coordinates i {
    color: #22c55e;
}

/* Validation Message */
.validation-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
border-radius: 8px;
 color: #dc2626;
    font-size: 0.875rem;
    margin-top: 12px;
}

.validation-message i {
    font-size: 1rem;
}
