/* Location Popup Styles */

.este-location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.este-location-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.este-location-content {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.este-location-overlay.active .este-location-content {
    transform: scale(1);
}

.este-location-header .dashicons-location {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--este-primary);
    margin-bottom: 20px;
}

.este-location-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b;
}

.este-location-header p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
}

.este-location-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.este-btn-permitir-geo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.este-btn-outline {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.este-btn-outline:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.este-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.este-input:focus {
    border-color: var(--este-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 29, 118, 0.1);
}

.este-input::placeholder {
    color: #94a3b8;
}

.spin {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Modal Bottom Indicator (Small & Discrete) */
.este-location-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--este-primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(234, 29, 118, 0.05);
    transition: all 0.2s;
    font-size: 0.85rem;
}

.este-location-indicator:hover {
    background: rgba(234, 29, 118, 0.1);
}

/* Autocomplete Styles */
.este-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-top: 8px;
    z-index: 100000;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
    display: none;
}

.este-autocomplete-item {
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc;
}

.este-autocomplete-item:last-child {
    border-bottom: none;
}

.este-autocomplete-item:hover {
    background: #f8fafc;
    padding-left: 22px;
}

.este-autocomplete-item strong {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

.este-autocomplete-item .item-type {
    font-size: 9px;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.este-autocomplete-item:hover .item-type {
    background: var(--este-primary);
    color: #fff;
}

/* Container for positioning */
.este-manual-input-container {
    position: relative;
}

/* Header Autocomplete Override */
.este-change-location {
    position: relative;
}

.este-change-location .este-autocomplete-results {
    width: 320px;
    left: 0;
    top: calc(100% + 15px);
}